/* ==========================================================================
   VPN评测 (vpnpingce.blog) - 全局年度评测报告样式表
   视觉规范：深靛蓝刊头、米灰报告底色、白色卡片、琥珀色核验标签、等宽数字排版
   ========================================================================== */

:root {
  --bg-page: #f4f5f8;
  --bg-card: #ffffff;
  --bg-header: #0e1726;
  --bg-header-nav: #1b263b;
  --text-main: #1f2937;
  --text-muted: #4b5563;
  --text-light: #6b7280;
  --primary: #1e3a8a;
  --primary-hover: #1d4ed8;
  --primary-light: #dbeafe;
  --accent-amber: #d97706;
  --accent-amber-bg: #fef3c7;
  --accent-amber-border: #fcd34d;
  --accent-green: #059669;
  --accent-green-bg: #ecfdf5;
  --border-color: #e5e7eb;
  --border-subtle: #f3f4f6;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --container-max: 1200px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}

a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

code, pre, .mono {
  font-family: var(--font-mono);
}

/* ==========================================================================
   刊头与主导航 (深靛蓝)
   ========================================================================== */
.site-header {
  background-color: var(--bg-header);
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #ffffff;
}

.brand-area:hover {
  text-decoration: none;
  opacity: 0.95;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: block;
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.2;
}

.brand-tagline {
  font-size: 0.72rem;
  color: #94a3b8;
  font-family: var(--font-mono);
}

/* 导航栏 */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
}

.nav-link {
  color: #cbd5e1;
  padding: 0.45rem 0.75rem;
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.12);
  text-decoration: none;
}

/* 搜索栏 */
.header-search {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 0.4rem 0.75rem 0.4rem 2rem;
  font-size: 0.88rem;
  border-radius: 20px;
  outline: none;
  width: 170px;
  transition: all 0.25s ease;
}

.search-input::placeholder {
  color: #94a3b8;
}

.search-input:focus {
  background-color: #ffffff;
  color: #0f172a;
  border-color: #ffffff;
  width: 220px;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}

.search-icon {
  position: absolute;
  left: 0.65rem;
  width: 14px;
  height: 14px;
  fill: #94a3b8;
  pointer-events: none;
}

.search-input:focus + .search-icon {
  fill: #64748b;
}

/* 搜索结果下拉面板 */
.search-results-panel {
  position: absolute;
  top: 120%;
  right: 0;
  width: 320px;
  max-height: 420px;
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  overflow-y: auto;
  display: none;
  z-index: 1001;
}

.search-results-panel.active {
  display: block;
}

.search-result-item {
  display: block;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-main);
  text-decoration: none;
}

.search-result-item:hover {
  background-color: #f8fafc;
  text-decoration: none;
}

.search-result-title {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--primary);
  margin-bottom: 0.2rem;
}

.search-result-meta {
  font-size: 0.75rem;
  color: var(--text-light);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  padding: 0.5rem;
  cursor: pointer;
}

/* ==========================================================================
   页面主架构 (主栏与侧边短目录)
   ========================================================================== */
.main-wrapper {
  max-width: var(--container-max);
  margin: 1.5rem auto 3rem;
  padding: 0 1.25rem;
  width: 100%;
  flex: 1;
}

.layout-with-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 2rem;
  align-items: start;
}

.layout-single-column {
  max-width: 960px;
  margin: 0 auto;
}

.report-article {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

/* ==========================================================================
   标题层级与排版规范（H1/H2/H3 独占一行，上下空行）
   ========================================================================== */
h1, h2, h3, h4 {
  color: #0f172a;
  line-height: 1.35;
  font-weight: 700;
  clear: both;
}

h1 {
  font-size: 1.85rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-color);
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.45rem;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

h3 {
  font-size: 1.18rem;
  margin-top: 1.75rem;
  margin-bottom: 1rem;
  color: #1e293b;
}

p {
  margin-bottom: 1.25rem;
  color: var(--text-muted);
}

ul, ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
  color: var(--text-muted);
}

li {
  margin-bottom: 0.45rem;
}

/* 强调与信息框 */
.report-lead {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #1e293b;
  background-color: #f8fafc;
  border-left: 4px solid var(--primary);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 1.75rem;
}

.status-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  line-height: 1.2;
  vertical-align: middle;
}

.status-amber {
  background-color: var(--accent-amber-bg);
  color: #92400e;
  border: 1px solid var(--accent-amber-border);
}

