/* ==========================================================================
   上海芯薪火智领科技有限公司 · 官网样式
   品牌四色（M1-11 定稿）：#F97F4E / #D9342B / #F5EFD8 / #243B55
   零外部依赖：系统字体栈、无网络字体、无框架。
   ========================================================================== */

:root {
  --brand-orange: #F97F4E;
  --brand-red: #D9342B;
  --brand-cream: #F5EFD8;
  --brand-navy: #243B55;

  --grad: linear-gradient(135deg, var(--brand-orange) 0%, var(--brand-red) 100%);
  --navy-70: rgba(36, 59, 85, 0.70);
  --navy-55: rgba(36, 59, 85, 0.55);
  --navy-14: rgba(36, 59, 85, 0.14);
  --navy-08: rgba(36, 59, 85, 0.08);

  --bg: #FBF8F1;
  --card: #FFFFFF;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(36, 59, 85, 0.06);
  --shadow-md: 0 14px 40px rgba(36, 59, 85, 0.10);
  --shadow-lg: 0 26px 70px rgba(36, 59, 85, 0.18);

  --wrap: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC",
          "Noto Sans CJK SC", Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--brand-navy);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand-navy); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--brand-orange); outline-offset: 3px; border-radius: 6px; }

/* ------------------------------ 顶部导航 ------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 241, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--navy-08);
}
.header-inner { display: flex; align-items: center; gap: 16px; height: 66px; }

.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: var(--grad); color: #fff;
  display: grid; place-items: center;
  font-weight: 800; font-size: 17px; letter-spacing: 0.5px;
  box-shadow: 0 6px 16px rgba(217, 52, 43, 0.28);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 16px; letter-spacing: 0.02em; }
.brand-text em { font-style: normal; font-size: 10.5px; color: var(--navy-55); letter-spacing: 0.06em; }

.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a {
  padding: 8px 13px; border-radius: 999px; font-size: 14.5px; color: var(--navy-70);
  transition: background 0.18s ease, color 0.18s ease;
}
.site-nav a:hover { background: var(--navy-08); color: var(--brand-navy); }
.site-nav a.nav-cta {
  background: var(--grad); color: #fff; font-weight: 600;
  box-shadow: 0 8px 20px rgba(217, 52, 43, 0.26);
}
.site-nav a.nav-cta:hover { filter: brightness(1.04); background: var(--grad); }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 42px; height: 42px; border: 1px solid var(--navy-14); border-radius: 12px;
  background: #fff; color: var(--brand-navy); cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

/* ------------------------------ 通用排版 ------------------------------ */
.eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--brand-red); margin-bottom: 14px;
}
.eyebrow-en { letter-spacing: 0.08em; }

h1, h2, h3 { line-height: 1.22; letter-spacing: -0.01em; }

.section { padding: 88px 0; }
.section > .wrap > h2 { font-size: clamp(26px, 3.6vw, 40px); margin-bottom: 16px; }
.section-lede { max-width: 720px; font-size: clamp(15px, 1.5vw, 17px); color: var(--navy-70); }
.section-head { margin-bottom: 46px; }

/* ------------------------------ 按钮 ------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 26px; border-radius: 999px; font-size: 15.5px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 14px 30px rgba(217, 52, 43, 0.30); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 40px rgba(217, 52, 43, 0.36); }
.btn-ghost { background: #fff; color: var(--brand-navy); border-color: var(--navy-14); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ------------------------------ Hero ------------------------------ */
.hero { position: relative; overflow: hidden; padding: 74px 0 92px; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(760px 420px at 82% -8%, rgba(249, 127, 78, 0.20), transparent 70%),
    radial-gradient(620px 420px at -6% 108%, rgba(217, 52, 43, 0.12), transparent 68%),
    var(--bg);
}
.hero::after {
  content: ""; position: absolute; z-index: -1; top: 0; left: 0; right: 0; height: 5px;
  background: var(--grad);
}
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 46px; align-items: center; }
.hero-copy h1 { font-size: clamp(30px, 5.6vw, 54px); margin-bottom: 20px; }
.hero-copy h1 .accent {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .eyebrow-en { color: var(--navy-55); font-weight: 600; }
.lede { font-size: clamp(15.5px, 1.7vw, 18px); color: var(--navy-70); max-width: 560px; margin-bottom: 30px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 30px; }
.hero-tags span {
  font-size: 13px; color: var(--brand-navy); background: #fff;
  border: 1px solid var(--navy-14); border-radius: 999px; padding: 7px 14px; box-shadow: var(--shadow-sm);
}

/* Hero 视觉：旗舰产品卡 */
.hero-visual { display: grid; place-items: center; }
.showcase-wrap { position: relative; width: min(420px, 100%); }
.showcase {
  position: relative; width: 100%; padding: 34px 30px 34px;
  border-radius: var(--radius-lg); background: var(--grad); color: #fff;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.showcase::before {
  content: ""; position: absolute; right: -70px; top: -70px; width: 240px; height: 240px;
  border-radius: 50%; background: rgba(255, 255, 255, 0.14);
}
.showcase::after {
  content: ""; position: absolute; left: -50px; bottom: -80px; width: 200px; height: 200px;
  border-radius: 50%; border: 26px solid rgba(255, 255, 255, 0.10);
}
.showcase-inner { position: relative; z-index: 1; }
.showcase-logo {
  width: 92px; height: 92px; border-radius: 24px; background: rgba(255, 255, 255, 0.16);
  padding: 10px; margin-bottom: 18px; box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16);
}
.showcase-logo img { width: 100%; height: 100%; border-radius: 18px; }
.showcase-label { font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.9; }
.showcase h3 { font-size: 30px; margin: 4px 0 8px; }
.showcase p { font-size: 15px; opacity: 0.95; max-width: 300px; }

