/* ==========================================================================
   丰朗盛泰 · 官方网站样式
   ========================================================================== */

:root {
  /* 配色取自公司 Logo：#060937 藏青 + #d01818 正红 */
  --brand-900: #060d33;
  --brand-800: #0c1746;
  --brand-700: #152562;
  --brand-600: #253a86;
  --brand-100: #edf0fb;
  --accent: #d01818;
  --accent-dark: #a91111;
  --accent-soft: #fbecec;

  --ink: #131a2b;
  --ink-soft: #3a4459;
  --muted: #6a7488;
  --line: #e3e7f0;
  --bg: #ffffff;
  --bg-soft: #f5f7fc;
  --bg-dark: #060d33;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(9, 16, 38, 0.05), 0 2px 10px rgba(9, 16, 38, 0.05);
  --shadow-md: 0 6px 16px rgba(9, 16, 38, 0.07), 0 16px 40px rgba(9, 16, 38, 0.09);
  --shadow-lg: 0 24px 60px rgba(6, 13, 51, 0.22);
  --maxw: 1200px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
}

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

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

h1,
h2,
h3,
h4 {
  line-height: 1.32;
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

/* ---------------- 顶栏 ---------------- */

.topbar {
  background: var(--brand-900);
  color: rgba(255, 255, 255, 0.82);
  font-size: 13.5px;
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 40px;
}

.topbar-left {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}

.topbar-left span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.topbar a:hover {
  color: #fff;
}

.topbar .admin-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 2px 12px;
  font-size: 12.5px;
  transition: 0.2s;
}

.topbar .admin-link:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.55);
}

/* ---------------- 头部导航 ---------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s;
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header .wrap {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header .brand {
  flex-shrink: 1;
  overflow: hidden;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  min-width: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(6, 13, 51, 0.1);
  display: grid;
  place-items: center;
  padding: 3px;
  flex-shrink: 0;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-text {
  min-width: 0;
}

.brand-text strong {
  display: block;
  font-size: 17.5px;
  letter-spacing: 0.04em;
  color: var(--brand-900);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-text small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 4px;
  align-items: center;
}

.nav a {
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  font-size: 14.6px;
  color: var(--ink-soft);
  font-weight: 500;
  white-space: nowrap;
  transition: 0.18s;
}

.nav a:hover {
  color: var(--brand-700);
  background: var(--brand-100);
}

.nav a.active {
  color: var(--brand-700);
  background: var(--brand-100);
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: 0.2s;
  font-family: inherit;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-800), var(--brand-600));
  color: #fff;
  box-shadow: 0 4px 14px rgba(6, 13, 51, 0.28);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(6, 13, 51, 0.36);
}

.btn-ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--ink-soft);
}

.btn-ghost:hover {
  border-color: var(--brand-600);
  color: var(--brand-700);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  box-shadow: 0 4px 14px rgba(208, 24, 24, 0.32);
}

.btn-accent:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(208, 24, 24, 0.4);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 9px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  color: var(--brand-900);
}

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  background: radial-gradient(1100px 520px at 84% -12%, rgba(208, 24, 24, 0.32) 0%, transparent 56%),
    radial-gradient(900px 500px at -10% 112%, rgba(37, 58, 134, 0.55) 0%, transparent 55%),
    linear-gradient(155deg, #05091f 0%, #060d33 46%, #101a4d 100%);
  color: #fff;
  overflow: hidden;
  padding: 88px 0 96px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 85%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: #ffd9d9;
  background: rgba(208, 24, 24, 0.18);
  border: 1px solid rgba(255, 122, 122, 0.38);
  padding: 6px 15px;
  border-radius: 999px;
  margin-bottom: 26px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(29px, 3.6vw, 47px);
  line-height: 1.24;
  letter-spacing: -0.015em;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  margin-top: 24px;
  font-size: 16.5px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.8);
  max-width: 620px;
}

.hero-actions {
  margin-top: 38px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-actions .btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  backdrop-filter: blur(6px);
}

.hero-actions .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 46px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  max-width: 560px;
}

.hero-highlights b {
  display: block;
  font-size: 26px;
  color: #ff9d9d; /* 柔和浅红：深色背景上不刺眼 */
  letter-spacing: -0.01em;
}

.hero-highlights span {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.7);
}

.hero-card {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  padding: 28px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
}

