/* ==========================================================================
   苏州蔚盛网络科技有限公司 — 企业官网样式系统
   风格：简约大气 / 深蓝主色 / 大留白 / 克制的动效
   ========================================================================== */

:root {
  /* 品牌色 */
  --brand-900: #0a2540;
  --brand-800: #10375c;
  --brand-700: #164a78;
  --brand-600: #1d6096;
  --brand-500: #2b7bb8;
  --brand-400: #5a9fd0;
  --brand-100: #e8f1f8;
  --brand-50: #f4f8fb;

  /* 中性色 */
  --ink-900: #0f1b26;
  --ink-700: #33475a;
  --ink-500: #62788c;
  --ink-400: #8b9dad;
  --ink-300: #c2cdd8;
  --ink-200: #dfe6ed;
  --ink-100: #eef2f6;
  --ink-50: #f7f9fb;
  --white: #ffffff;

  /* 语义色 */
  --success: #1a7f5a;
  --success-bg: #e6f5ef;
  --warning: #a86400;
  --warning-bg: #fdf3e2;
  --danger: #c0392b;
  --danger-bg: #fdecea;
  --accent: #c8912f;

  /* 排版 */
  --font-sans: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* 间距与圆角 */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 27, 38, 0.06);
  --shadow: 0 4px 16px rgba(15, 27, 38, 0.08);
  --shadow-lg: 0 12px 40px rgba(10, 37, 64, 0.14);

  --container: 1200px;
  --header-h: 68px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--brand-600);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--brand-800);
}

h1, h2, h3, h4 {
  color: var(--ink-900);
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--ink-200);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

/* 品牌图形标（使用官方 logo 图形部分） */
.brand-mark {
  width: auto;
  height: 42px;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}

/* 品牌文字块 */
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-name {
  font-size: 16px;
  font-weight: 650;
  color: var(--ink-900);
  letter-spacing: 0.2px;
}

.brand-sub {
  font-size: 11px;
  color: var(--ink-400);
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

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

.nav a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--ink-700);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}

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

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
  padding: 0;
  place-items: center;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.8px;
  background: var(--ink-700);
  border-radius: 2px;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.8px;
  background: var(--ink-700);
  border-radius: 2px;
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 550;
  font-family: inherit;
  line-height: 1.4;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--brand-700);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--brand-800);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(22, 74, 120, 0.24);
}

.btn-outline {
  background: transparent;
  color: var(--brand-700);
  border-color: var(--brand-400);
}

.btn-outline:hover {
  background: var(--brand-50);
  border-color: var(--brand-600);
  color: var(--brand-800);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-700);
  border-color: var(--ink-200);
}

.btn-ghost:hover {
  background: var(--ink-50);
  color: var(--ink-900);
}

.btn-white {
  background: var(--white);
  color: var(--brand-800);
}

.btn-white:hover {
  background: var(--brand-50);
  color: var(--brand-900);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

/* ---------- 页面横幅 ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--brand-900) 0%, var(--brand-700) 55%, var(--brand-600) 100%);
  color: var(--white);
  padding: 84px 0 88px;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(30px, 4.4vw, 46px);
  margin-bottom: 16px;
  font-weight: 650;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  max-width: 660px;
  margin: 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.78);
}

.breadcrumb a:hover {
  color: var(--white);
}

/* ---------- 区块 ---------- */
.section {
  padding: 88px 0;
}

.section-sm {
  padding: 64px 0;
}

.section-alt {
  background: var(--ink-50);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section-head .eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brand-500);
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  margin-bottom: 14px;
}

.section-head p {
  color: var(--ink-500);
  font-size: 16.5px;
  margin: 0;
}

/* ---------- 卡片 ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
}

.card:hover {
  border-color: var(--brand-400);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.grid {
  display: grid;
  gap: 24px;
}

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

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

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

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  background: var(--brand-100);
  color: var(--brand-700);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  flex-shrink: 0;
}

.feature-icon svg {
  width: 26px;
  height: 26px;
}

.card h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.card p {
  color: var(--ink-500);
  font-size: 15px;
  margin: 0;
  line-height: 1.75;
}

/* 能力标签云 */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.tag {
  font-size: 12.5px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--brand-50);
  color: var(--brand-700);
  border: 1px solid var(--brand-100);
  white-space: nowrap;
}

.card:hover .tag {
  background: var(--white);
}

