/* ===========================================================
   思维盛官网 — 设计 Token（改这里即可整站换肤）
   =========================================================== */
:root {
  /* 品牌色 */
  --brand: #800020;          /* 主色：深酒红（沿用原站） */
  --brand-dark: #5e0018;     /* 主色深：hover / 页脚 */
  --brand-light: #af6172;    /* 辅色：原站点缀色 */
  --brand-soft: #f6eef0;     /* 主色 8% 浅底，用于浅色区块 */

  /* 中性色 */
  --ink: #1b1b1f;            /* 标题 */
  --text: #4a4a52;           /* 正文 */
  --muted: #8a8a93;          /* 辅助文字 */
  --line: #e7e5e8;           /* 分隔线 */
  --bg: #ffffff;             /* 页面底 */
  --bg-soft: #faf8f9;        /* 浅色区块底 */

  /* 字体 */
  --font-sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", system-ui, sans-serif;
  --fs-h1: clamp(32px, 5.2vw, 60px);
  --fs-h2: clamp(24px, 3.2vw, 38px);
  --fs-h3: clamp(18px, 2vw, 22px);
  --fs-body: clamp(15px, 1.1vw, 17px);

  /* 间距与圆角 */
  --space-section: clamp(56px, 7vw, 104px);
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 6px 24px rgba(0, 0, 0, .07);
  --shadow-hover: 0 14px 34px rgba(128, 0, 32, .16);

  /* 断点（JS/CSS 共用语义） */
  --bp-tablet: 1024px;
  --bp-mobile: 768px;
}

/* ===================== 基础 ===================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); margin: 0 0 .5em; line-height: 1.3; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(1200px, 92vw); margin: 0 auto; }

/* ===================== 导航 ===================== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { width: min(1200px, 92vw); margin: 0 auto; height: 68px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--brand); font-size: 20px; }
.brand img { height: 30px; width: auto; }
.nav-menu { display: flex; align-items: center; gap: 28px; }
.nav-menu a { font-size: 15px; color: var(--text); }
.nav-menu a:hover { color: var(--brand); }
.nav-cta {
  background: var(--brand); color: #fff !important;
  padding: 8px 16px; border-radius: 999px; font-size: 14px;
}
.nav-cta:hover { background: var(--brand-dark); }
.nav-toggle { display: none; font-size: 24px; background: none; border: 0; color: var(--brand); cursor: pointer; }

/* ===================== 首屏 ===================== */
.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-mask { position: absolute; inset: 0; background: linear-gradient(105deg, rgba(128,0,32,.94) 0%, rgba(94,0,24,.82) 45%, rgba(128,0,32,.45) 100%); }
.hero-inner { position: relative; z-index: 2; width: min(1200px, 92vw); margin: 0 auto; color: #fff; padding: 96px 0; }
.hero-eyebrow { letter-spacing: .28em; font-size: 13px; opacity: .8; margin-bottom: 14px; }
.hero h1 { color: #fff; font-size: var(--fs-h1); letter-spacing: .04em; margin-bottom: 20px; }
.hero-sub { max-width: 560px; font-size: clamp(15px, 1.3vw, 18px); opacity: .92; margin-bottom: 32px; }

.btn { display: inline-block; padding: 13px 30px; border-radius: 999px; font-size: 15px; transition: .25s; }
.btn-primary { background: #fff; color: var(--brand); font-weight: 600; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* ===================== 通用区块 ===================== */
.section { padding: var(--space-section) 0; }
.section-soft { background: var(--bg-soft); }
.sec-head { margin-bottom: 44px; }
.sec-tag {
  display: inline-block; color: var(--brand); font-size: 13px; letter-spacing: .2em;
  border-left: 3px solid var(--brand); padding-left: 10px; margin-bottom: 12px;
}
.sec-head h2 { font-size: var(--fs-h2); max-width: 720px; }
.lead { font-size: clamp(15px, 1.2vw, 17px); color: var(--text); max-width: 860px; margin-bottom: 48px; }

/* ===================== 栅格 ===================== */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* ===================== 服务卡片 ===================== */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; transition: .3s; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: transparent; }
.card-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--brand-soft); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 24px 24px 28px; }
.card-body h3 { font-size: var(--fs-h3); }
.card-body p { font-size: 15px; color: var(--text); margin-bottom: 14px; }
.more { color: var(--brand); font-size: 14px; font-weight: 600; }

/* ===================== 客户名录 ===================== */
.client-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 40px; }
.client-group { border-top: 2px solid var(--brand); padding-top: 14px; }
.client-group h4 { font-size: 16px; color: var(--brand); margin-bottom: 6px; }
.client-group p { font-size: 14px; color: var(--text); margin: 0; line-height: 1.9; }

