/* =====================================================================
 * 婚纱宝典 - 落地页样式
 * 移动端自适应：内容最大宽度 480px 居中；
 * PC 端打开时模拟手机屏幕（居中 + 边框 + 留白）。
 * ===================================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
  --orange: #ff5a1f;
  --orange-2: #ff8a00;
  --red: #ff2d55;
  --navy: #16224a;
  --navy-2: #223066;
  --gold: #ffd54a;
  --warm: #fff7ef;
  --ink: #1b1b25;
  --muted: #8a8a99;
  --line: #f0e6dc;
  --radius: 16px;
  --maxw: 480px;
}

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: #e9e4dc;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  background-image: radial-gradient(circle at 20% 0%, #fff4e8 0%, #e6e0d7 60%);
}

/* ---------- PC 端模拟手机外框 ---------- */
.phone {
  width: 100%;
  max-width: var(--maxw);
  min-height: 100vh;
  background: #fff;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

@media (min-width: 520px) {
  body { align-items: flex-start; padding: 28px 0; }
  .phone {
    min-height: calc(100vh - 56px);
    height: calc(100vh - 56px);
    border-radius: 30px;
    border: 10px solid #1a1a22;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .32), 0 0 0 2px #34343f inset;
  }
  .phone::before { /* 刘海 */
    content: "";
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 120px; height: 22px; background: #1a1a22;
    border-radius: 0 0 14px 14px; z-index: 60;
  }
  .scroll-area { border-radius: 16px; }
}

/* ---------- 滚动区 ---------- */
.scroll-area {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 96px;
  background: var(--warm);
}

/* ---------- 顶部悬浮栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: #fff;
  box-shadow: 0 2px 10px rgba(22, 34, 74, .25);
}
.brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.brand-logo {
  width: 34px; height: 34px; border-radius: 10px; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--orange), var(--gold));
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800; color: #fff;
  box-shadow: 0 4px 10px rgba(255, 90, 31, .45);
}
.brand-text { line-height: 1.1; min-width: 0; }
.brand-title { font-size: 15px; font-weight: 800; letter-spacing: .5px; white-space: nowrap; }
.brand-sub { font-size: 10px; color: #c9d2f0; white-space: nowrap; }

.lang-switch { position: relative; flex: 0 0 auto; }
.lang-btn {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
  color: #fff; font-size: 13px; padding: 6px 10px; border-radius: 20px;
  cursor: pointer; font-family: inherit;
}
.lang-btn .caret { font-size: 9px; opacity: .8; }
.lang-menu {
  position: absolute; right: 0; top: 110%;
  background: #fff; color: var(--ink);
  border-radius: 12px; min-width: 150px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .22);
  padding: 6px; display: none; z-index: 80;
  max-height: 60vh; overflow-y: auto;
}
.lang-menu.open { display: block; }
.lang-menu button {
  display: flex; align-items: center; gap: 8px; width: 100%;
  background: none; border: 0; text-align: left; cursor: pointer;
  padding: 9px 10px; border-radius: 8px; font-size: 14px; font-family: inherit;
  color: var(--ink);
}
.lang-menu button:hover, .lang-menu button.active { background: #fff1e7; color: var(--orange); }
.lang-menu .flag { font-size: 16px; }

/* ---------- 首屏横幅 ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(circle at 85% 12%, rgba(255, 213, 74, .35), transparent 42%),
    linear-gradient(160deg, #ff7a3c 0%, var(--orange) 45%, var(--red) 100%);
  color: #fff;
  padding: 22px 18px 22px;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -40px; bottom: -50px;
  width: 180px; height: 180px; border-radius: 50%;
  background: rgba(255, 255, 255, .12);
}
.hero-badges { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.hero-badges span {
  font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 20px;
  background: rgba(255, 255, 255, .22); border: 1px solid rgba(255, 255, 255, .35);
  backdrop-filter: blur(4px);
}
.hero-badges span:first-child { background: var(--gold); color: #6b3b00; border-color: var(--gold); }
.hero h1 {
  font-size: 23px; line-height: 1.32; font-weight: 900;
  letter-spacing: .3px; text-shadow: 0 2px 8px rgba(150, 40, 0, .3);
  position: relative; z-index: 1;
}
.hero .hero-sub {
  margin-top: 10px; font-size: 12.5px; color: rgba(255, 255, 255, .92);
  position: relative; z-index: 1;
}
.hero .hero-trust {
  margin-top: 12px; font-size: 11px; color: #fff;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0, 0, 0, .14); padding: 5px 10px; border-radius: 20px;
  position: relative; z-index: 1;
}

/* ---------- 滚动播报条 ---------- */
.ticker {
  display: flex; align-items: center; gap: 8px;
  background: #fff8ec; border-bottom: 1px solid var(--line);
  padding: 8px 12px; overflow: hidden;
}
.ticker-icon {
  flex: 0 0 auto; color: var(--orange); font-size: 13px; font-weight: 800;
  display: flex; align-items: center; gap: 4px;
}
.ticker-icon .dot {
  width: 6px; height: 6px; border-radius: 50%; background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, .2); animation: blink 1.4s infinite;
}
@keyframes blink { 50% { opacity: .3; } }
.ticker-viewport { flex: 1; overflow: hidden; position: relative; height: 18px; }
.ticker-track {
  position: absolute; white-space: nowrap; font-size: 12px; color: #7a5a2a;
  animation: tickerMove 18s linear infinite;
}
@keyframes tickerMove {
  from { transform: translateX(100%); }
  to { transform: translateX(-100%); }
}

