/* ===== 设计变量：浅灰蓝 + 深靛蓝 + 琥珀橙（与旧版青黑主题完全不同） ===== */
:root {
  --bg: #e8ecf2;
  --surface: #ffffff;
  --surface-alt: #f5f7fa;
  --header: #1a2744;
  --primary: #c45c26;
  --primary-hover: #a34a1c;
  --accent: #2f5aa8;
  --text: #1c2838;
  --text-muted: #5a6b7d;
  --border: #d4dce6;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 2px 12px rgba(26, 39, 68, 0.08);
  --wrap: 1140px;
  --gap: 1.25rem;
  --panel-pad: 1.5rem;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--primary); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* ===== 顶栏 ===== */
.site-header {
  background: var(--header);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo a {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.logo a:hover { color: #f0c9a8; }

.header-cta {
  margin-left: auto;
  padding: 0.45rem 1rem;
  background: var(--primary);
  color: #fff !important;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}
.header-cta:hover { background: var(--primary-hover); color: #fff !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 1px;
}

.site-nav { flex: 1 1 auto; min-width: 0; }

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.5rem;
  justify-content: flex-end;
}

.site-nav a {
  color: rgba(255,255,255,0.88);
  font-size: 0.88rem;
  padding: 0.35rem 0.55rem;
  border-radius: var(--radius-sm);
  display: block;
}
.site-nav a:hover,
.site-nav .z07568this a,
.site-nav li.z07568this a {
  color: #fff;
  background: rgba(196, 92, 38, 0.35);
}

/* ===== 悬浮咨询 ===== */
.floating-consult {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 999;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  text-decoration: none;
}
.floating-consult:hover { background: var(--primary-hover); color: #fff; }

/* ===== 首页 Hero ===== */
.hero {
  background: linear-gradient(135deg, #1a2744 0%, #2f4a7a 55%, #3d5f8f 100%);
  color: #fff;
  padding: 2.5rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.hero-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #f0c9a8;
  margin-bottom: 0.5rem;
}

.hero h1 {
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  line-height: 1.35;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero-lead {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1.25rem;
  max-width: 36em;
}
.hero-lead strong { color: #ffd4b8; font-weight: 600; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
}
.btn-primary {
  background: var(--primary);
  color: #fff !important;
  border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff !important; }
.btn-outline {
  background: transparent;
  color: #fff !important;
  border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); color: #fff !important; }
.btn-block { width: 100%; }

.hero-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.hero-tags li {
  font-size: 0.78rem;
  padding: 0.3rem 0.65rem;
  background: rgba(255,255,255,0.12);
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.2);
}

.hero-visual { position: relative; }

.hero-img {
  width: 100%;
  border-radius: var(--radius);
  border: 3px solid rgba(255,255,255,0.25);
  box-shadow: var(--shadow);
}

.hero-badge {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
}

/* ===== 统计条 ===== */
.stats-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}

.stat-item strong {
  display: block;
  font-size: 1.35rem;
  color: var(--primary);
  line-height: 1.2;
}
.stat-item span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ===== 主布局 ===== */
.page-main { padding: 1.75rem 0 2.5rem; }

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: var(--gap);
  align-items: start;
}

.main-col { min-width: 0; }

/* ===== 面板（统一边框） ===== */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--panel-pad);
  margin-bottom: var(--gap);
  box-shadow: var(--shadow);
}

.panel-alt { background: var(--surface-alt); }

.panel-head {
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.panel-head h2 {
  font-size: 1.25rem;
  color: var(--header);
  margin-bottom: 0.35rem;
}

.panel-head p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ===== 卡片网格 ===== */
.card-grid {
  display: grid;
  gap: 1rem;
}
.card-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.1rem;
  min-width: 0;
}
.card-icon {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--primary);
  background: rgba(196, 92, 38, 0.12);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}
