/* VPNDOG.BLOG - Editorial Bento & Magazine Native CSS Framework (Pink Theme) */
:root {
  --bg-page: #fffafb;
  --bg-surface: #ffffff;
  --bg-subtle: #fdf2f8;
  --bg-ink: #3b0726;
  --bg-ink-soft: #500724;
  --text-primary: #1f121b;
  --text-secondary: #4a2c3d;
  --text-muted: #7e5a6d;
  --accent: #db2777;
  --accent-hover: #be185d;
  --accent-soft: #fdf2f8;
  --accent-border: #fbcfe8;
  --amber: #b45309;
  --amber-soft: #fffbeb;
  --amber-border: #fde68a;
  --border: #fce7f3;
  --border-strong: #f9a8d4;
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --container-max: 1220px;
  --article-max: 800px;
  --font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg-page);
  line-height: 1.68;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  color: var(--text-primary);
  line-height: 1.32;
  margin-top: 0;
  font-weight: 700;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 0.9rem; }
h2 { font-size: clamp(1.28rem, 2.2vw, 1.6rem); margin-top: 2rem; margin-bottom: 0.85rem; }
h3 { font-size: 1.1rem; margin-top: 1.25rem; margin-bottom: 0.5rem; }
p { margin: 0 0 0.95rem; color: var(--text-secondary); }
ul, ol { margin: 0 0 1rem; padding-left: 1.3rem; color: var(--text-secondary); }
li { margin-bottom: 0.35rem; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.1rem;
}

/* Top Utility Bar + Dark Editorial Header */
.site-header {
  background: var(--bg-ink);
  color: #f9fafb;
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 2px solid var(--accent);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  gap: 1rem;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-logo:hover { color: #f9a8d4; text-decoration: none; }

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: inline-block;
  padding: 0.42rem 0.72rem;
  border-radius: var(--radius-xs);
  color: #d1d5db;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  text-decoration: none;
}

.header-actions { display: flex; align-items: center; gap: 0.5rem; }

.btn-search, .btn-menu, .btn-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-xs);
  border: 1px solid #831843;
  background: var(--bg-ink-soft);
  color: #fdf2f8;
  font-size: 0.86rem;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.btn-contact {
  background: var(--accent);
  border-color: #f9a8d4;
  color: #ffffff;
  font-weight: 600;
}
.btn-contact:hover {
  background: var(--accent-hover);
  border-color: #ffffff;
  color: #ffffff;
}
.btn-search:hover, .btn-menu:hover {
  border-color: #f9a8d4;
  color: #f9a8d4;
}
.btn-menu { display: none; }

.mobile-nav {
  display: none;
  background: var(--bg-ink-soft);
  border-top: 1px solid #831843;
  padding: 0.6rem 1rem 1rem;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 0.6rem 0.25rem;
  color: #fce7f3;
  border-bottom: 1px solid #831843;
  font-size: 0.92rem;
}

.search-panel {
  display: none;
  background: var(--bg-surface);
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.12);
}
.search-panel.open { display: block; }
.search-bar { display: flex; gap: 0.5rem; }
.search-input {
  flex: 1;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
}
.search-results { margin-top: 0.75rem; display: grid; gap: 0.45rem; }
.search-item {
  display: block;
  padding: 0.6rem 0.85rem;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
}
.search-item strong { display: block; color: var(--text-primary); font-size: 0.94rem; }
.search-item span { font-size: 0.83rem; color: var(--text-muted); }

.contact-panel {
  display: none;
  background: var(--bg-surface);
  color: var(--text-primary);
  border-bottom: 2px solid var(--accent);
  padding: 1.15rem 0;
  box-shadow: 0 10px 28px rgba(59, 7, 38, 0.14);
}
.contact-panel.open { display: block; }
.contact-panel-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}
.contact-panel-head strong { font-size: 1rem; color: var(--text-primary); }
.contact-panel-head span { font-size: 0.84rem; color: var(--text-muted); }
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.85rem;
}
.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xs);
}
.contact-card-info small {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent);
}
.contact-card-info strong {
  font-size: 0.92rem;
  color: var(--text-primary);
  word-break: break-all;
}
.contact-card-actions {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.84rem;
  color: var(--text-muted);
  padding: 0.9rem 0 0.25rem;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }

/* Split Editorial Hero */
.hero-editorial {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 2.25rem 0;
}

.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.95fr);
  gap: 2rem;
  align-items: start;
}

.hero-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}

.hero-lead {
  font-size: 1.02rem;
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 0.9rem;
}

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