/* ---------- 主 CTA 按钮 ---------- */
.cta-wrap { padding: 18px 18px 8px; }
.cta-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; border: 0; cursor: pointer; font-family: inherit;
  font-size: 17px; font-weight: 900; color: #7a1f00; letter-spacing: .5px;
  padding: 16px; border-radius: 40px;
  background: linear-gradient(100deg, var(--gold) 0%, #ffe58a 40%, var(--gold) 70%, #ffcf33 100%);
  box-shadow: 0 10px 24px rgba(255, 138, 0, .45), 0 0 0 3px rgba(255, 255, 255, .5) inset;
  animation: breathe 2.2s ease-in-out infinite;
  position: relative; overflow: hidden;
}
.cta-btn:active { transform: scale(.98); }
.cta-btn .arrow { font-size: 15px; }
.cta-btn::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .7), transparent);
  transform: skewX(-20deg); animation: shine 2.8s infinite;
}
@keyframes breathe {
  0%, 100% { transform: scale(1); box-shadow: 0 10px 24px rgba(255, 138, 0, .45), 0 0 0 3px rgba(255, 255, 255, .5) inset; }
  50% { transform: scale(1.035); box-shadow: 0 14px 30px rgba(255, 90, 31, .6), 0 0 0 3px rgba(255, 255, 255, .6) inset; }
}
@keyframes shine {
  0% { left: -60%; }
  60%, 100% { left: 130%; }
}

/* ---------- 岗位列表 ---------- */
.jobs { padding: 8px 14px 18px; }
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: 12px 4px 12px;
}
.section-head h2 {
  font-size: 16px; font-weight: 900; color: var(--navy);
  display: flex; align-items: center; gap: 6px;
}
.section-head h2::before {
  content: ""; width: 4px; height: 16px; border-radius: 3px;
  background: linear-gradient(var(--orange), var(--gold));
}
.section-head .more { font-size: 11px; color: var(--muted); }

.job-card {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: var(--radius);
  padding: 10px; margin-bottom: 11px;
  box-shadow: 0 4px 16px rgba(180, 120, 70, .1);
  border: 1px solid #fbeade;
  transition: transform .15s ease;
}
.job-card:active { transform: scale(.99); }
.job-thumb {
  width: 84px; height: 84px; border-radius: 12px; flex: 0 0 auto;
  object-fit: cover; background: #fdf1e6; display: block;
}
.job-body { flex: 1; min-width: 0; }
.job-body h3 { font-size: 14.5px; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.job-body p { font-size: 11.5px; color: var(--muted); line-height: 1.45; margin-bottom: 7px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.job-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.job-tag {
  font-size: 10px; font-weight: 700; color: #fff; padding: 3px 8px; border-radius: 20px;
  background: linear-gradient(135deg, var(--orange), var(--red));
}
.job-pay { font-size: 10.5px; color: #e07a00; font-weight: 700; }
.job-go {
  flex: 0 0 auto; font-size: 12px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  padding: 7px 12px; border-radius: 20px; border: 0; cursor: pointer; font-family: inherit;
  white-space: nowrap;
}

/* ---------- 底部声明 ---------- */
.footer {
  padding: 6px 18px 22px; text-align: center;
}
.footer .age { font-size: 10.5px; color: var(--muted); line-height: 1.6; }
.footer a { color: var(--orange); text-decoration: none; }
.footer .copy { margin-top: 8px; font-size: 10px; color: #c1bbae; }

/* ---------- 底部悬浮下载条 ---------- */
.bottombar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 55;
  display: flex; align-items: center; gap: 10px;
  padding: 9px 13px calc(9px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(22, 34, 74, .96), var(--navy));
  box-shadow: 0 -6px 18px rgba(22, 34, 74, .3);
}
.bb-icon {
  width: 42px; height: 42px; border-radius: 11px; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--orange), var(--gold));
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 900; color: #fff;
  box-shadow: 0 4px 10px rgba(255, 90, 31, .5);
}
.bb-body { flex: 1; min-width: 0; color: #fff; }
.bb-stars { font-size: 11px; color: var(--gold); letter-spacing: 1px; }
.bb-sub { font-size: 10.5px; color: #c9d2f0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bb-btn {
  flex: 0 0 auto; border: 0; cursor: pointer; font-family: inherit;
  font-size: 14px; font-weight: 900; color: #7a1f00;
  background: linear-gradient(100deg, var(--gold), #ffe58a);
  padding: 11px 18px; border-radius: 26px;
  box-shadow: 0 6px 14px rgba(255, 138, 0, .5);
  animation: breathe 2.4s ease-in-out infinite;
}

/* ---------- 轻提示 Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 110px; transform: translateX(-50%) translateY(10px);
  background: rgba(20, 20, 30, .92); color: #fff; font-size: 13px;
  padding: 10px 18px; border-radius: 22px; opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s; z-index: 200; max-width: 86vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 通用动画 / 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  .cta-btn, .bb-btn, .ticker-track, .cta-btn::after { animation: none !important; }
}
