/* ============================================================
   美国地址生成器 · 视觉样式
   ============================================================ */

:root {
  --bg: #070b14;
  --bg-soft: #0c1220;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #e9eef8;
  --muted: #8fa0ba;
  --blue: #4f8bff;
  --cyan: #38bdf8;
  --violet: #8b5cf6;
  --gold: #f5c24a;
  --green: #4ade80;
  --red: #ef4444;
  --radius: 18px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro SC", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  --mono: "SF Mono", "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(79, 139, 255, 0.35);
  color: #fff;
}

/* ---------- 背景装饰 ---------- */

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.5;
  pointer-events: none;
  z-index: -2;
  animation: orbFloat 16s ease-in-out infinite alternate;
}

.orb--blue {
  width: 520px;
  height: 520px;
  top: -160px;
  right: -120px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.55), transparent 70%);
}

.orb--red {
  width: 460px;
  height: 460px;
  bottom: -180px;
  left: -140px;
  background: radial-gradient(circle, rgba(190, 34, 52, 0.32), transparent 70%);
  animation-delay: -8s;
}

@keyframes orbFloat {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(60px, 40px, 0) scale(1.12); }
}

.starfield {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.starfield span {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  animation: twinkle 4s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.15; transform: scale(0.8); }
  50%      { opacity: 0.9;  transform: scale(1.2); }
}

/* ---------- 通用按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.25s ease;
  user-select: none;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn--primary {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  border: none;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35);
  font-weight: 600;
}

.btn--primary:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.5);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
}

.btn--sm {
  padding: 7px 14px;
  font-size: 13px;
  border-radius: 10px;
}

.btn--lg {
  padding: 13px 28px;
  font-size: 15px;
  border-radius: 14px;
}

/* ---------- 顶部导航 ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 32px;
  background: rgba(7, 11, 20, 0.62);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.brand__flag {
  width: 40px;
  height: 21px;
  border-radius: 3px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand__name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
}

.brand__sub {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.6px;
}

.nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.nav a {
  padding: 8px 14px;
  border-radius: 10px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.nav a.active {
  color: var(--text);
  background: rgba(79, 139, 255, 0.14);
  font-weight: 600;
}

.header .btn {
  margin-left: 8px;
}

/* ---------- 首屏 Hero ---------- */

.hero {
  max-width: 980px;
  margin: 0 auto;
  padding: 92px 24px 56px;
  text-align: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(245, 194, 74, 0.3);
  background: rgba(245, 194, 74, 0.08);
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.5px;
  margin-bottom: 26px;
}

.hero__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}

.hero__title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  letter-spacing: 2px;
  line-height: 1.2;
  background: linear-gradient(120deg, #ffffff 20%, #b9d4ff 55%, #8ab4ff 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
}

.hero__sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 38px;
}

.hero__sub b {
  color: var(--cyan);
  font-weight: 600;
}

/* ---------- 国家切换器 ---------- */

.country-picker {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 34px auto 34px;
  max-width: 860px;
}

.country-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-family: inherit;
  font-size: 13.5px;
  cursor: pointer;
  transition: all 0.22s ease;
  user-select: none;
}

.country-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.26);
  transform: translateY(-2px);
}

.country-btn.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.55), rgba(124, 58, 237, 0.5));
  border-color: rgba(79, 139, 255, 0.55);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
  font-weight: 600;
}

.hero__stats {
  display: flex;
  justify-content: center;
  gap: clamp(28px, 8vw, 72px);
  margin-bottom: 42px;
}

.hero__stat {
  display: flex;
  flex-direction: column;
}

.hero__stat b {
  font-size: 30px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold), #ffb454);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__stat span {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
  letter-spacing: 1px;
}

.hero__actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- 玻璃卡片通用 ---------- */

.glass {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  border-radius: 24px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

/* ---------- 生成器主体 ---------- */

.generator {
  max-width: 1240px;
  margin: 0 auto 64px;
  padding: 30px;
}

.generator__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.generator__head h2,
.batch__head h2,
.disclaimer h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.generator__head p,
.batch__head p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

.generator__controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.count-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-right: 6px;
}

.count-label select {
  appearance: none;
  background: rgba(255, 255, 255, 0.07) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238fa0ba' fill='none' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  padding: 8px 32px 8px 12px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}

.count-label select:hover,
.count-label select:focus {
  border-color: var(--blue);
}

/* ---------- 资料概览卡 ---------- */

.profile {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  padding: 22px 24px;
  margin-bottom: 26px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.profile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 120px at 15% 0%, rgba(79, 139, 255, 0.14), transparent 70%);
  pointer-events: none;
}

.profile__avatar {
  width: 76px;
  height: 76px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  background: conic-gradient(from 210deg, #4f8bff, #8b5cf6, #f472b6, #4f8bff);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.45), inset 0 2px 6px rgba(255, 255, 255, 0.3);
  letter-spacing: 1px;
}

.profile__info {
  min-width: 240px;
  flex: 1;
}

.profile__name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.profile__name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(79, 139, 255, 0.35);
  background: rgba(79, 139, 255, 0.12);
  color: #a9c7ff;
}

