﻿/* ==========================================================
   上线性能与顺滑度增强引擎 (Smoothness & Performance Optimization)
   ========================================================== */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

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

/* 硬件加速与流畅悬停 */
a, button, .media-news-card, .btn-media-primary, .btn-media-secondary, .faq-card, .intro-panel {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* 移动端平滑滚动与防抖 */
.table-wrapper, .table-container, .code-box, pre {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

/* 媒体图片防溢出与自适应 */
img, svg, video, canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 消除点击高亮延迟 */
a, button, input, select, textarea {
  -webkit-tap-highlight-color: transparent;
}

/* ==========================================================
   蓝色可信赖政府服务风，适合访问说明 - Government Service & Trustworthy Portal Theme
   ========================================================== */

:root {
  --gov-blue-dark: #0f2b5c;
  --gov-blue-primary: #1a4f9c;
  --gov-blue-light: #2563eb;
  --gov-blue-accent: #0284c7;
  --gov-bg-main: #f4f7fb;
  --gov-bg-card: #ffffff;
  --gov-bg-card-subtle: #f8fafc;
  --gov-text-main: #1e293b;
  --gov-text-muted: #475569;
  --gov-text-dim: #64748b;
  --gov-border: #cbd5e1;
  --gov-border-subtle: #e2e8f0;
  --gov-gold: #c29d38;
  --gov-gold-bg: #fffbeb;
  --gov-emerald: #059669;
  --gov-emerald-bg: #ecfdf5;
  --gov-red: #dc2626;
  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: Consolas, Monaco, "Courier New", monospace;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(15, 43, 92, 0.08);
  --shadow-md: 0 4px 12px rgba(15, 43, 92, 0.1);
  --shadow-lg: 0 10px 25px rgba(15, 43, 92, 0.12);
  --transition: all 0.25s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--gov-bg-main);
  color: var(--gov-text-main);
  font-family: var(--font-base);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 顶部声明条 (政府公报式权威黄铜条) */
.top-declaration-bar {
  background: #0b1e42;
  border-bottom: 2px solid var(--gov-gold);
  padding: 8px 0;
  font-size: 12.5px;
}

.dec-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.dec-badge {
  background: var(--gov-gold);
  color: #0b1e42;
  padding: 2px 8px;
  border-radius: 2px;
  font-weight: 800;
  font-size: 11px;
  white-space: nowrap;
}

.dec-text {
  color: #e2e8f0;
  flex: 1;
  margin: 0;
}

/* Header */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--gov-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-emblem {
  font-size: 28px;
  color: var(--gov-blue-primary);
}

.logo-titles {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 18px;
  font-weight: 900;
  color: var(--gov-blue-dark);
  letter-spacing: -0.3px;
}

.logo-subtitle {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--gov-text-dim);
  letter-spacing: 0.8px;
  font-family: var(--font-mono);
}

.accent-text {
  color: var(--gov-blue-primary);
}

.main-nav {
  display: flex;
  gap: 20px;
}

.nav-link {
  color: var(--gov-text-muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 14.5px;
  transition: var(--transition);
  padding: 8px 4px;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--gov-blue-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gov-blue-primary);
}

.btn-gov-action {
  background: var(--gov-blue-primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 13.5px;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid var(--gov-blue-dark);
  box-shadow: var(--shadow-sm);
}

.btn-gov-action:hover {
  background: var(--gov-blue-dark);
  transform: translateY(-1px);
}

/* 首页 Hero 区域 (可信访问公告式大厅) */
.gov-hero-section {
  background: linear-gradient(180deg, #ffffff 0%, #edf2f9 100%);
  border-bottom: 1px solid var(--gov-border);
  padding: 48px 0 36px;
  text-align: center;
}

.gov-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 5px 16px;
  border-radius: 20px;
  color: #065f46;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 22px;
}

.status-indicator {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.hero-h1 {
  font-size: 36px;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 16px;
  color: var(--gov-blue-dark);
  letter-spacing: -0.5px;
}

.hero-h1 .highlight {
  color: var(--gov-blue-primary);
  border-bottom: 3px solid var(--gov-gold);
}

.hero-desc {
  font-size: 16px;
  color: var(--gov-text-muted);
  max-width: 860px;
  margin: 0 auto 28px;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.btn-cta-gov-blue {
  background: var(--gov-blue-primary);
  color: #fff;
  font-weight: 800;
  font-size: 15.5px;
  padding: 13px 34px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gov-blue-dark);
  transition: var(--transition);
}

.btn-cta-gov-blue:hover {
  background: var(--gov-blue-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-cta-gov-white {
  background: #ffffff;
  color: var(--gov-blue-dark);
  font-weight: 800;
  font-size: 15.5px;
  padding: 13px 32px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--gov-border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.btn-cta-gov-white:hover {
  background: #f8fafc;
  border-color: var(--gov-blue-primary);
  color: var(--gov-blue-primary);
  transform: translateY(-2px);
}

/* 政府服务风核心特色：公共访问服务指引核验大厅 (Verification Hub) */
.gov-verification-section {
  padding: 20px 0 40px;
}

.verification-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 20px;
}

.verify-card {
  background: #ffffff;
  border: 1px solid var(--gov-border);
  border-top: 4px solid var(--gov-blue-primary);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.verify-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--gov-blue-light);
}

.verify-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.verify-icon {
  font-size: 26px;
}

.verify-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 2px;
}

.badge-official { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }
.badge-verified { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.badge-warning { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

.verify-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--gov-blue-dark);
  margin-bottom: 6px;
}

.verify-desc {
  font-size: 13px;
  color: var(--gov-text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
  flex: 1;
}

.verify-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.v-tag {
  font-size: 11px;
  background: #f1f5f9;
  color: var(--gov-text-dim);
  padding: 2px 6px;
  border-radius: 2px;
  font-weight: 600;
}

.btn-verify-action {
  display: block;
  text-align: center;
  background: #f8fafc;
  color: var(--gov-blue-primary);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 0;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 1px solid var(--gov-border);
  transition: var(--transition);
}

.verify-card:hover .btn-verify-action {
  background: var(--gov-blue-primary);
  color: #ffffff;
  border-color: var(--gov-blue-primary);
}

/* 六宫格/功能模块区 */
.section {
  padding: 50px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 34px;
}

.section-tag {
  color: var(--gov-blue-primary);
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 6px;
}

.section-title {
  font-size: 28px;
  font-weight: 900;
  color: var(--gov-blue-dark);
}

.section-subtitle {
  color: var(--gov-text-muted);
  font-size: 14.5px;
  margin-top: 8px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.grid-six {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.module-card {
  background: #ffffff;
  border: 1px solid var(--gov-border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.module-card:hover {
  transform: translateY(-3px);
  border-color: var(--gov-blue-primary);
  box-shadow: var(--shadow-md);
}

.card-top-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 2px;
  background: #eff6ff;
  color: var(--gov-blue-primary);
  border: 1px solid #dbeafe;
}

.module-icon {
  font-size: 30px;
  margin-bottom: 12px;
  display: inline-block;
}

.module-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--gov-blue-dark);
  margin-bottom: 8px;
}

.module-desc {
  color: var(--gov-text-muted);
  font-size: 13.5px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.module-link {
  color: var(--gov-blue-primary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.module-link:hover {
  text-decoration: underline;
  color: var(--gov-blue-dark);
}

/* 正文介绍区：“教程中心”与“我们提供什么” */
.intro-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.intro-panel {
  background: #ffffff;
  border: 1px solid var(--gov-border);
  border-left: 4px solid var(--gov-blue-primary);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.panel-title {
  font-size: 20px;
  font-weight: 900;
  color: var(--gov-blue-dark);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.intro-list {
  list-style: none;
}

.intro-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
  color: var(--gov-text-muted);
  font-size: 14px;
}

.intro-list li::before {
  content: '■';
  position: absolute;
  left: 0;
  color: var(--gov-blue-primary);
  font-size: 10px;
  top: 4px;
}

.intro-list strong {
  color: var(--gov-blue-dark);
}

/* 热门教程表格 (权威政务规范表格) */
.table-wrapper {
  background: #ffffff;
  border: 1px solid var(--gov-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.toolbox-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.toolbox-table th {
  background: #0f2b5c;
  color: #ffffff;
  font-weight: 800;
  font-size: 13.5px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--gov-border);
}

.toolbox-table td {
  padding: 15px 18px;
  color: var(--gov-text-muted);
  font-size: 13.5px;
  border-bottom: 1px solid #e2e8f0;
}

.toolbox-table tr:hover td {
  background: #f1f5f9;
  color: var(--gov-text-main);
}

.badge-tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 2px;
  font-size: 11.5px;
  font-weight: 700;
}

.badge-easy {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.badge-medium {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

.badge-hard {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.tbl-link {
  color: var(--gov-blue-primary);
  text-decoration: none;
  font-weight: 700;
}

.tbl-link:hover {
  text-decoration: underline;
  color: var(--gov-blue-dark);
}

/* FAQ 常见问答模块 */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--gov-border);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--gov-blue-primary);
}

.faq-q {
  font-size: 16px;
  font-weight: 800;
  color: var(--gov-blue-dark);
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.faq-q-icon {
  color: var(--gov-blue-primary);
  font-weight: 900;
}

.faq-a {
  color: var(--gov-text-muted);
  font-size: 13.5px;
  line-height: 1.6;
}

/* 延伸阅读与免责入口卡片 */
.extended-reading {
  background: #ffffff;
  border: 1px solid var(--gov-border);
  border-left: 5px solid var(--gov-gold);
  border-radius: var(--radius-md);
  padding: 26px 30px;
  margin-top: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  box-shadow: var(--shadow-sm);
}

.reading-info h4 {
  font-size: 17px;
  color: var(--gov-blue-dark);
  margin-bottom: 4px;
  font-weight: 900;
}

.reading-info p {
  color: var(--gov-text-muted);
  font-size: 13.5px;
}

.reading-actions {
  display: flex;
  gap: 12px;
}

/* 子页面通用内容布局 */
.page-hero {
  padding: 44px 0 30px;
  background: #ffffff;
  border-bottom: 1px solid var(--gov-border);
}

.page-title {
  font-size: 28px;
  font-weight: 900;
  color: var(--gov-blue-dark);
  margin-bottom: 10px;
}

.page-subtitle {
  color: var(--gov-text-muted);
  font-size: 15px;
  max-width: 800px;
}

.content-section {
  padding: 40px 0;
}

.article-content {
  background: #ffffff;
  border: 1px solid var(--gov-border);
  border-radius: var(--radius-md);
  padding: 36px;
  color: var(--gov-text-main);
  line-height: 1.8;
  box-shadow: var(--shadow-sm);
}

.article-content h2 {
  font-size: 22px;
  color: var(--gov-blue-dark);
  margin: 30px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gov-border-subtle);
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-content h2::before {
  content: '§';
  color: var(--gov-blue-primary);
  font-weight: 900;
}

.article-content h3 {
  font-size: 17px;
  color: var(--gov-blue-primary);
  margin: 20px 0 10px;
  font-weight: 800;
}

.article-content p {
  margin-bottom: 14px;
  color: var(--gov-text-muted);
}

.article-content ul, .article-content ol {
  margin-bottom: 18px;
  padding-left: 24px;
  color: var(--gov-text-muted);
}

.article-content li {
  margin-bottom: 6px;
}

.article-content strong {
  color: var(--gov-blue-dark);
}

.tool-callout {
  background: #f0fdf4;
  border-left: 4px solid var(--gov-emerald);
  padding: 14px 18px;
  border-radius: 0 4px 4px 0;
  margin: 20px 0;
  color: #065f46;
}

.code-box {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 4px;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: #38bdf8;
  overflow-x: auto;
  margin: 18px 0;
}

/* 页脚 */
.site-footer {
  background: #0b1e42;
  border-top: 3px solid var(--gov-blue-primary);
  padding: 50px 0 30px;
  margin-top: 50px;
  color: #cbd5e1;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 40px;
  margin-bottom: 30px;
}

.footer-brand .logo-title {
  color: #ffffff;
}

.footer-brand .logo-subtitle {
  color: #94a3b8;
}

.footer-desc {
  color: #94a3b8;
  font-size: 13px;
  margin: 14px 0;
  line-height: 1.6;
  max-width: 400px;
}

.copyright {
  color: #64748b;
  font-size: 12px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.link-col h4 {
  color: #ffffff;
  font-size: 14px;
  margin-bottom: 14px;
  font-weight: 800;
}

.link-col a {
  display: block;
  color: #94a3b8;
  text-decoration: none;
  font-size: 13px;
  margin-bottom: 8px;
  transition: var(--transition);
}

.link-col a:hover {
  color: #38bdf8;
}

/* 响应式断点 */
@media (max-width: 992px) {
  .verification-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-six {
    grid-template-columns: repeat(2, 1fr);
  }
  .intro-container {
    grid-template-columns: 1fr;
  }
  .faq-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .hero-h1 {
    font-size: 26px;
  }
  .verification-grid {
    grid-template-columns: 1fr;
  }
  .grid-six {
    grid-template-columns: 1fr;
  }
  .footer-links {
    grid-template-columns: 1fr 1fr;
  }
}