/* ============================================================
   小米商城风格主题（小米风）
   - 品牌橙 #FF6700 + 浅灰楼层 + 白色卡片
   - 全程无衬线字体，理性、克制、产品优先
   - 固定类九大场地：每个类型独占一行（左图右文横向卡片）
   ============================================================ */

:root {
  --bg: #ffffff;
  --floor: #f5f5f5;
  --card: #ffffff;
  --ink: #212121;
  --sub: #757575;
  --faint: #9e9e9e;
  --brand: #ff6700;
  --brand-strong: #e65c00;
  --line: #e8e8e8;
  --line-strong: #dcdcdc;
  --dark: #212121;
  --sans: "MiSans", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1226px;
  --radius: 2px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.75 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(100% - 48px, var(--wrap)); margin: 0 auto; }
::selection { background: var(--brand); color: #fff; }

/* ---------- 顶部导航：白底细边，橙色悬停 ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 4px 16px rgba(0, 0, 0, .06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand-logo { height: 24px; width: auto; align-self: center; }
.brand-name { font-size: 16px; font-weight: 600; letter-spacing: .02em; }
.brand-name i { font-style: normal; font-size: 11px; letter-spacing: .12em; color: var(--faint); margin-left: 8px; }
.nav { display: flex; gap: 30px; font-size: 14px; }
.nav a { position: relative; padding: 8px 0; color: #424242; transition: color .25s; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: var(--brand); transition: width .25s;
}
.nav a:hover { color: var(--brand); }
.nav a:hover::after { width: 100%; }
.nav-toggle { display: none; font-size: 22px; background: none; border: 0; cursor: pointer; color: var(--ink); }

/* ---------- 区块骨架：楼层式灰白交替 ---------- */
.section { padding: 72px 0; scroll-margin-top: 64px; }
#strength, #service, #cases { background: var(--floor); }

.sec-head { text-align: center; margin-bottom: 44px; }
.eyebrow {
  color: var(--brand); letter-spacing: .2em; font-size: 13px;
  text-transform: uppercase; margin: 0 0 10px;
}
.eyebrow.light { color: #ffab7a; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; }
h2 { font-weight: 500; font-size: clamp(26px, 3vw, 32px); letter-spacing: .02em; }
h3.sub-title {
  font-weight: 600; font-size: 20px; color: var(--ink);
  margin: 48px 0 22px; display: flex; align-items: center; gap: 12px;
}
h3.sub-title::before { content: ""; width: 4px; height: 20px; background: var(--brand); border-radius: 1px; }
.lead { color: var(--sub); font-size: 15px; margin: 0 0 16px; max-width: 640px; }

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

/* ---------- 关于 ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; }
.about-grid .lead { font-size: 19px; line-height: 1.9; color: #424242; max-width: none; margin: 0; }
.about-grid p:not(.lead) { color: var(--sub); margin: 0; padding-top: 16px; border-top: 1px solid var(--line); }

/* ---------- 文字栏目（实力 / 愿景）：白色面板 ---------- */
.col-item {
  background: var(--card); border: 1px solid #efefef; border-radius: var(--radius);
  padding: 26px 24px 28px;
  transition: box-shadow .3s, transform .3s;
}
.col-item:hover { box-shadow: 0 10px 28px rgba(0, 0, 0, .07); transform: translateY(-2px); }
.col-item .idx { display: block; font-size: 12px; letter-spacing: .2em; color: var(--brand); margin-bottom: 14px; }
.col-item h4, .col-item b { display: block; font-weight: 600; font-size: 18px; margin-bottom: 10px; }
.col-item p, .col-item span { color: var(--sub); font-size: 14px; margin: 0; }

/* ---------- 图片条目（共创 / 案例）：商城白卡 ---------- */
.vcard {
  cursor: pointer;
  background: var(--card); border: 1px solid #efefef; border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .3s, transform .3s;
}
.vcard:hover { box-shadow: 0 14px 34px rgba(0, 0, 0, .10); transform: translateY(-2px); }
.vcard-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--floor); }
.vcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.vcard:hover .vcard-media img { transform: scale(1.04); }
.vcard-media::after {
  content: "查看相册"; position: absolute; right: 12px; bottom: 12px;
  background: var(--brand); color: #fff; font-size: 12px; letter-spacing: .08em;
  padding: 6px 14px; border-radius: var(--radius); opacity: 0; transition: opacity .25s;
}
.vcard:hover .vcard-media::after { opacity: 1; }
.vcard-body { padding: 16px 18px 20px; border-top: 1px solid #f2f2f2; }
.vcard-body h4 { font-weight: 600; font-size: 16px; margin-bottom: 6px; }
.vcard-body p { color: var(--sub); font-size: 13.5px; margin: 0; }

/* ============================================================
   固定类 · 九大场地：每个类型独占一行网格（左图右文）
   ============================================================ */
#service .grid-3 { grid-template-columns: 1fr; gap: 18px; }
#service .grid-3 .vcard { display: flex; align-items: stretch; }
#service .grid-3 .vcard-media { flex: 0 0 400px; aspect-ratio: 16 / 10; }
#service .grid-3 .vcard-body {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  padding: 28px 36px; border-top: 0;
}
#service .grid-3 .vcard-body h4 { font-size: 19px; margin-bottom: 10px; }
#service .grid-3 .vcard-body p { font-size: 14px; max-width: 600px; }