.chip--gold {
  border-color: rgba(245, 194, 74, 0.35);
  background: rgba(245, 194, 74, 0.1);
  color: var(--gold);
}

.chip--country {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.07);
  color: #c9d6ee;
}

.profile__meta {
  font-size: 13px;
  color: var(--muted);
}

.profile__address {
  margin-top: 6px;
  font-size: 14px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.profile__stamp {
  position: absolute;
  right: 26px;
  top: 22px;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1.4;
  color: rgba(239, 68, 68, 0.5);
  border: 2px solid rgba(239, 68, 68, 0.35);
  border-radius: 8px;
  padding: 6px 10px;
  transform: rotate(8deg);
  text-transform: uppercase;
}

/* ---------- 分区与字段 ---------- */

.section {
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

.section:last-child {
  border-bottom: none;
  padding-bottom: 6px;
}

.section__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 18px;
  color: #c9d6ee;
}

.section__title span {
  font-size: 16px;
}

.section__title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-strong), transparent);
}

.fields {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px 22px;
}

.field {
  min-width: 0;
}

.field--wide {
  grid-column: span 2;
}

.field__label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.6px;
  margin-bottom: 6px;
}

.field__row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
}

.field__value {
  font-size: 14px;
  color: var(--text);
  word-break: break-all;
  flex: 1;
  min-width: 0;
}

.field__value--mono {
  font-family: var(--mono);
  font-size: 13.5px;
  letter-spacing: 0.3px;
}

.field__value--sm {
  font-size: 12px;
  color: #c3d0e6;
}

.field__copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  flex-shrink: 0;
  opacity: 0;
  transform: translateY(2px);
  transition: all 0.2s ease;
}

.field:hover .field__copy,
.field__copy:focus-visible {
  opacity: 1;
  transform: translateY(0);
}

.field__copy:hover {
  background: rgba(79, 139, 255, 0.16);
  color: #a9c7ff;
  border-color: rgba(79, 139, 255, 0.3);
}

.field__copy.copied {
  color: var(--green);
  opacity: 1;
  border-color: rgba(74, 222, 128, 0.35);
  background: rgba(74, 222, 128, 0.12);
}

@media (hover: none) {
  .field__copy {
    opacity: 0.55;
    transform: none;
  }
}

/* ---------- 字段刷新动画 ---------- */

.field__value.fresh {
  animation: fieldIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes fieldIn {
  from {
    opacity: 0;
    transform: translateY(7px);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

.generator.is-generating .btn--primary {
  pointer-events: none;
}

.generator.is-generating .btn--primary {
  animation: btnPulse 0.6s ease-in-out infinite alternate;
}

@keyframes btnPulse {
  from { transform: scale(1); box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35); }
  to   { transform: scale(1.04); box-shadow: 0 12px 36px rgba(59, 130, 246, 0.55); }
}

/* ---------- 批量结果 ---------- */

.batch {
  max-width: 1240px;
  margin: 0 auto 64px;
  padding: 30px;
}

.batch__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.batch__actions {
  display: flex;
  gap: 10px;
}

.table-wrap {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
}

.batch-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 860px;
}

.batch-table th {
  text-align: left;
  padding: 12px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.5px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--border-strong);
  white-space: nowrap;
  position: sticky;
  top: 0;
}

.batch-table td {
  padding: 11px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text);
  white-space: nowrap;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.batch-table tbody tr {
  transition: background 0.15s;
  animation: rowIn 0.35s ease both;
}

.batch-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

.batch-table tbody tr:last-child td {
  border-bottom: none;
}

.batch-table td.num {
  color: var(--muted);
  font-family: var(--mono);
}

@keyframes rowIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.row-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}

.row-copy:hover {
  color: #a9c7ff;
  border-color: rgba(79, 139, 255, 0.4);
  background: rgba(79, 139, 255, 0.12);
}

.row-copy.copied {
  color: var(--green);
  border-color: rgba(74, 222, 128, 0.4);
  background: rgba(74, 222, 128, 0.12);
}

