/* Vintage Monospaced Broadsheet (复古打字机报章风) Design Tokens */
:root {
  --bg-canvas: #F7F2E7; /* 陈年泛黄旧报纸色 (60%) */
  --bg-surface: #EFE9DC; /* 浅奶皮色 (20%) */
  --border-color: #23201D; /* 打字机碳墨灰边界 */
  --border-double: #23201D;
  --text-main: #23201D; /* 打字机碳墨灰 (10%) */
  --text-muted: #5C554E;
  --text-dim: #8C827A;
  --accent-red: #9B2226; /* 复古红墨水印章红 (10%) */
  --accent-white: #FFFFFF;
  
  --font-mono: "Courier New", Courier, "Courier Prime", "Special Elite", monospace, "Noto Serif SC";
  --font-serif: "Georgia", "Times New Roman", "Songti SC", "SimSun", serif;
  
  --grid-size: 20px;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-mono);
  background-color: var(--bg-canvas);
  color: var(--text-main);
  line-height: 1.6;
}

/* Vintage Broadsheet Paper Texture & Lines */
body {
  min-height: 100vh;
  background-color: var(--bg-canvas);
  background-image: 
    radial-gradient(rgba(35, 32, 29, 0.03) 1px, transparent 0);
  background-size: 16px 16px;
  position: relative;
  overflow-x: hidden;
}

/* Broadsheet Container */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Broadsheet Header Rules (Double line) */
.double-line-top {
  border-top: 3px double var(--border-color);
  padding-top: 6px;
}
.double-line-bottom {
  border-bottom: 3px double var(--border-color);
  padding-bottom: 6px;
}
.single-line-bottom {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

/* Vintage Monospaced Button (CTA) */
.btn-blueprint, .btn-broadsheet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent-red);
  color: var(--accent-white);
  padding: 12px 24px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--border-color);
  position: relative;
  cursor: pointer;
  box-shadow: 3px 3px 0px var(--border-color);
  transition: all 0.15s ease;
}

.btn-blueprint:hover, .btn-broadsheet:hover {
  background: var(--bg-canvas);
  color: var(--accent-red);
  box-shadow: 5px 5px 0px var(--border-color);
  transform: translate(-2px, -2px);
}

/* Red Ink Stamp Badge */
.ink-stamp {
  display: inline-block;
  border: 2px dashed var(--accent-red);
  color: var(--accent-red);
  padding: 4px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: rotate(-2deg);
  background: rgba(155, 34, 38, 0.05);
}

/* Vintage Paper Card */
.blueprint-card, .broadsheet-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  position: relative;
  padding: 24px;
  box-shadow: 2px 2px 0px rgba(35, 32, 29, 0.15);
}

.blueprint-header-bar, .broadsheet-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
  margin-bottom: 16px;
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Header & Nav */
header.site-header {
  border-bottom: 3px double var(--border-color);
  background: var(--bg-canvas);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo-brand {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.15em;
  text-decoration: none;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-brand .badge {
  font-size: 10px;
  background: var(--accent-red);
  color: var(--bg-canvas);
  padding: 2px 6px;
  border-radius: 0;
  letter-spacing: 0.05em;
}

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

.main-nav a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 13px;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 8px;
  border: 1px solid transparent;
  transition: all 0.2s;
}

.main-nav a:hover {
  border-color: var(--border-color);
  background: var(--bg-surface);
}

/* Hero Section */
.hero-section {
  padding: 40px 0 60px 0;
  border-bottom: 1px solid var(--border-color);
}

.spec-bar {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 8px 0;
  margin-bottom: 32px;
  letter-spacing: 0.05em;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: start;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 40px;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  color: var(--text-main);
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 16px;
}

.hero-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.8;
  font-family: var(--font-mono);
}

.hero-specs-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 20px;
  margin-bottom: 28px;
}

.hero-specs-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border-color);
  font-size: 13px;
}

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

/* Wireframe / Typewriter Terminal Visual */
.wireframe-visual {
  background: var(--bg-surface);
  border: 2px solid var(--border-color);
  padding: 20px;
  box-shadow: 4px 4px 0px var(--border-color);
}

.terminal-header {
  font-size: 11px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  letter-spacing: 0.1em;
}

.node-pulse-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.node-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding: 8px;
  background: var(--bg-canvas);
  border: 1px solid var(--border-color);
}

