/* ===================================================================
   老头vpn (oldmanvpn.click) - 云瓷青羽与极简禅意设计系统 (Zen Celestial Minimalist)
   视觉基调：云瓷素白底色 + 天青天蓝高光 + 纤细银灰微线 + 折纸羽鹤几何 + 极静呼吸微光
   =================================================================== */

:root {
  --bg-canvas: #f8fafc;
  --bg-surface: #ffffff;
  --bg-panel: #f0f9ff;
  --bg-panel-hover: #e0f2fe;
  --bg-glass: rgba(255, 255, 255, 0.94);

  --brand-azure: #0284c7;
  --brand-azure-hover: #0369a1;
  --brand-azure-light: #e0f2fe;
  --brand-sky: #0ea5e9;
  --brand-teal: #0d9488;
  --brand-red-dot: #ef4444;

  --text-main: #0f172a;
  --text-muted: #334155;
  --text-dim: #64748b;
  --text-light: #94a3b8;

  --border-delicate: #e2e8f0;
  --border-azure: #bae6fd;
  --border-focus: #0284c7;

  --font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --shadow-subtle: 0 4px 20px rgba(2, 132, 199, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-azure: 0 8px 30px rgba(2, 132, 199, 0.15);
  --shadow-card: 0 2px 10px rgba(15, 23, 42, 0.04);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-system);
  background-color: var(--bg-canvas);
  color: var(--text-main);
  line-height: 1.75;
  overflow-x: hidden;
  background-image: radial-gradient(circle at 10% 20%, rgba(2, 132, 199, 0.03) 0%, transparent 40%),
                    radial-gradient(circle at 90% 80%, rgba(14, 165, 233, 0.04) 0%, transparent 40%);
}

a {
  color: var(--brand-azure);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--brand-azure-hover);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-delicate);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  display: block;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.15);
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brand-azure-hover);
  letter-spacing: -0.02em;
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-xs);
  transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--brand-azure);
  background: var(--bg-panel);
}

.btn-header-cta {
  background: var(--brand-azure);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.45rem 1.1rem;
  border-radius: 30px;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.25);
  transition: all 0.2s ease;
}

.btn-header-cta:hover {
  background: var(--brand-azure-hover);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
  transform: translateY(-1px);
}

/* Layout */
.page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 3.5rem 1rem 3rem;
  position: relative;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1.1rem;
  background: var(--bg-panel);
  border: 1px solid var(--border-azure);
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-azure);
  margin-bottom: 1.5rem;
}

.hero-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-red-dot);
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.6);
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-main);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-title-highlight {
  color: var(--brand-azure);
  background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 780px;
  margin: 0 auto 2.25rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.btn-primary-action {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff !important;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.85rem 2.2rem;
  border-radius: 30px;
  box-shadow: var(--shadow-azure);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.25s ease;
}

.btn-primary-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 35px rgba(2, 132, 199, 0.35);
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
}

.btn-secondary-action {
  background: #ffffff;
  color: var(--text-muted) !important;
  border: 1px solid var(--border-delicate);
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0.85rem 1.8rem;
  border-radius: 30px;
  box-shadow: var(--shadow-card);
  transition: all 0.2s ease;
}

.btn-secondary-action:hover {
  border-color: var(--brand-azure);
  color: var(--brand-azure) !important;
}

/* Metrics Badges */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.metric-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-delicate);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.25s ease;
}

.metric-card:hover {
  border-color: var(--border-azure);
  transform: translateY(-3px);
  box-shadow: var(--shadow-azure);
}

.metric-value {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--brand-azure);
  font-family: var(--font-mono);
  margin-bottom: 0.35rem;
}

.metric-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.metric-note {
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* Feature Section */
.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-azure);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 1.95rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0.5rem auto 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-delicate);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  box-shadow: var(--shadow-subtle);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-azure), #38bdf8);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.feature-card:hover {
  border-color: var(--border-azure);
  transform: translateY(-4px);
  box-shadow: var(--shadow-azure);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon-box {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  background: var(--bg-panel);
  border: 1px solid var(--border-azure);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  color: var(--brand-azure);
}

.feature-heading {
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.6rem;
}

.feature-body {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Interactive Tool: Cloud Compass */
.compass-tool-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-azure);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-subtle);
  margin-bottom: 3.5rem;
}

.tool-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  margin-bottom: 1.8rem;
}

.control-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

.control-group select, .control-group input {
  width: 100%;
  padding: 0.65rem 0.9rem;
  background: var(--bg-canvas);
  border: 1px solid var(--border-delicate);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s;
}

