/* ==========================================================
   鑫牛软件官网 — Apple 中国官网视觉体系
   字体：SF Pro SC / PingFang SC 优先，Windows 回落 HarmonyOS Sans / MiSans / 雅黑
   版式：44px 玻璃导航、大字号左对齐标题、18px 圆角浅灰卡片、多列页脚
   ========================================================== */
:root {
  --font: "SF Pro SC", "SF Pro Text", "SF Pro Display", "PingFang SC", "HarmonyOS Sans SC",
    "MiSans", "Helvetica Neue", Helvetica, Arial, "Microsoft YaHei", sans-serif;
  --black: #1d1d1f;
  --gray: #6e6e73;
  --gray-2: #86868b;
  --bg: #fff;
  --bg-alt: #f5f5f7;
  --blue: #0071e3;
  --link: #06c;
  --line: #d2d2d7;
  --nav-h: 44px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47059;
  font-weight: 400;
  letter-spacing: -.022em;
  color: var(--black);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: var(--link); text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
section { scroll-margin-top: var(--nav-h); }
.wrap { max-width: 1024px; margin: 0 auto; padding: 0 22px; }
.wrap.narrow { max-width: 820px; }

/* ---------------- 全局导航（44px） ---------------- */
.globalnav {
  position: fixed; inset: 0 0 auto; z-index: 900;
  height: var(--nav-h);
  background: rgba(255, 255, 255, .8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, .08);
  transition: background .3s;
}
.globalnav.scrolled { background: rgba(255, 255, 255, .92); }
.globalnav-inner {
  max-width: 1024px; margin: 0 auto; padding: 0 22px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.gn-logo { font-size: 17px; font-weight: 600; letter-spacing: -.02em; color: var(--black); }
.gn-links { display: flex; gap: 32px; }
.gn-links a {
  font-size: 12px; line-height: 1; letter-spacing: -.01em;
  color: rgba(0, 0, 0, .8); transition: color .2s;
}
.gn-links a:hover { color: #000; }
.gn-toggle { display: none; background: none; border: 0; padding: 9px 6px; cursor: pointer; }
.gn-toggle span { display: block; width: 17px; height: 1px; background: var(--black); margin: 5px 0; transition: transform .3s var(--ease), opacity .2s; }
.gn-toggle.open span:first-child { transform: translateY(3px) rotate(45deg); }
.gn-toggle.open span:last-child { transform: translateY(-3px) rotate(-45deg); }
.gn-drawer { display: none; }

/* ---------------- 首页标题区 ---------------- */
.store-head { padding: calc(var(--nav-h) + 64px) 0 12px; background: var(--bg); }
.store-h1 {
  font-size: clamp(40px, 5.6vw, 68px);
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -.015em;
  max-width: 15em;
}
.store-lead {
  font-size: clamp(19px, 1.7vw, 24px);
  line-height: 1.33;
  font-weight: 400;
  color: var(--gray);
  margin-top: 18px;
  max-width: 26em;
  letter-spacing: -.02em;
}
.pills { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 40px; }
.pills a { font-size: 15px; color: var(--black); opacity: .88; transition: opacity .2s; }
.pills a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }

/* ---------------- 促销横幅 ---------------- */
.banner-sec { padding: 28px 0 0; }
.promo { position: relative; height: clamp(320px, 38vw, 460px); border-radius: 18px; overflow: hidden; background: #1d1d1f; }
.promo-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s var(--ease); }
.promo-slide.active { opacity: 1; z-index: 2; }
.promo-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.promo-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.45), rgba(0,0,0,.05) 70%); }
.promo-content {
  position: relative; z-index: 3; height: 100%;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: 0 clamp(28px, 5vw, 64px); color: #fff; max-width: 640px;
}
.promo-content h2 {
  font-size: clamp(30px, 3.6vw, 48px); line-height: 1.08; font-weight: 600; letter-spacing: -.015em;
}
.promo-content p { font-size: clamp(17px, 1.4vw, 21px); color: rgba(255, 255, 255, .86); margin-top: 12px; }
.promo-content .link-arrow { margin-top: 26px; }
.promo-dots { position: absolute; left: 0; right: 0; bottom: 20px; z-index: 4; display: flex; justify-content: center; gap: 8px; }
.dot { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.45); cursor: pointer; transition: .3s; }
.dot.active { background: #fff; }

/* ---------------- 区块通用 ---------------- */
.section { padding: 92px 0; background: var(--bg); }
.section.alt { background: var(--bg-alt); }
.sec-head { margin-bottom: 40px; }
.sec-head h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.1; font-weight: 600; letter-spacing: -.015em;
}
.sec-head p {
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.38; color: var(--gray); margin-top: 12px;
  max-width: 32em; letter-spacing: -.02em;
}
.empty { font-size: 17px; color: var(--gray); padding: 40px 0; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 17px; color: var(--link); letter-spacing: -.02em;
}
.link-arrow span { display: inline-block; transition: transform .25s var(--ease); }
.link-arrow:hover span { transform: translateX(3px); }
.link-arrow.light { color: #fff; }
.btn {
  display: inline-block; background: var(--blue); color: #fff;
  font-size: 17px; padding: 12px 26px; border-radius: 980px;
  transition: background .2s;
}
.btn:hover { background: #0077ed; }

/* ---------------- 服务卡片（苹果商店式大卡） ---------------- */
.tile-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.tile {
  background: var(--bg-alt);
  border-radius: 18px;
  padding: 40px 36px 0;
  min-height: 500px;
  display: flex; flex-direction: column;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.tile:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0, 0, 0, .08); }
.eyebrow {
  display: block; font-size: 12px; letter-spacing: .01em;
  color: var(--gray); margin-bottom: 10px;
}
.tile h3 { font-size: 28px; line-height: 1.15; font-weight: 600; letter-spacing: -.015em; }
.tile-sub { font-size: 17px; line-height: 1.47; color: var(--gray); margin-top: 10px; }
.tile-price { font-size: 17px; color: var(--gray); margin-top: 14px; }
.tile-links { display: flex; gap: 24px; margin-top: 20px; flex-wrap: wrap; }
.tile-media { flex: 1; display: flex; align-items: flex-end; justify-content: center; padding: 24px 0 0; }
.tile-media img { width: 100%; height: 220px; object-fit: cover; border-radius: 14px 14px 0 0; }
.tile-media-icon { font-size: 120px; line-height: 1; opacity: .92; padding-bottom: 28px; }

/* ---------------- 案例 ---------------- */
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.case {
  background: #fff; border-radius: 18px; overflow: hidden; cursor: pointer;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.case:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0, 0, 0, .08); }
.case-media {
  height: 300px; background: #e8e8ed center/cover no-repeat;
  display: flex; align-items: center; justify-content: center;
  transition: transform .8s var(--ease);
}
.case-initial { font-size: 56px; font-weight: 600; color: #b8b8bd; letter-spacing: -.02em; }
.case-copy { padding: 26px 30px 32px; }
.case-copy h3 { font-size: 24px; line-height: 1.2; font-weight: 600; letter-spacing: -.015em; }
.case-copy p {
  font-size: 16px; line-height: 1.47; color: var(--gray); margin-top: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.tags span { font-size: 12px; color: var(--gray); background: rgba(0, 0, 0, .05); padding: 4px 10px; border-radius: 6px; }

/* ---------------- 服务保障 ---------------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--bg-alt); border-radius: 18px; padding: 34px 30px 36px; }
.feature-dot { display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); margin-bottom: 18px; }
.feature h3 { font-size: 21px; line-height: 1.25; font-weight: 600; letter-spacing: -.015em; }
.feature p { font-size: 15px; line-height: 1.5; color: var(--gray); margin-top: 8px; }

/* ---------------- 帮助 ---------------- */
.help-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.help-card {
  display: flex; flex-direction: column; align-items: flex-start;
  background: #fff; border-radius: 18px; padding: 38px 32px 40px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
a.help-card:hover, .help-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0, 0, 0, .07); }
.help-icon { font-size: 34px; line-height: 1; margin-bottom: 20px; }
.help-card h3 { font-size: 21px; font-weight: 600; letter-spacing: -.015em; }
.help-card p { font-size: 15px; line-height: 1.5; color: var(--gray); margin-top: 8px; word-break: break-all; }
.help-card .link-arrow { font-size: 15px; margin-top: 16px; }

/* ---------------- 关于 ---------------- */
.about-text { font-size: 19px; line-height: 1.63; color: #424245; margin-top: 8px; letter-spacing: -.02em; }
.about-text p { margin-bottom: 18px; }
.about-text p:last-child { margin-bottom: 0; }
.stats { display: flex; gap: 80px; flex-wrap: wrap; margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--line); }
.stat strong { display: block; font-size: 48px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat strong.long { font-size: 32px; line-height: 1.3; }
.stat span { display: block; font-size: 14px; color: var(--gray); margin-top: 6px; }

/* ---------------- 联系 ---------------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; }
.contact-card { display: block; background: var(--bg-alt); border-radius: 18px; padding: 34px 26px; transition: background .25s; }
a.contact-card:hover { background: #ececf0; }
.c-label { display: block; font-size: 12px; color: var(--gray); margin-bottom: 10px; }
.contact-card strong { font-size: 17px; font-weight: 600; letter-spacing: -.02em; word-break: break-all; }
.contact-cta { margin-top: 36px; }

/* ---------------- 页脚 ---------------- */
.footer { background: var(--bg-alt); padding: 56px 0 36px; font-size: 12px; line-height: 1.5; letter-spacing: -.01em; }
.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.foot-col h4 { font-size: 12px; font-weight: 600; color: var(--black); margin-bottom: 14px; }
.foot-col ul { list-style: none; }
.foot-col li { margin-bottom: 9px; color: var(--gray); }
.foot-col a { color: var(--gray); transition: color .2s; }
.foot-col a:hover { color: var(--black); text-decoration: underline; }
.foot-col .addr { line-height: 1.55; }
.foot-legal { padding-top: 20px; }
.foot-legal > p { color: var(--gray); margin-bottom: 12px; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--gray); }
.foot-links { display: flex; gap: 16px; }
.foot-links a { color: var(--gray); }
.foot-links a:hover { text-decoration: underline; }

/* ---------------- 弹窗 ---------------- */
.modal {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(0, 0, 0, .55); backdrop-filter: blur(16px);
  align-items: center; justify-content: center; padding: 24px;
}
.modal.open { display: flex; }
.modal-box {
  background: #fff; border-radius: 18px; max-width: 760px; width: 100%;
  max-height: 88vh; overflow: auto; position: relative; animation: pop .4s var(--ease);
}
@keyframes pop { from { transform: scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-close {
  position: absolute; top: 14px; right: 16px; z-index: 3;
  width: 32px; height: 32px; border: 0; border-radius: 50%;
  background: rgba(0, 0, 0, .3); color: #fff; font-size: 20px; line-height: 1;
  cursor: pointer; backdrop-filter: blur(6px);
}
.modal-img { height: 320px; background: #f5f5f7 center/cover no-repeat; }
.modal-body { padding: 34px 38px 40px; }
.modal-body h3 { font-size: 28px; font-weight: 600; letter-spacing: -.015em; line-height: 1.15; }
.modal-desc { margin-top: 16px; }
.modal-desc p { font-size: 17px; line-height: 1.6; color: #424245; margin-bottom: 12px; }

/* ---------------- 动效 ---------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------------- 平板 ---------------- */
@media (max-width: 900px) {
  .tile-grid, .case-grid { grid-template-columns: 1fr; }
  .feature-grid, .help-grid, .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .tile { min-height: 440px; }
}

/* ---------------- 手机站 ---------------- */
@media (max-width: 640px) {
  :root { --nav-h: 48px; }
  body { font-size: 17px; }
  .wrap { padding: 0 20px; }
  .gn-links { display: none; }
  .gn-toggle { display: block; }
  .gn-drawer {
    display: flex; flex-direction: column;
    position: fixed; inset: var(--nav-h) 0 auto; z-index: 899;
    background: rgba(255, 255, 255, .98);
    backdrop-filter: blur(20px);
    padding: 4px 20px 28px;
    transform: translateY(-115%); transition: transform .45s var(--ease);
    box-shadow: 0 16px 30px rgba(0, 0, 0, .08);
    max-height: calc(100vh - var(--nav-h)); overflow: auto;
  }
  .gn-drawer.open { transform: none; }
  .gn-drawer a {
    font-size: 20px; font-weight: 600; letter-spacing: -.02em; color: var(--black);
    padding: 15px 0; border-bottom: 1px solid rgba(0, 0, 0, .08);
  }
  .gn-drawer a:last-child { border-bottom: 0; }

  .store-head { padding: calc(var(--nav-h) + 36px) 0 8px; }
  .store-h1 { font-size: 36px; line-height: 1.1; }
  .store-lead { font-size: 17px; margin-top: 12px; }
  .pills { gap: 20px; margin-top: 26px; }
  .pills a { font-size: 14px; }

  .banner-sec { padding: 18px 0 0; }
  .promo { height: 300px; border-radius: 14px; }
  .promo-content { padding: 0 24px; }
  .promo-content h2 { font-size: 26px; }
  .promo-content p { font-size: 15px; }

  .section { padding: 56px 0; }
  .sec-head { margin-bottom: 26px; }
  .sec-head h2 { font-size: 28px; }
  .sec-head p { font-size: 16px; }

  .tile { padding: 28px 24px 0; min-height: 0; border-radius: 14px; }
  .tile h3 { font-size: 23px; }
  .tile-sub { font-size: 15px; }
  .tile-price { font-size: 15px; }
  .tile-links { gap: 18px; margin-top: 16px; }
  .tile-links .link-arrow { font-size: 15px; }
  .tile-media { padding-top: 18px; }
  .tile-media-icon { font-size: 84px; padding-bottom: 20px; }
  .tile-media img { height: 150px; }

  .case-grid, .feature-grid, .help-grid, .contact-grid { grid-template-columns: 1fr; gap: 14px; }
  .case { border-radius: 14px; }
  .case-media { height: 210px; }
  .case-copy { padding: 20px 22px 26px; }
  .case-copy h3 { font-size: 20px; }
  .feature { border-radius: 14px; padding: 26px 22px 28px; }
  .feature h3 { font-size: 19px; }
  .help-card { border-radius: 14px; padding: 26px 22px 28px; }

  .stats { gap: 28px; margin-top: 40px; padding-top: 32px; }
  .stat { min-width: 40%; }
  .stat strong { font-size: 34px; }
  .stat strong.long { font-size: 24px; }
  .about-text { font-size: 17px; }

  .contact-card { border-radius: 14px; padding: 26px 22px; }
  .contact-cta { margin-top: 26px; }

  .foot-cols { grid-template-columns: repeat(2, 1fr); gap: 24px; padding-bottom: 24px; }
  .footer { padding: 40px 0 calc(28px + env(safe-area-inset-bottom)); }

  .modal { padding: 14px; align-items: flex-end; }
  .modal-box { border-radius: 16px; max-height: 90vh; }
  .modal-img { height: 200px; }
  .modal-body { padding: 24px 22px 30px; }
  .modal-body h3 { font-size: 22px; }
  .modal-desc p { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .promo-slide { transition: none; }
}
