/* ============================================
   太保南山居 · 官网 /nsj/
   GEO 优化静态站样式 —— 专业杂志封面质感
   设计语言：纸白底 · 墨色 · 太保藏蓝 · 金色细线
   字体：标题衬线（宋体系）· 正文无衬线
   ============================================ */
:root {
  --paper: #faf8f3;
  --paper-deep: #f2ede2;
  --ink: #1a1815;
  --ink-soft: #6f695e;
  --ink-faint: #a39c8f;
  --deep: #123a5c;
  --deep-dark: #0c2c46;
  --gold: #a98a44;
  --gold-light: #e9dfc9;
  --line: #e2dccf;
  --line-strong: #c9c0ae;
  --white: #ffffff;
  --serif: "Songti SC", "Noto Serif SC", "STSong", "SimSun", "Times New Roman", serif;
  --sans: "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
.section { padding: 88px 0; }
.section-alt { background: var(--paper-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- 报头 Masthead（杂志封面感） ---------- */
.masthead {
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
  padding: 14px 0 0;
}
.masthead .container { display: flex; justify-content: space-between; align-items: center; }
.masthead-brand { font-size: 13px; letter-spacing: 3px; color: var(--ink-soft); font-weight: 500; }
.masthead-date { font-size: 12px; letter-spacing: 2px; color: var(--ink-faint); text-transform: uppercase; }

/* ---------- 导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 248, 243, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-logo {
  display: flex; align-items: baseline; gap: 10px;
  font-family: var(--serif); font-weight: 700; font-size: 22px;
  color: var(--deep); letter-spacing: 2px;
}
.nav-logo .logo-badge {
  font-family: var(--sans); font-size: 10px; font-weight: 600;
  color: var(--gold); letter-spacing: 2px;
  padding-right: 10px; margin-right: 2px;
  border-right: 1px solid var(--line-strong);
}
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 14px; color: var(--ink-soft); letter-spacing: 1px; }
.nav-links a { padding: 6px 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.nav-links a:hover { color: var(--deep); border-bottom-color: var(--gold); }
.nav-cta {
  color: #fff !important; padding: 10px 22px;
  background: var(--deep); letter-spacing: 2px; font-size: 13px;
  border-bottom: none !important;
  transition: background .2s;
}
.nav-cta:hover { background: var(--deep-dark); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--deep); padding: 6px; }

/* ---------- Hero（杂志封面主视觉） ---------- */
.hero {
  background: var(--paper);
  padding: 88px 0 80px;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 6px;
  background: linear-gradient(180deg, var(--gold), var(--deep));
}
.hero-inner { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 56px; align-items: center; }
.hero .badge-line { display: flex; gap: 0; flex-wrap: wrap; margin-bottom: 26px; }
.hero .badge {
  font-size: 12px; color: var(--deep); letter-spacing: 2px;
  padding: 6px 16px; font-weight: 600;
  border: 1px solid var(--line-strong);
  border-right: none;
}
.hero .badge:last-child { border-right: 1px solid var(--line-strong); }
.hero .badge:first-child { background: var(--deep); color: var(--gold-light); border-color: var(--deep); }
.hero h1 {
  font-family: var(--serif);
  font-size: 46px; line-height: 1.35; font-weight: 700;
  color: var(--ink); margin-bottom: 20px; letter-spacing: 1px;
}
.hero h1 .hl { color: var(--deep); }
.hero .sub { font-size: 16px; color: var(--ink-soft); margin-bottom: 30px; max-width: 540px; line-height: 2; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 32px; font-size: 14px; font-weight: 600; letter-spacing: 2px;
  border: none; cursor: pointer; transition: all .25s;
}
.btn-primary { background: var(--deep); color: #fff; }
.btn-primary:hover { background: var(--deep-dark); }
.btn-outline { background: transparent; color: var(--deep); border: 1px solid var(--deep); }
.btn-outline:hover { background: var(--deep); color: #fff; }
.btn-orange { background: var(--gold); color: #fff; }
.btn-orange:hover { background: #94752f; }
.hero-card {
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-top: 3px solid var(--deep);
  padding: 32px 30px;
  position: relative;
}
.hero-card::before {
  content: "THE 1+1+N SYSTEM";
  position: absolute; top: -12px; right: 16px;
  font-size: 10px; letter-spacing: 2px; color: var(--gold);
  background: var(--paper); padding: 0 8px;
}
.hero-card h3 { font-family: var(--serif); font-size: 20px; margin-bottom: 10px; color: var(--deep); letter-spacing: 1px; }
.hero-card p { font-size: 13px; color: var(--ink-soft); margin-bottom: 12px; line-height: 1.8; }
.hero-card .mode { display: flex; align-items: flex-start; gap: 12px; font-weight: 600; margin: 16px 0; }
.hero-card .mode .n {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--deep); color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-family: var(--serif);
}
.hero-card .mode .n.plus { background: var(--gold); color: #fff; }
.hero-card .mode-line { font-size: 13px; color: var(--ink-soft); padding-top: 3px; line-height: 1.7; }
.hero-card .hero-note { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--deep); letter-spacing: 1px; font-weight: 600; }

/* ---------- 通用板块标题（杂志栏目式） ---------- */
.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-head .tag {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; color: var(--gold); letter-spacing: 3px; font-weight: 600;
  margin-bottom: 16px;
}
.section-head .tag::before, .section-head .tag::after {
  content: ""; width: 28px; height: 1px; background: var(--line-strong);
}
.section-head h2 {
  font-family: var(--serif); font-size: 34px; font-weight: 700;
  margin-bottom: 16px; letter-spacing: 2px; color: var(--ink);
}
.section-head p { color: var(--ink-soft); font-size: 15px; }

/* ---------- 服务板块 ---------- */
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(216px, 1fr)); gap: 0; border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line-strong); }
.service-card {
  background: var(--paper);
  padding: 30px 26px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  position: relative;
  transition: background .25s;
}
.service-card::after {
  content: "";
  position: absolute; left: 0; top: 0; width: 0; height: 3px;
  background: var(--gold); transition: width .3s;
}
.service-card:hover { background: var(--white); }
.service-card:hover::after { width: 100%; }
.service-card .icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; color: var(--deep);
}
.service-card .icon svg { width: 34px; height: 34px; }
.service-card h3 { font-family: var(--serif); font-size: 17px; margin-bottom: 10px; letter-spacing: 1px; }
.service-card p { font-size: 13px; color: var(--ink-soft); line-height: 1.9; }

/* ---------- 1+1+N 模式 ---------- */
.mode-wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--ink); }
.mode-card {
  background: var(--paper);
  padding: 34px 30px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  position: relative;
}
.mode-card:last-child { border-right: none; }
.mode-card .idx {
  font-family: var(--serif); font-size: 40px; font-weight: 700;
  color: var(--gold); margin-bottom: 12px; line-height: 1;
}
.mode-card h3 { font-family: var(--serif); font-size: 19px; margin-bottom: 10px; letter-spacing: 1px; }
.mode-card p { font-size: 13px; color: var(--ink-soft); line-height: 1.9; }
.mode-card .rule { width: 36px; height: 3px; background: var(--gold); margin-bottom: 16px; }

