@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&display=swap');

/* ============================================================
   CSS 变量 & 重置
   ============================================================ */
:root {
  --blue: #c8e0f4;
  --pink: #f5e0e8;
  --dark: #171f26;
  --blue-dark: #a8c8e8;
  --pink-dark: #e0c0d0;
  --bg: #d4e8f8;
  --surface: #cde4f6;
  --surface-pink: #f8e8f0;
  --text: #171f26;
  --text-muted: #4a5a6a;
  --shadow-light: rgba(255,255,255,0.82);
  --shadow-dark: rgba(160,190,220,0.55);
  --radius: 14px;
  --radius-sm: 10px;
  --font-pixel: 'Press Start 2P', monospace;
  --font-vt: 'VT323', monospace;
  --font-body: system-ui, -apple-system, sans-serif;
  --header-h: 68px;
  --sticky-h: 44px;
  --offset: calc(var(--header-h) + var(--sticky-h));
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

body.neu-body {
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============================================================
   软浮雕辅助
   ============================================================ */
.neu-raised {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow:
    -5px -5px 15px var(--shadow-light),
    5px 5px 15px var(--shadow-dark);
}

.neu-inset {
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow:
    inset -3px -3px 8px var(--shadow-light),
    inset 3px 3px 8px var(--shadow-dark);
}

/* ============================================================
   页面包裹
   ============================================================ */
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ============================================================
   顶部 Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(135deg, var(--blue) 0%, var(--surface) 100%);
  box-shadow:
    0 2px 8px var(--shadow-dark),
    0 -1px 0 var(--shadow-light);
  height: var(--header-h);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  min-height: 44px;
  padding: 4px 0;
}

.brand-logo {
  height: 38px;
  width: auto;
}

.brand-text {
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--dark);
  letter-spacing: 1px;
  line-height: 1.6;
  max-width: 160px;
  display: block;
  padding: 8px 12px;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex-wrap: nowrap;
}

/* 搜索框 */
.search-wrap {
  display: flex;
  align-items: center;
  background: var(--bg);
  border-radius: 22px;
  box-shadow:
    inset -2px -2px 6px var(--shadow-light),
    inset 2px 2px 6px var(--shadow-dark);
  padding: 4px 10px;
  gap: 6px;
  min-height: 44px;
}

.search-box {
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--font-vt);
  font-size: 18px;
  color: var(--text);
  width: 160px;
  line-height: 1;
}

.search-box::placeholder { color: var(--text-muted); }

.search-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 14px;
  padding: 4px 6px;
  min-height: 40px;
  transition: color 150ms;
}

.search-btn:hover { color: var(--dark); }

/* 药丸导航 */
.pill-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.nav-pill {
  font-family: var(--font-pixel);
  font-size: 7px;
  color: var(--dark);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 22px;
  white-space: nowrap;
  background: linear-gradient(145deg, var(--blue), var(--blue-dark));
  box-shadow:
    -3px -3px 8px var(--shadow-light),
    3px 3px 8px var(--shadow-dark);
  transition: box-shadow 150ms, transform 150ms;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.nav-pill:hover {
  box-shadow:
    -2px -2px 5px var(--shadow-light),
    2px 2px 5px var(--shadow-dark);
  transform: scale(1.03);
}

.nav-pill:active {
  box-shadow:
    inset -2px -2px 5px var(--shadow-light),
    inset 2px 2px 5px var(--shadow-dark);
  transform: scale(0.97);
}

/* 汉堡按钮 */
.menu-toggle {
  display: none;
  border: none;
  background: var(--surface);
  border-radius: var(--radius-sm);
  box-shadow:
    -3px -3px 8px var(--shadow-light),
    3px 3px 8px var(--shadow-dark);
  width: 44px;
  height: 44px;
  font-size: 18px;
  cursor: pointer;
  color: var(--dark);
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* 移动菜单 */
.mobile-menu {
  background: linear-gradient(135deg, var(--blue), var(--surface));
  padding: 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 4px 12px var(--shadow-dark);
}

.mobile-link {
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--dark);
  text-decoration: none;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  box-shadow:
    -2px -2px 6px var(--shadow-light),
    2px 2px 6px var(--shadow-dark);
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: box-shadow 150ms;
}

.mobile-link:hover {
  box-shadow:
    inset -2px -2px 5px var(--shadow-light),
    inset 2px 2px 5px var(--shadow-dark);
}

/* ============================================================
   粘性锚点条
   ============================================================ */
.sticky-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  background: linear-gradient(135deg, var(--surface-pink), var(--pink));
  box-shadow:
    0 2px 8px var(--shadow-dark);
  height: var(--sticky-h);
  overflow: hidden;
}

