/* ============================================================
   EhViewerX 官网落地页样式
   主色：Teal 青绿   主题：浅色清新 App 官网
   ============================================================ */

:root {
  --teal:        #009688;
  --teal-deep:   #00796b;
  --teal-dark:   #004d40;
  --teal-soft:   rgba(0, 150, 136, .10);
  --bg:          #f4f8f8;
  --bg-2:        #eef4f4;
  --surface:     #ffffff;
  --surface-2:   #f0f6f6;
  --line:        rgba(0, 77, 64, .10);
  --text:        #1c2b2b;
  --text-dim:    #5a6b6b;
  --text-faint:  #8a9a9a;
  --radius:      18px;
  --maxw:        1180px;
  --shadow:      0 14px 40px rgba(0, 77, 64, .10);
  --shadow-sm:   0 4px 16px rgba(0, 77, 64, .08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- 导航 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s, box-shadow .3s;
}
.nav.scrolled {
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 19px; }
.brand img { width: 38px; height: 38px; border-radius: 10px; box-shadow: var(--shadow-sm); }
.brand .brand-name span { color: var(--teal); }

.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; }
.nav-links a { font-size: 15px; color: var(--text-dim); transition: color .2s; position: relative; }
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--teal); transition: width .25s;
}
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal); color: #fff; font-weight: 600; font-size: 14px;
  padding: 10px 20px; border-radius: 999px;
  transition: transform .2s, box-shadow .2s, background .2s;
  box-shadow: 0 8px 22px rgba(0,150,136,.32);
}
.nav-cta:hover { background: var(--teal-deep); transform: translateY(-1px); }

.nav-burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 8px; }
.nav-burger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: 150px 0 90px;
  background:
    radial-gradient(900px 500px at 82% -10%, rgba(0,150,136,.16), transparent 60%),
    radial-gradient(700px 400px at 0% 8%, rgba(0,121,107,.10), transparent 55%),
    var(--bg);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--teal-deep); background: var(--teal-soft);
  border: 1px solid rgba(0,150,136,.22);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(0,150,136,.18); }
.hero h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.12; font-weight: 800; letter-spacing: -1px; margin-bottom: 22px; }
.hero h1 .accent {
  background: linear-gradient(120deg, #00bfa5, var(--teal) 60%, #00897b);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p.lead { font-size: 17px; color: var(--text-dim); max-width: 540px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; border-radius: 999px;
  font-size: 16px; font-weight: 600; cursor: pointer; border: none;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 12px 30px rgba(0,150,136,.36); }
.btn-primary:hover { background: var(--teal-deep); transform: translateY(-2px); }
.btn-ghost { background: #fff; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }

.hero-meta { display: flex; gap: 26px; margin-top: 34px; flex-wrap: wrap; }
.hero-meta .meta-item { font-size: 14px; color: var(--text-faint); }
.hero-meta .meta-item strong { display: block; font-size: 22px; color: var(--text); font-weight: 700; }

/* 手机样机 */
.hero-visual { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative; width: 280px; border-radius: 38px;
  background: #fff; border: 10px solid #1c242d;
  box-shadow: var(--shadow), 0 0 0 1px rgba(0,77,64,.06);
  overflow: hidden; transform: rotate(-2deg);
}
.phone img { width: 100%; display: block; }
.phone::before {
  content: ""; position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 22px; background: #000; border-radius: 14px; z-index: 2;
}
.float-badge {
  position: absolute; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 12px 16px; font-size: 13px;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 10px;
}
.float-badge.b1 { top: 8%; left: -6%; }
.float-badge.b2 { bottom: 14%; right: -6%; }
.float-badge .ic { width: 34px; height: 34px; border-radius: 9px; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; }

/* ---------- 通用 ---------- */
section { padding: 90px 0; }
.sec-head { text-align: center; max-width: 680px; margin: 0 auto 60px; }
.sec-tag { font-size: 13px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--teal-deep); font-weight: 600; }
.sec-head h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; margin: 14px 0 16px; letter-spacing: -.5px; }
.sec-head p { color: var(--text-dim); font-size: 16px; }

