/* ===== 灵犀智通 · 小福AI 官网样式 ===== */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f8fc;
  --surface: #ffffff;
  --text: #16233b;
  --text-muted: #5b6b85;
  --border: #e6ecf5;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --accent-2: #06b6d4;
  --accent-fg: #ffffff;
  --grad: linear-gradient(120deg, #2563eb 0%, #06b6d4 100%);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 12px 32px rgba(28, 60, 130, 0.10);
  --shadow-lg: 0 20px 50px rgba(28, 60, 130, 0.16);
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.12rem; }
.brand-logo { height: 34px; width: auto; display: block; }
.brand-name { white-space: nowrap; letter-spacing: .2px; }
.brand-footer .brand-logo { background: #fff; padding: 6px 10px; border-radius: 8px; }
.main-nav { display: flex; gap: 30px; }
.main-nav a { font-size: 0.95rem; color: var(--text-muted); font-weight: 600; padding: 6px 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.main-nav a:hover { color: var(--text); }
.main-nav a.active { color: var(--accent); border-color: var(--accent); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px; border-radius: 999px; font-weight: 700; font-size: 0.98rem;
  cursor: pointer; border: 1px solid transparent;
  transition: transform .15s, background .2s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad); color: var(--accent-fg); box-shadow: 0 10px 24px rgba(37, 99, 235, 0.32); }
.btn-primary:hover { box-shadow: 0 14px 32px rgba(37, 99, 235, 0.42); transform: translateY(-1px); }
.btn-ghost { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  padding: 84px 0 88px;
  background:
    radial-gradient(900px 460px at 12% -8%, rgba(6, 182, 212, 0.14), transparent 60%),
    radial-gradient(800px 420px at 90% 8%, rgba(37, 99, 235, 0.16), transparent 60%),
    var(--bg);
}
.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent); font-weight: 700; letter-spacing: .02em; margin-bottom: 18px;
}
.hero-eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--grad); border-radius: 2px; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); line-height: 1.18; letter-spacing: -0.02em; margin-bottom: 20px; }
.hero h1 .hl { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: 1.13rem; color: var(--text-muted); max-width: 560px; margin-bottom: 26px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.badge {
  padding: 7px 14px; border-radius: 999px; background: var(--bg-alt);
  border: 1px solid var(--border); color: var(--text-muted); font-size: 0.86rem; font-weight: 600;
}
.badge b { color: var(--accent); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual { display: flex; justify-content: center; }
.hero-visual .mascot {
  width: min(320px, 100%);
  border-radius: var(--radius-lg);
  animation: float 5s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ===== Stats ===== */
.stats { padding: 48px 0; border-top: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-num { font-size: 2.3rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stat-label { color: var(--text-muted); font-size: 0.95rem; }

/* ===== Sections ===== */
.section { padding: 76px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 46px; }
.section-head h2 { font-size: 1.95rem; margin-bottom: 12px; }
.section-head p { color: var(--text-muted); }

/* ===== Chips / tags ===== */
.chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.chip {
  padding: 10px 20px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--border); font-weight: 600; font-size: 0.92rem; color: var(--text-muted);
  transition: all .2s;
}
.chip:hover { border-color: var(--accent); color: var(--accent); box-shadow: var(--shadow); }

/* ===== Cards ===== */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; background: rgba(37, 99, 235, 0.09); margin-bottom: 18px;
}
.card h3 { font-size: 1.16rem; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 0.95rem; }

/* ===== Product blocks ===== */
.product-block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 38px; margin-bottom: 28px; }
.product-block h3 { font-size: 1.45rem; margin-bottom: 8px; }
.product-block h4 { margin: 22px 0 10px; font-size: 1.02rem; }
.product-sub { color: var(--text-muted); margin-bottom: 4px; }
.product-tag { display: inline-block; background: rgba(37, 99, 235, 0.1); color: var(--accent); font-size: 0.78rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; }
.feature-list { list-style: none; margin-top: 6px; }
.feature-list li { padding: 7px 0 7px 26px; position: relative; color: var(--text-muted); line-height: 1.65; }
.feature-list li::before { content: "✓"; position: absolute; left: 2px; color: var(--accent); font-weight: 700; }
.feature-list strong { color: var(--text); }

/* ===== Team ===== */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.team-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; text-align: center; transition: transform .25s, box-shadow .25s; }
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.team-photo { position: relative; aspect-ratio: 9 / 16; overflow: hidden; background: var(--bg-alt); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; display: block; transition: transform .45s ease; }
.team-card:hover .team-photo img { transform: scale(1.04); }
.team-photo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 42%; background: linear-gradient(to top, rgba(15, 27, 45, .5), rgba(15, 27, 45, 0)); pointer-events: none; }
.team-card h3 { font-size: 1.1rem; margin: 20px 20px 0; }
.team-role { display: block; color: var(--accent); font-size: 0.84rem; font-weight: 600; margin-top: 5px; }
.team-card p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.7; margin: 10px 22px 26px; }

