/* ============ 九本集团官网 · 基础样式 ============ */
/* 设计令牌 */
:root {
  --bg: #f8f9fb;
  --bg-panel: #eef3fa;
  --white: #ffffff;
  --navy: #14355f;
  --navy-light: #1c4578;
  --gold: #876624;
  --ink: #17263c;
  --text: #45536b;
  --text-light: #59677b;
  --text-faint: #647086;
  --line: #dce4ee;
  --line-soft: #e8edf4;
  --serif: "Source Han Serif SC", "Noto Serif SC", "SimSun", "STSong", serif;
  --sans: "Microsoft YaHei", "PingFang SC", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.75;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* ============ 顶部导航 ============ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 60px;
  border-bottom: 1px solid rgba(220,228,238,.7);
  background: rgba(248,249,251,.88);
  backdrop-filter: blur(10px);
}
.site-header .inner {
  max-width: 1360px; margin: 0 auto; height: 100%;
  padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 30px; height: 30px;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700;
  font-family: var(--serif);
}
.logo-text .cn { font-size: 15px; font-weight: 700; letter-spacing: 3px; color: var(--navy); line-height: 1.3; }
.logo-text .en { font-size: 8px; letter-spacing: 2px; color: var(--text-light); }

.main-nav { display: flex; gap: 30px; }
.main-nav a {
  color: var(--text); font-size: 13.5px; letter-spacing: 1.5px;
  line-height: 60px; display: inline-block; position: relative;
  transition: color .3s;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--gold); transform: scaleX(0); transition: transform .3s;
}
.main-nav a:hover, .main-nav a.active { color: var(--navy); }
.main-nav a.active::after, .main-nav a:hover::after { transform: scaleX(1); }

.header-lang {
  font-size: 11px; color: var(--text-light); letter-spacing: 1px;
  border: 1px solid var(--line); padding: 3px 10px;
  transition: all .3s; cursor: pointer;
}
.header-lang:hover { border-color: var(--navy); color: var(--navy); }

/* ============ 通用 ============ */
.section { padding: 60px 0; }
.section.alt { background: var(--white); }

/* 内页首屏后的第一段内容更早进入视野，避免标题横幅与段落留白叠加。 */
.page-hero + .section { padding-top: 42px; }
.page-hero + .section .section-head { margin-bottom: 28px; }
.page-hero + .section .biz-block:first-child { padding-top: 4px; }

