/* ==========================================================
   三时一企业购 官网 v2 · 全站样式
   设计基准：2026-06 视觉稿（浅色 Hero + 深蓝/金 区块）
   ========================================================== */

:root {
  --navy: #1d2b4f;
  --navy-deep: #182542;
  --navy-card: #243456;
  --navy-card-border: #2e4068;
  --gold: #d4af37;
  --gold-deep: #c9a227;
  --ink: #1f2430;
  --gray: #5b6472;
  --gray-light: #9aa3b2;
  --bg-light: #f4f5f7;
  --white: #ffffff;
  --footer-bg: #16181d;
  --radius: 14px;
  --shadow-card: 0 6px 24px rgba(29, 43, 79, .08);
  --shadow-card-hover: 0 12px 32px rgba(29, 43, 79, .14);
  --maxw: 1200px;
}

* { 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(--ink);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- 顶部导航 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  box-shadow: 0 1px 0 rgba(29, 43, 79, .06);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 32px;
  height: 72px; display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 40px; height: 40px; border: 1.5px solid var(--ink); border-radius: 4px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--white); line-height: 1;
}
.brand-mark .mark-num { font-size: 17px; font-weight: 600; letter-spacing: 1px; color: var(--ink); }
.brand-mark .mark-sub { font-size: 6px; color: var(--gray); margin-top: 2px; letter-spacing: 1px; }
.brand-name { font-size: 19px; font-weight: 700; color: var(--navy); letter-spacing: .5px; }

.nav-links { display: flex; gap: 40px; }
.nav-links a {
  font-size: 15px; font-weight: 600; color: var(--navy);
  padding: 6px 0; position: relative; transition: color .2s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: var(--gold); transition: width .25s;
}
.nav-links a:hover { color: var(--gold-deep); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--navy);
  margin: 5px 0; transition: transform .25s, opacity .25s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 160px 0 110px;
  background: var(--white);
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(90px); z-index: 0;
}
.hero::before {
  width: 620px; height: 620px; top: -220px; left: -220px;
  background: radial-gradient(circle, rgba(255, 170, 90, .45), rgba(255, 220, 160, .18) 60%, transparent 75%);
}
.hero::after {
  width: 720px; height: 720px; bottom: -300px; right: -240px;
  background: radial-gradient(circle, rgba(140, 130, 255, .38), rgba(190, 180, 255, .16) 60%, transparent 75%);
}
.hero-inner { position: relative; z-index: 1; text-align: center; }
.hero h1 {
  font-size: 56px; font-weight: 800; color: var(--ink);
  letter-spacing: 2px; line-height: 1.25;
}
.hero-sub {
  max-width: 760px; margin: 26px auto 0;
  font-size: 18px; color: var(--gray);
}