/* ===== Gallery ===== */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.gallery img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); }

/* ===== Screenshots ===== */
.screenshots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.screenshot-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.screenshot-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.screenshot-bar { display: flex; gap: 6px; padding: 11px 14px; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.screenshot-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d5dde8; display: inline-block; }
.screenshot-frame { aspect-ratio: 3 / 4; overflow: hidden; }
.screenshot-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.screenshot-frame img.pos-top { object-position: top; }
.screenshot-card figcaption { padding: 13px 16px; text-align: center; font-weight: 700; font-size: 0.98rem; border-top: 1px solid var(--border); }
@media (max-width: 760px) { .screenshots { grid-template-columns: 1fr; } }

/* ===== FAQ ===== */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 14px; padding: 0 24px; overflow: hidden;
}
.faq summary { cursor: pointer; list-style: none; font-weight: 700; padding: 18px 0; position: relative; padding-right: 30px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 2px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--text-muted); }

/* ===== CTA ===== */
.cta { text-align: center; max-width: 660px; }
.cta h2 { font-size: 1.85rem; margin-bottom: 12px; }
.cta p { color: var(--text-muted); margin-bottom: 28px; }

/* ===== Page hero ===== */
.page-hero { padding: 76px 0 56px; text-align: center; background: radial-gradient(900px 400px at 70% -20%, rgba(37, 99, 235, 0.12), transparent 60%), var(--bg); }
.page-hero h1 { font-size: 2.4rem; margin-bottom: 12px; }
.page-hero p { color: var(--text-muted); font-size: 1.1rem; }

/* ===== Prose ===== */
.prose { max-width: 800px; }
.prose h2 { margin-bottom: 18px; }
.prose p { color: var(--text-muted); margin-bottom: 16px; }
.timeline { list-style: none; }
.timeline li { padding: 14px 0; border-bottom: 1px solid var(--border); color: var(--text-muted); }
.timeline strong { color: var(--accent); margin-right: 8px; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.contact-list { list-style: none; margin-top: 20px; }
.contact-list li { padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 1.02rem; }
.contact-list b { color: var(--text); }
.contact-form { display: flex; flex-direction: column; gap: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow); }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 0.92rem; }
.contact-form input, .contact-form textarea { font: inherit; padding: 11px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.form-note { font-size: 0.88rem; color: var(--accent); }
.form-note.error { color: #d64545; }

/* ===== Modal ===== */
.modal-mask { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(15, 27, 45, .55); animation: modalFade .2s ease; }
.modal-mask[hidden] { display: none; }
.modal-card { width: min(380px, 100%); background: var(--surface); border-radius: var(--radius-lg); padding: 34px 28px 28px; text-align: center; box-shadow: var(--shadow-lg); animation: modalPop .24s cubic-bezier(.2, .9, .3, 1.2); }
.modal-icon { width: 62px; height: 62px; margin: 0 auto 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 700; line-height: 1; color: #fff; background: var(--accent); }
.modal-card h3 { font-size: 1.22rem; margin-bottom: 10px; }
.modal-card p { color: var(--text-muted); font-size: 0.94rem; line-height: 1.7; margin-bottom: 22px; }
.modal-card .btn { width: 100%; }
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalPop { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }

/* ===== Footer ===== */
.site-footer { background: #0f1b2d; color: #cbd5e1; padding: 60px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 34px; }
.brand-footer .brand-name { color: #fff; }
.footer-desc { margin-top: 12px; color: #94a3b8; max-width: 320px; }
.site-footer h4 { color: #fff; margin-bottom: 14px; }
.site-footer .footer-grid > div:not(:first-child) { display: flex; flex-direction: column; gap: 8px; }
.site-footer a:hover { color: #fff; }
.site-footer p { color: #94a3b8; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 20px; color: #64748b; font-size: 0.88rem; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { order: -1; }
  .hero-visual .mascot { width: 200px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .main-nav {
    position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border); padding: 8px 24px; display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .main-nav a.active { border-color: var(--accent); }
  .nav-toggle { display: flex; }
}

@media (max-width: 620px) {
  .team-grid { grid-template-columns: 1fr; }
}