.control-group select:focus {
  border-color: var(--brand-azure);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

.tool-btn-run {
  width: 100%;
  padding: 0.72rem;
  background: var(--brand-azure);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 1.45rem;
}

.tool-btn-run:hover {
  background: var(--brand-azure-hover);
}

.tool-display-panel {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.6;
  overflow-x: auto;
}

.tool-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #1e293b;
}

.stat-item-label {
  font-size: 0.75rem;
  color: #94a3b8;
  text-transform: uppercase;
}

.stat-item-val {
  font-size: 1.35rem;
  font-weight: 700;
  color: #38bdf8;
}

/* Guides & Articles Section */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.article-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-delicate);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
}

.article-card:hover {
  border-color: var(--border-azure);
  transform: translateY(-3px);
  box-shadow: var(--shadow-azure);
}

.article-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 0.2rem 0.6rem;
  background: var(--bg-panel);
  border: 1px solid var(--border-azure);
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand-azure);
  margin-bottom: 0.8rem;
}

.article-title-link {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.45;
  margin-bottom: 0.6rem;
  display: block;
}

.article-title-link:hover {
  color: var(--brand-azure);
}

.article-summary {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.article-footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border-delicate);
  padding-top: 0.85rem;
}

/* FAQ Accordion */
.faq-container {
  max-width: 860px;
  margin: 0 auto 3.5rem;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-delicate);
  border-radius: var(--radius-sm);
  margin-bottom: 0.85rem;
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item.active {
  border-color: var(--border-azure);
}

.faq-question {
  width: 100%;
  padding: 1.1rem 1.4rem;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--brand-azure);
}

.faq-icon {
  font-size: 1.1rem;
  color: var(--brand-azure);
  transition: transform 0.25s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1.4rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 400px;
  padding: 0 1.4rem 1.25rem;
}

/* Legal Pages & In-depth Content */
.legal-card, .article-content-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-delicate);
  border-radius: var(--radius-lg);
  padding: 2.8rem 2.2rem;
  box-shadow: var(--shadow-subtle);
  margin-bottom: 2.5rem;
}

.page-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 0.8rem;
  letter-spacing: -0.02em;
}

.update-time {
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-delicate);
}

.content-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 2rem 0 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--bg-panel);
}

.content-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brand-azure-hover);
  margin: 1.5rem 0 0.75rem;
}

.content-body p {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

.content-body ul, .content-body ol {
  margin: 0.8rem 0 1.4rem 1.6rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.content-body li {
  margin-bottom: 0.45rem;
}

.content-body blockquote {
  border-left: 4px solid var(--brand-azure);
  background: var(--bg-panel);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
  font-size: 0.98rem;
  color: var(--text-muted);
}

.data-table-wrapper {
  overflow-x: auto;
  margin: 1.6rem 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-delicate);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.data-table th {
  background: var(--bg-panel);
  color: var(--text-main);
  padding: 0.85rem 1rem;
  font-weight: 700;
  border-bottom: 1px solid var(--border-delicate);
}

.data-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-delicate);
  color: var(--text-muted);
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover td {
  background: #f8fafc;
}

.code-box {
  background: #0f172a;
  color: #38bdf8;
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.6;
  overflow-x: auto;
  margin: 1.4rem 0;
}

/* Callout Box */
.zen-callout {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid var(--border-azure);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  margin: 2.5rem 0;
  text-align: center;
}

.zen-callout h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--brand-azure-hover);
  margin-bottom: 0.5rem;
}

.zen-callout p {
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 1.2rem;
}

/* Footer */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border-delicate);
  padding: 3.5rem 1.5rem 2rem;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand p {
  font-size: 0.92rem;
  color: var(--text-dim);
  margin-top: 0.8rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--text-dim);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--brand-azure);
}

.footer-bottom {
  border-top: 1px solid var(--border-delicate);
  padding-top: 1.8rem;
  font-size: 0.82rem;
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-disclosure {
  line-height: 1.6;
  color: var(--text-dim);
}

/* Responsive */
@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .header-container {
    padding: 0.75rem 1rem;
  }
  .main-nav .nav-link {
    display: none;
  }
  .page-container {
    padding: 1.8rem 1rem 3rem;
  }
  .hero-section {
    padding: 2.5rem 0.5rem 2rem;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
  .legal-card, .article-content-card {
    padding: 1.8rem 1.2rem;
  }
}
