/* ============================================================
   尔音智能 eryinai.com — 公司官网
   纯静态 / 零依赖 / 移动端适配
   ============================================================ */

:root {
  --accent: #4f46e5;
  --accent-2: #7c3aed;
  --accent-soft: #eef2ff;
  --text: #111827;
  --text-2: #4b5563;
  --text-3: #9ca3af;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --border: #e5e7eb;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(17, 24, 39, .08);
  --max: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

/* ---------- 顶部导航 ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--max); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { font-size: 20px; font-weight: 700; letter-spacing: .5px; }
.logo span { color: var(--accent); }
.nav { display: flex; gap: 28px; }
.nav a { font-size: 15px; color: var(--text-2); transition: color .2s; }
.nav a:hover { color: var(--accent); }
@media (max-width: 640px) {
  .nav { gap: 16px; }
  .nav a { font-size: 13px; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 80px;
  background:
    radial-gradient(800px 400px at 20% 0%, rgba(79, 70, 229, .10), transparent 60%),
    radial-gradient(700px 380px at 85% 10%, rgba(124, 58, 237, .08), transparent 60%),
    var(--bg);
  text-align: center;
}
.hero h1 {
  font-size: clamp(34px, 6vw, 56px);
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1.25;
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero p.tagline {
  margin: 20px auto 0;
  max-width: 640px;
  font-size: clamp(15px, 2.4vw, 18px);
  color: var(--text-2);
}
.hero .actions { margin-top: 36px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 12px 30px; border-radius: 999px;
  font-size: 15px; font-weight: 600; transition: all .2s;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 20px rgba(79, 70, 229, .3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(79, 70, 229, .38); }
.btn-ghost { color: var(--accent); border: 1.5px solid var(--accent); background: #fff; }
.btn-ghost:hover { background: var(--accent-soft); }

/* ---------- 通用 Section ---------- */
section { padding: 80px 0; }
.section-head { text-align: center; margin-bottom: 52px; }
.section-head .kicker {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 2px;
  color: var(--accent); background: var(--accent-soft);
  padding: 4px 14px; border-radius: 999px; margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 700; }
.section-head p { margin-top: 12px; color: var(--text-2); font-size: 16px; }

/* ---------- 产品卡片 ---------- */
.products { background: var(--bg-soft); }
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 860px) { .product-grid { grid-template-columns: 1fr; } }

.product-card {
  background: #fff; border: 1px solid var(--border); border-radius: 24px;
  padding: 44px 40px; position: relative; overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.product-badge {
  position: absolute; top: 20px; right: 20px;
  font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 999px;
}
.badge-live { color: #047857; background: #d1fae5; }
.badge-new { color: var(--accent); background: var(--accent-soft); }

.product-icon { font-size: 40px; margin-bottom: 18px; }
.product-card h3 { font-size: 24px; font-weight: 700; }
.product-card .platform { font-size: 13px; color: var(--text-3); margin: 4px 0 16px; }
.product-card .desc { color: var(--text-2); font-size: 15px; flex: 1; }
.product-card .desc li { margin: 8px 0 8px 18px; }
.product-card .cta { margin-top: 28px; font-weight: 600; color: var(--accent); font-size: 15px; }
.product-card .cta:hover { text-decoration: underline; }

/* ---------- 尔音打卡截图展示 ---------- */
.shot-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px;
  align-items: start;
}
@media (max-width: 960px) { .shot-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .shot-grid { grid-template-columns: repeat(2, 1fr); } }

.shot-item { text-align: center; }
.shot-item .frame {
  border-radius: 22px; overflow: hidden; border: 1px solid var(--border);
  box-shadow: 0 12px 28px rgba(17, 24, 39, .12);
  background: #fff; transition: transform .25s;
}
.shot-item:hover .frame { transform: translateY(-6px) scale(1.02); }
.shot-item img { width: 100%; height: auto; }
.shot-item figcaption { margin-top: 12px; font-size: 14px; color: var(--text-2); }

.app-highlight {
  margin: 0 auto 56px; max-width: 760px; text-align: center;
  color: var(--text-2); font-size: 16px;
}
.feature-tags { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 22px; }
.feature-tags span {
  font-size: 14px; color: var(--text-2); background: var(--bg-soft);
  border: 1px solid var(--border); padding: 7px 16px; border-radius: 999px;
}

/* ---------- 关于我们 ---------- */
.about { background: var(--bg-soft); }
.about-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.about-text p { color: var(--text-2); margin-bottom: 16px; font-size: 15.5px; }
.about-facts { display: grid; gap: 14px; }
.fact {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 22px;
}
.fact .k { font-size: 13px; color: var(--text-3); }
.fact .v { font-size: 15.5px; font-weight: 600; margin-top: 2px; }

/* ---------- 联系 ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 720px; margin: 0 auto; }
@media (max-width: 640px) { .contact-cards { grid-template-columns: 1fr; } }
.contact-card {
  text-align: center; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 24px;
}
.contact-card .icon { font-size: 30px; }
.contact-card h3 { font-size: 16px; margin: 10px 0 6px; }
.contact-card p { color: var(--text-2); font-size: 15px; word-break: break-all; }

/* ---------- 页脚 ---------- */
.footer { background: #0f172a; color: #cbd5e1; padding: 56px 0 32px; }
.footer-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  padding-bottom: 36px; border-bottom: 1px solid rgba(148, 163, 184, .2);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer p, .footer a { font-size: 14px; color: #94a3b8; line-height: 1.9; }
.footer a:hover { color: #e2e8f0; }
.footer-bottom {
  padding-top: 24px; text-align: center; font-size: 13px; color: #64748b;
}
.footer-bottom a { color: #94a3b8; }
.footer-bottom a:hover { color: #e2e8f0; }
