/* ============================================================
   DTR授权服务端 —— 官网样式（完全自包含，无外部依赖）
   作者：老李  QQ:1735737677  群:1023163759
   扁平 / 清爽 / 蓝绿色调，响应式，兼容 IE 不支持的变量写法已尽量避免
   ============================================================ */

:root {
  --teal: #14b8a6;
  --sky: #0ea5e9;
  --deep: #0f766e;
  --ink: #1f2d3d;
  --muted: #6b7a90;
  --line: #e3eaea;
  --soft: #eef4f4;
  --white: #ffffff;
  --warn: #d97706;
  --bad: #dc2626;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .08);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: #f7fafb;
  color: var(--ink);
  font: 14px/1.75 "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--deep); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--teal); }

img, pre, table { max-width: 100%; }

h1, h2, h3, h4 { margin: 0; font-weight: 700; color: var(--ink); line-height: 1.4; }

p { margin: 0 0 12px; }
p:last-child { margin-bottom: 0; }

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

code {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--deep);
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  padding: 1px 6px;
  word-break: break-all;
}

/* ---------- 布局容器 ---------- */
.wrap { margin: 0 auto; padding: 0 24px; max-width: 1160px; width: 100%; }
.wrap-narrow { max-width: 880px; }
.wrap-doc { max-width: 940px; }
.main { display: block; }

/* ---------- 顶部导航 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(180%) blur(6px);
}
.nav-in {
  margin: 0 auto;
  max-width: 1160px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand-logo {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--deep), var(--sky));
  color: #fff;
  font-size: 13px; font-weight: 700; letter-spacing: .5px;
  display: flex; align-items: center; justify-content: center;
}
.brand-txt { display: flex; flex-direction: column; line-height: 1.25; }
.brand-txt b { font-size: 15px; color: var(--ink); }
.brand-txt i { font-style: normal; font-size: 12px; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav-links a {
  padding: 7px 14px;
  border-radius: 10px;
  color: var(--ink);
  font-size: 14px;
}
.nav-links a:hover { background: var(--soft); color: var(--deep); }
.nav-links a.on { background: var(--soft); color: var(--deep); font-weight: 700; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 11px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 7px 16px; border-radius: 10px; }
.btn-block { display: block; width: 100%; }
.btn-primary, .btn-solid {
  background: var(--teal);
  color: #fff;
}
.btn-primary:hover, .btn-solid:hover { background: var(--deep); color: #fff; box-shadow: 0 6px 18px rgba(20, 184, 166, .3); }
.btn-light { background: #fff; color: var(--deep); }
.btn-light:hover { background: #f0fdfa; color: var(--deep); box-shadow: 0 6px 18px rgba(0, 0, 0, .12); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn-outline:hover { background: rgba(255, 255, 255, .14); color: #fff; border-color: #fff; }
.btn-ghost { background: #fff; color: var(--deep); border-color: var(--line); }
.btn-ghost:hover { background: var(--soft); color: var(--deep); border-color: var(--teal); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, #0f766e, #0ea5e9);
  color: #fff;
  padding: 60px 0 66px;
}
.hero-in { margin: 0 auto; max-width: 1160px; padding: 0 24px; }
.hero-tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .3);
  font-size: 13px;
  margin-bottom: 18px;
}
.hero h1 { font-size: 36px; color: #fff; margin-bottom: 14px; letter-spacing: .5px; }
.hero-sub { font-size: 15px; color: rgba(255, 255, 255, .9); max-width: 680px; margin-bottom: 26px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-nums { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-nums li { display: flex; flex-direction: column; }
.hero-nums b { font-size: 18px; }
.hero-nums span { font-size: 12px; color: rgba(255, 255, 255, .8); }

/* ---------- 区块 ---------- */
.block { padding: 52px 0; }
.block-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.h2 {
  font-size: 24px;
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 12px;
}
.h2 span { position: relative; }
.h2::before {
  content: "";
  width: 6px; height: 20px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--teal), var(--sky));
}
.h3 { font-size: 17px; margin: 26px 0 10px; }
.lead { color: var(--muted); margin-bottom: 24px; max-width: 780px; }
.hint {
  color: var(--muted);
  background: var(--soft);
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  border-radius: 10px;
  padding: 12px 16px;
  margin: 14px 0 0;
}
.empty {
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 26px;
  color: var(--muted);
  text-align: center;
}
.more-line { margin-top: 22px; color: var(--muted); }

