* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-height: 100%;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  color: #1a3a4a;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.65), transparent 55%),
    radial-gradient(ellipse at 20% 100%, rgba(168, 216, 107, 0.55), transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(126, 200, 227, 0.6), transparent 60%),
    linear-gradient(180deg, #a8e0f0 0%, #c8e8f5 40%, #d5ecbb 100%);
  background-attachment: fixed;
  padding: 60px 24px 48px;
}

/* ---- 漂浮气泡 ---- */
.bubbles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.bubbles span {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.9), rgba(255,255,255,0.15) 60%, transparent 75%);
  box-shadow: inset 0 0 20px rgba(255,255,255,0.5), 0 4px 20px rgba(100, 180, 220, 0.3);
  animation: float 12s ease-in-out infinite;
}
.bubbles span:nth-child(1) { width: 60px; height: 60px; left: 6%;  top: 14%; animation-delay: 0s; }
.bubbles span:nth-child(2) { width: 40px; height: 40px; left: 88%; top: 22%; animation-delay: 2s; }
.bubbles span:nth-child(3) { width: 80px; height: 80px; left: 82%; top: 68%; animation-delay: 4s; }
.bubbles span:nth-child(4) { width: 32px; height: 32px; left: 12%; top: 74%; animation-delay: 6s; }
.bubbles span:nth-child(5) { width: 50px; height: 50px; left: 46%; top: 90%; animation-delay: 3s; }

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-18px) scale(1.05); }
}

.wrap {
  max-width: 880px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ---- 页头 ---- */
header {
  text-align: center;
  margin-bottom: 34px;
}

header h1 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: #ffffff;
  text-shadow:
    0 2px 0 rgba(255, 255, 255, 0.9),
    0 0 12px rgba(74, 144, 184, 0.55),
    0 6px 24px rgba(74, 144, 184, 0.45);
  margin-bottom: 12px;
}

header p {
  font-size: 11px;
  letter-spacing: 0.34em;
  color: rgba(26, 58, 74, 0.55);
  text-transform: uppercase;
}

/* ---- 标签栏（吸顶） ---- */
.tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  width: fit-content;
  margin: 0 auto 30px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 0 #fff, 0 6px 22px rgba(74, 144, 184, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 14px;
  z-index: 20;
}

.tab {
  font: inherit;
  font-size: 14px;
  letter-spacing: 0.1em;
  padding: 10px 24px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: transparent;
  color: rgba(26, 58, 74, 0.68);
  transition: all 0.22s ease;
  text-decoration: none;
  display: inline-block;
}

.tab:hover { color: #14455e; background: rgba(255, 255, 255, 0.8); }

.tab.is-active {
  background: linear-gradient(135deg, #7ec8e3, #9ed69a);
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(26, 58, 74, 0.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 4px 14px rgba(74, 144, 184, 0.35);
}

/* ---- 文档卡片 ---- */
.panel-doc {
  padding: 48px 52px 56px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,0.88), rgba(255,255,255,0.66));
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,1),
    0 4px 16px rgba(74, 144, 184, 0.18),
    0 12px 44px rgba(74, 144, 184, 0.13);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.panel-doc[hidden] { display: none; }

.panel-doc > h1 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #14455e;
  padding-bottom: 16px;
  margin-bottom: 24px;
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, #7ec8e3, #a8d86b, transparent) 1;
}

/* ---- 目录 ---- */
.toc {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 4px 10px;
  padding: 18px 20px;
  margin: 0 0 36px;
  border-radius: 16px;
  background: rgba(126, 200, 227, 0.12);
  border: 1px solid rgba(126, 200, 227, 0.28);
}

.toc-label {
  grid-column: 1 / -1;
  font-size: 10px;
  letter-spacing: 0.34em;
  color: rgba(26, 58, 74, 0.45);
  margin-bottom: 6px;
}

.toc a {
  font-size: 13.5px;
  line-height: 1.6;
  color: #2b6c8c;
  text-decoration: none;
  padding: 3px 8px;
  border-radius: 8px;
  transition: all 0.18s;
}