/* Hero 视觉：中央界面模拟图 + 两侧浮动卡片 */
.hero-visual {
  position: relative; z-index: 1;
  margin-top: 70px; display: flex; align-items: center; justify-content: center; gap: 36px;
}
.float-col { display: flex; flex-direction: column; gap: 22px; width: 220px; flex-shrink: 0; }
.float-card {
  background: var(--white); border-radius: 12px; padding: 18px 16px;
  box-shadow: 0 10px 30px rgba(29, 43, 79, .10);
}
.skel { height: 9px; border-radius: 5px; margin-bottom: 10px; }
.skel:last-child { margin-bottom: 0; }
.skel-gold { background: #efe3b8; }
.skel-gray { background: #d9dde4; }
.skel-block { height: 64px; border-radius: 8px; background: #eef0f3; margin-top: 10px; }
.skel-avatar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.skel-avatar { width: 30px; height: 30px; border-radius: 50%; background: #efe3b8; flex-shrink: 0; }
.w90 { width: 90%; } .w70 { width: 70%; } .w55 { width: 55%; } .w45 { width: 45%; }

/* 显示器模拟 */
.monitor { width: 600px; max-width: 100%; flex-shrink: 0; }
.monitor-frame {
  background: #11151c; border-radius: 16px; padding: 14px;
  box-shadow: 0 24px 60px rgba(29, 43, 79, .22);
}
.screen { background: #f7f8fa; border-radius: 8px; overflow: hidden; }
.screen-bar {
  display: flex; align-items: center; gap: 6px;
  background: #2a3140; padding: 9px 14px;
}
.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot-r { background: #ff5f57; } .dot-y { background: #febc2e; } .dot-g { background: #28c840; }
.screen-bar .addr {
  flex: 1; margin-left: 12px; height: 14px; border-radius: 7px;
  background: rgba(255, 255, 255, .14);
}
.screen-body { display: flex; min-height: 300px; }
.screen-side { width: 120px; background: var(--navy); padding: 16px 12px; }
.side-item { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .22); margin-bottom: 14px; }
.side-item.on { background: var(--gold); }
.screen-main { flex: 1; padding: 18px 20px; }
.kpi-row { display: flex; gap: 12px; margin-bottom: 16px; }
.kpi {
  flex: 1; background: var(--white); border-radius: 8px; padding: 12px;
  box-shadow: 0 2px 8px rgba(29, 43, 79, .06);
}
.kpi .kpi-num { font-size: 16px; font-weight: 800; color: var(--navy); }
.kpi .kpi-label { font-size: 10px; color: var(--gray-light); margin-top: 2px; }
.table-mock { background: var(--white); border-radius: 8px; padding: 12px; box-shadow: 0 2px 8px rgba(29, 43, 79, .06); }
.tr-mock { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-bottom: 1px solid #f0f1f4; }
.tr-mock:last-child { border-bottom: none; }
.td-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.td-bar { height: 7px; border-radius: 4px; background: #e3e6eb; }
.td-tag { margin-left: auto; width: 44px; height: 14px; border-radius: 7px; background: #e8f3ea; flex-shrink: 0; }

/* ---------- 通用区块 ---------- */
.section { padding: 100px 0; }
.section-light { background: var(--bg-light); }
.section-white { background: var(--white); }
.section-navy { background: var(--navy); color: var(--white); }

.section-head { text-align: center; margin-bottom: 64px; }
.section-head h2 {
  font-size: 40px; font-weight: 800; letter-spacing: 2px; line-height: 1.3;
  color: var(--ink);
}
.section-navy .section-head h2 { color: var(--white); }
.head-bar {
  width: 64px; height: 4px; border-radius: 2px; background: var(--gold);
  margin: 22px auto 0;
}
.section-head p { margin-top: 22px; font-size: 17px; color: var(--gray); }
.section-navy .section-head p { color: #c4cde0; }

/* ---------- 卡片网格 ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }

.icon-gold { width: 44px; height: 44px; color: var(--gold); }
.icon-gold svg { width: 100%; height: 100%; }

/* 深蓝区块卡片（金色顶边） */
.card-navy {
  background: var(--navy-card); border: 1px solid var(--navy-card-border);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius); padding: 36px 28px; text-align: center;
  transition: transform .25s, box-shadow .25s;
}
.card-navy:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(0, 0, 0, .28); }
.card-navy .icon-gold { margin: 0 auto 22px; }
.card-navy h3 { font-size: 19px; font-weight: 700; color: var(--white); margin-bottom: 16px; }
.card-navy p { font-size: 14.5px; color: #c4cde0; }
.card-illu {
  margin-top: 24px; height: 130px; border-radius: 10px; overflow: hidden;
  background: var(--navy-deep); display: flex; align-items: center; justify-content: center;
}
.card-illu svg { width: 100%; height: 100%; }

/* 浅色区块卡片（白底 + 金顶边） */
.card-stat {
  background: var(--white); border-radius: var(--radius); padding: 42px 28px;
  text-align: center; box-shadow: var(--shadow-card);
  transition: transform .25s, box-shadow .25s;
}
.card-stat:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-hover); }
.card-stat .icon-gold { margin: 0 auto 20px; }
.stat-num { font-size: 46px; font-weight: 800; color: var(--navy); line-height: 1.15; }
.stat-unit { font-size: 14px; font-weight: 700; color: var(--gold-deep); margin-top: 4px; }
.card-stat h3 { font-size: 20px; font-weight: 700; color: var(--ink); margin: 14px 0 14px; }
.card-stat p { font-size: 14.5px; color: var(--gray); }

/* 左金边横向卡片（营销活动采购） */
.card-side {
  background: var(--white); border-left: 5px solid var(--gold);
  border-radius: 10px; padding: 30px 32px;
  box-shadow: var(--shadow-card); display: flex; gap: 20px; align-items: flex-start;
  transition: transform .25s, box-shadow .25s;
}
.card-side:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.card-side .icon-gold { width: 32px; height: 32px; flex-shrink: 0; margin-top: 4px; }
.card-side h3 { font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.card-side p { font-size: 14.5px; color: var(--gray); }

/* 深蓝横向卡片（数智化赋能） */
.card-navy-wide {
  background: var(--navy-card); border: 1px solid var(--navy-card-border);
  border-radius: var(--radius); padding: 34px 32px;
  transition: transform .25s, box-shadow .25s;
}
.card-navy-wide:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(0, 0, 0, .28); }
.card-navy-wide .card-top { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.card-navy-wide .icon-gold { width: 34px; height: 34px; flex-shrink: 0; }
.card-navy-wide h3 { font-size: 19px; font-weight: 700; color: var(--white); }
.card-navy-wide p { font-size: 14.5px; color: #c4cde0; }

/* 服务保障卡片 */
.card-svc {
  background: var(--white); border-top: 4px solid var(--gold);
  border-radius: var(--radius); padding: 40px 26px; text-align: center;
  box-shadow: var(--shadow-card);
  transition: transform .25s, box-shadow .25s;
}
.card-svc:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-hover); }
.card-svc .icon-gold { margin: 0 auto 22px; width: 48px; height: 48px; }
.card-svc h3 { font-size: 20px; font-weight: 700; color: var(--ink); margin-bottom: 14px; }
.card-svc p { font-size: 14.5px; color: var(--gray); }

/* 合作模式卡片 */
.card-coop {
  background: #fafafb; border-top: 4px solid var(--gold);
  border-radius: var(--radius); padding: 44px 34px; text-align: center;
  box-shadow: var(--shadow-card);
  transition: transform .25s, box-shadow .25s;
}
.card-coop:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-hover); }
.card-coop .icon-gold { margin: 0 auto 24px; width: 46px; height: 46px; }
.card-coop h3 { font-size: 24px; font-weight: 800; color: var(--ink); }
.coop-tag { font-size: 14px; font-weight: 700; color: var(--gold-deep); margin: 8px 0 22px; }
.card-coop p { font-size: 15px; color: var(--gray); text-align: justify; }

/* ---------- 页脚 ---------- */
.footer { background: var(--footer-bg); color: #c8cbd2; padding: 70px 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 40px;
  padding-bottom: 50px;
}
.footer .brand-mark { border-color: #fff; background: transparent; }
.footer .brand-mark .mark-num { color: #fff; }
.footer .brand-mark .mark-sub { color: #9aa0ab; }
.footer .brand-name { color: #fff; }
.footer-company { margin-top: 18px; font-size: 14px; color: #9aa0ab; }
.footer h4 { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 20px; }
.footer-col li { margin-bottom: 12px; font-size: 14px; }
.footer-col a:hover { color: var(--gold); }
.footer-contact li { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 14px; }
.footer-contact svg { width: 16px; height: 16px; color: #9aa0ab; flex-shrink: 0; }
.footer-bottom {
  border-top: 1px solid #2a2d34; padding: 22px 0;
  text-align: center; font-size: 13px; color: #7c828d;
}
.footer-bottom a:hover { color: var(--gold); }

/* ---------- 入场动画 ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .float-col { display: none; }
  .hero h1 { font-size: 42px; }
}
@media (max-width: 720px) {
  .container { padding: 0 20px; }
  .hero { padding: 130px 0 80px; }
  .hero h1 { font-size: 30px; letter-spacing: 1px; }
  .hero-sub { font-size: 15.5px; }
  .section { padding: 64px 0; }
  .section-head h2 { font-size: 27px; }
  .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .monitor-frame { padding: 8px; }
  .screen-side { width: 70px; }

  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: 72px; left: 0; right: 0;
    background: var(--white); flex-direction: column; gap: 0;
    box-shadow: 0 12px 24px rgba(29, 43, 79, .12);
    max-height: 0; overflow: hidden; transition: max-height .3s;
  }
  .nav-links.open { max-height: 240px; }
  .nav-links a { padding: 16px 24px; border-bottom: 1px solid #f0f1f4; }
  .nav-links a::after { display: none; }
}