.card h3 {
  font-size: 1rem;
  color: var(--header);
  margin-bottom: 0.45rem;
  line-height: 1.35;
}
.card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.feature-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.1rem;
  min-width: 0;
}
.feature-box h3 {
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.feature-box p { font-size: 0.88rem; color: var(--text-muted); }

.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.quote-card {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin: 0;
  min-width: 0;
}
.quote-card p { font-size: 0.88rem; color: var(--text); margin-bottom: 0.5rem; }
.quote-card cite { font-size: 0.8rem; color: var(--text-muted); font-style: normal; }

.knowledge-list { display: flex; flex-direction: column; gap: 0.85rem; }
.knowledge-item {
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.knowledge-item h3 {
  font-size: 0.98rem;
  color: var(--header);
  margin-bottom: 0.4rem;
}
.knowledge-item p { font-size: 0.88rem; color: var(--text-muted); }

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  counter-reset: none;
}
.steps li {
  text-align: center;
  padding: 1rem 0.65rem;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  min-width: 0;
}
.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 0 auto 0.5rem;
  background: var(--primary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 50%;
}
.steps strong { display: block; font-size: 0.88rem; color: var(--header); margin-bottom: 0.25rem; }
.steps p { font-size: 0.78rem; color: var(--text-muted); }

.faq-list dt {
  font-weight: 600;
  color: var(--header);
  font-size: 0.95rem;
  margin-top: 0.85rem;
  padding: 0.65rem 0.85rem;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.faq-list dt:first-child { margin-top: 0; }
.faq-list dd {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  margin-bottom: 0.5rem;
}

/* ===== 首页文章 ===== */
.home-article-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.85rem;
}
.home-article-card {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  min-width: 0;
}
.home-article-thumb {
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #dde3eb;
}
.home-article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-article-title {
  font-size: 0.82rem;
  padding: 0.5rem;
  line-height: 1.35;
  font-weight: 600;
}
.home-article-title a { color: var(--text); }
.home-article-title a:hover { color: var(--primary); }
.home-article-card .intro,
.home-article-card .home-article-desc { display: none !important; }

/* ===== 表单 ===== */
.contact-form { max-width: 520px; }
.form-row { margin-bottom: 0.85rem; }
.form-row label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--header);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 90, 168, 0.15);
}