.hero-card h3 {
  font-size: 15px;
  color: #ffd9d9;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  font-weight: 600;
}

.hero-card ul {
  display: grid;
  gap: 15px;
}

.hero-card li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14.6px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
}

.hero-card li .dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #d04545; /* 柔和红：降低纯红亮度 */
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 3px;
  font-weight: 700;
}

/* ---------------- 通用区块 ---------------- */

.section {
  padding: 88px 0;
}

.section.soft {
  background: var(--bg-soft);
}

.section.dark {
  background: var(--bg-dark);
  color: #fff;
}

.section-head {
  max-width: 720px;
  margin-bottom: 52px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-tag {
  display: inline-block;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  color: var(--brand-600);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section.dark .section-tag {
  color: var(--accent);
}

.section-head h2 {
  font-size: clamp(24px, 2.7vw, 35px);
  color: var(--brand-900);
}

.section.dark .section-head h2 {
  color: #fff;
}

.section-head p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}

.section.dark .section-head p {
  color: rgba(255, 255, 255, 0.72);
}

/* ---------------- 数据条 ---------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.stats > div {
  padding: 34px 24px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.stats > div:last-child {
  border-right: none;
}

.stats b {
  display: block;
  font-size: 36px;
  color: var(--brand-700);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.stats span {
  font-size: 14px;
  color: var(--muted);
}

/* ---------------- 关于 ---------------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.about-text p + p {
  margin-top: 18px;
}

.about-text p {
  color: var(--ink-soft);
  font-size: 15.8px;
  line-height: 1.92;
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.value-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: 0.22s;
}

.value-card:hover {
  border-color: var(--brand-600);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.value-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--brand-100);
  color: var(--brand-700);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.value-card h4 {
  font-size: 16.5px;
  color: var(--brand-900);
  margin-bottom: 8px;
}

.value-card p {
  font-size: 14.2px;
  color: var(--muted);
  line-height: 1.72;
}

/* ---------------- 服务 ---------------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: 0.24s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-600), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.32s;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: transparent;
}

.service-icon {
  width: 50px;
  height: 50px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--brand-100), #dbe8f8);
  color: var(--brand-700);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 18px;
  color: var(--brand-900);
  margin-bottom: 11px;
}

.service-card > p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.78;
  min-height: 52px;
}

.service-points {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  display: grid;
  gap: 9px;
}

.service-points li {
  font-size: 13.8px;
  color: var(--ink-soft);
  display: flex;
  gap: 9px;
  align-items: flex-start;
}

.service-points li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.6;
}

/* ---------------- 流程 ---------------- */

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}

.process-item {
  position: relative;
  padding: 30px 24px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.process-item .step-no {
  font-size: 30px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 16px;
}

.process-item h4 {
  font-size: 16.5px;
  margin-bottom: 9px;
  color: #fff;
}

.process-item p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.72;
}

/* ---------------- FAQ ---------------- */

.faq-list {
  max-width: 900px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-q {
  width: 100%;
  background: none;
  border: 0;
  text-align: left;
  padding: 24px 44px 24px 0;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--brand-900);
  cursor: pointer;
  position: relative;
  font-family: inherit;
  line-height: 1.6;
}

.faq-q::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--brand-600);
  font-weight: 400;
  transition: transform 0.25s;
}

.faq-item.open .faq-q::after {
  content: "−";
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease;
}

.faq-a p {
  padding: 0 44px 24px 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}

/* ---------------- 联系 ---------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 44px;
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 4px;
}

.contact-item {
  display: flex;
  gap: 15px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-item .ci-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--brand-100);
  color: var(--brand-700);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.contact-item dt {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 3px;
}

.contact-item dd {
  margin: 0;
  font-size: 15.3px;
  color: var(--ink);
  line-height: 1.65;
}

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.form-card h3 {
  font-size: 19px;
  color: var(--brand-900);
  margin-bottom: 6px;
}

.form-card > p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-bottom: 7px;
  font-weight: 500;
}

.field label .req {
  color: #d9534f;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14.6px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  transition: 0.18s;
}

.field textarea {
  resize: vertical;
  min-height: 104px;
  line-height: 1.7;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--brand-600);
  box-shadow: 0 0 0 3px rgba(29, 95, 168, 0.12);
}

.form-note {
  font-size: 12.8px;
  color: var(--muted);
  margin-top: 14px;
  line-height: 1.7;
}

.form-alert {
  display: none;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 18px;
}

.form-alert.show {
  display: block;
}

.form-alert.ok {
  background: #e9f6ee;
  color: #1c6b3d;
  border: 1px solid #bfe4ce;
}

.form-alert.err {
  background: #fdeeee;
  color: #a13a34;
  border: 1px solid #f3c9c6;
}

/* ---------------- 页脚 ---------------- */

