/* ============================================================
   1EhViewer 官网落地页样式
   主色：Teal 青绿   主题：深色现代 App 官网
   ============================================================ */

:root {
  --teal:        #00bfa5;
  --teal-deep:   #009688;
  --teal-dim:    #00796b;
  --teal-soft:   rgba(0, 191, 165, .12);
  --bg:          #0e1318;
  --bg-2:        #141a21;
  --surface:     #1a222b;
  --surface-2:   #222c37;
  --line:        rgba(255, 255, 255, .08);
  --text:        #e9eef2;
  --text-dim:    #9aa7b2;
  --text-faint:  #6b7783;
  --radius:      18px;
  --maxw:        1180px;
  --shadow:      0 20px 60px rgba(0, 0, 0, .45);
}

* { 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 ease, box-shadow .3s ease, backdrop-filter .3s;
}
.nav.scrolled {
  background: rgba(14, 19, 24, .82);
  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;
  letter-spacing: .2px;
}
.brand img {
  width: 38px; height: 38px;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 191, 165, .35);
}
.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: #04211d;
  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, 191, 165, .35);
}
.nav-cta:hover { background: #00d9bd; 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;
  transition: .3s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 150px 0 90px;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(0,191,165,.18), transparent 60%),
    radial-gradient(700px 400px at 0% 10%, rgba(0,137,123,.12), 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);
  background: var(--teal-soft);
  border: 1px solid rgba(0,191,165,.25);
  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,191,165,.2);
}
.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, #00d9bd, #00bfa5 60%, #4dd0a8);
  -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: #04211d;
  box-shadow: 0 12px 30px rgba(0,191,165,.4);
}
.btn-primary:hover { background: #00d9bd; transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  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: #0b0f13;
  border: 10px solid #1c242d;
  box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,.05);
  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: var(--surface);
  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 ---------- */
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); 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(--bg-2); }
.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);
}
.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, border-color .25s, background .25s;
}
.fcard:hover {
  transform: translateY(-4px);
  border-color: rgba(0,191,165,.4);
  background: var(--surface-2);
}
.fcard .fic {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dim));
  color: #04211d;
  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: var(--surface);
  position: relative;
}
.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,191,165,.16), transparent 65%),
    var(--bg);
}
.download-card {
  background: linear-gradient(140deg, #17312d, #10211e 60%);
  border: 1px solid rgba(0,191,165,.3);
  border-radius: 28px;
  padding: 60px 40px;
  text-align: center;
}
.download-card h2 {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  margin-bottom: 14px;
}
.download-card p { color: var(--text-dim); max-width: 520px; margin: 0 auto 34px; }
.download-badge {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  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: var(--text-faint); }

.dl-meta {
  display: flex; justify-content: center; gap: 28px;
  margin-top: 26px; flex-wrap: wrap;
  font-size: 13.5px; color: var(--text-faint);
}
.dl-meta b { color: var(--text); 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(--bg-2);
}
.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(14,19,24,.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; }
}