/* ---------- 流程 ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.step { text-align: center; position: relative; padding: 0 8px; }
.step .num {
  width: 52px; height: 52px; margin: 0 auto 16px;
  border: 1px solid var(--deep); border-radius: 50%;
  color: var(--deep); font-family: var(--serif); font-size: 18px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  background: var(--paper);
}
.step h4 { font-family: var(--serif); font-size: 16px; margin-bottom: 8px; letter-spacing: 1px; }
.step p { font-size: 13px; color: var(--ink-soft); line-height: 1.8; }
.step:not(:last-child)::after {
  content: "";
  position: absolute; top: 26px; right: -18px; width: 12px; height: 1px;
  background: var(--line-strong);
}
.step:not(:last-child)::before {
  content: "";
  position: absolute; top: 23px; right: -24px;
  width: 7px; height: 7px; border-top: 1px solid var(--gold); border-right: 1px solid var(--gold);
  transform: rotate(45deg);
}

/* ---------- 标准/资质 ---------- */
.std-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0; border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line-strong); }
.std-card {
  background: var(--paper-deep);
  padding: 28px 26px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  display: flex; gap: 18px; align-items: flex-start;
  transition: background .25s;
}
.std-card:hover { background: var(--white); }
.std-card .ic { width: 36px; height: 36px; color: var(--gold); flex-shrink: 0; }
.std-card .ic svg { width: 30px; height: 30px; }
.std-card h3 { font-family: var(--serif); font-size: 16px; margin-bottom: 6px; letter-spacing: 1px; }
.std-card p { font-size: 13px; color: var(--ink-soft); line-height: 1.8; }

