:root{
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI",
               "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
               "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", "Roboto Mono", ui-monospace,
               Consolas, Menlo, monospace;

  --bg:            #eef1f6;
  --text:          #1e293b;
  --text-soft:     #475569;
  --muted:         #64748b;
  --faint:         #64748b;

  --glass:         rgba(255,255,255,.62);
  --glass-hi:      rgba(255,255,255,.82);
  --glass-border:  rgba(255,255,255,.95);
  --glass-hover:   rgba(255,255,255,.90);

  --blue:          #2563eb;
  --blue-deep:     #1d4ed8;
  --indigo:        #4f46e5;
  --teal:          #0d9488;
  --green:         #15803d;
  --amber:         #b45309;
  --slate:         #64748b;

  --shadow-lg: 0 22px 52px -22px rgba(30,41,80,.24), 0 3px 12px -6px rgba(30,41,80,.08);
  --shadow-sm: 0 12px 28px -16px rgba(30,41,80,.20);
  --shadow-xs: 0 5px 14px -8px rgba(30,41,80,.16);

  --r-xl: 26px;
  --r-lg: 20px;
  --r-md: 16px;
  --r-sm: 12px;
}

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

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

body{
  margin:0;
  min-height:100vh;
  font-family:var(--font-sans);
  font-size:16px;
  line-height:1.62;
  color:var(--text);
  background-color:var(--bg);
  background-image:
    radial-gradient(900px 520px at 8% -8%, rgba(37,99,235,.08), transparent 62%),
    radial-gradient(760px 480px at 94% 4%,  rgba(79,70,229,.06), transparent 64%);
  background-attachment:fixed;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

ul,ol,dl{ margin:0; padding:0; list-style:none; }

.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;
}

.app{
  width:min(100% - 32px, 1140px);
  margin:0 auto;
  padding:28px 0 48px;
  display:flex;
  flex-direction:column;
  gap:26px;
}

main#main-content{
  display:flex;
  flex-direction:column;
  gap:26px;
}

h1,h2,h3{ line-height:1.35; margin:0; }

.glass{
  background:var(--glass);
  -webkit-backdrop-filter:blur(12px) saturate(150%);
  backdrop-filter:blur(12px) saturate(150%);
  border:1px solid var(--glass-border);
  box-shadow:var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,.9);
}

@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  .glass{ background:rgba(255,255,255,.94); }
}

/* ============================================================
   顶栏
   ============================================================ */
.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:14px;
}
.brand{ display:flex; align-items:center; gap:14px; }
.brand-mark{
  width:50px; height:50px;
  flex:none;
  display:grid; place-items:center;
  border-radius:6px;
  overflow: hidden;
}
.brand-mark img{width: 100%;height: 100%;}
.brand-text{ display:flex; flex-direction:column; }
.brand-text .site-name{
  margin:0;
  font-size:clamp(1.05rem, 2.6vw, 1.3rem);
  font-weight:800;
  letter-spacing:-.01em;
  color:var(--text);
  line-height:1.35;
}
.brand-text p{
  margin:0;
  font-size:.78rem;
  color:var(--muted);
  line-height:1.5;
}
.back-link{
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:9px 17px;
  border-radius:999px;
  font-size:.76rem;
  font-weight:600;
  color:var(--blue-deep);
  background:var(--glass-hi);
  -webkit-backdrop-filter:blur(8px) saturate(150%);
  backdrop-filter:blur(8px) saturate(150%);
  border:1px solid var(--glass-border);
  box-shadow:var(--shadow-xs);
  text-decoration:none;
  transition:transform .18s ease, color .18s ease, box-shadow .18s ease, background .18s ease;
}
.back-link:hover{
  background:#fff;
  transform:translateY(-2px);
  box-shadow:0 12px 24px -14px rgba(29,78,216,.45);
}
.back-link:focus-visible{
  outline:2px solid var(--blue);
  outline-offset:2px;
}

/* ============================================================
   面包屑
   ============================================================ */