.sticky-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.sticky-inner::-webkit-scrollbar { display: none; }

.sticky-link {
  font-family: var(--font-vt);
  font-size: 20px;
  color: var(--dark);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 20px;
  white-space: nowrap;
  background: var(--bg);
  box-shadow:
    -2px -2px 6px var(--shadow-light),
    2px 2px 6px rgba(180,140,160,0.4);
  transition: box-shadow 150ms, transform 150ms;
  min-height: 34px;
  display: flex;
  align-items: center;
}

.sticky-link:hover {
  box-shadow:
    inset -2px -2px 5px var(--shadow-light),
    inset 2px 2px 5px rgba(180,140,160,0.4);
  transform: scale(0.97);
}

/* ============================================================
   Hero
   ============================================================ */
.hero-section {
  position: relative;
  min-height: calc(100vh - var(--header-h) - var(--sticky-h));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(160deg, var(--blue) 0%, var(--pink) 60%, var(--surface) 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(255,255,255,0.45) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 70%, rgba(200,160,180,0.25) 0%, transparent 55%);
  pointer-events: none;
}

.hero-arc {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 24px 100px;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.hero-badge {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--dark);
  background: var(--surface);
  padding: 8px 18px;
  border-radius: 22px;
  box-shadow:
    -3px -3px 10px var(--shadow-light),
    3px 3px 10px var(--shadow-dark);
  letter-spacing: 2px;
  animation: badge-float 3s ease-in-out infinite;
}

@keyframes badge-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.hero-h1 {
  font-family: var(--font-pixel);
  font-size: clamp(14px, 3vw, 22px);
  color: var(--dark);
  line-height: 1.8;
  text-shadow: 1px 1px 0 var(--shadow-light);
}

.hero-sub {
  font-family: var(--font-vt);
  font-size: clamp(20px, 3.5vw, 28px);
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.5;
}

.hero-cta {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--dark);
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 22px;
  background: linear-gradient(145deg, var(--blue), var(--blue-dark));
  box-shadow:
    -5px -5px 15px var(--shadow-light),
    5px 5px 15px var(--shadow-dark);
  transition: box-shadow 150ms, transform 150ms;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
}

.hero-cta:hover {
  box-shadow:
    -3px -3px 10px var(--shadow-light),
    3px 3px 10px var(--shadow-dark);
  transform: scale(1.04);
}

.hero-cta:active {
  box-shadow:
    inset -3px -3px 8px var(--shadow-light),
    inset 3px 3px 8px var(--shadow-dark);
  transform: scale(0.97);
}

/* ============================================================
   主内容区
   ============================================================ */
.site-main {
  flex: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px 64px;
  width: 100%;
}

.content-section {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

/* aside 在内容左侧 */
.content-aside {
  flex: 0 0 260px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: calc(var(--header-h) + var(--sticky-h) + 20px);
}

.aside-card {
  background: linear-gradient(145deg, var(--surface), var(--blue));
  border-radius: var(--radius);
  box-shadow:
    -5px -5px 15px var(--shadow-light),
    5px 5px 15px var(--shadow-dark);
  padding: 20px;
}

.aside-card.aside-tip {
  background: linear-gradient(145deg, var(--surface-pink), var(--pink));
}

.aside-title {
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--dark);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(255,255,255,0.5);
  letter-spacing: 1px;
}

.aside-dl { display: flex; flex-direction: column; gap: 6px; }

.aside-dl dt { display: block; }