/* ---------- 首页 Hero ---------- */
.hero {
  background: linear-gradient(140deg, #0a2540 0%, #123c63 48%, #1d6096 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding: 104px 0 112px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
}

.hero::after {
  content: '';
  position: absolute;
  width: 620px;
  height: 620px;
  right: -180px;
  top: -220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(90, 159, 208, 0.3), transparent 68%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 26px;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5fd0a0;
  box-shadow: 0 0 0 3px rgba(95, 208, 160, 0.22);
}

/* 徽章内的合作伙伴链接：需与徽章文字同色系并保留下划线提示可点击 */
.hero-badge a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.hero-badge a:hover {
  color: var(--white);
  text-decoration-color: rgba(255, 255, 255, 0.85);
}

.hero h1 {
  color: var(--white);
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 680;
  line-height: 1.22;
  margin-bottom: 22px;
  letter-spacing: -0.02em;
}

.hero h1 .accent {
  color: #8fc4e8;
}

.hero-lead {
  font-size: 17.5px;
  color: rgba(255, 255, 255, 0.84);
  max-width: 560px;
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 52px;
}

/* Hero 侧边数据卡 */
.hero-panel {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-panel-title {
  font-size: 13px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 24px;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px 20px;
}

.hero-stat .num {
  font-size: 34px;
  font-weight: 680;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.hero-stat .num .suffix {
  font-size: 19px;
  font-weight: 550;
  margin-left: 2px;
  color: rgba(255, 255, 255, 0.82);
}

.hero-stat .label {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.66);
}

/* ---------- 数字条 ---------- */
.stat-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--ink-200);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.stat-bar > div {
  background: var(--white);
  padding: 34px 24px;
  text-align: center;
}

.stat-bar .num {
  font-size: 32px;
  font-weight: 680;
  color: var(--brand-700);
  line-height: 1.15;
  margin-bottom: 6px;
}

.stat-bar .label {
  font-size: 14px;
  color: var(--ink-500);
}

/* ---------- 时间轴 ---------- */
.timeline {
  position: relative;
  padding-left: 34px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--brand-400), var(--brand-100));
}

.timeline-item {
  position: relative;
  padding-bottom: 32px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -33px;
  top: 7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--white);
  border: 2.5px solid var(--brand-500);
}

.timeline-year {
  font-size: 20px;
  font-weight: 650;
  color: var(--brand-700);
  margin-bottom: 6px;
}

.timeline-title {
  font-size: 15.5px;
  font-weight: 550;
  color: var(--ink-900);
  margin-bottom: 4px;
}

.timeline-desc {
  font-size: 14.5px;
  color: var(--ink-500);
  margin: 0;
}

/* 倒序时间轴（最新在前）：渐变方向随之反转，视觉上"由深到浅"表示时间推移 */
.timeline-reverse::before {
  background: linear-gradient(180deg, var(--brand-100), var(--brand-400));
}

/* 倒序轴首项为最新节点，节点圆点加重以示强调 */
.timeline-reverse .timeline-item:first-child::before {
  width: 14px;
  height: 14px;
  border-width: 3px;
  background: var(--brand-700);
  box-shadow: 0 0 0 4px rgba(43, 123, 184, 0.14);
}

.timeline-reverse .timeline-item:first-child .timeline-year {
  color: var(--brand-800);
}

/* ---------- 客户案例墙 ---------- */
.case-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 44px;
}