.breadcrumb{
  padding:12px 18px;
  border-radius:var(--r-md);
  background:var(--glass);
  -webkit-backdrop-filter:blur(10px) saturate(150%);
  backdrop-filter:blur(10px) saturate(150%);
  border:1px solid var(--glass-border);
  box-shadow:var(--shadow-xs);
}
.breadcrumb ol{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  font-size:.8rem;
}
.breadcrumb li{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:var(--muted);
}
.breadcrumb li + li::before{
  content:"/";
  color:rgba(100,116,139,.45);
  font-weight:400;
  speak:none;
}
.breadcrumb a{
  color:var(--blue-deep);
  text-decoration:none;
  font-weight:600;
  border-bottom:1px solid transparent;
  transition:border-color .16s ease;
}
.breadcrumb a:hover{
  border-bottom-color:var(--blue);
}
.breadcrumb [aria-current="page"]{
  color:var(--text-soft);
  font-weight:600;
}

/* ============================================================
   页面头部
   ============================================================ */
.page-header{
  padding:clamp(28px, 5vw, 44px) clamp(20px, 4vw, 36px);
  border-radius:var(--r-xl);
  background:var(--glass);
  -webkit-backdrop-filter:blur(12px) saturate(150%);
  backdrop-filter:blur(12px) saturate(150%);
  border:1px solid var(--glass-border);
  box-shadow:var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,.9);
}
.page-header h1{
  margin:0 0 8px;
  font-size:clamp(1.35rem, 3.8vw, 1.85rem);
  font-weight:800;
  letter-spacing:-.015em;
  color:var(--text);
}
.page-header p{
  margin:0;
  font-size:.88rem;
  line-height:1.85;
  color:var(--muted);
  max-width:66ch;
}
.page-header .meta-line{
  margin-top:14px;
  font-size:.74rem;
  color:var(--faint);
  font-variant-numeric:tabular-nums;
}
.page-header .meta-line time{ font-weight:600; }

/* ============================================================
   内容区块
   ============================================================ */
.info-card{
  padding:clamp(24px, 4vw, 36px);
  border-radius:var(--r-xl);
  background:var(--glass);
  -webkit-backdrop-filter:blur(12px) saturate(150%);
  backdrop-filter:blur(12px) saturate(150%);
  border:1px solid var(--glass-border);
  box-shadow:var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,.9);
}
.info-card > h2{
  display:flex;
  align-items:center;
  gap:10px;
  margin:0 0 18px;
  font-size:1.05rem;
  font-weight:800;
  letter-spacing:-.01em;
  color:var(--text);
  width:fit-content;
}
.info-card > h2 .section-icon{
  font-size:1.15rem;
  line-height:1;
}
.info-card > p{
  margin:0 0 14px;
  font-size:.85rem;
  line-height:2;
  color:var(--muted);
}
.info-card > p:last-child{ margin-bottom:0; }

/* 数据源条目 */
.source-list{
  display:grid;
  gap:14px;
}
.source-item{
  padding:18px 20px;
  border-radius:var(--r-md);
  background:rgba(255,255,255,.55);
  border:1px solid var(--glass-border);
  transition:background .2s ease, border-color .2s ease;
}
.source-item:hover{
  background:rgba(255,255,255,.78);
  border-color:rgba(37,99,235,.2);
}
.source-item h3{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  margin:0 0 10px;
  font-size:.94rem;
  font-weight:800;
  color:var(--text);
  line-height:1.45;
}
.source-item h3 .badge{
  display:inline-block;
  padding:2px 10px;
  border-radius:999px;
  font-size:.63rem;
  font-weight:700;
  letter-spacing:.05em;
  color:#fff;
  background:var(--blue);
}
.source-item:nth-child(2) h3 .badge{ background:var(--indigo); }
.source-item:nth-child(3) h3 .badge{ background:var(--teal); }
.source-item:nth-child(4) h3 .badge{ background:var(--slate); }
.source-item:nth-child(5) h3 .badge{ background:var(--blue); }
.source-item:nth-child(6) h3 .badge{ background:var(--indigo); }
.source-item:nth-child(7) h3 .badge{ background:var(--teal); }
.source-item:nth-child(8) h3 .badge{ background:var(--slate); }