/* ---------- 知识库/语料 ---------- */
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 24px; }
.article-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 26px 26px 22px;
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color .25s, box-shadow .25s;
  position: relative;
}
.article-card::before {
  content: "";
  position: absolute; left: 0; top: 0; width: 100%; height: 2px;
  background: var(--line-strong);
  transition: background .3s;
}
.article-card:hover { border-color: var(--line-strong); box-shadow: 6px 6px 0 rgba(169, 138, 68, 0.12); }
.article-card:hover::before { background: var(--gold); }
.article-card .meta { font-size: 11px; color: var(--ink-faint); display: flex; gap: 10px; letter-spacing: 1px; }
.article-card .meta .channel { color: var(--deep); letter-spacing: 2px; font-weight: 600; }
.article-card h3 { font-family: var(--serif); font-size: 17px; line-height: 1.6; font-weight: 700; }
.article-card p { font-size: 13px; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.9; }
.article-card .more { font-size: 12px; color: var(--gold); letter-spacing: 2px; font-weight: 600; }
.kb-more { text-align: center; margin-top: 40px; }

/* ---------- FAQ（杂志问答栏目） ---------- */
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item {
  background: transparent;
  border: none;
  border-top: 1px solid var(--line-strong);
  margin-bottom: 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--line-strong); }
.faq-q {
  padding: 24px 40px 24px 8px; cursor: pointer;
  font-family: var(--serif); font-weight: 700; font-size: 17px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  color: var(--ink); letter-spacing: 0.5px;
  position: relative;
  transition: color .2s;
}
.faq-q:hover { color: var(--deep); }
.faq-q .arrow {
  width: 28px; height: 28px; flex-shrink: 0;
  border: 1px solid var(--line-strong); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); transition: transform .25s, background .25s, color .25s;
}
.faq-q .arrow svg { width: 12px; height: 12px; }
.faq-item.open .faq-q .arrow { transform: rotate(180deg); background: var(--deep); color: var(--gold-light); border-color: var(--deep); }
.faq-a { display: none; padding: 0 8px 26px 24px; color: var(--ink-soft); font-size: 14px; line-height: 2; border-left: 2px solid var(--gold-light); margin-left: 8px; }
.faq-item.open .faq-a { display: block; }