.filter-chip {
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid var(--ink-200);
  background: var(--white);
  color: var(--ink-700);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-chip:hover {
  border-color: var(--brand-400);
  color: var(--brand-700);
  background: var(--brand-50);
}

.filter-chip.active {
  background: var(--brand-700);
  border-color: var(--brand-700);
  color: var(--white);
}

.case-grid {
  columns: 3;
  column-gap: 24px;
}

.case-card {
  break-inside: avoid;
  margin-bottom: 24px;
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: block;
  width: 100%;
  text-align: left;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.case-card:hover {
  border-color: var(--brand-400);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

/* 卡片顶部行业色带 */
.case-cover {
  height: 132px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.case-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 30px 30px;
}

.case-cover .glyph {
  position: relative;
  z-index: 1;
  font-size: 40px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 2px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.case-cover .badge-cat {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  font-size: 12px;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-800);
  font-weight: 600;
}

.case-body {
  padding: 24px 26px 26px;
}

.case-body h3 {
  font-size: 18px;
  margin-bottom: 10px;
  line-height: 1.45;
}

.case-summary {
  font-size: 14.5px;
  color: var(--ink-500);
  line-height: 1.75;
  margin: 0 0 16px;
}

.case-metrics {
  border-top: 1px dashed var(--ink-200);
  padding-top: 14px;
  display: grid;
  gap: 9px;
}

.case-metric {
  display: flex;
  gap: 10px;
  font-size: 13.5px;
  align-items: flex-start;
}

.case-metric .k {
  color: var(--ink-400);
  flex-shrink: 0;
  min-width: 62px;
}

.case-metric .v {
  color: var(--ink-700);
  font-weight: 500;
}

.case-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--ink-100);
}

.case-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.case-arrow {
  color: var(--brand-500);
  flex-shrink: 0;
  transition: transform 0.24s ease;
}

.case-card:hover .case-arrow {
  transform: translateX(4px);
}

/* 案例详情弹窗 */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(10, 37, 64, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 200;
}

.modal-mask.open {
  display: flex;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.modal-head {
  padding: 30px 34px 24px;
  color: var(--white);
  position: relative;
}

.modal-head h2 {
  color: var(--white);
  font-size: 22px;
  margin: 0;
  position: relative;
  z-index: 1;
}

.modal-head .sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
  margin: 8px 0 0;
  position: relative;
  z-index: 1;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.modal-body {
  padding: 30px 34px 34px;
}

.modal-body h4 {
  font-size: 15px;
  color: var(--brand-700);
  margin: 24px 0 10px;
  padding-left: 11px;
  border-left: 3px solid var(--brand-500);
  line-height: 1.4;
}

.modal-body h4:first-child {
  margin-top: 0;
}

.modal-body p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-700);
  margin: 0 0 4px;
}

@media (max-width: 1024px) {
  .case-grid { columns: 2; }
}

@media (max-width: 700px) {
  .case-grid { columns: 1; }
  .modal-body, .modal-head { padding-left: 24px; padding-right: 24px; }
}

/* ---------- 服务客户群（无缝循环滚动） ---------- */
.client-marquee {
  position: relative;
  overflow: hidden;
  /* 左右淡出遮罩 */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.client-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: clientScroll 38s linear infinite;
  will-change: transform;
}

/*
 * 无缝原理：轨道由两个完全相同的 .client-group 组成，
 * 每个 group 内部用 gap 排布，并在末尾补一段等宽 padding，
 * 使两个 group 宽度严格相等 → translateX(-50%) 恰好位移一个 group，首尾严丝合缝。
 */
.client-group {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  flex: 0 0 auto;
}

.client-marquee:hover .client-track {
  animation-play-state: paused;
}

/* 复制一份列表实现无缝衔接 */
.client-item {
  flex: 0 0 auto;
  height: 90px;
  display: grid;
  place-items: center;
  padding: 0 26px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--ink-200);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.client-item:hover {
  border-color: var(--brand-400);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.client-item img {
  height: 52px;
  width: auto;
  /* 需≥最宽横幅 logo 的等比宽度，否则会被限宽压矮、破坏视觉高度一致性 */
  max-width: 270px;
  object-fit: contain;
  display: block;
}

@keyframes clientScroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* 尊重用户的"减少动态效果"偏好：静止展示所有客户 */
@media (prefers-reduced-motion: reduce) {
  .client-track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
    justify-content: center;
  }
  .client-marquee {
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .client-track > .client-track-clone {
    display: none;
  }
}

@media (max-width: 700px) {
  .client-item {
    height: 74px;
    padding: 0 18px;
  }
  .client-item img {
    height: 42px;
    /* 同步放大上限，避免宽幅 logo 在移动端被压矮 */
    max-width: 220px;
  }
  /* 间距必须作用在 group 上；若留在 .client-track 会在两组之间多出间隙，导致 -50% 位移错位 */
  .client-group {
    gap: 18px;
    padding-right: 18px;
  }
}

/* ---------- 表单 ---------- */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 550;
  color: var(--ink-900);
  margin-bottom: 8px;
}

.form-group label .req {
  color: var(--danger);
  margin-left: 3px;
}

.input,
.textarea,
.select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  color: var(--ink-900);
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input::placeholder,
.textarea::placeholder {
  color: var(--ink-400);
}

.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(43, 123, 184, 0.13);
}

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

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2362788c' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 38px;
}

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

.form-hint {
  font-size: 13px;
  color: var(--ink-400);
  margin-top: 6px;
}

.field-error {
  font-size: 13px;
  color: var(--danger);
  margin-top: 6px;
  display: none;
}

.field-error.show {
  display: block;
}

/* 验证码行 */
.code-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
}

