/* =========================================================
   悦拍相机 (YuePai Cam) 官网样式
   主题变量集中在 :root，改品牌色/字体只需改这里
   ========================================================= */
:root {
  /* —— 主题色（替换为你自己的品牌色）—— */
  --brand-1: #7c3aed;   /* 主紫 */
  --brand-2: #ec4899;   /* 亮粉 */
  --brand-3: #06b6d4;   /* 青蓝点缀 */
  --gradient: linear-gradient(120deg, #7c3aed 0%, #ec4899 100%);
  --gradient-soft: linear-gradient(120deg, rgba(124,58,237,.12) 0%, rgba(236,72,153,.12) 100%);

  /* —— 文本与背景 —— */
  --ink: #14131a;        /* 主文字 */
  --ink-soft: #5b5870;   /* 次要文字 */
  --ink-faint: #938fb0;  /* 极弱文字 */
  --bg: #ffffff;
  --bg-soft: #f7f6fb;    /* 浅区块背景 */
  --bg-dark: #16121f;    /* 深色区块/Hero */
  --line: #ece9f3;       /* 分割线 */

  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 18px 50px -20px rgba(40,20,80,.35);
  --shadow-soft: 0 10px 30px -15px rgba(40,20,80,.22);
  --maxw: 1180px;

  --font: "PingFang SC","Hiragino Sans GB","Microsoft YaHei",-apple-system,
          BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
section { position: relative; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* —— 通用按钮 —— */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: none; cursor: pointer; transition: transform .2s, box-shadow .2s, opacity .2s;
  white-space: nowrap;
}
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 10px 24px -10px rgba(236,72,153,.7); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(236,72,153,.8); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,.2); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { transform: translateY(-2px); }
.btn-outline { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-outline:hover { border-color: var(--brand-1); color: var(--brand-1); }

/* —— 顶部导航 —— */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px; transition: background .3s, box-shadow .3s, padding .3s;
}
.nav.scrolled { background: rgba(255,255,255,.85); backdrop-filter: blur(14px); box-shadow: 0 6px 24px -18px rgba(0,0,0,.4); padding: 12px 32px; }
.nav .logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: #fff; transition: color .3s; }
.nav.scrolled .logo { color: var(--ink); }
.logo .mark-img {
  width: 34px; height: 34px; border-radius: 10px; object-fit: cover;
  box-shadow: 0 6px 16px -6px rgba(0,0,0,.35);
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: rgba(255,255,255,.92); font-size: 15px; font-weight: 500; transition: color .3s; }
.nav.scrolled .nav-links a { color: var(--ink-soft); }
.nav-links a:hover { color: var(--brand-2); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta .btn { font-size: 14px; padding: 10px 18px; }
.menu-toggle { display: none; background: none; border: none; color: #fff; font-size: 26px; cursor: pointer; }
.nav.scrolled .menu-toggle { color: var(--ink); }

/* —— Hero —— */
.hero {
  background: radial-gradient(120% 120% at 80% 10%, #3a1f6e 0%, #16121f 55%, #0d0a14 100%);
  color: #fff; padding: 160px 0 90px; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(40% 40% at 15% 20%, rgba(236,72,153,.25), transparent 70%),
    radial-gradient(45% 45% at 85% 75%, rgba(6,182,212,.2), transparent 70%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; position: relative; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
  padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18); margin-bottom: 22px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52,211,153,.25); }
.hero h1 { font-size: clamp(38px, 5.4vw, 66px); line-height: 1.08; font-weight: 800; letter-spacing: -1px; }
.hero h1 .hl { background: linear-gradient(120deg,#f9a8d4,#c4b5fd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 18px; color: rgba(255,255,255,.78); margin: 22px 0 32px; max-width: 520px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* 手机样机 */
.phone-wrap { display: flex; justify-content: center; position: relative; }
.phone-wrap::after {
  content: ""; position: absolute; width: 320px; height: 320px; bottom: -40px;
  background: var(--gradient); filter: blur(80px); opacity: .5; z-index: 0; border-radius: 50%;
}
.phone {
  position: relative; z-index: 1; width: 300px; height: 620px; border-radius: 46px;
  background: #0b0a10; padding: 12px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.7), inset 0 0 0 2px rgba(255,255,255,.06);
}
.phone .screen {
  width: 100%; height: 100%; border-radius: 36px; overflow: hidden; position: relative;
  background: linear-gradient(160deg,#2b2150,#4a2a6b 45%,#7c3aed 100%);
}
.phone .notch { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 110px; height: 26px; background: #0b0a10; border-radius: 0 0 18px 18px; z-index: 3; }
.phone .viewfinder { position: absolute; inset: 0; }
.vf-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phone .vf-subject {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%,-50%);
  width: 150px; height: 150px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #ffd9c2, #e89b7d 60%, #c97b63);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,.5);
}
.phone .vf-grid { position: absolute; inset: 40px; border: 1px dashed rgba(255,255,255,.4); }
.phone .vf-grid::before, .phone .vf-grid::after { content:""; position:absolute; background: rgba(255,255,255,.4); }
.phone .vf-grid::before { left: 33.3%; right: 33.3%; top: 0; bottom: 0; border-left: 1px dashed rgba(255,255,255,.4); border-right: 1px dashed rgba(255,255,255,.4); }
.phone .vf-grid::after { top: 33.3%; bottom: 33.3%; left: 0; right: 0; border-top: 1px dashed rgba(255,255,255,.4); border-bottom: 1px dashed rgba(255,255,255,.4); }
.phone .shutter {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  width: 66px; height: 66px; border-radius: 50%; background: #fff; z-index: 3;
  display: grid; place-items: center; box-shadow: 0 8px 20px -6px rgba(0,0,0,.5);
}
.phone .shutter::after { content: ""; width: 50px; height: 50px; border-radius: 50%; border: 4px solid #16121f; }
.phone .topbar { position: absolute; top: 18px; left: 22px; right: 22px; display: flex; justify-content: space-between; color: #fff; font-size: 12px; z-index: 3; }
.phone .beauty-chip { position: absolute; top: 56px; left: 22px; background: rgba(0,0,0,.4); color:#fff; font-size: 11px; padding: 5px 10px; border-radius: 999px; z-index: 3; backdrop-filter: blur(4px); }
.phone .filters { position: absolute; bottom: 104px; left: 0; right: 0; display: flex; gap: 10px; justify-content: center; z-index: 3; }
.phone .filters span { width: 40px; height: 40px; border-radius: 12px; border: 2px solid rgba(255,255,255,.5); background: linear-gradient(135deg,#f9a8d4,#c4b5fd); }

/* —— 数据条 —— */
.stats { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(2,1fr); max-width: 560px; margin: 0 auto; padding: 38px 0; gap: 20px; text-align: center; }
.stat .num { font-size: 34px; font-weight: 800; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .label { color: var(--ink-soft); font-size: 14px; margin-top: 4px; }

/* —— 通用区块标题 —— */
.section { padding: 96px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head .eyebrow { color: var(--brand-1); font-weight: 700; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; }
.section-head h2 { font-size: clamp(28px,3.6vw,42px); font-weight: 800; margin: 12px 0 14px; letter-spacing: -.5px; }
.section-head p { color: var(--ink-soft); font-size: 17px; }

/* —— 功能卡片网格 —— */
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.feature-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.feature-card .ic {
  width: 56px; height: 56px; border-radius: 16px; background: var(--gradient-soft);
  display: grid; place-items: center; margin-bottom: 18px; color: var(--brand-1);
}
.feature-card .ic svg { width: 28px; height: 28px; }
.feature-card h3 { font-size: 19px; margin-bottom: 8px; }
.feature-card p { color: var(--ink-soft); font-size: 15px; }

/* —— 交替展示区 —— */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; padding: 60px 0; }
.showcase.reverse .show-text { order: 2; }
.showcase .show-text .eyebrow { color: var(--brand-1); font-weight: 700; font-size: 14px; }
.showcase .show-text h2 { font-size: clamp(26px,3vw,38px); font-weight: 800; margin: 10px 0 16px; letter-spacing: -.5px; }
.showcase .show-text p { color: var(--ink-soft); font-size: 16px; margin-bottom: 20px; }
.show-list { list-style: none; display: grid; gap: 12px; }
.show-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); font-size: 15px; }
.show-list li svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--brand-2); margin-top: 2px; }
.show-visual {
  border-radius: var(--radius-lg); min-height: 380px; position: relative; overflow: hidden;
  background: var(--gradient-soft); display: grid; place-items: center; box-shadow: var(--shadow-soft);
}
.show-visual .canvas { width: 78%; height: 78%; border-radius: 18px; overflow: hidden; position: relative; box-shadow: 0 20px 50px -20px rgba(40,20,80,.5); }
.show-visual .canvas.c1 { background: linear-gradient(160deg,#f9a8d4,#a78bfa); }
.show-visual .canvas.c2 { background: linear-gradient(160deg,#67e8f9,#818cf8); }
.show-visual .canvas.c3 { background: linear-gradient(160deg,#fda4af,#f0abfc); }
.show-visual .canvas .face {
  position: absolute; left: 50%; top: 52%; transform: translate(-50%,-50%);
  width: 150px; height: 180px; border-radius: 50% 50% 48% 48%;
  background: radial-gradient(circle at 42% 35%, #ffe6d6, #e7a585 65%, #c98a6b);
}
.canvas-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.show-visual .canvas .sparkle { position: absolute; color: #fff; font-size: 22px; opacity: .9; }
.show-visual .pillrow { position:absolute; bottom: 18px; left: 0; right: 0; display:flex; gap:8px; justify-content:center; }
.show-visual .pillrow span { font-size:11px; padding:5px 10px; border-radius:999px; background:rgba(255,255,255,.85); color:#5b3aa0; font-weight:600; }

/* —— 直播伴侣 / 手机变摄像头 大区块 —— */
.companion { background: var(--bg-dark); color: #fff; border-radius: var(--radius-lg); padding: 64px 56px; position: relative; overflow: hidden; }
.companion::before { content:""; position:absolute; inset:0; background: radial-gradient(50% 60% at 90% 10%, rgba(236,72,153,.3), transparent 60%); }
.companion-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; position: relative; }
.companion .eyebrow { color: #f9a8d4; font-weight: 700; }
.companion h2 { font-size: clamp(28px,3.4vw,40px); font-weight: 800; margin: 10px 0 14px; }
.companion p { color: rgba(255,255,255,.75); font-size: 16px; margin-bottom: 24px; max-width: 480px; }
.companion .dl-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.companion .note { margin-top: 22px; font-size: 13px; color: rgba(255,255,255,.55); border-left: 3px solid var(--brand-2); padding-left: 12px; }
.companion-visual { display: flex; justify-content: center; }
.monitor { width: 340px; border-radius: 18px; background: #0b0a10; padding: 14px; box-shadow: 0 30px 60px -25px rgba(0,0,0,.7); }
.monitor .top { height: 14px; display: flex; gap: 6px; margin-bottom: 12px; }
.monitor .top i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.monitor .screen2 { aspect-ratio: 16/10; border-radius: 10px; background: linear-gradient(160deg,#2b2150,#7c3aed); position: relative; overflow: hidden; }
.monitor .screen2 .face { position:absolute; left:50%; top:54%; transform:translate(-50%,-50%); width:120px; height:150px; border-radius:50% 50% 48% 48%; background: radial-gradient(circle at 42% 35%, #ffe6d6, #e7a585 65%, #c98a6b); }
.screen2-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.monitor .screen2 .tag { position:absolute; top:12px; left:12px; font-size:11px; background:rgba(0,0,0,.45); color:#fff; padding:4px 9px; border-radius:999px; }
.monitor .stand { width: 70px; height: 34px; margin: 12px auto 0; background:#0b0a10; clip-path: polygon(20% 0,80% 0,100% 100%,0 100%); }

/* —— 下载区 —— */
.download { background: var(--gradient-soft); }
.dl-box { text-align: center; max-width: 720px; margin: 0 auto; }
.dl-box h2 { font-size: clamp(28px,3.6vw,42px); font-weight: 800; }
.dl-box p { color: var(--ink-soft); margin: 14px 0 30px; font-size: 17px; }
.qr { margin: 36px auto 0; width: 140px; height: 140px; background: #fff; border-radius: 16px; display: grid; place-items: center; box-shadow: var(--shadow-soft); padding: 12px; }
.qr img { width: 100%; height: 100%; border-radius: 8px; display: block; }

/* —— FAQ —— */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.faq-q { width: 100%; text-align: left; background: none; border: none; padding: 20px 24px; font-size: 17px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; color: var(--ink); }
.faq-q .plus { color: var(--brand-1); font-size: 22px; transition: transform .3s; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s; color: var(--ink-soft); font-size: 15px; }
.faq-a p { padding: 0 24px 22px; }

/* —— 页脚 —— */
.footer { background: var(--bg-dark); color: rgba(255,255,255,.7); padding: 64px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer .logo { color: #fff; display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; margin-bottom: 14px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-col a { display: block; color: rgba(255,255,255,.7); font-size: 14px; margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: var(--brand-2); }
.footer-about p { font-size: 14px; max-width: 280px; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; font-size: 13px; color: rgba(255,255,255,.5); }

/* —— 返回顶部 —— */
.totop { position: fixed; right: 24px; bottom: 24px; width: 46px; height: 46px; border-radius: 50%; background: var(--gradient); color: #fff; border: none; cursor: pointer; display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(236,72,153,.7); opacity: 0; transform: translateY(12px); transition: opacity .3s, transform .3s; z-index: 40; }
.totop.show { opacity: 1; transform: translateY(0); }

/* —— 响应式 —— */
@media (max-width: 940px) {
  .hero-grid, .showcase, .companion-grid { grid-template-columns: 1fr; }
  .showcase.reverse .show-text { order: 0; }
  .feature-grid { grid-template-columns: repeat(2,1fr); }
  .stats-grid { grid-template-columns: repeat(2,1fr); gap: 28px 12px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .phone-wrap { margin-top: 30px; }
  .companion { padding: 44px 28px; }
}
@media (max-width: 640px) {
  .nav-links, .nav-cta .btn-outline { display: none; }
  .menu-toggle { display: block; }
  .nav.mobile-open { background: rgba(255,255,255,.97); }
  .nav.mobile-open .logo, .nav.mobile-open .menu-toggle { color: var(--ink); }
  .nav-links.open { display: flex; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 18px; padding: 24px 32px; background: #fff; color: var(--ink); box-shadow: 0 20px 40px -20px rgba(0,0,0,.3); }
  .nav-links.open a { color: var(--ink); }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero { padding: 130px 0 70px; }
}