.footer {
  background: linear-gradient(180deg, #05091f 0%, var(--bg-dark) 60%, #081231 100%);
  box-shadow: inset 0 2px 0 rgba(208, 24, 24, 0.55);
  color: rgba(255, 255, 255, 0.66);
  padding: 62px 0 26px;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 18px;
}

.footer-brand .brand-mark {
  background: #fff;
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.footer-brand p {
  margin-top: 18px;
  line-height: 1.85;
  font-size: 13.6px;
  color: rgba(255, 255, 255, 0.6);
}

.footer ul {
  display: grid;
  gap: 11px;
}

.footer li {
  font-size: 13.8px;
}

.footer a:hover {
  color: var(--accent);
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom .note {
  max-width: 640px;
}

/* ---------------- 移动端抽屉 ---------------- */

.drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
}

.drawer.open {
  display: block;
}

.drawer-mask {
  position: absolute;
  inset: 0;
  background: rgba(8, 27, 51, 0.55);
  backdrop-filter: blur(2px);
}

.drawer-panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(320px, 86vw);
  background: #fff;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: slideIn 0.24s ease;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

.drawer-panel a {
  padding: 14px 12px;
  border-radius: 10px;
  font-size: 16px;
  color: var(--ink-soft);
  font-weight: 500;
}

.drawer-panel a:hover {
  background: var(--brand-100);
  color: var(--brand-700);
}

.drawer-close {
  align-self: flex-end;
  background: none;
  border: 1px solid var(--line);
  border-radius: 9px;
  width: 38px;
  height: 38px;
  cursor: pointer;
  color: var(--ink);
  margin-bottom: 10px;
}

/* ---------------- 动效 ---------------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

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

/* ---------------- 响应式 ---------------- */

@media (max-width: 1024px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats > div:nth-child(2) {
    border-right: none;
  }
  .stats > div:nth-child(1),
  .stats > div:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .nav,
  .header-cta .btn {
    display: none;
  }
  .nav-toggle {
    display: grid;
    place-items: center;
  }
}

@media (max-width: 680px) {
  .section {
    padding: 62px 0;
  }
  .hero {
    padding: 60px 0 70px;
  }
  .services-grid,
  .process-grid,
  .values-grid,
  .form-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .stats > div {
    padding: 24px 14px;
  }
  .stats b {
    font-size: 28px;
  }
  .hero-highlights {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .topbar-left span:nth-child(n + 2) {
    display: none;
  }
  .header .wrap {
    height: 62px;
    gap: 10px;
  }
  .header .brand {
    gap: 9px;
  }
  .brand-mark {
    width: 34px;
    height: 34px;
    font-size: 16px;
    border-radius: 9px;
  }
  .brand-text strong {
    font-size: 14px;
    letter-spacing: 0;
  }
  .brand-text small {
    display: none;
  }
  .form-card {
    padding: 22px;
  }
  .hero-card {
    padding: 22px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
}

/* ================= 公司规模 5 列 ================= */

.stats {
  grid-template-columns: repeat(5, 1fr);
}

.stats > div:nth-child(5) {
  border-right: none;
}

@media (max-width: 960px) {
  .stats {
    grid-template-columns: repeat(3, 1fr);
  }
  .stats > div:nth-child(3) {
    border-right: none;
  }
  .stats > div:nth-child(n + 4) {
    border-top: 1px solid var(--line);
  }
  .stats > div:nth-child(5) {
    border-right: 1px solid var(--line);
  }
}

/* ================= 办公机构 ================= */

.locations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.location-card {
  background: linear-gradient(160deg, var(--brand-900), var(--brand-700));
  color: #fff;
  border-radius: var(--radius);
  padding: 26px 24px;
  position: relative;
  overflow: hidden;
}

.location-card::after {
  content: '';
  position: absolute;
  right: -34px;
  top: -34px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(208, 24, 24, 0.14);
}

.location-card h4 {
  font-size: 18px;
  margin-bottom: 6px;
  color: #fff;
}

.location-card p {
  font-size: 13.8px;
  color: rgba(255, 255, 255, 0.82);
}

.location-tag {
  display: inline-block;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  background: rgba(208, 24, 24, 0.22);
  color: #ffb3b3;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.about-photos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.about-photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.about-photo img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}

.about-photo figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  font-size: 12.4px;
  color: #fff;
  padding: 22px 12px 9px;
  background: linear-gradient(transparent, rgba(11, 37, 69, 0.78));
}

/* ================= 发展历程 ================= */

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 10px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(var(--brand-600), var(--accent));
}

.tl-item {
  position: relative;
  width: 50%;
  padding: 0 34px 34px;
}

.tl-item.left {
  left: 0;
  text-align: right;
}

.tl-item.right {
  left: 50%;
  text-align: left;
}

.tl-dot {
  position: absolute;
  top: 8px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--brand-600);
  box-shadow: 0 0 0 4px rgba(29, 95, 168, 0.14);
}

.tl-item.left .tl-dot {
  right: -7px;
}

.tl-item.right .tl-dot {
  left: -6px;
}

.tl-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  display: inline-block;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
}

.tl-year {
  font-size: 21px;
  font-weight: 800;
  color: var(--brand-700);
  letter-spacing: -0.01em;
}

.tl-tag {
  display: inline-block;
  margin-left: 10px;
  font-size: 11.5px;
  background: var(--accent-soft);
  color: #9a6f1d;
  padding: 2px 9px;
  border-radius: 999px;
  vertical-align: 3px;
}

.tl-card h4 {
  margin: 8px 0 6px;
  font-size: 15.6px;
  color: var(--brand-900);
}

.tl-card p {
  font-size: 13.6px;
  color: var(--muted);
  line-height: 1.66;
  margin: 0;
}

/* ================= 组织架构 ================= */

.org-tree {
  overflow-x: auto;
  padding: 6px 2px 18px;
}

.org-tree > .org-branch {
  min-width: max-content;
  margin: 0 auto;
}

/* 顶层两个分支（总经理 / 副董事长）纵向排布，避免整树超宽 */
.org-tree > .org-branch > .org-children {
  flex-direction: column;
  gap: 34px;
  align-items: center;
}

.org-tree > .org-branch > .org-children::before {
  display: none;
}

.org-tree > .org-branch > .org-children > li {
  padding-top: 0;
}

.org-tree > .org-branch > .org-children > li::before {
  display: none;
}

.org-branch {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.org-node {
  background: #fff;
  border: 1.5px solid var(--brand-600);
  color: var(--brand-800);
  border-radius: 10px;
  padding: 8px 13px;
  font-size: 13.2px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}

.org-root .org-node {
  background: linear-gradient(135deg, var(--brand-800), var(--brand-600));
  color: #fff;
  border-color: transparent;
  font-size: 15px;
  padding: 10px 26px;
}

.org-l1 > .org-node {
  border-color: var(--accent);
  color: #7a5510;
  background: #fffdf7;
}

.org-children {
  display: flex;
  gap: 10px;
  padding-top: 22px;
  position: relative;
  list-style: none;
  margin: 0;
  align-items: flex-start;
}

.org-children::before {
  content: '';
  position: absolute;
  top: 0;
  left: 7%;
  right: 7%;
  height: 1.5px;
  background: var(--line);
}

.org-children > li {
  position: relative;
  padding-top: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.org-children > li::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  height: 22px;
  width: 1.5px;
  background: var(--line);
}

.org-children .org-children {
  padding-top: 18px;
}

.org-children .org-children > li {
  padding-top: 18px;
}

.org-children .org-children::before {
  left: 12%;
  right: 12%;
}

/* ================= 一级合伙人 ================= */

.partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.partner-card {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s, box-shadow 0.22s;
}

.partner-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.partner-photo {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--brand-100);
}

.partner-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}