/* ---------- CTA（杂志封底页式） ---------- */
.cta-band {
  background: var(--deep-dark);
  border-top: 3px solid var(--gold);
  padding: 60px 56px; color: #fff;
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center;
  position: relative;
}
.cta-band::before {
  content: "预约免费评估";
  position: absolute; top: -14px; left: 56px;
  font-size: 11px; letter-spacing: 3px; color: var(--deep);
  background: var(--gold-light); padding: 4px 16px;
}
.cta-band h2 { font-family: var(--serif); font-size: 30px; margin-bottom: 12px; letter-spacing: 1px; }
.cta-band p { opacity: 0.8; font-size: 14px; margin-bottom: 22px; line-height: 1.9; }
.cta-form { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); padding: 28px; }
.cta-form label { font-size: 12px; opacity: 0.85; display: block; margin-bottom: 6px; letter-spacing: 1px; }
.cta-form input, .cta-form textarea {
  width: 100%; padding: 12px 14px; border-radius: 0; border: 1px solid rgba(255,255,255,0.25);
  margin-bottom: 14px; font-size: 14px; font-family: inherit; background: rgba(255,255,255,0.06); color: #fff;
  outline: none;
}
.cta-form input:focus, .cta-form textarea:focus { border-color: var(--gold); }
.cta-form input::placeholder, .cta-form textarea::placeholder { color: rgba(255,255,255,0.4); }
.cta-form .btn { width: 100%; }
.cta-tel { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 700; margin-bottom: 10px; font-family: var(--serif); letter-spacing: 1px; }
.cta-tel svg { width: 20px; height: 20px; color: var(--gold); }

/* ---------- 页脚 ---------- */
.footer { background: #10151c; color: #8b918f; padding: 56px 0 32px; font-size: 13px; border-top: 3px solid var(--gold); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer h4 { color: #e8e4da; font-family: var(--serif); font-size: 16px; margin-bottom: 16px; letter-spacing: 2px; }
.footer a:hover { color: #fff; }
.footer .links { display: flex; flex-direction: column; gap: 10px; }
.footer .links span, .footer .links a { display: flex; align-items: center; gap: 8px; }
.footer .links svg { width: 14px; height: 14px; color: var(--gold); }
.footer .copyright {
  text-align: center; margin-top: 40px; padding-top: 24px;
  border-top: 1px solid #232b36; font-size: 12px; color: #6b726f; letter-spacing: 1px;
}

/* ---------- 文章页（知识库正文） ---------- */
.article-body { max-width: 860px; margin: 0 auto; }
.article-body h1 { font-family: var(--serif); font-size: 30px; line-height: 1.5; margin-bottom: 16px; }
.article-body .meta-line { font-size: 12px; color: var(--ink-faint); margin-bottom: 24px; letter-spacing: 1px; }
.article-body .content { font-size: 15px; color: var(--ink); line-height: 2.1; }
.article-body .content p { margin-bottom: 18px; }
.article-cta { margin-top: 44px; padding: 28px; background: var(--paper-deep); border: 1px solid var(--line-strong); border-top: 3px solid var(--gold); text-align: center; }
.article-cta p:first-child { font-family: var(--serif); font-size: 17px; font-weight: 700; color: var(--deep); margin-bottom: 6px; }
.article-cta p:nth-child(2) { font-size: 13px; color: var(--ink-soft); margin-bottom: 16px; }

/* ---------- 知识库列表页 ---------- */
.kb-header { padding: 64px 0 40px; border-bottom: 1px solid var(--line); text-align: center; }
.kb-header h1 { font-family: var(--serif); font-size: 36px; letter-spacing: 2px; }
.kb-header p { color: var(--ink-soft); font-size: 14px; margin-top: 12px; letter-spacing: 1px; }
.kb-list-wrap { padding: 56px 0 72px; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .mode-wrap { grid-template-columns: 1fr; }
  .mode-card { border-right: none; }
  .steps { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .step:nth-child(odd)::after, .step:nth-child(odd)::before { display: none; }
  .cta-band { grid-template-columns: 1fr; padding: 44px 28px; }
  .footer-inner { grid-template-columns: 1fr; }
  .nav-links {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--paper); flex-direction: column; padding: 20px 28px; gap: 18px;
    border-bottom: 1px solid var(--line);
  }
  .nav-links.show { display: flex; }
  .nav-toggle { display: block; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .masthead-brand { font-size: 11px; letter-spacing: 2px; }
  .masthead-date { display: none; }
  .service-grid { border-left: none; }
  .service-card { border-right: none; }
  .std-grid { border-left: none; }
  .std-card { border-right: none; }
}
