/* 主题色：深靛蓝 + 琥珀金 — 官网风格 */
:root {
  --bg: #0e1218;
  --bg-alt: #141c28;
  --surface: #1a2433;
  --surface-hover: #223044;
  --text: #eef2f7;
  --text-muted: #9aa8bc;
  --accent: #d4a03d;
  --accent-soft: rgba(212, 160, 61, 0.12);
  --accent-hover: #e8b84d;
  --border: rgba(212, 160, 61, 0.22);
  --border-light: rgba(255, 255, 255, 0.08);
  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  --max: 1140px;
  --header-h: 64px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

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

a {
  color: var(--accent);
  transition: color 0.2s;
}

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

.container {
  width: 92%;
  max-width: var(--max);
  margin: 0 auto;
}

/* ========== 页头导航 ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(14, 18, 24, 0.96);
  border-bottom: 1px solid var(--border-light);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
  position: relative;
}

.brand {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.15rem 1rem;
}

.main-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  padding: 0.35rem 0;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.zd8700this,
.main-nav a.nav-home.zd8700this {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--accent);
  border-radius: 1px;
}

/* ========== 首页区块 ========== */
.hero-block {
  background: linear-gradient(160deg, var(--bg-alt) 0%, var(--bg) 55%);
  border-bottom: 1px solid var(--border-light);
  padding: 2.5rem 0 2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-label {
  display: inline-block;
  margin: 0 0 0.6rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.78rem;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.hero-copy h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  line-height: 1.35;
  color: var(--text);
  font-weight: 700;
}

.hero-lead {
  color: var(--text-muted);
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}

.hero-text {
  margin: 0 0 1.25rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-media {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  max-height: 360px;
}

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

.page-section {
  padding: 2.5rem 0;
}

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

.section-head {
  text-align: center;
  margin-bottom: 1.75rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.section-head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  color: var(--accent);
  font-weight: 700;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* 服务卡片 */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  transition: border-color 0.2s, background 0.2s;
}

.panel:hover {
  border-color: var(--accent);
  background: var(--surface-hover);
}

.panel-icon {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.panel h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  color: var(--text);
}

.panel p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* 优势列表 */
.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.feature-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem 1rem;
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  align-items: start;
}

.feature-item strong {
  color: var(--accent);
  font-size: 0.9rem;
  white-space: nowrap;
}

.feature-item span {
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* 流程步骤 */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.steps li {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-height: 0;
}

.step-num {
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.steps h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  color: var(--text);
}

.steps p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* 知识卡片 */
.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.knowledge-card {
  padding: 1.15rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.knowledge-card h3 {
  margin: 0 0 0.5rem;
  font-size: 0.98rem;
  color: var(--text);
}

.knowledge-card p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* 收费安全 */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.pricing-box {
  padding: 1.25rem 1.3rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.pricing-box h3 {
  margin: 0 0 0.6rem;
  font-size: 1rem;
  color: var(--accent);
}

.pricing-box p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* FAQ */
.faq {
  margin: 0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.faq-row {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-light);
}

.faq-row:last-child {
  border-bottom: none;
}

.faq-row dt {
  margin: 0 0 0.4rem;
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}

.faq-row dd {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* 首页文章 */
.article-grid-home {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.85rem;
}

.article-card-home {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem;
  overflow: hidden;
  min-width: 0;
}

.article-card-thumb {
  display: block;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 0.5rem;
  aspect-ratio: 4/3;
  background: var(--bg);
}

.article-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-card-title {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  line-height: 1.35;
  font-weight: 600;
}

.article-card-title a {
  color: var(--text);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-title a:hover {
  color: var(--accent);
}

.article-card-date {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.section-action {
  text-align: center;
  margin: 1.25rem 0 0;
}

/* 关于 */
.about-lead {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 1.5rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.about-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
  padding: 1rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 120px;
}

.stat strong {
  display: block;
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.stat span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* 表单 */
.contact-form {
  max-width: 480px;
  margin: 0 auto;
}

.form-row {
  margin-bottom: 1rem;
}

.form-row label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
  color: var(--accent);
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--accent);
}

.form-row textarea {
  resize: vertical;
  min-height: 96px;
}

/* 按钮 */
.btn {
  display: inline-block;
  padding: 0.6rem 1.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: #1a1208;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #1a1208;
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--border);
}

.btn-outline:hover {
  background: var(--accent-soft);
}

/* 页脚 */
.site-footer {
  margin-top: 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-light);
  background: var(--bg-alt);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-inner p {
  margin: 0.35rem 0;
}

.footer-link {
  display: inline-block;
  margin: 0 0.5rem;
  color: var(--text-muted);
  text-decoration: none;
}

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

/* ========== 列表页 / 内容页 ========== */
.page-banner {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border-light);
  padding: 1.5rem 0;
}

.page-banner h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  color: var(--text);
  text-align: center;
  font-weight: 700;
}

.breadcrumb {
  text-align: center;
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}

.page-layout {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.5rem 0 2rem;
}

.page-main {
  flex: 1 1 0;
  min-width: 0;
}

.sidebar {
  flex: 0 0 260px;
  width: 260px;
  max-width: 260px;
  min-width: 0;
}

.sidebar-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.sidebar-title {
  margin: 0;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  background: var(--accent-soft);
  border-bottom: 1px solid var(--border-light);
  color: var(--accent);
}

.sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0;
  max-height: 480px;
  overflow-y: auto;
}

.sidebar-item {
  border-bottom: 1px solid var(--border-light);
}

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

.sidebar-thumb-link {
  display: flex;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  text-decoration: none;
  color: inherit;
  align-items: center;
}

.sidebar-thumb-link:hover {
  background: var(--accent-soft);
}

.sidebar-thumb {
  flex: 0 0 64px;
  width: 64px;
  height: 48px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg);
}

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

.sidebar-item-text {
  flex: 1;
  min-width: 0;
}

.sidebar-item-title {
  display: block;
  font-size: 0.8rem;
  color: var(--text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sidebar-item-date {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* 列表项 */
.article-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.article-list-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  margin-bottom: 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  align-items: flex-start;
  overflow: hidden;
}

.article-list-thumb {
  flex: 0 0 160px;
  width: 160px;
  max-width: 160px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg);
}

.article-list-thumb img {
  width: 100%;
  height: auto;
  max-height: 110px;
  object-fit: cover;
}

.article-list-body {
  flex: 1;
  min-width: 0;
}

.article-list-title {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  line-height: 1.35;
}

.article-list-title a {
  color: var(--text);
  text-decoration: none;
}

.article-list-title a:hover {
  color: var(--accent);
}

.article-list-meta {
  margin: 0 0 0.45rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.article-list-meta a {
  color: var(--accent);
}

.article-list-intro {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* 分页 */
.pagebar {
  margin-top: 1.25rem;
}

.zd8700pages {
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.pagelist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
  align-items: center;
}

.pagelist a,
.pagelist span {
  display: inline-block;
  padding: 0.35rem 0.65rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  border: 1px solid var(--border-light);
  border-radius: 6px;
}

.pagelist a:hover,
.pagelist .thisclass {
  background: var(--accent);
  color: #1a1208;
  border-color: var(--accent);
}

/* 内容页 */
.article-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.25rem;
  overflow: hidden;
  word-wrap: break-word;
}

.article-header {
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-light);
}

.article-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  color: var(--text);
  line-height: 1.35;
}

.article-meta {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.article-meta a {
  color: var(--accent);
}

.article-litpic {
  margin-bottom: 1rem;
  text-align: center;
}

.article-litpic img {
  max-width: 100%;
  border-radius: 8px;
  margin: 0 auto;
}

.article-content {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.article-figure {
  margin: 0.85rem 0;
  text-align: center;
}

.article-figure figcaption {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.zd8700meta-tags {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.zd8700tagitem a {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  font-size: 0.78rem;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--accent);
  text-decoration: none;
}

.article-prenext {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.article-prenext a {
  color: var(--accent);
  text-decoration: none;
}

.related-section h2 {
  margin: 1.25rem 0 0.75rem;
  font-size: 1rem;
  color: var(--accent);
}

.related-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.related-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border-light);
  align-items: flex-start;
}

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

.related-thumb {
  flex: 0 0 80px;
  width: 80px;
  border-radius: 6px;
  overflow: hidden;
}

.related-thumb img {
  width: 100%;
  height: 56px;
  object-fit: cover;
}

.related-title {
  font-size: 0.88rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.related-title:hover {
  color: var(--accent);
}

.related-body p {
  margin: 0.3rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
  .article-grid-home {
    grid-template-columns: repeat(3, 1fr);
  }

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

@media (max-width: 960px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0;
    background: rgba(14, 18, 24, 0.98);
    border-bottom: 1px solid var(--border-light);
    max-height: 70vh;
    overflow-y: auto;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.9rem;
  }

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

  .hero-media {
    max-height: 240px;
  }

  .service-grid,
  .knowledge-grid,
  .pricing-grid,
  .feature-list {
    grid-template-columns: 1fr;
  }

  .page-layout {
    flex-direction: column;
  }

  .sidebar {
    flex: none;
    width: 100%;
    max-width: 100%;
  }

  .article-list-item {
    flex-direction: column;
  }

  .article-list-thumb {
    flex: none;
    width: 100%;
    max-width: 100%;
  }

  .article-list-thumb img {
    max-height: 180px;
  }
}

@media (max-width: 640px) {
  .container {
    width: 94%;
  }

  .page-section {
    padding: 1.75rem 0;
  }

  .article-grid-home {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }

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

  .about-stats {
    gap: 0.75rem;
  }

  .stat {
    min-width: 100px;
    padding: 0.75rem 1rem;
  }

  .article-section {
    padding: 1rem 0.85rem;
  }

  .hero-btns {
    flex-direction: column;
  }

  .hero-btns .btn {
    text-align: center;
  }
}

@media (max-width: 400px) {
  .article-grid-home {
    grid-template-columns: 1fr;
  }
}
