/* ============================================================
   音雀网 · 企业门户
   中性色为主 + 小英雀蓝 / 文言雀墨绿 双产品识别色
   ============================================================ */

:root {
  /* 中性色 */
  --ink: #0f172a;          /* slate-900  主文字 */
  --ink-soft: #334155;     /* slate-700  次级文字 */
  --ink-muted: #64748b;    /* slate-500  辅助文字 */
  --bg: #f8fafc;           /* slate-50   页面背景 */
  --surface: #ffffff;
  --border: #e2e8f0;       /* slate-200 */

  /* 产品识别色 */
  --blue: #2563eb;         /* 小英雀 */
  --blue-deep: #1d4ed8;
  --blue-soft: #eff6ff;
  --green: #2d6a4f;        /* 文言雀 · 古风墨绿 */
  --green-deep: #1b4332;
  --green-soft: #edf5f1;

  /* 字体 */
  --font-sans: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-display: 'Outfit', var(--font-sans);

  /* 布局 */
  --container: 1120px;
  --radius-lg: 20px;
  --radius-md: 12px;
  --shadow-card: 0 1px 2px rgba(15, 23, 42, .06), 0 12px 32px -12px rgba(15, 23, 42, .12);
  --header-h: 64px;

  /* 动效 */
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 基础 ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.25;
  font-weight: 700;
}

p { margin: 0; }

a { color: inherit; }

ul { margin: 0; padding: 0; list-style: none; }

img, svg { display: block; }

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

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 0 0 8px 8px;
  font-size: 14px;
  transition: top .15s ease;
}

.skip-link:focus { top: 0; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- 顶部导航 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 250, 252, .85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}

.site-header.is-scrolled { border-bottom-color: var(--border); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  color: var(--ink);
}

.brand__logo { width: 30px; height: 30px; color: var(--blue); }

.nav__menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}

.nav__link:hover {
  background: rgba(15, 23, 42, .05);
  color: var(--ink);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  border: none;
  background: none;
  cursor: pointer;
}

.nav__toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .25s var(--ease), opacity .2s ease;
}

.nav__toggle[aria-expanded='true'] .nav__toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded='true'] .nav__toggle-bar:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded='true'] .nav__toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 通用区块 ---------- */

.section { padding-block: 96px; }

.section__head {
  max-width: 640px;
  margin-bottom: 56px;
}

.section__eyebrow {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .22em;
  color: var(--ink-muted);
}

.section__title {
  font-size: clamp(28px, 4.2vw, 40px);
  margin-bottom: 16px;
}

.section__desc {
  font-size: 17px;
  color: var(--ink-soft);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: 88px 96px;
  background: linear-gradient(180deg, #eef4ff 0%, var(--bg) 100%);
}

.hero__bg { position: absolute; inset: 0; pointer-events: none; }

.hero__dot {
  position: absolute;
  display: block;
  border-radius: 50%;
  background: var(--blue);
  opacity: .12;
}

.hero__dot--1 { width: 220px; height: 220px; top: -80px; right: -60px; }
.hero__dot--2 { width: 120px; height: 120px; bottom: -40px; left: 8%; background: var(--green); }
.hero__dot--3 { width: 48px; height: 48px; top: 30%; left: 42%; opacity: .18; }

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 48px;
}

.hero__eyebrow {
  display: inline-block;
  margin-bottom: 20px;
  padding: 6px 14px;
  border: 1px solid rgba(37, 99, 235, .25);
  border-radius: 999px;
  background: var(--blue-soft);
  font-size: 14px;
  font-weight: 500;
  color: var(--blue-deep);
}

.hero__title {
  font-size: clamp(40px, 6.5vw, 60px);
  letter-spacing: -.01em;
  margin-bottom: 24px;
}

.hero__desc {
  max-width: 34em;
  font-size: 17px;
  color: var(--ink-soft);
  margin-bottom: 36px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
}

.btn:active { transform: scale(.97); }

.btn--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(37, 99, 235, .55);
}

.btn--primary:hover { background: var(--blue-deep); }

.btn--ghost {
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--ink);
}

.btn--ghost:hover { border-color: var(--ink); }

.hero__art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

.hero__bird {
  width: 300px;
  height: 300px;
  color: var(--blue);
  filter: drop-shadow(0 24px 40px rgba(37, 99, 235, .25));
}