/* ---------- 栅格 ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- 卡片 ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}
.feat .ico {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
}
.feat h3 { font-size: 16px; margin-bottom: 8px; }
.feat p { color: var(--muted); font-size: 13.5px; }
.qa { background: var(--soft); border-color: var(--line); box-shadow: none; }
.qa h3 { font-size: 15px; margin-bottom: 8px; color: var(--deep); }
.qa p { color: var(--ink); font-size: 13.5px; }

/* ---------- 套餐卡 ---------- */
.plan {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 24px 20px;
  display: flex; flex-direction: column;
}
.plan h3 { font-size: 16px; margin-bottom: 6px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 10px; }
.plan-price b { font-size: 28px; color: var(--deep); line-height: 1.1; }
.plan-price span { color: var(--muted); font-size: 13px; }
.plan-note { color: var(--muted); font-size: 13px; margin-bottom: 18px; flex: 1 1 auto; }
.plan-hot { border-color: var(--teal); box-shadow: 0 12px 32px rgba(20, 184, 166, .2); }
.plan-flag {
  position: absolute; top: -11px; right: 16px;
  background: var(--teal); color: #fff;
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 12px;
}

/* ---------- 表格 ---------- */
.table-scroll { overflow-x: auto; margin-top: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 620px; }
.table th, .table td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table thead th { background: var(--soft); color: var(--deep); font-weight: 700; white-space: nowrap; }
.table tbody tr:last-child td { border-bottom: 0; }
.table td { color: var(--muted); }
.table td b { color: var(--ink); }

/* ---------- 流程 ---------- */
.steps { counter-reset: st; }
.step {
  display: flex; gap: 16px; align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 14px;
}
.step-no {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--deep);
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 15px; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: 13.5px; margin: 0; }

/* ---------- 引用提示 ---------- */
.notice {
  position: relative;
  background: var(--soft);
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 12px;
  padding: 18px 20px 18px 54px;
  margin-bottom: 22px;
  color: var(--ink);
}
.notice-ico { position: absolute; left: 18px; top: 16px; font-size: 20px; }