.partner-card figcaption {
  padding: 13px 8px 15px;
  text-align: center;
}

.partner-card figcaption strong {
  display: block;
  font-size: 15.6px;
  color: var(--brand-900);
}

.partner-card figcaption span {
  display: block;
  margin-top: 3px;
  font-size: 12.2px;
  color: var(--muted);
}

/* ================= 仓储履约 ================= */

.warehouse-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
}

.wf-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 88px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 16px 10px 13px;
}

.wf-no {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: grid;
  place-items: center;
}

.wf-name {
  color: #fff;
  font-size: 14.6px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.wf-arrow {
  color: rgba(255, 255, 255, 0.45);
  font-size: 17px;
  padding: 0 2px;
}

.warehouse-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 860px;
  margin: 0 auto;
}

.wh-photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.wh-photo img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.wh-photo figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  font-size: 12.6px;
  color: #fff;
  padding: 24px 14px 10px;
  background: linear-gradient(transparent, rgba(11, 37, 69, 0.8));
}

/* ================= 员工风采 ================= */

/* 瀑布流双列：不同照片数的卡片高度不一致，用 columns 布局
   按列紧凑排列，避免 grid 行对齐产生的空白 */
.gallery-grid {
  columns: 2;
  column-gap: 22px;
}

.gallery-item {
  margin: 0 0 22px;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.gallery-thumbs {
  display: grid;
  gap: 3px;
  cursor: pointer;
}

.gallery-thumbs.g1 {
  grid-template-columns: 1fr;
}

.gallery-thumbs.g2 {
  grid-template-columns: 1fr 1fr;
}

.gallery-thumbs.g3 {
  grid-template-columns: 1fr 1fr; /* 左张大图跨两行，右两张叠放，避免第三列整行留白 */
}

.gallery-thumbs img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s, transform 0.25s;
}