.status-online {
  color: var(--accent-red);
  font-weight: bold;
}

/* Section Shared Padding */
.section-padding {
  padding: 60px 0;
  border-bottom: 1px solid var(--border-color);
}

.section-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
  text-transform: uppercase;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 8px;
  display: inline-block;
}

.section-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 800px;
}

/* Section 1: Latency Table */
.nodes-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-surface);
  border: 2px solid var(--border-color);
  font-size: 13px;
}

.nodes-table th, .nodes-table td {
  padding: 14px 16px;
  text-align: left;
  border: 1px solid var(--border-color);
}

.nodes-table th {
  background: var(--bg-canvas);
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.latency-badge {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid var(--border-color);
  font-size: 12px;
  font-family: var(--font-mono);
  font-weight: bold;
}

.lat-fast { background: #E8F5E9; color: #1B5E20; }
.lat-low { background: #FFF8E1; color: #F57F17; }

/* Section 2: Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.price-card {
  background: var(--bg-surface);
  border: 2px solid var(--border-color);
  padding: 28px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 3px 3px 0px var(--border-color);
}

.price-card.popular {
  border-color: var(--accent-red);
  box-shadow: 4px 4px 0px var(--accent-red);
}

.price-card .popular-badge {
  position: absolute;
  top: -14px;
  right: 20px;
  background: var(--accent-red);
  color: var(--bg-canvas);
  font-size: 11px;
  font-weight: bold;
  padding: 3px 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.price-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 8px;
}

.price-amount {
  font-size: 32px;
  font-weight: 900;
  color: var(--accent-red);
  margin-bottom: 16px;
  font-family: var(--font-serif);
}

.price-amount span {
  font-size: 14px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.price-features {
  list-style: none;
  margin-bottom: 24px;
  border-top: 1px dashed var(--border-color);
  padding-top: 16px;
}

.price-features li {
  padding: 6px 0;
  font-size: 13px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Section 2: Advantages Grid */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.adv-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 24px;
}

.adv-num {
  font-size: 12px;
  color: var(--accent-red);
  font-weight: bold;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  display: block;
}

.adv-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 10px;
}

.adv-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Section 3: FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 24px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 20px;
}

.faq-question {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text-main);
}

.faq-answer {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Section 3: Articles / Knowledge Base Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.article-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
  box-shadow: 2px 2px 0px rgba(35, 32, 29, 0.1);
}

.article-card:hover {
  border-color: var(--accent-red);
  box-shadow: 4px 4px 0px var(--border-color);
  transform: translateY(-2px);
}

.article-tag {
  font-size: 11px;
  color: var(--accent-red);
  font-weight: bold;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.article-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 12px;
  color: var(--text-main);
}

.article-excerpt {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.article-link {
  font-size: 12px;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-red);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.article-link:hover {
  text-decoration: underline;
}

/* Section 4: Reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.review-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.review-text {
  font-size: 13px;
  color: var(--text-main);
  line-height: 1.7;
  margin-bottom: 16px;
  font-style: italic;
  font-family: var(--font-serif);
}

.review-author {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px dashed var(--border-color);
  padding-top: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

/* Footer */
footer.site-footer {
  background: var(--bg-canvas);
  border-top: 3px double var(--border-color);
  padding: 40px 0;
  font-size: 12px;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

/* Article Detail Page Layout (Brodsheet Single Column) */
.article-container {
  max-width: 860px;
  margin: 40px auto 80px auto;
  background: var(--bg-surface);
  border: 2px solid var(--border-color);
  padding: 48px;
  box-shadow: 4px 4px 0px var(--border-color);
}

.article-header-meta {
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 20px;
  margin-bottom: 32px;
}

.article-main-title {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 16px;
  color: var(--text-main);
}

.article-sub-meta {
  display: flex;
  gap: 20px;
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.article-body-content {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-main);
  font-family: var(--font-mono);
}

.article-body-content h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 800;
  margin: 32px 0 16px 0;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 6px;
}

.article-body-content p {
  margin-bottom: 20px;
}

.article-body-content ul {
  margin: 0 0 20px 24px;
}

.article-cta-box {
  background: var(--bg-canvas);
  border: 2px dashed var(--accent-red);
  padding: 24px;
  margin: 40px 0;
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .main-nav {
    display: none;
  }
  .article-container {
    padding: 24px;
  }
}