.aside-link {
  font-family: var(--font-vt);
  font-size: 19px;
  color: var(--dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  box-shadow:
    -2px -2px 5px var(--shadow-light),
    2px 2px 5px var(--shadow-dark);
  transition: box-shadow 150ms, transform 150ms;
  min-height: 40px;
  line-height: 1.2;
}

.aside-link:hover {
  box-shadow:
    inset -2px -2px 5px var(--shadow-light),
    inset 2px 2px 5px var(--shadow-dark);
  transform: scale(0.98);
}

.aside-text {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* 内容主体 */
.content-body {
  flex: 1;
  min-width: 0;
}

.section-h2 {
  font-family: var(--font-pixel);
  font-size: 12px;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.8;
}

.subtitle {
  font-family: var(--font-vt);
  font-size: 22px;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.5;
}

/* page.content 内的样式 */
.content-html {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
}

.content-html h2 {
  font-family: var(--font-pixel);
  font-size: 11px;
  color: var(--dark);
  margin: 40px 0 12px;
  padding: 16px 20px;
  background: linear-gradient(145deg, var(--surface), var(--blue));
  border-radius: var(--radius);
  box-shadow:
    -4px -4px 12px var(--shadow-light),
    4px 4px 12px var(--shadow-dark);
  line-height: 1.8;
  scroll-margin-top: var(--offset);
}

.content-html h3 {
  font-family: var(--font-vt);
  font-size: 26px;
  color: var(--dark);
  margin: 28px 0 8px;
  padding-left: 12px;
  border-left: 4px solid var(--blue-dark);
}

.content-html p {
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.75;
}

.content-html ul,
.content-html ol {
  margin: 12px 0 16px 20px;
}

.content-html li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.content-html a {
  color: #2a6aa0;
  text-decoration: underline;
}

.content-html a:hover { color: var(--dark); }

.content-html strong { color: var(--dark); font-weight: 700; }

.content-html div {
  margin-bottom: 40px;
  padding: 28px;
  background: linear-gradient(145deg, var(--surface), var(--bg));
  border-radius: var(--radius);
  box-shadow:
    -5px -5px 15px var(--shadow-light),
    5px 5px 15px var(--shadow-dark);
  scroll-margin-top: var(--offset);
}

.content-html figure {
  margin: 20px 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    -4px -4px 12px var(--shadow-light),
    4px 4px 12px var(--shadow-dark);
}

.content-html figure img {
  width: 100%;
  height: auto;
  display: block;
}

.content-html figcaption {
  font-family: var(--font-vt);
  font-size: 18px;
  color: var(--text-muted);
  padding: 8px 12px;
  background: var(--surface);
  text-align: center;
}

.content-html table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 15px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow:
    -3px -3px 10px var(--shadow-light),
    3px 3px 10px var(--shadow-dark);
}

.content-html th {
  background: linear-gradient(145deg, var(--blue), var(--blue-dark));
  color: var(--dark);
  padding: 12px 16px;
  font-family: var(--font-pixel);
  font-size: 7px;
  letter-spacing: 1px;
  text-align: left;
}

.content-html td {
  padding: 10px 16px;
  background: var(--surface);
  border-bottom: 1px solid rgba(255,255,255,0.5);
}

.content-html tr:last-child td { border-bottom: none; }
.content-html tr:nth-child(even) td { background: var(--bg); }

.content-html blockquote {
  margin: 20px 0;
  padding: 16px 20px;
  background: linear-gradient(145deg, var(--surface-pink), var(--pink));
  border-radius: var(--radius);
  box-shadow:
    inset -3px -3px 8px var(--shadow-light),
    inset 3px 3px 8px rgba(180,140,160,0.35);
  font-size: 17px;
  color: var(--text-muted);
  font-style: italic;
}

.content-html code {
  font-family: 'Courier New', monospace;
  font-size: 14px;
  background: var(--bg);
  padding: 2px 6px;
  border-radius: 4px;
  box-shadow:
    inset -1px -1px 3px var(--shadow-light),
    inset 1px 1px 3px var(--shadow-dark);
  color: #c0392b;
}

.content-html pre {
  background: var(--dark);
  color: var(--blue);
  padding: 20px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 16px 0;
  box-shadow:
    -4px -4px 12px var(--shadow-light),
    4px 4px 12px var(--shadow-dark);
}

.content-html pre code {
  background: none;
  box-shadow: none;
  color: inherit;
  font-size: 14px;
  padding: 0;
}

#home,
#about,
#pornhub-wangzhi-jiegou,
#jingxiang-yu-vpn-wenti,
#liaojie-p-zhan-wangzhi-de-haochi,
#fangwen-p-zhan-de-bu-zou,
#shijian-jieguo-changjing {
  scroll-margin-top: var(--offset);
}