.section-head { margin-bottom: 36px; }
.section-head .eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; color: var(--gold); letter-spacing: 4px;
  margin-bottom: 12px;
}
.section-head .eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
.section-head h2 {
  font-family: var(--serif);
  font-size: 26px; font-weight: 700; letter-spacing: 4px; color: var(--navy);
}
.section-head .sub { margin-top: 10px; font-size: 13.5px; color: var(--text-light); letter-spacing: 1px; max-width: 640px; }
.section-head.center { text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head.center .sub { margin-left: auto; margin-right: auto; }
/* 标题左、说明右，同一行，消灭右侧空白 */
.section-head.split { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.section-head.split .sub { margin-top: 0; text-align: right; max-width: 420px; padding-bottom: 4px; }

.btn {
  display: inline-block;
  padding: 10px 28px; font-size: 13px; letter-spacing: 2px;
  transition: all .3s; cursor: pointer; border: none;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-light); }
.btn-ghost { border: 1px solid #b7c2d2; color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn-link { padding: 0; color: var(--navy); letter-spacing: 2px; border-bottom: 1px solid var(--gold); padding-bottom: 4px; }
.btn-link:hover { color: var(--gold); }

/* 信息卡：无图时代替图片位的通用组件 */
.info-card {
  background: var(--white); border: 1px solid var(--line-soft);
  padding: 28px 30px; position: relative; overflow: hidden;
}
.info-card .ic-wm {
  position: absolute; right: -14px; bottom: -34px;
  font-family: var(--serif); font-size: 150px; line-height: 1;
  color: rgba(20,53,95,.05); user-select: none; pointer-events: none;
}
.info-card .ic-title {
  font-size: 12px; color: var(--gold); letter-spacing: 3px; margin-bottom: 18px;
  display: flex; align-items: center; gap: 10px;
}
.info-card .ic-title::after { content: ""; flex: 1; height: 1px; background: var(--line-soft); }
.info-card .ic-row {
  display: flex; gap: 14px; padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
}
.info-card .ic-row:last-child { border-bottom: none; padding-bottom: 4px; }
.info-card .ic-row .zi {
  width: 34px; height: 34px; flex-shrink: 0;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 15px; color: var(--navy);
}
.info-card .ic-row .t { font-size: 13.5px; color: var(--ink); font-weight: 600; letter-spacing: 1px; }
.info-card .ic-row .d { font-size: 12px; color: var(--text-light); margin-top: 2px; letter-spacing: .3px; }
.media-ph {
  background: linear-gradient(135deg, #e8eef7, #dde6f2);
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.media-ph::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 40px 40px;
}
.media-ph .ph-label {
  position: relative; font-size: 11.5px; color: #8ba0bd; letter-spacing: 2px;
  border: 1px dashed #b3c3d8; padding: 5px 14px; background: rgba(255,255,255,.5);
}
.media-ph.ratio-16x9 { aspect-ratio: 16 / 9; }
.media-ph.ratio-1x1 { aspect-ratio: 1 / 1; }
.media-ph.ratio-4x3 { aspect-ratio: 4 / 3; }

/* ============ 内页头部横幅 ============ */
.page-hero {
  margin-top: 60px;
  min-height: 150px;
  padding: 24px 0 22px;
  display: flex; align-items: center;
  background:
    repeating-linear-gradient(90deg, rgba(20,53,95,.025) 0 1px, transparent 1px 96px),
    linear-gradient(200deg, rgba(238,243,250,.94), rgba(230,237,247,.48)),
    var(--bg);
  border-bottom: 1px solid var(--line-soft);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; right: 2.5%; top: 50%;
  width: min(42vw, 560px); height: 250px;
  transform: translateY(-50%) rotate(-7deg);
  background:
    radial-gradient(ellipse at center, transparent 0 31%, rgba(20,53,95,.075) 31.2% 31.6%, transparent 31.9%),
    radial-gradient(ellipse at center, transparent 0 49%, rgba(20,53,95,.055) 49.2% 49.6%, transparent 49.9%),
    radial-gradient(ellipse at center, transparent 0 67%, rgba(176,141,70,.09) 67.2% 67.6%, transparent 67.9%);
  pointer-events: none;
}
.page-hero::after {
  content: "";
  position: absolute; right: 19%; top: -60%;
  width: 1px; height: 220%;
  background: linear-gradient(transparent, rgba(176,141,70,.22), transparent);
  transform: rotate(28deg);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; width: 100%; }
.page-hero .wm {
  position: absolute; right: 1.5%; top: 50%; transform: translateY(-54%);
  font-family: var(--serif); font-size: clamp(88px, 8vw, 118px); line-height: 1;
  color: rgba(20,53,95,.075); user-select: none; pointer-events: none;
  letter-spacing: 10px; white-space: nowrap;
}
.page-hero .crumb {
  font-size: 12px; line-height: 1.6; color: var(--text-faint); letter-spacing: 1.5px; margin-bottom: 10px;
}
.page-hero .crumb a:hover { color: var(--navy); }
.page-hero h1 {
  font-family: var(--serif);
  font-size: 28px; line-height: 1.35; font-weight: 700; letter-spacing: 6px; color: var(--navy);
  position: relative; z-index: 1;
}
.page-hero h1::after {
  content: ""; display: inline-block; width: 48px; height: 1px;
  margin-left: 18px; vertical-align: middle;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.page-hero .en {
  margin-top: 6px; font-size: 11px; line-height: 1.5; letter-spacing: 3px; color: var(--text-faint);
  text-transform: uppercase; font-family: Georgia, serif;
}

/* ============ 页脚 ============ */
.site-footer {
  background: #122b4d;
  color: #a9b8cd;
  padding: 44px 0 0;
  font-size: 12.5px;
}
.site-footer .top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 44px;
  padding-bottom: 36px;
}
.site-footer h4 {
  color: #fff; font-size: 13px; letter-spacing: 2px; font-weight: 600;
  margin-bottom: 14px;
}
.site-footer .f-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.site-footer .f-logo .mark {
  width: 30px; height: 30px; background: rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 15px; color: #fff;
}
.site-footer .f-logo .cn { font-size: 14px; color: #fff; letter-spacing: 3px; font-weight: 600; }
.site-footer .f-logo .en { font-size: 8px; letter-spacing: 2px; color: #7f92ac; }
.site-footer .about-text { line-height: 1.9; color: #8fa1ba; letter-spacing: .5px; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer ul a { color: #a9b8cd; transition: color .3s; letter-spacing: 1px; }
.site-footer ul a:hover { color: #fff; }
.site-footer .contact-line { display: flex; gap: 8px; margin-bottom: 9px; line-height: 1.8; letter-spacing: .5px; }
.site-footer .contact-line .k { color: #7f92ac; flex-shrink: 0; }
.site-footer .bottom {
  border-top: 1px solid rgba(255,255,255,.09);
  padding: 16px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11.5px; color: #6d7f99; letter-spacing: 1px;
}
.site-footer .bottom a:hover { color: #fff; }

/* ============ 响应式（基本） ============ */
@media (max-width: 1024px) {
  .site-header { height: auto; }
  .site-header .inner {
    flex-wrap: wrap; padding: 8px 16px 0; gap: 4px 16px;
  }
  .header-lang { display: none; }
  .main-nav {
    order: 3; width: 100%;
    gap: 22px; overflow-x: auto; white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a { line-height: 40px; font-size: 13px; flex-shrink: 0; }
  .page-hero { margin-top: 92px; min-height: 138px; padding: 22px 0 20px; }
  .page-hero::before { right: -18%; width: 520px; opacity: .8; }
  .page-hero::after { right: 18%; }
  .page-hero .wm { right: 0; font-size: 84px; }
  .page-hero h1 { font-size: 24px; letter-spacing: 4px; }
  .page-hero + .section { padding-top: 32px; }
  .page-hero + .section .section-head { margin-bottom: 24px; }
  .site-footer .top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .section { padding: 40px 0; }
  .section-head { margin-bottom: 24px; }
  .section-head h2 { font-size: 21px; letter-spacing: 3px; }
  .container { padding: 0 18px; }
}
@media (max-width: 640px) {
  .page-hero { min-height: 126px; padding: 18px 0 16px; }
  .page-hero::before { right: -82%; width: 500px; opacity: .55; }
  .page-hero::after { display: none; }
  .page-hero .wm { right: -8px; font-size: 64px; letter-spacing: 4px; }
  .page-hero h1::after { width: 30px; margin-left: 12px; }
  .page-hero + .section { padding-top: 28px; }
  .site-footer .top { grid-template-columns: 1fr; gap: 24px; }
  .site-footer .bottom { flex-direction: column; gap: 6px; padding: 14px 0; }
}

/* 矮屏与高缩放场景优先保证首段正文进入首屏。 */
@media (min-width: 1025px) and (max-height: 820px) {
  .page-hero { min-height: 112px; padding: 12px 0 10px; }
  .page-hero .crumb { margin-bottom: 4px; }
  .page-hero .en { margin-top: 4px; }
  .page-hero .wm { font-size: 80px; }
  .page-hero + .section { padding-top: 24px; }
  .page-hero + .section .section-head { margin-bottom: 18px; }
}
