/* TaoRX 下载站文档页样式（法律声明 / 用户权限）。
   与首页共用同一套设计变量：暗色底、单一蓝色强调、1120px 内容宽度。 */

:root {
  --blue: #2563eb;
  --blue-2: #1d4ed8;
  --blue-light: #7ab0ff;
  --ink: #eef2f8;
  --ink-dim: rgba(238, 242, 248, 0.7);
  --ink-faint: rgba(238, 242, 248, 0.46);
  --bg: #05070c;
  --line: rgba(255, 255, 255, 0.1);
  --wrap: 1120px;
  --head-h: 64px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, table { margin: 0; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 44px);
}

/* ---------- 顶部导航 ---------- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: var(--head-h);
  background: rgba(5, 7, 12, 0.94);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 44px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--blue);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

.nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  width: max-content;
  gap: clamp(14px, 1.9vw, 28px);
  font-size: 14px;
  color: var(--ink-dim);
}

.nav a { padding: 6px 0; white-space: nowrap; transition: color 0.18s ease; }
.nav a:hover { color: #fff; }

.nav-sep { width: 1px; height: 14px; background: var(--line); }

.nav-ext { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-faint); }
.nav-ext:hover { color: var(--ink-dim); }

.bar-end { display: flex; align-items: center; gap: 10px; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.18s ease;
}
.nav-cta:hover { background: var(--blue-2); }

.nav-toggle {
  display: none;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.nav-panel {
  display: none;
  position: fixed;
  top: var(--head-h);
  left: 0;
  right: 0;
  z-index: 39;
  padding: 10px clamp(18px, 4vw, 44px) 18px;
  background: rgba(5, 7, 12, 0.98);
  border-bottom: 1px solid var(--line);
}
.nav-panel.is-open { display: block; }
.nav-panel a {
  display: block;
  padding: 12px 0;
  font-size: 15px;
  color: var(--ink-dim);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav-panel a:last-child { border-bottom: 0; }
.nav-panel .panel-cta { color: var(--blue-light); font-weight: 600; }

/* ---------- 页头 ---------- */
.page-hero {
  padding: calc(var(--head-h) + clamp(56px, 9vw, 104px)) 0 clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(900px 320px at 18% -20%, rgba(37, 99, 235, 0.28), transparent 70%),
    var(--bg);
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-light);
}

.page-title {
  margin-top: 14px;
  font-size: clamp(30px, 4.6vw, 46px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-lead {
  margin-top: 16px;
  max-width: 62ch;
  font-size: 15px;
  color: var(--ink-dim);
}

.page-meta {
  margin-top: 18px;
  font-size: 13px;
  color: var(--ink-faint);
}

/* ---------- 正文 ---------- */
.doc {
  padding: clamp(36px, 5vw, 60px) 0 clamp(56px, 8vw, 96px);
  max-width: 860px;
}

.sect {
  padding: 28px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.sect:first-child { padding-top: 0; }
.sect:last-child { border-bottom: 0; }

.sect h2 {
  font-size: 20px;
  letter-spacing: -0.01em;
}

.sect h2 .idx {
  margin-right: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-light);
  letter-spacing: 0.08em;
}

.sect h3 {
  margin-top: 22px;
  font-size: 15px;
  color: var(--ink);
}

.sect p {
  margin-top: 12px;
  font-size: 14.5px;
  color: var(--ink-dim);
}

.sect p:first-of-type { margin-top: 14px; }

.sect a.inline {
  color: var(--blue-light);
  border-bottom: 1px solid rgba(122, 176, 255, 0.35);
}
.sect a.inline:hover { border-bottom-color: var(--blue-light); }

.bullets {
  margin-top: 14px;
  padding-left: 0;
  list-style: none;
}
.bullets li {
  position: relative;
  padding-left: 18px;
  margin-top: 9px;
  font-size: 14.5px;
  color: var(--ink-dim);
}
.bullets li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
}
.bullets b { color: var(--ink); font-weight: 600; }

/* ---------- 权限表 ---------- */
.table-scroll {
  margin-top: 18px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
}

table.auth {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 13.5px;
}

table.auth thead th {
  padding: 12px 14px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

table.auth tbody td {
  padding: 13px 14px;
  vertical-align: top;
  color: var(--ink-dim);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

table.auth tbody tr:last-child td { border-bottom: 0; }
table.auth tbody tr:hover { background: rgba(255, 255, 255, 0.02); }
table.auth b { color: var(--ink); font-weight: 600; }

.tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 12px;
  white-space: nowrap;
}
.tag.req { background: rgba(37, 99, 235, 0.18); color: var(--blue-light); }
.tag.opt { background: rgba(255, 255, 255, 0.07); color: var(--ink-faint); }

.note {
  margin-top: 18px;
  padding: 14px 16px;
  border-left: 2px solid var(--blue);
  border-radius: 0 10px 10px 0;
  background: rgba(37, 99, 235, 0.08);
  font-size: 13.5px;
  color: var(--ink-dim);
}

/* ---------- 页脚 ---------- */
footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.foot-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 32px;
  padding: clamp(32px, 5vw, 52px) 0 28px;
}

.foot-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.04em;
}

.foot-links {
  margin-top: 12px;
  padding-left: 0;
  list-style: none;
}
.foot-links li {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-faint);
}
.foot-links a:hover { color: var(--ink-dim); }

.foot-brand-col { display: flex; align-items: flex-start; justify-content: flex-end; }
.foot-wordmark {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--ink-dim);
}

.foot-legal {
  padding: 20px 0 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.foot-legal-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  color: var(--ink-faint);
}

.foot-legal-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.foot-legal-links a:hover { color: var(--ink-dim); }
.foot-legal-links .dot { opacity: 0.5; }

.foot-copy {
  margin-top: 14px;
  font-size: 12px;
  color: rgba(238, 242, 248, 0.32);
}

/* ---------- 入场 ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav-cta { display: none; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-brand-col { justify-content: flex-start; }
}

@media (max-width: 620px) {
  .foot-cols { grid-template-columns: 1fr; gap: 24px; }
  .sect { padding: 22px 0; }
}