.panel-trust {
  background: linear-gradient(90deg, #1a2744, #2f5aa8);
  color: rgba(255,255,255,0.92);
  border: none;
  font-size: 0.9rem;
}
.panel-trust strong { color: #ffd4b8; }

/* ===== 首页侧栏 ===== */
.sidebar { min-width: 0; }

.side-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
  margin-bottom: var(--gap);
  box-shadow: var(--shadow);
}
.side-panel h3 {
  font-size: 0.95rem;
  color: var(--header);
  margin-bottom: 0.65rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.side-links { list-style: none; }
.side-links a {
  display: block;
  padding: 0.4rem 0;
  font-size: 0.88rem;
  color: var(--text);
  border-bottom: 1px dashed var(--border);
}
.side-links li:last-child a { border-bottom: none; }
.side-highlight {
  background: var(--surface-alt);
  border-left: 4px solid var(--primary);
}
.side-highlight p { font-size: 0.88rem; color: var(--text-muted); }

/* 列表/内页侧栏 */
.sidebar-articles {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: var(--shadow);
  position: sticky;
  top: 5rem;
}
.sidebar-articles h3 {
  font-size: 0.95rem;
  color: var(--header);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.sidebar-arc-list {
  list-style: none;
  max-height: 70vh;
  overflow-y: auto;
}
.sidebar-arc-item { margin-bottom: 0.55rem; }
.sidebar-arc-item a {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.82rem;
  color: var(--text);
  min-width: 0;
}
.sidebar-arc-item a:hover { color: var(--primary); }
.sidebar-arc-thumb {
  flex: 0 0 56px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.sidebar-arc-thumb img {
  width: 56px;
  height: 42px;
  object-fit: cover;
}
.sidebar-arc-title {
  flex: 1;
  min-width: 0;
  line-height: 1.35;
  word-break: break-word;
}

/* ===== 内页横幅 ===== */
.page-banner {
  background: linear-gradient(90deg, #1a2744, #3d5f8f);
  color: #fff;
  padding: 1.75rem 0;
}
.page-banner h1 {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  margin-bottom: 0.35rem;
}
.page-breadcrumb { font-size: 0.88rem; opacity: 0.9; }
.page-breadcrumb a { color: #ffd4b8; }

/* ===== 列表页 ===== */
.list-section { margin-bottom: 0; }

.article-list { list-style: none; }

.list-item {
  display: flex;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
  min-width: 0;
}
.list-item:last-child { border-bottom: none; }

.list-thumb {
  flex: 0 0 180px;
  width: 180px;
  max-width: 40%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-alt);
}
.list-thumb img {
  width: 100%;
  height: auto;
  min-height: 100px;
  object-fit: cover;
}

.list-body { flex: 1; min-width: 0; }

.list-title {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  line-height: 1.4;
}
.list-title a { color: var(--header); font-weight: 600; }
.list-title a:hover { color: var(--primary); }

.list-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}
.list-intro {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  word-break: break-word;
}

.pagebar {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.pagebar .pagelist {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  list-style: none;
}
.pagebar a,
.pagebar span {
  display: inline-block;
  padding: 0.35rem 0.65rem;
  font-size: 0.88rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  background: var(--surface-alt);
}
.pagebar a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff !important;
}

/* ===== 内容页 ===== */
.article-header h1 {
  font-size: clamp(1.15rem, 2.8vw, 1.45rem);
  color: var(--header);
  line-height: 1.4;
  margin-bottom: 0.65rem;
  word-break: break-word;
}
.article-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.article-litpic {
  margin-bottom: 1rem;
  text-align: center;
}
.article-litpic img {
  max-width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.article-body {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text);
  word-break: break-word;
}
.article-body img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.article-images figure { margin: 1rem 0; text-align: center; }
.article-images figcaption { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.35rem; }

.z07568meta-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1rem 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.z07568tagitem a {
  font-size: 0.8rem;
  padding: 0.25rem 0.6rem;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--accent);
}
.z07568tagitem a:hover { background: var(--accent); color: #fff !important; border-color: var(--accent); }

.article-prenext {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}
.article-prenext .prenext-pre,
.article-prenext .prenext-next { margin-bottom: 0.45rem; }
.article-prenext a { color: var(--accent); }

.related-list { list-style: none; }
.related-item {
  display: flex;
  gap: 0.85rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  min-width: 0;
}
.related-item:last-child { border-bottom: none; }
.related-thumb {
  flex: 0 0 120px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}
.related-thumb img { width: 100%; height: auto; object-fit: cover; }
.related-body { flex: 1; min-width: 0; }
.related-body h3 { font-size: 0.95rem; margin-bottom: 0.25rem; }
.related-body h3 a { color: var(--header); }
.related-body p { font-size: 0.85rem; color: var(--text-muted); }

/* ===== 页脚 ===== */
.site-footer {
  background: var(--header);
  color: rgba(255,255,255,0.75);
  padding: 1.5rem 0;
  font-size: 0.88rem;
  margin-top: 0;
}
.site-footer a { color: #f0c9a8; }
.site-footer p { margin-top: 0.4rem; text-align: center; }
.friend-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1rem;
  margin-bottom: 0.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.ad-area { padding: 0.5rem 0; min-height: 0; overflow: hidden; }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 420px; margin: 0 auto; }
  .card-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-row,
  .quote-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-article-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .content-layout { grid-template-columns: 1fr; }
  .sidebar-articles { position: static; max-height: none; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .site-nav {
    flex: 1 1 100%;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .site-nav.is-open { max-height: 480px; }
  .site-nav ul {
    flex-direction: column;
    padding: 0.5rem 0 1rem;
    gap: 0;
  }
  .site-nav a { padding: 0.55rem 0.25rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid-3,
  .feature-row,
  .quote-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .home-article-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .list-item { flex-direction: column; }
  .list-thumb {
    flex: none;
    width: 100%;
    max-width: 100%;
  }
  .related-item { flex-direction: column; }
  .related-thumb { flex: none; width: 100%; max-width: 280px; }
  .panel { padding: 1.15rem; }
}

@media (max-width: 480px) {
  html { font-size: 15px; }
  .hero { padding: 1.5rem 0 2rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .home-article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pagebar .pagelist { justify-content: center; }
  .floating-consult {
    right: 0.75rem;
    bottom: 0.75rem;
    width: 46px;
    height: 46px;
    font-size: 0.75rem;
  }
}

@media (max-width: 360px) {
  .home-article-grid { grid-template-columns: 1fr; }
}