.node-map-panel {
  background: #2e051d;
  color: #fff1f2;
  border: 1px solid #500724;
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
}

.node-map-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
}

.node-map-header h2 {
  font-size: 0.98rem;
  color: #ffffff;
  margin: 0;
}

.node-map-header span {
  font-size: 0.76rem;
  color: #f9a8d4;
}

.map-svg {
  width: 100%;
  height: auto;
  display: block;
  background: #1f0314;
  border: 1px solid #500724;
  border-radius: var(--radius-xs);
}

.map-land {
  fill: #4a0e31;
  stroke: #831843;
  stroke-width: 0.8;
}

.map-arc {
  fill: none;
  stroke: rgba(244, 114, 182, 0.45);
  stroke-width: 1;
  stroke-dasharray: 3 3;
}

.node-pin {
  cursor: pointer;
}

.node-pin circle.dot {
  fill: #ec4899;
  stroke: #2e051d;
  stroke-width: 1.5;
}

.node-pin.active circle.dot {
  fill: #fbbf24;
}

.node-pin circle.ring {
  fill: rgba(236, 72, 153, 0.28);
}

.node-pin.active circle.ring {
  fill: rgba(251, 191, 36, 0.3);
}

.node-pin text {
  fill: #fce7f3;
  font-size: 9.5px;
  font-weight: 600;
  font-family: var(--font-sans);
}

.node-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
  margin-top: 0.7rem;
}

.node-pill {
  padding: 0.25rem 0.62rem;
  border-radius: 999px;
  border: 1px solid #831843;
  background: #4a0e31;
  color: #fce7f3;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.node-pill:hover,
.node-pill.active {
  background: var(--accent);
  border-color: #f9a8d4;
  color: #ffffff;
}

.node-detail-bar {
  margin-top: 0.65rem;
  padding: 0.6rem 0.75rem;
  background: #4a0e31;
  border-left: 3px solid #ec4899;
  border-radius: var(--radius-xs);
  font-size: 0.82rem;
  color: #fdf2f8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.65rem;
}

.node-detail-bar a {
  color: #f9a8d4;
  white-space: nowrap;
  font-weight: 600;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.56rem 1.1rem;
  border-radius: var(--radius-xs);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #ffffff; }
.btn-primary:hover { background: var(--accent-hover); color: #ffffff; }
.btn-secondary { background: var(--bg-surface); color: var(--text-primary); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 0.34rem 0.72rem; font-size: 0.82rem; }

/* Sections */
.section { padding: 2rem 0; }
.section-alt {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--bg-ink);
}
.section-header h2 { margin: 0; font-size: 1.35rem; }
.section-desc { color: var(--text-muted); font-size: 0.9rem; margin: 0.25rem 0 0; }

/* Quick Answer Strip (4-column compact strip, not cards) */
.qa-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.qa-cell {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-xs);
  padding: 0.95rem 1rem;
}
.qa-cell h3 { margin: 0 0 0.4rem; font-size: 0.98rem; }
.qa-cell p { margin: 0; font-size: 0.88rem; }

/* Filter Bar & Compact Brand Directory */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.15rem;
}
.filter-pill {
  padding: 0.36rem 0.82rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.filter-pill:hover,
.filter-pill.active {
  background: var(--bg-ink);
  color: #ffffff;
  border-color: var(--bg-ink);
}

/* Grids & Cards */
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
}
.card:hover { border-color: var(--border-strong); }
.card-title { font-size: 1.06rem; margin: 0 0 0.4rem; }
.card-meta { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.6rem; }

.tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.14rem 0.5rem;
  border-radius: 4px;
  background: var(--bg-subtle);
  color: var(--text-secondary);
}
.tag-blue { background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-border); }
.tag-green { background: #ecfdf5; color: #047857; }
.tag-warn { background: var(--amber-soft); color: var(--amber); border: 1px solid var(--amber-border); }

.kv-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 0.65rem;
  margin: 0.65rem 0 0.85rem;
  padding: 0.65rem 0.75rem;
  background: var(--bg-subtle);
  border-radius: var(--radius-xs);
  font-size: 0.84rem;
}
.kv-item span { display: block; color: var(--text-muted); font-size: 0.74rem; }
.kv-item strong { color: var(--text-primary); }

.card-footer {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

/* Bento Grid for Scenarios */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}
.bento-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.bento-item h3 { margin: 0 0 0.35rem; font-size: 1.02rem; }
.bento-item p { font-size: 0.86rem; margin-bottom: 0.65rem; }