/* ---------- 页头（内页） ---------- */
.page-head {
  background: linear-gradient(135deg, #0f766e, #0ea5e9);
  color: #fff;
  padding: 40px 0 34px;
}
.page-head h1 { font-size: 28px; color: #fff; margin-bottom: 8px; }
.page-head p { color: rgba(255, 255, 255, .9); max-width: 760px; margin: 0; }
.toc { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.toc a {
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  padding: 5px 14px;
}
.toc a:hover { background: #fff; color: var(--deep); }

/* ---------- 文档 ---------- */
.doc-sec { margin-bottom: 12px; }
pre {
  background: #0c2b2e;
  border-radius: 12px;
  margin: 14px 0;
  padding: 16px 18px;
  overflow-x: auto;
}
pre code {
  background: transparent;
  border: 0;
  border-radius: 0;
  color: #d7f2ec;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  line-height: 1.7;
  padding: 0;
  white-space: pre-wrap;
  word-break: break-all;
  overflow-wrap: anywhere;
}
.dlist { margin: 0 0 18px; }
.dlist li {
  position: relative;
  padding: 10px 0 10px 26px;
  border-bottom: 1px dashed var(--line);
}
.dlist li:last-child { border-bottom: 0; }
.dlist li::before {
  content: "";
  position: absolute; left: 6px; top: 19px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
}
.dlist b { color: var(--deep); margin-right: 10px; }
.dlist span { color: var(--ink); }

/* ---------- 表单 / 提示条 ---------- */
.form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-top: 18px;
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 7px; }
.field input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfdfd;
  color: var(--ink);
  font: 14px/1.6 "Microsoft YaHei", "PingFang SC", sans-serif;
}
.field input:focus {
  outline: none;
  border-color: var(--teal);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, .14);
}
.field-tip { display: block; margin-top: 6px; color: var(--muted); font-size: 12.5px; }
.form-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.tip {
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 6px;
  border: 1px solid var(--line);
  background: #fff;
}
.tip b { display: block; margin-bottom: 6px; }
.tip-ok { border-left: 4px solid var(--teal); background: #f0fdfa; }
.tip-ok b { color: var(--deep); }
.tip-bad { border-left: 4px solid var(--bad); background: #fef2f2; }
.tip-bad b { color: var(--bad); }

/* ---------- 联系方式条 ---------- */
.contact-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.cb-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex; flex-direction: column; gap: 4px;
}
.cb-lb { color: var(--muted); font-size: 12.5px; }
.cb-val { font-size: 16px; font-weight: 700; }

/* ---------- 常见问题（details） ---------- */
.faqitem {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .05);
  margin-bottom: 12px;
  overflow: hidden;
}
.faqitem summary {
  list-style: none;
  cursor: pointer;
  padding: 15px 44px 15px 18px;
  font-weight: 700;
  color: var(--ink);
  position: relative;
  user-select: none;
}
.faqitem summary::-webkit-details-marker { display: none; }
.faqitem summary::after {
  content: "+";
  position: absolute; right: 18px; top: 13px;
  width: 22px; height: 22px;
  border-radius: 7px;
  background: var(--soft);
  color: var(--deep);
  font-size: 16px; line-height: 22px; text-align: center;
}
.faqitem[open] summary::after { content: "-"; background: var(--teal); color: #fff; }
.faqitem[open] summary { border-bottom: 1px solid var(--line); background: #fbfdfd; }
.faqitem summary:hover { color: var(--deep); }
.faq-no {
  display: inline-block;
  min-width: 26px;
  color: var(--teal);
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  margin-right: 8px;
}
.faq-body { padding: 16px 18px 18px; color: var(--muted); font-size: 13.5px; }
.faq-body p { margin-bottom: 10px; }
.faq-body code { color: var(--deep); }

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(135deg, #0f766e, #0ea5e9);
  color: #fff;
  padding: 40px 0;
}
.cta-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta h2 { font-size: 22px; color: #fff; margin-bottom: 8px; }
.cta p { color: rgba(255, 255, 255, .9); margin: 0; }
.cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- 页脚 ---------- */
.ft { background: #10202b; color: #9fb0bd; padding: 44px 0 20px; font-size: 13.5px; }
.ft-in { margin: 0 auto; max-width: 1160px; padding: 0 24px; }
.ft-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 30px; padding-bottom: 26px; }
.ft-col h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.ft-list li { padding: 3px 0; }
.ft-list a { color: #9fb0bd; }
.ft-list a:hover { color: var(--teal); }
.ft-contact li { display: flex; gap: 10px; }
.ft-contact span { min-width: 62px; color: #7f93a3; }
.ft-contact b { color: #d5e2ea; font-weight: 600; word-break: break-all; }
.ft-bar {
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  border-top: 1px solid #22333f;
  padding-top: 16px;
  font-size: 12.5px;
  color: #7f93a3;
}

/* ---------- 回到顶部（纯锚点） ---------- */
.to-top {
  position: fixed; right: 18px; bottom: 22px;
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--teal);
  color: #fff;
  font-size: 13px;
  display: none;
  align-items: center; justify-content: center;
  box-shadow: var(--shadow);
  z-index: 80;
}
.page-home .to-top { display: flex; }
.to-top:hover { background: var(--deep); color: #fff; }

/* ---------- 响应式 ---------- */
@media (max-width: 1020px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ft-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 880px) {
  .wrap, .nav-in, .hero-in, .ft-in { padding-left: 16px; padding-right: 16px; }
  .nav-in { flex-wrap: wrap; gap: 10px; }
  .nav-links { order: 3; width: 100%; margin-left: 0; gap: 2px; }
  .nav-links a { padding: 6px 10px; font-size: 13.5px; }
  .nav .btn-solid { margin-left: auto; }
  .hero { padding: 40px 0 46px; }
  .hero h1 { font-size: 26px; }
  .hero-sub { font-size: 14px; }
  .hero-nums { gap: 20px; }
  .block { padding: 36px 0; }
  .h2 { font-size: 20px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .contact-bar { grid-template-columns: 1fr; }
  .ft-grid { grid-template-columns: 1fr; gap: 22px; }
  .page-head { padding: 30px 0 26px; }
  .page-head h1 { font-size: 23px; }
  .cta-in { flex-direction: column; align-items: flex-start; }
  .form { padding: 18px; }
  .step { padding: 16px; }
  .to-top { right: 12px; bottom: 14px; }
}