.toc a:hover { background: rgba(255, 255, 255, 0.85); color: #14455e; }

/* ---- 正文排版 ---- */
.panel-doc h2 {
  position: relative;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #14455e;
  margin: 46px 0 18px;
  padding-left: 16px;
  scroll-margin-top: 96px;
}

.panel-doc h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 5px;
  border-radius: 3px;
  background: linear-gradient(180deg, #7ec8e3, #a8d86b);
}

.panel-doc h3 {
  font-size: 16px;
  font-weight: 600;
  color: #2b6c8c;
  margin: 28px 0 10px;
  scroll-margin-top: 96px;
}

.panel-doc p {
  font-size: 15px;
  line-height: 1.9;
  color: rgba(26, 58, 74, 0.92);
  margin: 0 0 14px;
}

.panel-doc ul,
.panel-doc ol {
  margin: 0 0 16px;
  padding-left: 1.5em;
}

.panel-doc li {
  font-size: 15px;
  line-height: 1.85;
  color: rgba(26, 58, 74, 0.9);
  margin: 5px 0;
}

.panel-doc li::marker { color: #7ec8e3; }

.panel-doc li > ul,
.panel-doc li > ol { margin: 5px 0; }

.panel-doc strong { color: #14455e; font-weight: 600; }

.panel-doc code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.87em;
  background: rgba(74, 144, 184, 0.12);
  color: #1f5f7f;
  padding: 2px 6px;
  border-radius: 6px;
}

.panel-doc blockquote {
  margin: 0 0 24px;
  padding: 18px 22px;
  border-radius: 16px;
  border-left: 4px solid rgba(126, 200, 227, 0.75);
  background: linear-gradient(135deg, rgba(126, 200, 227, 0.16), rgba(168, 216, 107, 0.14));
}

.panel-doc blockquote p {
  font-size: 14.5px;
  line-height: 1.85;
  color: rgba(26, 58, 74, 0.82);
  margin: 0 0 10px;
}

.panel-doc blockquote p:last-child { margin-bottom: 0; }

/* ---- 表格 ---- */
.table-wrap {
  overflow-x: auto;
  margin: 0 0 22px;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(74, 144, 184, 0.12);
}

.panel-doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  background: rgba(255, 255, 255, 0.72);
}

.panel-doc th {
  background: rgba(126, 200, 227, 0.26);
  color: #14455e;
  font-weight: 600;
  text-align: left;
  padding: 11px 14px;
  white-space: nowrap;
}

.panel-doc td {
  padding: 11px 14px;
  color: rgba(26, 58, 74, 0.88);
  line-height: 1.7;
  border-top: 1px solid rgba(74, 144, 184, 0.13);
}

/* ---- 署名 ---- */
.sig p {
  font-size: 13.5px;
  line-height: 1.9;
  color: rgba(26, 58, 74, 0.68);
  margin: 0 0 10px;
}

.sig .muted {
  font-size: 12.5px;
  color: rgba(26, 58, 74, 0.45);
}

/* ---- 页脚 ---- */
footer {
  text-align: center;
  margin-top: 56px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(26, 58, 74, 0.5);
}

/* ---- 首页 ---- */
.home {
  margin-top: 10px;
}

.home-lead {
  font-size: 16px;
  line-height: 1.9;
  color: rgba(26, 58, 74, 0.8);
  margin-bottom: 28px;
  text-align: center;
}

.nav-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.nav-card {
  display: block;
  padding: 28px 26px 26px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.7));
  border: 1px solid rgba(255,255,255,0.9);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,1),
    0 4px 16px rgba(74, 144, 184, 0.16),
    0 12px 36px rgba(74, 144, 184, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-card:hover {
  transform: translateY(-4px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,1),
    0 6px 22px rgba(74, 144, 184, 0.22),
    0 16px 44px rgba(74, 144, 184, 0.14);
}

.card-kicker {
  display: block;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: rgba(26, 58, 74, 0.45);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.nav-card h2 {
  font-size: 20px;
  font-weight: 700;
  color: #14455e;
  margin: 0 0 12px;
  letter-spacing: 0.02em;
}

.nav-card p {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(26, 58, 74, 0.8);
  margin: 0 0 18px;
}

.card-go {
  font-size: 13px;
  color: #2b6c8c;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* ---- 响应式 ---- */
@media (max-width: 640px) {
  body { padding: 36px 14px 32px; }
  header h1 { font-size: 26px; letter-spacing: 0.14em; }
  header p { font-size: 9px; letter-spacing: 0.24em; }
  .tabs { border-radius: 20px; }
  .tab { padding: 9px 16px; font-size: 13px; }
  .panel-doc { padding: 28px 20px 36px; border-radius: 20px; }
  .panel-doc > h1 { font-size: 20px; }
  .panel-doc h2 { font-size: 18px; margin-top: 34px; }
  .panel-doc h3 { font-size: 15px; }
  .panel-doc p,
  .panel-doc li { font-size: 14.5px; line-height: 1.85; }
  .toc { grid-template-columns: 1fr 1fr; padding: 14px; }
  .panel-doc blockquote { padding: 14px 16px; }
  .nav-cards { grid-template-columns: 1fr; }
  .home-lead { font-size: 15px; }
}