/* ---------- 产品展示 ---------- */
.product { background: var(--surface); }
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.product-shot { border-radius: 28px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
.product-shot img { width: 100%; }
.product-copy h3 { font-size: 30px; font-weight: 800; margin-bottom: 18px; }
.product-copy p { color: var(--text-dim); margin-bottom: 26px; }
.feature-list { list-style: none; display: grid; gap: 18px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.feature-list .fi {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 11px;
  background: var(--teal-soft); color: var(--teal); display: grid; place-items: center;
}
.feature-list .ft strong { display: block; font-size: 16px; }
.feature-list .ft span { color: var(--text-dim); font-size: 14px; }

/* ---------- 功能卡片 ---------- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.fcard {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.fcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(0,150,136,.4); }
.fcard .fic {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
  color: #fff; display: grid; place-items: center; margin-bottom: 20px;
}
.fcard h4 { font-size: 19px; margin-bottom: 10px; }
.fcard p { color: var(--text-dim); font-size: 14.5px; }

/* ---------- 截图墙 ---------- */
.gallery { background: var(--bg-2); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gcard {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: #fff;
}
.gcard img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.gcard .gcap { padding: 16px 18px; font-size: 14px; color: var(--text-dim); border-top: 1px solid var(--line); }
.gcard .gcap strong { color: var(--text); display: block; font-size: 15px; }

/* ---------- 下载 ---------- */
.download {
  position: relative;
  background: radial-gradient(700px 360px at 50% 0%, rgba(0,150,136,.14), transparent 65%), var(--bg);
}
.download-card {
  background: linear-gradient(140deg, #00897b, #00695c 60%);
  border-radius: 28px; padding: 60px 40px; text-align: center; color: #fff;
  box-shadow: 0 24px 60px rgba(0,105,92,.35);
}
.download-card h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 800; margin-bottom: 14px; }
.download-card p { color: rgba(255,255,255,.82); max-width: 520px; margin: 0 auto 34px; }
.download-badge {
  display: inline-flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  border-radius: 16px; padding: 14px 22px; margin-bottom: 30px;
}
.download-badge img { width: 48px; height: 48px; border-radius: 11px; }
.download-badge .db-txt { text-align: left; }
.download-badge .db-txt strong { display: block; font-size: 16px; }
.download-badge .db-txt span { font-size: 12.5px; color: rgba(255,255,255,.75); }
.download-card .btn-primary { background: #fff; color: var(--teal-dark); box-shadow: 0 12px 30px rgba(0,0,0,.25); }
.download-card .btn-primary:hover { background: #e8f5f3; }
.dl-meta { display: flex; justify-content: center; gap: 28px; margin-top: 26px; flex-wrap: wrap; font-size: 13.5px; color: rgba(255,255,255,.75); }
.dl-meta b { color: #fff; font-weight: 600; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.faq-q {
  width: 100%; background: none; border: none; color: var(--text);
  text-align: left; padding: 20px 24px; font-size: 16px; font-weight: 600;
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  gap: 16px; font-family: inherit;
}
.faq-q .arrow { transition: transform .3s; color: var(--teal); flex: 0 0 auto; }
.faq-item.open .faq-q .arrow { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; color: var(--text-dim); font-size: 14.5px; }
.faq-a .inner { padding: 0 24px 20px; }

/* ---------- 页脚 ---------- */
footer { border-top: 1px solid var(--line); padding: 50px 0 34px; background: var(--surface); }
.foot-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-bottom: 30px; }
.foot-brand { max-width: 320px; }
.foot-brand .brand { margin-bottom: 14px; }
.foot-brand p { color: var(--text-faint); font-size: 14px; }
.foot-col h5 { font-size: 14px; margin-bottom: 14px; color: var(--text); }
.foot-col a { display: block; color: var(--text-faint); font-size: 14px; margin-bottom: 9px; transition: color .2s; }
.foot-col a:hover { color: var(--teal); }
.foot-bottom { border-top: 1px solid var(--line); padding-top: 22px; text-align: center; color: var(--text-faint); font-size: 13px; }

/* ---------- 响应式 ---------- */
@media (max-width: 920px) {
  .hero-grid, .product-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 120px 0 70px; }
  .hero-visual { order: -1; }
  .phone { width: 240px; }
  .features-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .nav-links {
    position: fixed; top: 68px; left: 0; right: 0;
    background: rgba(255,255,255,.97); backdrop-filter: blur(14px);
    flex-direction: column; gap: 0; padding: 10px 0;
    transform: translateY(-130%); transition: transform .3s;
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 24px; }
  .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .features-grid, .gallery-grid { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .download-card { padding: 44px 22px; }
  .float-badge { display: none; }
}