/* 数据源元信息：dt/dd 双列配对 */
.source-meta{
  display:grid;
  gap:8px 14px;
  grid-template-columns:5em 1fr;
  margin:0;
  font-size:.82rem;
  line-height:1.85;
}
.source-meta dt{
  font-weight:700;
  color:var(--text-soft);
  padding-right:12px;
  border-right:2px solid rgba(37,99,235,.14);
  white-space:nowrap;
}
.source-meta dd{
  margin:0;
  color:var(--muted);
  word-break:break-word;
}
.source-meta a{
  color:var(--blue-deep);
  text-decoration:none;
  border-bottom:1px solid rgba(37,99,235,.3);
  word-break:break-all;
  transition:border-color .16s ease, color .16s ease;
}
.source-meta a:hover{
  color:var(--blue);
  border-bottom-color:var(--blue);
}

/* 使用说明块 */
.usage-note{
  margin-top:16px;
  padding:16px 18px;
  border-radius:var(--r-md);
  background:rgba(37,99,235,.06);
  border-left:3px solid var(--blue);
  font-size:.82rem;
  line-height:1.9;
  color:var(--text-soft);
}
.usage-note strong{
  display:block;
  margin-bottom:5px;
  font-size:.78rem;
  font-weight:800;
  color:var(--blue-deep);
  letter-spacing:.02em;
}

/* 引用原则 */
.principle-list{
  display:grid;
  gap:14px;
}
.principle-item{
  padding:16px 20px;
  border-radius:var(--r-md);
  background:rgba(255,255,255,.55);
  border:1px solid var(--glass-border);
}
.principle-item h3{
  margin:0 0 6px;
  font-size:.9rem;
  font-weight:800;
  color:var(--text-soft);
  letter-spacing:-.005em;
}
.principle-item p{
  margin:0;
  font-size:.82rem;
  line-height:1.9;
  color:var(--muted);
}

/* 免责声明 */
.disclaimer{
  padding:16px 18px;
  border-radius:var(--r-md);
  background:rgba(180,83,9,.06);
  border-left:3px solid var(--amber);
  font-size:.82rem;
  line-height:1.9;
  color:var(--text-soft);
}
.disclaimer strong{
  display:block;
  margin-bottom:5px;
  font-size:.78rem;
  font-weight:800;
  color:var(--amber);
  letter-spacing:.02em;
}
.disclaimer .emphasis{
  display:inline;
  font-weight:800;
  color:var(--text);
  background:rgba(180,83,9,.12);
  padding:1px 6px;
  border-radius:4px;
}

/* 更新记录 */
.changelog-entry{
  padding:14px 18px;
  margin:0;
  border-radius:var(--r-md);
  background:rgba(255,255,255,.55);
  border:1px solid var(--glass-border);
  font-size:.82rem;
  line-height:1.9;
  color:var(--muted);
}
.changelog-entry time{
  display:inline-block;
  margin-right:8px;
  font-weight:700;
  color:var(--blue-deep);
  font-variant-numeric:tabular-nums;
}

/* ============================================================
   页脚
   ============================================================ */
.footer{
  margin-top:8px;
  padding-top:24px;
  border-top:1px solid rgba(255,255,255,.9);
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  font-size:.76rem;
  color:var(--faint);
}
.footer p{ margin:0; }
.footer nav{ display:flex; gap:18px; }
.footer a{
  color:var(--faint);
  text-decoration:none;
  font-weight:500;
  transition:color .16s ease;
}
.footer a:hover{ color:var(--blue-deep); }
.footer a[aria-current="page"]{
  color:var(--text-soft);
  font-weight:600;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width:600px){
  .app{ width:min(100% - 22px, 1140px); padding-top:18px; gap:20px; }
  .brand-mark{ width:44px; height:44px; border-radius:13px; font-size:18px; }
  .back-link{ width:100%; justify-content:center; }
  .source-item{ padding:16px 18px; }
  .source-meta{
    grid-template-columns:1fr;
    gap:2px;
  }
  .source-meta dt{
    margin-top:8px;
    padding-right:0;
    border-right:none;
    white-space:normal;
  }
  .source-meta dt:first-child{ margin-top:0; }
  body{ background-attachment:scroll; }
}

@media (prefers-reduced-motion:reduce){
  *{ animation-duration:.001ms !important; transition-duration:.001ms !important; }
}