/* ---------- 提示条 ---------- */
.alert {
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  margin-bottom: 20px;
  display: none;
  line-height: 1.6;
  border: 1px solid transparent;
}

.alert.show {
  display: block;
}

.alert-error {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: #f5c6c0;
}

.alert-success {
  background: var(--success-bg);
  color: var(--success);
  border-color: #b7e0cd;
}

.alert-info {
  background: var(--brand-50);
  color: var(--brand-700);
  border-color: var(--brand-100);
}

.alert-warning {
  background: var(--warning-bg);
  color: var(--warning);
  border-color: #f0dab0;
}

/* ---------- 文件上传 ---------- */
.upload-box {
  border: 1.5px dashed var(--ink-300);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  background: var(--ink-50);
  cursor: pointer;
  transition: all 0.2s ease;
}

.upload-box:hover {
  border-color: var(--brand-500);
  background: var(--brand-50);
}

.upload-box.has-file {
  border-style: solid;
  border-color: var(--brand-400);
  background: var(--brand-50);
  text-align: left;
}

.upload-box input[type='file'] {
  display: none;
}

.upload-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--white);
  color: var(--brand-600);
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  box-shadow: var(--shadow-sm);
}

.upload-text {
  font-size: 14.5px;
  color: var(--ink-700);
  margin: 0;
}

.upload-meta {
  font-size: 13px;
  color: var(--ink-400);
  margin: 6px 0 0;
}

.file-chip {
  display: flex;
  align-items: center;
  gap: 12px;
}

.file-chip .name {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-900);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- 登录页 ---------- */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}

.auth-aside {
  background: linear-gradient(150deg, #0a2540 0%, #123c63 50%, #1d6096 100%);
  color: var(--white);
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.auth-aside::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 54px 54px;
}

.auth-aside > * {
  position: relative;
  z-index: 1;
}

.auth-aside h2 {
  color: var(--white);
  font-size: 32px;
  margin-bottom: 16px;
  font-weight: 650;
  line-height: 1.35;
}

.auth-aside p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  margin-bottom: 34px;
}

.auth-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}

.auth-points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
}

.auth-points svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 3px;
  color: #8fc4e8;
}

.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 40px;
  background: var(--white);
}

.auth-card {
  width: 100%;
  max-width: 400px;
}

.auth-card h1 {
  font-size: 28px;
  margin-bottom: 8px;
}

.auth-card .sub {
  color: var(--ink-500);
  font-size: 15px;
  margin-bottom: 30px;
}

.tabs {
  display: flex;
  gap: 2px;
  background: var(--ink-100);
  padding: 4px;
  border-radius: var(--radius-sm);
  margin-bottom: 26px;
}

.tabs button {
  flex: 1;
  padding: 9px;
  border: none;
  background: transparent;
  border-radius: 5px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 550;
  color: var(--ink-500);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tabs button.active {
  background: var(--white);
  color: var(--brand-700);
  box-shadow: var(--shadow-sm);
}

.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink-400);
  font-size: 13px;
  margin: 24px 0;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--ink-200);
}

.link-btn {
  background: none;
  border: none;
  color: var(--brand-600);
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  padding: 0;
}

.link-btn:hover {
  color: var(--brand-800);
  text-decoration: underline;
}

/* ---------- 用户中心 ---------- */
.dash {
  min-height: 100vh;
  background: var(--ink-50);
}

.dash-header {
  background: var(--white);
  border-bottom: 1px solid var(--ink-200);
  position: sticky;
  top: 0;
  z-index: 50;
}

.dash-header .header-inner {
  height: 62px;
}

/* 工作台头部更紧凑，logo 相应缩小 */
.dash-header .brand-mark {
  height: 36px;
  width: auto;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 14px 5px 5px;
  border: 1px solid var(--ink-200);
  border-radius: 999px;
  background: var(--white);
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-500));
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-chip .name {
  font-size: 14px;
  font-weight: 550;
  color: var(--ink-900);
}

.dash-body {
  padding: 36px 0 64px;
}

.dash-greeting {
  margin-bottom: 28px;
}

.dash-greeting h1 {
  font-size: 25px;
  margin-bottom: 6px;
}

.dash-greeting p {
  color: var(--ink-500);
  font-size: 15px;
  margin: 0;
}