.status-green {
  background-color: var(--accent-green-bg);
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.status-blue {
  background-color: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.status-gray {
  background-color: #f3f4f6;
  color: #4b5563;
  border: 1px solid #e5e7eb;
}

/* 侧边短目录 */
.sidebar-toc {
  position: sticky;
  top: 5rem;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.toc-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: calc(85vh - 8rem);
  overflow-y: auto;
}

.toc-item {
  margin-bottom: 0.4rem;
}

.toc-link {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: block;
  padding: 0.2rem 0.4rem;
  border-radius: var(--radius-sm);
  line-height: 1.4;
}

.toc-link:hover {
  background-color: #f1f5f9;
  color: var(--primary);
  text-decoration: none;
}

.toc-sublist {
  list-style: none;
  padding-left: 0.75rem;
  margin-top: 0.25rem;
}

/* ==========================================================================
   表格排版（横向滚动，等宽数据，表头置顶）
   ========================================================================== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0 2rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  background: #ffffff;
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
  min-width: 760px;
}

.report-table th, .report-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
}

.report-table th {
  background-color: #f8fafc;
  color: #1e293b;
  font-weight: 600;
  position: sticky;
  top: 0;
  border-bottom: 2px solid var(--border-color);
  white-space: nowrap;
}

.report-table tr:hover td {
  background-color: #f8fafc;
}

.report-table td.mono-cell {
  font-family: var(--font-mono);
  font-weight: 500;
}

/* ==========================================================================
   机场卡片样式（深度测评卡片）
   ========================================================================== */
.airport-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.airport-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.airport-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.airport-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.airport-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.airport-price-tag {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
  color: #b91c1c;
}

.airport-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  background: #f8fafc;
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.meta-item {
  display: flex;
  flex-direction: column;
}

.meta-label {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-bottom: 0.15rem;
}

.meta-value {
  color: #1e293b;
  font-weight: 600;
}

.meta-value.mono {
  font-family: var(--font-mono);
}

.coupon-box {
  background: #fffbeb;
  border: 1px dashed #f59e0b;
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 0.88rem;
}

.coupon-code {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #b45309;
  letter-spacing: 0.05em;
  background: #fef3c7;
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
}

.copy-btn {
  background: #d97706;
  color: #ffffff;
  border: none;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  font-size: 0.75rem;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.2s;
}

.copy-btn:hover {
  background: #b45309;
}

.cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.btn-aff {
  background-color: var(--primary);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.btn-aff:hover {
  background-color: var(--primary-hover);
  color: #ffffff;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.aff-disclaimer {
  font-size: 0.75rem;
  color: var(--text-light);
  line-height: 1.4;
}

/* ==========================================================================
   首页专用：年度报告特色模块
   ========================================================================== */
.hero-block {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.hero-content {
  flex: 1;
}

.hero-year-badge {
  display: inline-block;
  background-color: var(--bg-header);
  color: #fcd34d;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 0.75rem;
}

.hero-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.25rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-mono);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-light);
}

.hero-side-logo {
  flex-shrink: 0;
  text-align: center;
}

.hero-side-logo img {
  width: 140px;
  height: 140px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

/* 首页两列布局（左侧资料评估范围，右侧推荐目录摘要） */
.home-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0 2rem;
}

.split-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.split-card h3 {
  margin-top: 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

/* ==========================================================================
   常见问题 FAQ 排版
   ========================================================================== */
.faq-group {
  margin-bottom: 2rem;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  background: #ffffff;
  overflow: hidden;
}

.faq-question {
  margin: 0;
  padding: 1rem 1.25rem;
  font-size: 1.05rem;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-color);
  color: #0f172a;
}

.faq-answer {
  padding: 1.25rem;
  color: var(--text-muted);
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   页脚 (Footer)
   ========================================================================== */
.site-footer {
  background-color: var(--bg-header);
  color: #94a3b8;
  padding: 3rem 1.25rem 2rem;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.88rem;
}

.footer-container {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.footer-brand-title {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.footer-desc {
  line-height: 1.6;
  margin-bottom: 1rem;
  color: #cbd5e1;
}

.footer-col-title {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

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

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #94a3b8;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
}

/* ==========================================================================
   移动端与响应式适配
   ========================================================================== */
@media (max-width: 900px) {
  .layout-with-sidebar {
    grid-template-columns: 1fr;
  }
  
  .sidebar-toc {
    display: none;
  }
  
  .home-split-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-block {
    flex-direction: column;
    text-align: left;
    padding: 1.75rem;
  }
  
  .hero-side-logo {
    display: none;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

@media (max-width: 768px) {
  .header-container {
    position: relative;
    padding: 0.6rem 1rem;
  }

  .mobile-menu-btn {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-header-nav);
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    align-items: stretch;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-link {
    padding: 0.65rem 1rem;
    border-radius: var(--radius-sm);
  }

  .search-input {
    width: 130px;
  }

  .search-input:focus {
    width: 170px;
  }

  .report-article {
    padding: 1.5rem 1.25rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  h3 {
    font-size: 1.05rem;
  }
}