.chip-float {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 8px;
  background: #fff; color: var(--brand-navy); border-radius: 14px; padding: 9px 13px;
  font-size: 12.5px; font-weight: 600; box-shadow: var(--shadow-md);
}
.chip-float .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.chip-float.a { top: -13px; right: -10px; }
.chip-float.b { bottom: -13px; left: -10px; }

/* ------------------------------ 业务卡片 ------------------------------ */
.cards { display: grid; grid-template-columns: 1fr; gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--navy-08); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--navy-14); }
.card .icon {
  width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
  background: var(--brand-cream); margin-bottom: 18px;
}
.card .icon svg { width: 24px; height: 24px; stroke: var(--brand-red); }
.card h3 { font-size: 19px; margin-bottom: 9px; }
.card p { font-size: 14.5px; color: var(--navy-70); }
.card .tag-row { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 7px; }
.card .tag-row span {
  font-size: 12px; color: var(--brand-red); background: rgba(249, 127, 78, 0.12);
  padding: 4px 10px; border-radius: 999px;
}

/* ------------------------------ 产品区（深藏蓝底） ------------------------------ */
.product { background: var(--brand-navy); color: #fff; position: relative; overflow: hidden; }
.product::before {
  content: ""; position: absolute; top: -140px; right: -120px; width: 460px; height: 460px;
  border-radius: 50%; background: radial-gradient(circle, rgba(249, 127, 78, 0.32), transparent 68%);
}
.product::after {
  content: ""; position: absolute; bottom: -160px; left: -140px; width: 420px; height: 420px;
  border-radius: 50%; background: radial-gradient(circle, rgba(217, 52, 43, 0.22), transparent 70%);
}
.product .wrap { position: relative; z-index: 1; }
.product .eyebrow { color: var(--brand-orange); }
.product-grid { display: grid; grid-template-columns: 1fr; gap: 52px; align-items: center; }

.product-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.product-head img { width: 66px; height: 66px; border-radius: 18px; box-shadow: 0 12px 28px rgba(0, 0, 0, 0.30); }
.product-head h2 { font-size: clamp(26px, 3.4vw, 38px); }
.product-head .en { display: block; font-size: 13px; letter-spacing: 0.16em; color: rgba(255, 255, 255, 0.62); font-weight: 600; }
.product h2, .product h3 { color: #fff; }
.product .lede { color: rgba(255, 255, 255, 0.82); max-width: 520px; }
.product .oneliner {
  font-size: clamp(18px, 2.2vw, 22px); font-weight: 600; color: #fff;
  border-left: 4px solid var(--brand-orange); padding-left: 16px; margin: 22px 0;
}
.features { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 30px; }
.feature {
  display: flex; gap: 14px; padding: 16px 18px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12);
}
.feature .fdot { width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center; background: rgba(249, 127, 78, 0.18); }
.feature .fdot svg { width: 18px; height: 18px; stroke: var(--brand-orange); }
.feature b { display: block; font-size: 15.5px; margin-bottom: 3px; }
.feature span { font-size: 13.5px; color: rgba(255, 255, 255, 0.72); }

/* 手机示意 */
.phone-shell { display: grid; place-items: center; }
.phone {
  width: min(320px, 86vw); background: var(--brand-cream); border: 10px solid rgba(255, 255, 255, 0.10);
  border-radius: 40px; padding: 0; overflow: hidden; box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45);
}
.phone-top { background: #fff; padding: 14px 16px 8px; border-bottom: 1px solid var(--navy-08); }
.phone-top .brandbar { height: 3px; border-radius: 2px; background: var(--grad); margin-bottom: 12px; }
.phone-top .title { font-size: 16px; font-weight: 700; color: var(--brand-navy); }
.phone-list { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.notif {
  background: #fff; border-radius: 14px; padding: 12px 13px; border-left: 4px solid var(--brand-orange);
  box-shadow: 0 4px 14px rgba(36, 59, 85, 0.07);
}
.notif.done { border-left-color: #2E7D32; }
.notif.fail { border-left-color: var(--brand-red); }
.notif.confirm { border-left-color: var(--brand-orange); }
.notif.input { border-left-color: #3A6EA5; }
.notif-head { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.badge { font-size: 10.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; }
.badge.done { color: #2E7D32; background: rgba(46, 125, 50, 0.12); }
.badge.fail { color: var(--brand-red); background: rgba(217, 52, 43, 0.12); }
.badge.confirm { color: var(--brand-red); background: rgba(249, 127, 78, 0.16); }
.badge.input { color: #3A6EA5; background: rgba(58, 110, 165, 0.12); }
.notif-head b { font-size: 13.5px; color: var(--brand-navy); }
.notif p { font-size: 12px; color: var(--navy-70); line-height: 1.5; }
.notif .meta { font-size: 10.5px; color: var(--navy-55); margin-top: 6px; }

/* ------------------------------ 公司信息 ------------------------------ */
.facts { display: grid; grid-template-columns: 1fr; gap: 0; border: 1px solid var(--navy-08); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.fact { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 20px 24px; border-bottom: 1px solid var(--navy-08); }
.fact:last-child { border-bottom: 0; }
.fact dt { font-size: 12.5px; letter-spacing: 0.06em; color: var(--navy-55); text-transform: uppercase; }
.fact dd { font-size: 15.5px; font-weight: 600; color: var(--brand-navy); }

/* ------------------------------ 联系区 ------------------------------ */
.contact { background: linear-gradient(180deg, var(--bg) 0%, #F3ECDA 100%); }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.contact-card {
  background: #fff; border: 1px solid var(--navy-08); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm); display: flex; gap: 16px; align-items: flex-start;
}
.contact-card .cicon { width: 46px; height: 46px; border-radius: 12px; flex: none; display: grid; place-items: center; background: var(--grad); }
.contact-card .cicon svg { width: 22px; height: 22px; stroke: #fff; }
.contact-card .clabel { font-size: 12.5px; letter-spacing: 0.06em; color: var(--navy-55); text-transform: uppercase; margin-bottom: 3px; }
.contact-card .cvalue { font-size: 16px; font-weight: 600; color: var(--brand-navy); word-break: break-word; }
.contact-card a.cvalue:hover { color: var(--brand-red); }
.contact-note {
  margin-top: 22px; font-size: 13.5px; color: var(--navy-70);
  background: rgba(249, 127, 78, 0.10); border: 1px solid rgba(249, 127, 78, 0.28);
  border-radius: 14px; padding: 14px 18px;
}
.contact-note b { color: var(--brand-red); }

/* ------------------------------ 页脚 ------------------------------ */
.site-footer { background: var(--brand-navy); color: rgba(255, 255, 255, 0.72); padding: 44px 0 40px; }
.footer-inner { display: flex; flex-direction: column; gap: 18px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand .brand-mark { box-shadow: none; }
.footer-brand strong { color: #fff; font-size: 15.5px; display: block; }
.footer-brand em { font-style: normal; font-size: 12px; color: rgba(255, 255, 255, 0.55); }
.footer-rule { height: 1px; background: rgba(255, 255, 255, 0.14); }
.copyright { font-size: 13px; }
.copyright .en { display: block; color: rgba(255, 255, 255, 0.5); font-size: 12px; margin-top: 3px; }
.beian { font-size: 13px; }
.beian a { color: rgba(255, 255, 255, 0.72); text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.28); transition: color 0.2s ease, border-color 0.2s ease; }
.beian a:hover, .beian a:focus-visible { color: #fff; border-color: rgba(255, 255, 255, 0.7); }

/* ------------------------------ 动效 ------------------------------ */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}

/* ------------------------------ 响应式 ------------------------------ */
@media (min-width: 700px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .fact { grid-template-columns: 200px 1fr; align-items: baseline; }
  .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .footer-rule { display: none; }
}

@media (min-width: 960px) {
  .section { padding: 108px 0; }
  .hero { padding: 100px 0 120px; }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 60px; }
  .product-grid { grid-template-columns: 1.05fr 0.95fr; gap: 66px; }
  .contact-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 780px) {
  .site-nav {
    position: fixed; inset: 66px 0 auto auto; top: 66px; right: 0; left: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--bg); padding: 14px 18px 22px; border-bottom: 1px solid var(--navy-08);
    box-shadow: var(--shadow-md);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .site-nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .site-nav a { padding: 13px 14px; font-size: 16px; border-radius: 12px; }
  .site-nav a.nav-cta { text-align: center; }
  .nav-toggle { display: inline-flex; }
  .header-inner { height: 62px; }
  .site-nav { top: 62px; }
}