/* ---------- 品牌墙 ---------- */
.brandwall {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line);
  color: var(--faint); font-size: 13px; letter-spacing: .06em;
}

/* ---------- 承诺 ---------- */
.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li { padding: 20px 0; border-top: 1px solid var(--line); }
.feature-list li:last-child { border-bottom: 1px solid var(--line); }
.feature-list b { display: block; font-weight: 600; font-size: 17px; margin-bottom: 6px; }
.feature-list b::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--brand); border-radius: 1px; margin-right: 10px; vertical-align: 2px; }
.feature-list span { color: var(--sub); font-size: 14px; }
.shot { position: relative; overflow: hidden; cursor: pointer; margin: 0; border: 1px solid #efefef; border-radius: var(--radius); }
.shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s; }
.shot:hover img { transform: scale(1.03); }

/* ---------- Hero：全幅产品图 + 橙色主按钮 ---------- */
.hero { position: relative; min-height: 88vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .30) 58%, rgba(0, 0, 0, .05) 100%);
}
.hero-inner { position: relative; z-index: 2; color: #fff; padding: 110px 0 72px; margin: 0 auto; text-align: center; }
.hero h1 {
  font-weight: 400; letter-spacing: .02em;
  font-size: clamp(20px, 5vw, 56px); margin: 12px 0 20px;
  white-space: nowrap; /* 主标题限制一行，字号随视口缩放 */
}
.hero-sub { color: rgba(255, 255, 255, .85); font-size: 16px; max-width: 540px; margin: 0 auto; }
.hero-actions { display: flex; gap: 14px; margin-top: 36px; justify-content: center; }

.btn {
  display: inline-block; padding: 13px 34px; border-radius: var(--radius);
  font-size: 14px; letter-spacing: .05em;
  transition: background .25s, color .25s, border-color .25s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-strong); }
.btn-ghost { border: 1px solid rgba(255, 255, 255, .8); color: #fff; }
.btn-ghost:hover { background: #fff; border-color: #fff; color: var(--ink); }

/* ---------- 数据条：白底商城数据行 ---------- */
.stats { background: #fff; border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding: 48px 0; }
.stat { padding-left: 28px; border-left: 1px solid #ececec; }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { font-weight: 500; font-size: clamp(32px, 3.6vw, 44px); color: var(--ink); letter-spacing: .01em; }
.stat b span { font-size: .42em; margin-left: 6px; color: var(--brand); }
.stat > span { display: block; color: var(--faint); font-size: 13px; margin-top: 6px; }

/* ---------- 联系 ---------- */
.contact { background: #fff; text-align: center; border-top: 1px solid var(--line); }
.contact-inner { max-width: 640px; margin: 0 auto; }
.contact-logo { height: 30px; width: auto; margin: 0 auto 24px; }
.contact h2 { margin-bottom: 14px; }
.contact .lead { margin: 0 auto 32px; }

/* ---------- 页脚：浅色商城页脚 ---------- */
.site-footer { background: #fafafa; border-top: 1px solid var(--line); padding: 36px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--faint); font-size: 13px; }
.beian { color: inherit; text-decoration: none; }
.beian:hover { color: #424242; }

/* ---------- 灯箱 ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; background: rgba(0, 0, 0, .92); }
.lightbox.show { display: flex; }
.lb-img { max-width: 88vw; max-height: 84vh; }
.lb-close, .lb-prev, .lb-next {
  position: absolute; background: rgba(255, 255, 255, .10); color: #fff; border: 0; cursor: pointer;
  width: 46px; height: 46px; font-size: 24px; line-height: 1; border-radius: var(--radius); transition: background .25s;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: var(--brand); }
.lb-close { top: 24px; right: 24px; }
.lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, .6); font-size: 13px; letter-spacing: .12em; }

/* ---------- 滚动浮现 ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  #service .grid-3 .vcard-media { flex-basis: 320px; }
}
@media (max-width: 1000px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .about-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 760px) {
  .nav {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 0; transform: translateY(-140%); transition: transform .35s;
  }
  .nav.open { transform: none; }
  .nav a { padding: 14px 24px; }
  .nav-toggle { display: block; }
  .section { padding: 56px 0; }
  .sec-head { margin-bottom: 32px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  /* 场地行卡在小屏堆叠为上图下文 */
  #service .grid-3 .vcard { flex-direction: column; }
  #service .grid-3 .vcard-media { flex: none; width: 100%; aspect-ratio: 16 / 9; }
  #service .grid-3 .vcard-body { padding: 20px 22px 24px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 0; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .hero { min-height: 82vh; }
  .hero-inner { padding: 96px 0 56px; }
  .hero-actions { flex-wrap: wrap; }
  .footer-inner { flex-direction: column; gap: 6px; }
}
@media (max-width: 420px) {
  .grid-4 .vcard-body p { display: none; }
}

/* 顶栏 / 页脚电话 */
.nav-tel { font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--brand); transition: opacity .25s; }
.nav-tel:hover { opacity: .75; }
.footer-tel { font-weight: 600; color: var(--brand); }
@media (max-width: 760px) { .nav-tel { display: none; } }