/* ===================== 团队 ===================== */
.team { gap: 24px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.member { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 600; margin-bottom: 16px;
}
.member h4 { font-size: 17px; margin-bottom: 2px; }
.member .role { display: block; color: var(--brand); font-size: 13px; margin-bottom: 10px; }
.member p { font-size: 14px; margin: 0; }

/* ===================== 二维码 ===================== */
.qr-grid { max-width: 720px; }
.qr-card { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px 24px; }
.qr-card img { width: 180px; margin: 0 auto 18px; }
.qr-card h4 { font-size: 18px; }
.qr-card p { font-size: 14px; margin: 0; }

/* ===================== 联系 ===================== */
.contact { background: var(--brand); color: #fff; }
.contact .sec-tag { color: #fff; border-color: rgba(255,255,255,.6); }
.contact h2 { color: #fff; }
.contact-items { gap: 32px; }
.contact-item .label { display: block; font-size: 13px; letter-spacing: .18em; opacity: .75; margin-bottom: 8px; }
.contact-item .value { color: #fff; font-size: clamp(16px, 1.4vw, 19px); margin: 0; }

/* ===================== 页脚 ===================== */
.footer { background: var(--brand-dark); color: rgba(255,255,255,.72); padding: 36px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-logo { height: 26px; filter: brightness(0) invert(1); opacity: .9; }
.footer p { margin: 0; font-size: 13px; }

/* ===================== 响应式：平板 ≤1024px ===================== */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .client-groups { grid-template-columns: 1fr; }
}

/* ===================== 响应式：手机 ≤768px ===================== */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 4vw 20px; gap: 0; display: none;
    box-shadow: var(--shadow);
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav-cta { text-align: center; margin-top: 14px; border-bottom: 0; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero { min-height: 76vh; }
  .hero-inner { padding: 72px 0; }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ===================== 导航下拉（三大服务） ===================== */
.nav-drop { position: relative; }
.nav-drop-panel {
  position: absolute; top: 100%; left: -16px; z-index: 20;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); min-width: 236px; padding: 8px 0; display: none;
}
.nav-drop:hover .nav-drop-panel { display: block; }
.nav-drop-panel a { display: block; padding: 11px 20px; font-size: 14.5px; white-space: nowrap; }
.nav-drop-panel a:hover { background: var(--brand-soft); color: var(--brand); }
.nav-drop-panel a .d { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* ===================== 二级页：页头 ===================== */
.page-hero {
  position: relative; overflow: hidden; color: #fff; padding: 104px 0 68px;
  background: linear-gradient(118deg, #5e0018 0%, #800020 52%, #af6172 125%);
}
.page-hero::after {
  content: ""; position: absolute; right: -90px; top: -70px;
  width: 360px; height: 360px; border-radius: 50%; background: rgba(255, 255, 255, .07);
}
.page-hero .wrap { position: relative; z-index: 2; }
.crumb { font-size: 13px; color: rgba(255, 255, 255, .74); margin-bottom: 18px; }
.crumb a { color: rgba(255, 255, 255, .92); }
.crumb a:hover { text-decoration: underline; }
.page-hero h1 { color: #fff; font-size: clamp(26px, 3.7vw, 44px); margin-bottom: 16px; }
.page-hero .sub { max-width: 760px; color: rgba(255, 255, 255, .92); font-size: clamp(15px, 1.3vw, 18px); margin: 0; }

/* ===================== 二级页：正文 ===================== */
.svc-lead {
  font-size: clamp(16px, 1.4vw, 19px); color: var(--ink); max-width: 880px;
  border-left: 4px solid var(--brand); padding-left: 20px; margin: 0 0 56px;
}
.svc-block { margin-bottom: clamp(44px, 5vw, 72px); }
.svc-block h2 { font-size: var(--fs-h2); margin-bottom: 16px; }
.svc-block p { max-width: 880px; margin: 0 0 14px; }
.feature-list { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); margin-top: 28px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 24px 26px; }
.feature .num {
  display: inline-flex; width: 34px; height: 34px; border-radius: 50%; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 14px; margin-bottom: 14px;
}
.feature h4 { font-size: 17px; margin-bottom: 8px; }
.feature p { font-size: 14.5px; margin: 0; }

/* 折叠模块（二级页内部并列模块用） */
.accordion { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 28px; }
.accordion details + details { border-top: 1px solid var(--line); }
.accordion summary {
  cursor: pointer; list-style: none; padding: 20px 24px; background: var(--bg-soft);
  font-size: 17px; font-weight: 600; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "＋"; color: var(--brand); font-weight: 700; }
.accordion details[open] summary::after { content: "－"; }
.acc-body { padding: 22px 24px 28px; background: #fff; }
.acc-body h4 { font-size: 16px; color: var(--brand); margin: 18px 0 8px; }
.acc-body h4:first-child { margin-top: 0; }
.acc-body p { font-size: 15px; margin: 0 0 10px; }
.acc-body ul { margin: 0 0 10px; padding-left: 20px; }
.acc-body li { font-size: 15px; margin-bottom: 7px; }

/* 底部服务互链 */
.svc-nav .card { display: block; }
.svc-nav .card.is-current { border-color: var(--brand); box-shadow: var(--shadow-hover); }
.svc-nav .card.is-current .more { color: var(--muted); }

/* ===================== 二级页响应式 ===================== */
@media (max-width: 1024px) {
  .feature-list { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .page-hero { padding: 80px 0 52px; }
  .nav-drop-panel {
    position: static; display: none; min-width: 0; border: 0; box-shadow: none;
    padding: 0 0 0 12px; background: transparent;
  }
  .nav-drop.open .nav-drop-panel { display: block; }
  .nav-drop-panel a { padding: 10px 0; border-bottom: 0; font-size: 15px; }
  .nav-drop-panel a .d { display: inline; margin-left: 6px; }
}