.panel {
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.panel + .panel {
  margin-top: 24px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.panel-head h2 {
  font-size: 19px;
  margin: 0;
}

.inquiry-list {
  display: grid;
  gap: 14px;
}

.inquiry-item {
  border: 1px solid var(--ink-200);
  border-radius: var(--radius);
  padding: 18px 20px;
  background: var(--white);
  transition: border-color 0.2s ease;
}

.inquiry-item:hover {
  border-color: var(--brand-300, var(--brand-400));
}

.inquiry-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.inquiry-subject {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink-900);
}

.inquiry-meta {
  font-size: 13px;
  color: var(--ink-400);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.inquiry-msg {
  font-size: 14.5px;
  color: var(--ink-500);
  line-height: 1.7;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.badge {
  font-size: 12px;
  padding: 4px 11px;
  border-radius: 999px;
  font-weight: 550;
  white-space: nowrap;
}

.badge-pending {
  background: var(--warning-bg);
  color: var(--warning);
}

.badge-processing {
  background: var(--brand-100);
  color: var(--brand-700);
}

.badge-done {
  background: var(--success-bg);
  color: var(--success);
}

.empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--ink-400);
}

.empty svg {
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  color: var(--ink-300);
  display: block;
}

.empty p {
  font-size: 14.5px;
  margin: 0;
}

/* ---------- 联系信息 ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  padding: 30px;
  text-align: center;
  transition: all 0.28s ease;
}

.contact-card:hover {
  border-color: var(--brand-400);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.contact-card .feature-icon {
  margin: 0 auto 20px;
}

.contact-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.contact-card .value {
  font-size: 15px;
  color: var(--ink-700);
  margin: 0;
  word-break: break-all;
}

.contact-card .value a {
  color: var(--brand-600);
}

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

/* ---------- CTA ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--brand-800), var(--brand-600));
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}

.cta-band h2 {
  color: var(--white);
  font-size: clamp(23px, 3vw, 31px);
  margin-bottom: 12px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  max-width: 560px;
  margin: 0 auto 28px;
}

.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--brand-900);
  color: rgba(255, 255, 255, 0.66);
  padding: 60px 0 0;
  font-size: 14.5px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 44px;
  padding-bottom: 44px;
}

.site-footer h4 {
  color: var(--white);
  font-size: 15px;
  margin-bottom: 18px;
  font-weight: 600;
}

.site-footer p {
  line-height: 1.85;
  margin-bottom: 12px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 11px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.66);
  font-size: 14.5px;
}

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

.footer-contact li {
  margin-bottom: 11px;
  line-height: 1.7;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.5);
}

/* 深色底上的备案号链接：需单独提亮，否则会继承低对比度灰字 */
.footer-bottom a,
.auth-aside a {
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.2s ease;
}

.footer-bottom a:hover,
.auth-aside a:hover {
  color: var(--white);
}

/* ---------- 加载态 ---------- */
.loading {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: -3px;
}

.btn-ghost .loading,
.btn-outline .loading {
  border-color: rgba(22, 74, 120, 0.3);
  border-top-color: var(--brand-700);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.skeleton {
  background: linear-gradient(90deg, var(--ink-100) 25%, var(--ink-50) 50%, var(--ink-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---------- 滚动进场动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  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-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-panel { max-width: 520px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .auth-page { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
}

@media (max-width: 860px) {
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--ink-200);
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    gap: 2px;
    box-shadow: var(--shadow-lg);
  }

  .nav.open { display: flex; }

  .nav a { padding: 12px 14px; }

  .nav-toggle { display: grid; }

  .header-actions .btn-outline { display: none; }

  .grid-3,
  .grid-2,
  .contact-grid,
  .stat-bar {
    grid-template-columns: 1fr;
  }

  .split { grid-template-columns: 1fr; gap: 36px; }

  .form-row { grid-template-columns: 1fr; gap: 0; }

  .section { padding: 64px 0; }

  .section-sm { padding: 48px 0; }

  .page-hero { padding: 56px 0 60px; }

  .hero { padding: 72px 0 78px; }

  .hero-stats { grid-template-columns: 1fr 1fr; }

  .footer-grid { grid-template-columns: 1fr; }

  .auth-main { padding: 40px 22px; }
}
/* ---------- 滚动动画兜底 ----------
   .reveal 默认 opacity:0，由 assets/ui.js 的 setupReveal() 添加 .visible。
   若该 JS 因故未加载（如网络中断、缓存过期），整页会大面积空白。
   下面的 no-js 类用于在 <html> 上做兜底：html.no-js .reveal 直接可见。
   （由 ui.js 尽早移除 no-js，故正常用户仍享有淡入动画） */
html.no-js .reveal {
  opacity: 1 !important;
  transform: none !important;
}