/* Magazine Split List (Guides + Blog without heavy cards) */
.magazine-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
}
.editorial-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.editorial-list li {
  margin: 0;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.92rem;
}
.editorial-list li:last-child { border-bottom: none; }
.editorial-list .list-cat {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

/* Callouts */
.callout {
  padding: 0.95rem 1.1rem;
  border-radius: var(--radius-xs);
  border: 1px solid var(--accent-border);
  background: var(--accent-soft);
  margin: 1.15rem 0;
}
.callout-warn {
  background: var(--amber-soft);
  border-color: var(--amber-border);
}
.callout-title { font-weight: 700; color: var(--text-primary); margin-bottom: 0.3rem; }

/* Tables */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin: 0.9rem 0;
}
table { width: 100%; border-collapse: collapse; font-size: 0.89rem; min-width: 680px; }
th, td { padding: 0.7rem 0.85rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--bg-ink); color: #f9fafb; font-weight: 600; white-space: nowrap; }
tbody tr:nth-child(even) { background: var(--bg-subtle); }
tr:last-child td { border-bottom: none; }

/* Article Layout */
.page-shell { padding: 1.15rem 0 2.75rem; }
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  gap: 1.75rem;
  align-items: start;
}
.article-main {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.65rem;
  max-width: var(--article-max);
  width: 100%;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  font-size: 0.84rem;
  color: var(--text-muted);
  padding-bottom: 0.85rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--border);
}
.sidebar { display: grid; gap: 1rem; position: sticky; top: 80px; }
.sidebar-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--bg-ink);
  border-radius: var(--radius-sm);
  padding: 1rem;
}
.sidebar-box h3 {
  font-size: 0.96rem;
  margin: 0 0 0.65rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--border);
}
.sidebar-list { list-style: none; margin: 0; padding: 0; font-size: 0.86rem; }
.sidebar-list li { margin-bottom: 0.45rem; }

/* FAQ */
.faq-list { display: grid; gap: 0.65rem; }
.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 0.9rem 1.05rem;
}
.faq-item summary { font-weight: 700; cursor: pointer; color: var(--text-primary); }
.faq-item p { margin: 0.55rem 0 0; }

/* Prev / Next Article Pager */
.pager-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 2px solid var(--border);
}

.pager-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.85rem 1rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  text-decoration: none;
}

.pager-card:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  text-decoration: none;
}

.pager-card.next {
  text-align: right;
}

.pager-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent);
}

.pager-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
}

@media (max-width: 600px) {
  .pager-nav {
    grid-template-columns: 1fr;
  }
  .pager-card.next {
    text-align: left;
  }
}

/* Compare Tool */
.compare-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.95rem;
  margin-bottom: 1.1rem;
}
.compare-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.68rem;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
}
.compare-chip button { background: none; border: none; color: var(--accent); cursor: pointer; font-weight: 700; padding: 0 0.15rem; }
.compare-select { padding: 0.48rem 0.7rem; border: 1px solid var(--border-strong); border-radius: var(--radius-xs); font-family: inherit; font-size: 0.88rem; }
.empty-state { text-align: center; padding: 2.25rem 1rem; background: var(--bg-surface); border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); color: var(--text-muted); }

/* Footer */
.site-footer {
  background: var(--bg-ink);
  color: #d1d5db;
  padding: 2.25rem 0 1.4rem;
  margin-top: 2rem;
  border-top: 3px solid var(--accent);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.4rem;
  margin-bottom: 1.75rem;
}
.site-footer h4 { color: #ffffff; font-size: 0.92rem; margin-bottom: 0.7rem; }
.footer-links { list-style: none; margin: 0; padding: 0; font-size: 0.86rem; }
.footer-links li { margin-bottom: 0.4rem; }
.footer-links a { color: #fce7f3; }
.footer-links a:hover { color: #f9a8d4; }
.footer-bottom {
  border-top: 1px solid #831843;
  padding-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.65rem;
  font-size: 0.82rem;
  color: #fbcfe8;
}

@media (max-width: 960px) {
  .hero-split, .article-layout, .magazine-split { grid-template-columns: 1fr; }
  .bento-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sidebar { position: static; }
  .nav-links { display: none; }
  .btn-menu { display: inline-flex; }
}

@media (max-width: 600px) {
  .bento-grid { grid-template-columns: 1fr; }
  .article-main { padding: 1.1rem; }
  .kv-list { grid-template-columns: 1fr; }
}