.gallery-thumbs.g3 img:first-child {
  grid-row: span 2;
  height: 423px;
}

.gallery-thumbs img:hover {
  opacity: 0.92;
  transform: scale(1.015);
}

.gallery-item figcaption {
  padding: 13px 18px 15px;
  font-size: 14.4px;
  font-weight: 600;
  color: var(--brand-900);
  border-top: 1px solid var(--line);
}

/* ================= 灯箱 ================= */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8, 20, 38, 0.92);
  display: grid;
  place-items: center;
  padding: 40px 66px;
}

.lightbox[hidden] {
  display: none;
}

/* 可点击放大的照片统一用放大镜光标 */
.gallery-thumbs img,
.about-photo img,
.wh-photo img {
  cursor: zoom-in;
}

.lb-body {
  margin: 0;
  max-width: min(1080px, 92vw);
  text-align: center;
}

.lb-body img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  display: block;
  margin: 0 auto;
}

.lb-body figcaption {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14.6px;
}

.lightbox button {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s;
}

.lightbox button:hover {
  background: rgba(255, 255, 255, 0.24);
}

.lb-close {
  top: 20px;
  right: 20px;
}

.lb-prev {
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
}

.lb-next {
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
}

/* ================= 新板块响应式 ================= */

@media (max-width: 960px) {
  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .about-photos {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .stats > div {
    padding: 22px 10px;
  }
  .locations-grid {
    grid-template-columns: 1fr;
  }
  .timeline::before {
    left: 12px;
  }
  .tl-item.left,
  .tl-item.right {
    width: 100%;
    left: 0;
    text-align: left;
    padding: 0 0 26px 38px;
  }
  .tl-item.left .tl-dot,
  .tl-item.right .tl-dot {
    left: 6px;
    right: auto;
  }
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-grid {
    columns: 1;
  }
  .gallery-thumbs img,
  .gallery-thumbs.g3 img:first-child {
    height: 190px;
  }
  .warehouse-photos {
    grid-template-columns: 1fr;
  }
  .wh-photo img {
    height: 200px;
  }
  .wf-arrow {
    display: none;
  }
  .warehouse-flow {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
  .about-photos {
    grid-template-columns: 1fr 1fr;
  }
  .about-photo img {
    height: 130px;
  }
}

/* ==========================================================================
   质感细节 · 文本选中 / 焦点 / 滚动条
   ========================================================================== */

::selection {
  background: rgba(208, 24, 24, 0.16);
  color: var(--brand-900);
}

:focus-visible {
  outline: 2px solid rgba(208, 24, 24, 0.55);
  outline-offset: 2px;
  border-radius: 4px;
}

::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}

::-webkit-scrollbar-track {
  background: var(--bg-soft);
}

::-webkit-scrollbar-thumb {
  background: #c3c9da;
  border-radius: 8px;
  border: 3px solid var(--bg-soft);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--brand-600);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