.batch-empty {
  padding: 40px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- 免责声明 ---------- */

.disclaimer {
  max-width: 1240px;
  margin: 0 auto 72px;
  padding: 28px 32px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  border-left: 3px solid var(--gold);
}

.disclaimer__icon {
  font-size: 26px;
  line-height: 1.4;
}

.disclaimer p {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 6px;
  max-width: 900px;
}

.disclaimer strong {
  color: var(--text);
}

/* ---------- 页脚 ---------- */

.footer {
  text-align: center;
  padding: 36px 20px 44px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 13.5px;
}

.footer__sub {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(143, 160, 186, 0.7);
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translate(-50%, 24px);
  z-index: 200;
  padding: 12px 24px;
  border-radius: 12px;
  background: rgba(15, 22, 38, 0.92);
  border: 1px solid rgba(79, 139, 255, 0.35);
  color: var(--text);
  font-size: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast::before {
  content: "✓ ";
  color: var(--green);
  font-weight: 700;
}

/* ---------- 响应式 ---------- */

@media (max-width: 900px) {
  .header {
    padding: 12px 18px;
    gap: 14px;
  }

  .nav {
    display: none;
  }

  .hero {
    padding: 64px 20px 44px;
  }

  .generator,
  .batch {
    padding: 20px;
    margin-bottom: 40px;
  }

  .generator__top {
    flex-direction: column;
    align-items: stretch;
  }

  .generator__controls {
    justify-content: flex-start;
  }

  .field--wide {
    grid-column: span 1;
  }

  .profile__stamp {
    display: none;
  }

  .disclaimer {
    margin: 0 20px 48px;
    padding: 22px;
  }
}

@media (max-width: 560px) {
  .header .btn {
    display: none;
  }

  .hero__stats {
    gap: 24px;
  }

  .generator__controls .btn {
    flex: 1 1 auto;
  }

  .profile {
    padding: 18px;
  }

  .batch__actions {
    width: 100%;
  }

  .batch__actions .btn {
    flex: 1;
  }

  .toast {
    white-space: normal;
    max-width: calc(100vw - 48px);
    text-align: center;
  }
}

/* ---------- 动画偏好 ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ============================================================
   内容页（文章 / FAQ / 政策页）
   ============================================================ */

.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 44px 24px 80px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 22px;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--text);
}

.breadcrumb .sep {
  opacity: 0.5;
}

.prose h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.3;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.prose h2 {
  font-size: 1.35rem;
  margin: 36px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.5px;
}

.prose h3 {
  font-size: 1.1rem;
  margin: 26px 0 10px;
  color: #d7e1f2;
}

.prose p {
  margin: 13px 0;
  color: #c4d0e4;
  font-size: 15px;
  line-height: 1.9;
}

.prose ul,
.prose ol {
  margin: 13px 0;
  padding-left: 24px;
  color: #c4d0e4;
  font-size: 15px;
  line-height: 1.9;
}

.prose li {
  margin: 6px 0;
}

.prose li::marker {
  color: var(--blue);
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.prose a {
  color: #9dbfff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
  overflow: hidden;
  border-radius: 12px;
}

.prose th {
  text-align: left;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-weight: 600;
  border-bottom: 1px solid var(--border-strong);
}

.prose td {
  padding: 11px 14px;
  color: #c4d0e4;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: top;
}

.prose tr:last-child td {
  border-bottom: none;
}

.prose .note {
  margin: 20px 0;
  padding: 14px 18px;
  border-radius: 12px;
  border-left: 3px solid var(--gold);
  background: rgba(245, 194, 74, 0.07);
  color: #d9c9a0;
  font-size: 14px;
}

.prose .warn {
  margin: 20px 0;
  padding: 14px 18px;
  border-radius: 12px;
  border-left: 3px solid var(--red);
  background: rgba(239, 68, 68, 0.07);
  color: #e5b8b8;
  font-size: 14px;
}

.article-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 26px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.article-card {
  display: block;
  text-decoration: none;
  padding: 22px 24px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text);
  transition: all 0.25s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 139, 255, 0.4);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
}

.article-card h3 {
  font-size: 16.5px;
  margin-bottom: 8px;
  line-height: 1.5;
}

.article-card p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.article-card .tag {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  border: 1px solid rgba(245, 194, 74, 0.35);
  background: rgba(245, 194, 74, 0.08);
  color: var(--gold);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
  margin-top: 26px;
}

/* ---------- FAQ 手风琴 ---------- */

.accordion {
  margin-top: 20px;
}

.accordion details {
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
  transition: border-color 0.2s;
}

.accordion details[open] {
  border-color: rgba(79, 139, 255, 0.35);
}

.accordion summary {
  padding: 15px 18px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  user-select: none;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary::after {
  content: "+";
  color: var(--blue);
  font-size: 20px;
  font-weight: 400;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.accordion details[open] summary::after {
  transform: rotate(45deg);
}

.accordion .faq-a {
  padding: 0 18px 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.accordion .faq-a strong {
  color: var(--text);
}

/* ---------- 首页内容区块 ---------- */

.home-section {
  max-width: 1240px;
  margin: 0 auto 64px;
  padding: 0 20px;
}

.home-section h2 {
  text-align: center;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.home-section .sub {
  text-align: center;
  color: var(--muted);
  margin-bottom: 30px;
  font-size: 14.5px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.feature-card {
  padding: 24px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(79, 139, 255, 0.4);
}

.feature-card .emoji {
  font-size: 28px;
  display: block;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-size: 15.5px;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.75;
}

.section-links {
  text-align: center;
  margin-top: 26px;
}

/* ---------- 联系页 ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.contact-card {
  padding: 22px 24px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.contact-card .emoji {
  font-size: 24px;
  display: block;
  margin-bottom: 10px;
}

.contact-card h3 {
  font-size: 15px;
  margin-bottom: 8px;
}

.contact-card p,
.contact-card a {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.8;
}

.contact-card a {
  color: #9dbfff;
}

/* ---------- 页脚链接 ---------- */

.footer__links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.footer__links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--text);
}

.page .prose .toc {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 20px 0;
}

.page .prose .toc h2 {
  border: none;
  margin: 0 0 8px;
  font-size: 1rem;
}

.page .prose .toc ul {
  margin: 0;
}