.hero__tag {
  position: absolute;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.hero__tag--xyq { top: 12%; right: 6%; background: var(--blue); }
.hero__tag--wyq { bottom: 16%; left: 4%; background: var(--green); }

/* ---------- 产品 ---------- */

.products__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.product-card {
  display: flex;
  flex-direction: column;
  padding: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.product-card--xyq { border-top: 4px solid var(--blue); }
.product-card--wyq { border-top: 4px solid var(--green); }

.product-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.product-card__status {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
}

.product-card--xyq .product-card__status {
  background: var(--blue-soft);
  color: var(--blue-deep);
}

.product-card--wyq .product-card__status {
  background: var(--green-soft);
  color: var(--green-deep);
}

.product-card__icon { width: 48px; height: 48px; }

.product-card--xyq .product-card__icon { color: var(--blue); }
.product-card--wyq .product-card__icon { color: var(--green); }

.product-card__name {
  font-size: 28px;
  margin-bottom: 6px;
}

.product-card__tagline {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  margin-bottom: 20px;
}

.product-card__desc {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 24px;
}

.product-card__features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.product-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--ink-soft);
}

.product-card__features svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 4px;
}

.product-card--xyq .product-card__features svg { color: var(--blue); }
.product-card--wyq .product-card__features svg { color: var(--green); }

.product-card__hint {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px dashed var(--border);
  font-size: 14px;
  color: var(--ink-muted);
}

.product-card__qr {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px dashed var(--border);
}

.product-card__qr-img {
  width: 132px;
  height: 132px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px -6px rgba(15, 23, 42, .2);
}

.product-card__qr-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  color: var(--ink-muted);
}

.product-card__qr-text strong {
  font-size: 16px;
  color: var(--ink);
}

/* ---------- 品牌理念 ---------- */

.philosophy {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.philosophy__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-bottom: 64px;
}

.philosophy__item {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}

.philosophy__item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.philosophy__num {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .15em;
  color: var(--blue);
  margin-bottom: 16px;
}

.philosophy__title {
  font-size: 22px;
  margin-bottom: 10px;
}

.philosophy__text {
  font-size: 15px;
  color: var(--ink-soft);
}

.philosophy__sisters {
  padding: 40px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--blue-soft) 0%, var(--green-soft) 100%);
}

.philosophy__sisters-title {
  font-size: 22px;
  margin-bottom: 12px;
}

.philosophy__sisters-text {
  max-width: 46em;
  font-size: 15px;
  color: var(--ink-soft);
}

/* ---------- 关于我们 ---------- */

.about__body {
  max-width: 46em;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 17px;
  color: var(--ink-soft);
}

/* ---------- 联系我们 ---------- */

.contact { background: var(--surface); border-top: 1px solid var(--border); }

.contact__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 56px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
}

.contact__icon {
  width: 44px;
  height: 44px;
  color: var(--blue);
  margin-bottom: 20px;
}

.contact__label {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-muted);
  margin-bottom: 8px;
}

.contact__email {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.4vw, 30px);
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  transition: color .2s ease;
}

.contact__email:hover { color: var(--blue-deep); }

.contact__note {
  max-width: 34em;
  margin-top: 16px;
  font-size: 14px;
  color: var(--ink-muted);
}

/* ---------- 页脚 ---------- */

.site-footer {
  padding-block: 40px;
  background: var(--ink);
  color: #cbd5e1;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.footer__brand .brand__logo { color: #60a5fa; }

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer__nav a {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: #cbd5e1;
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease;
}

.footer__nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }

.footer__meta {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #94a3b8;
}

.footer__sep { opacity: .6; }

/* ---------- 滚动渐入 ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 响应式 ---------- */

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 8px; }
  .hero__art { min-height: 240px; }
  .hero__bird { width: 220px; height: 220px; }
  .products__grid { grid-template-columns: 1fr; }
  .philosophy__grid { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 768px) {
  .section { padding-block: 72px; }
  .section__head { margin-bottom: 40px; }

  .nav__toggle { display: flex; }

  .nav__menu {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 24px 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 32px -16px rgba(15, 23, 42, .18);
  }

  .nav__menu.is-open { display: flex; }

  .nav__link { padding: 14px 16px; font-size: 16px; }

  .br-mobile { display: none; }
}

@media (max-width: 480px) {
  .container { padding-inline: 20px; }
  .hero { padding-block: 56px 72px; }
  .hero__actions .btn { flex: 1 1 auto; }
  .product-card { padding: 28px 24px; }
  .philosophy__sisters { padding: 28px 24px; }
}

/* ---------- 动效偏好 ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