/* ============================================================
   页脚（极简：仅 p + small）
   ============================================================ */
.site-footer {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  padding: 28px 24px;
  text-align: center;
  box-shadow:
    0 -2px 8px var(--shadow-dark);
}

.footer-copy {
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 2;
}

.footer-note {
  font-family: var(--font-vt);
  font-size: 18px;
  color: var(--text-muted);
  display: block;
  line-height: 1.5;
}

/* ============================================================
   页脚导航结构（契约：footer nav > dl > dt/dd > a）
   位于 .site-footer 之外，是独立 <nav> 元素
   ============================================================ */
.footer-nav-struct {
  background: var(--surface-pink);
  padding: 20px 24px;
  overflow-x: auto;
}

.footer-dl {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 1280px;
  margin: 0 auto;
  justify-content: center;
}

.footer-dl dt {
  display: block;
}

.footer-dl dd {
  display: block;
  margin: 0;
}

.footer-nav-link {
  font-family: var(--font-vt);
  font-size: 20px;
  color: var(--dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 20px;
  background: var(--bg);
  box-shadow:
    -2px -2px 6px var(--shadow-light),
    2px 2px 6px rgba(180,140,160,0.4);
  min-height: 44px;
  transition: box-shadow 150ms, transform 150ms;
  white-space: nowrap;
}

.footer-nav-link:hover {
  box-shadow:
    inset -2px -2px 5px var(--shadow-light),
    inset 2px 2px 5px rgba(180,140,160,0.4);
  transform: scale(0.97);
}

/* ============================================================
   动效：Stagger List
   ============================================================ */
.content-html ul li,
.content-html ol li {
  opacity: 0;
  transform: translateX(-12px);
  animation: stagger-in 0.4s ease forwards;
}

.content-html ul li:nth-child(1) { animation-delay: 0.05s; }
.content-html ul li:nth-child(2) { animation-delay: 0.1s; }
.content-html ul li:nth-child(3) { animation-delay: 0.15s; }
.content-html ul li:nth-child(4) { animation-delay: 0.2s; }
.content-html ul li:nth-child(5) { animation-delay: 0.25s; }
.content-html ul li:nth-child(6) { animation-delay: 0.3s; }
.content-html ul li:nth-child(7) { animation-delay: 0.35s; }
.content-html ul li:nth-child(n+8) { animation-delay: 0.4s; }

@keyframes stagger-in {
  to { opacity: 1; transform: translateX(0); }
}

/* ============================================================
   prefers-reduced-motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .hero-badge { animation: none; }
  .content-html ul li,
  .content-html ol li {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* ============================================================
   响应式断点
   ============================================================ */
@media (max-width: 1024px) {
  .pill-nav { display: none; }
  .menu-toggle { display: flex; }
  .search-box { width: 120px; }
}

@media (max-width: 768px) {
  :root {
    --header-h: 60px;
    --sticky-h: 40px;
  }

  .site-main { padding: 32px 16px 48px; }

  .content-section {
    flex-direction: column;
    gap: 24px;
  }

  .content-aside {
    flex: none;
    width: 100%;
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .aside-card {
    flex: 1 1 calc(50% - 10px);
    min-width: 240px;
  }

  .hero-h1 {
    font-size: clamp(11px, 4vw, 18px);
  }

  .hero-sub {
    font-size: clamp(18px, 4vw, 24px);
  }

  .content-html div {
    padding: 20px 16px;
  }

  .content-html h2 {
    font-size: 9px;
    padding: 12px 14px;
  }

  .footer-dl {
    gap: 6px;
  }
}

@media (max-width: 480px) {
  .search-wrap { display: none; }

  .brand-text {
    font-size: 8px;
    max-width: 120px;
  }

  .hero-content {
    padding: 32px 16px 80px;
    gap: 18px;
  }

  .aside-card {
    flex: 1 1 100%;
  }

  .content-html table {
    font-size: 13px;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .footer-copy { font-size: 7px; }
  .footer-note { font-size: 16px; }
}
