/* ==========================================================
   Koi鱼 站点样式 (粉色系列 · 半透明拟态)
   ========================================================== */

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

/* ---- 自定义鼠标样式 (32x32 缩放版, 避免系统渲染过大) ---- */
body, body * { cursor: url('/assets/images/cursor-default.png') 2 2, auto; }
a, button, .btn, .btn-copy, .api-card, .btn-try, .tab-btn,
 input[type="search"], .user-trigger, .dropdown a, .tap-item,
 .btn-qq-login, .footer a, .doc-back, select, [role="button"] {
  cursor: url('/assets/images/cursor-pointer.png') 2 2, pointer;
}
/* logo 及其内部 span、用户下拉触发器内部元素、QQ登录按钮内部、接口卡片内部: 也要 pointer 手型 */
.logo, .logo *, .user-trigger, .user-trigger *, .btn-qq-login, .btn-qq-login *,
.api-card, .api-card * {
  cursor: url('/assets/images/cursor-pointer.png') 2 2, pointer;
}
input[type="text"], input[type="password"], input[type="search"],
 input[type="email"], textarea {
  cursor: url('/assets/images/cursor-default.png') 2 2, text;
}

:root {
  --primary: #e63271;
  --primary-dark: #c4145e;
  --primary-light: #ff90b7;
  --card: rgba(255, 255, 255, .5);
  --card-hover: rgba(255, 255, 255, .65);
  --text: #3a2440;
  --text-light: #7a5568;
  --border: rgba(255, 255, 255, .55);
  --danger: #e0004e;
  --warn: #d97706;
  --success: #16a34a;
  --radius: 12px;
  --shadow: 0 8px 32px rgba(120, 30, 70, .12);
  --pink-soft: rgba(255, 232, 236, .8);
  --pink-light: #ffd9e6;
  --pink-accent: #fd4970;
  --glass-blur: 20px;
}

html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: url('/assets/images/bg-muxia.jpg?v=2') center center / cover no-repeat fixed;
  background-color: #fdf0f4;
  color: var(--text);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { vertical-align: middle; }
code { font-family: Consolas, Monaco, monospace; background: rgba(230, 50, 113, .1); color: var(--primary-dark); padding: 1px 5px; border-radius: 4px; font-size: 13px; }
pre { background: rgba(15, 23, 42, .88); color: #e2e8f0; padding: 12px 16px; border-radius: 8px; overflow-x: auto; margin-top: 6px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 1px solid rgba(30, 41, 59, .6); }
pre code { background: none; color: inherit; padding: 0; text-decoration: none; }

.mono { font-family: Consolas, Monaco, monospace; font-size: 12px; }

::selection { background: var(--pink-accent); color: #fff; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(255, 217, 230, .8); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-light); }
::-webkit-scrollbar-track { background: transparent; }

/* ============ 顶部导航 + Hero ============ */
.header {
  padding-bottom: 40px;
  position: relative;
}
.header-mini { padding-bottom: 0; }

.nav { padding: 14px 0; position: relative; z-index: 1; }
.nav-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
  background: rgba(255, 255, 255, .45);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; color: var(--primary-dark); }
.logo-icon {
  width: 34px; height: 34px; border-radius: 8px;
  background: linear-gradient(135deg, #ff90b7, #e63271);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px; color: #fff; font-weight: 800;
}
.logo-text { letter-spacing: 1px; }

.nav-list { display: flex; gap: 22px; margin-left: auto; }
.nav-list a { color: var(--primary-dark); font-size: 15px; font-weight: 500; padding: 4px 10px; border-radius: 8px; transition: background .15s, color .15s; }
.nav-list a:hover { color: #fff; background: var(--primary); }

.nav-right { display: flex; align-items: center; }

/* ---- 未登录: QQ登录按钮 ---- */
.btn-qq-login {
  display: inline-flex; align-items: center;
  border-radius: 6px; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  transition: box-shadow .15s, opacity .15s;
}
.btn-qq-login:hover { box-shadow: 0 4px 14px rgba(0,0,0,.35); opacity: .95; }
.qq-login-img { display: block; height: 28px; width: auto; }

/* ---- 已登录: 头像下拉 ---- */
.user-menu { position: relative; }
.user-trigger { display: flex; align-items: center; gap: 8px; padding: 4px 10px; border-radius: 999px; }
.user-trigger:hover { background: rgba(255, 255, 255, .35); }
.avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255, 255, 255, .8); }
.avatar-sm { width: 28px; height: 28px; border: none; }
.nickname { color: var(--primary-dark); font-size: 14px; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arrow { color: var(--primary-dark); font-size: 10px; }

.dropdown {
  position: absolute; right: 0; top: calc(100% + 8px);
  min-width: 150px; background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(120, 30, 70, .18);
  padding: 6px; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: all .18s ease; z-index: 50;
}
.user-menu:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 9px 12px; border-radius: 6px; color: var(--text); font-size: 14px; }
.dropdown a:hover { background: var(--pink-soft); color: var(--primary-dark); }

/* ---- Hero (首页大图) ----
  改为白色拟态文字卡片, 不再用图片上的深色叠加 */
.hero { text-align: center; padding: 18px 20px 0; color: var(--text); position: relative; z-index: 1; }
.hero-img {
  position: relative;
  max-width: 1160px; margin: 0 auto;
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 16px 48px rgba(120, 30, 70, .28);
  border: 1px solid rgba(255, 255, 255, .35);
}
.hero-img img { display: block; width: 100%; height: 400px; object-fit: cover; }
/* 取消深色遮罩, 让文字浮在白色拟态卡片上 */
.hero-img-overlay { display: none; }
.hero-container {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 0 24px;
}
/* 文字白色拟态卡片 */
.hero-text {
  background: rgba(255, 255, 255, .6);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 16px;
  padding: 22px 36px;
  box-shadow: 0 10px 30px rgba(80, 10, 40, .18);
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hero h1 { font-size: 42px; font-weight: 800; letter-spacing: 3px; color: var(--primary-dark); }
.hero h4 { font-weight: 500; font-size: 16px; color: var(--text); }
.hero-stats { margin-top: 4px; font-size: 14px; color: var(--text-light); }
.hero-stats b { color: var(--primary-dark); font-size: 16px; margin: 0 2px; }

/* ============ 主体 ============ */
.container { max-width: 1160px; margin: 0 auto; padding: 30px 20px; flex: 1 0 auto; width: 100%; }

.api-section { margin-top: -34px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-title h2 { font-size: 22px; }
.search-box input {
  width: 240px; padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px;
  font-size: 14px; outline: none; background: rgba(255, 255, 255, .55);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.search-box input:focus { border-color: var(--primary); background: rgba(255, 255, 255, .75); }

.api-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.api-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px; display: flex; flex-direction: column; gap: 10px;
  transition: transform .15s, box-shadow .15s, background .15s;
  text-decoration: none; color: inherit;
  border: 1px solid var(--border);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}
.api-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(230,50,113,.18); border-color: var(--primary-light); background: var(--card-hover); }
.api-card:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.api-card-head { display: flex; justify-content: space-between; align-items: center; }
.api-category { font-size: 12px; color: var(--primary-dark); background: var(--pink-soft); padding: 3px 10px; border-radius: 999px; }
.api-calls { font-size: 12px; color: var(--text-light); }
.api-name { font-size: 17px; }
.api-desc { font-size: 13.5px; color: var(--text-light); min-height: 40px; }
/* 仅供学习使用提示 */
.api-notice {
  font-size: 12px;
  font-weight: 600;
  color: #b45309;
  background: rgba(254, 243, 199, .7);
  border: 1px solid rgba(217, 119, 6, .25);
  border-radius: 6px;
  padding: 5px 10px;
  text-align: center;
  letter-spacing: .5px;
}
.api-route { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.btn-try {
  font-size: 13px; color: #fff; background: var(--primary);
  padding: 5px 14px; border-radius: 6px;
}
.btn-try:hover { background: var(--primary-dark); }

.empty-tip { color: var(--text-light); text-align: center; padding: 30px 0; }

/* ============ 关于 ============ */
.about-section { margin-top: 46px; }
.about-section > h2 { text-align: center; font-size: 22px; margin-bottom: 8px; }
.about-section > p { text-align: center; color: var(--text-light); font-size: 14px; max-width: 720px; margin: 0 auto 22px; }
.about-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.about-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; text-align: center; border: 1px solid var(--border); backdrop-filter: blur(var(--glass-blur)); -webkit-backdrop-filter: blur(var(--glass-blur)); }
.about-card h4 { color: var(--primary-dark); margin-bottom: 6px; }
.about-card p { font-size: 13px; color: var(--text-light); }

/* ============ 底部 ============ */
.footer {
  background: rgba(255, 255, 255, .35);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-top: 1px solid rgba(255, 255, 255, .45);
  color: var(--text-light); padding: 26px 20px; text-align: center; font-size: 13px; margin-top: auto; flex: none;
}
.footer p { margin: 4px 0; }
.footer a { color: var(--primary-dark); }
.footer a:hover { color: var(--primary); }
.footer-icp { font-size: 12px; color: var(--text-light); margin-top: 8px; }
.footer-icp a { color: var(--primary-dark); }
.icp-placeholder { color: var(--text-light); border: 1px dashed rgba(196, 20, 94, .3); border-radius: 4px; padding: 2px 10px; }

/* ============ 按钮 ============ */
.btn { display: inline-block; border: none; font-size: 13px; padding: 6px 14px; border-radius: 6px; transition: opacity .15s, transform .1s; }
.btn:hover { opacity: .88; }
.btn:active { transform: scale(.96); }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-plain { background: var(--pink-soft); color: var(--primary-dark); }
.btn-danger { background: #fee2e2; color: var(--danger); }
.btn-warn { background: #fef3c7; color: var(--warn); }

/* ============ 标签 ============ */
.tag { display: inline-block; font-size: 12px; padding: 2px 9px; border-radius: 999px; }
.tag-admin { background: #fef3c7; color: #b45309; }
.tag-user { background: #ffe0ec; color: var(--primary-dark); }
.tag-normal { background: #dcfce7; color: #15803d; }
.tag-banned { background: #fee2e2; color: #b91c1c; }

/* ============ 个人主页 ============ */
.profile-container { max-width: 900px; }
.admin-container { max-width: 1160px; }
.profile-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; backdrop-filter: blur(var(--glass-blur)); -webkit-backdrop-filter: blur(var(--glass-blur)); border: 1px solid var(--border); }
.profile-head { display: flex; align-items: center; gap: 18px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.profile-avatar { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 3px solid #ffd9e6; }
.profile-id h2 { font-size: 22px; }
.profile-id p { margin-top: 8px; display: flex; gap: 8px; }
.profile-section { margin-top: 24px; }
.profile-section h3 { font-size: 16px; margin-bottom: 12px; color: var(--text); border-left: 4px solid var(--primary); padding-left: 10px; }

.key-box { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.api-key { font-size: 15px; background: var(--pink-soft); padding: 10px 14px; border-radius: 8px; letter-spacing: 1px; user-select: all; }
.key-actions { display: flex; gap: 8px; }
.tip { font-size: 12.5px; color: var(--text-light); margin-top: 8px; }
.usage-example { margin-top: 14px; }

.info-table { width: 100%; border-collapse: collapse; font-size: 14px; background: rgba(255, 255, 255, .35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 8px; overflow: hidden; }
.info-table th, .info-table td { padding: 9px 12px; border-bottom: 1px solid var(--border); text-align: left; }
.info-table th { width: 150px; color: var(--text-light); font-weight: 500; background: rgba(255, 242, 246, .55); }
.info-table thead th { color: var(--text); background: var(--pink-soft); }
.info-table tbody tr:last-child td { border-bottom: none; }
.ok { color: var(--success); }
.fail { color: var(--danger); }

/* ============ 管理面板 ============ */
.admin-title { font-size: 24px; margin-bottom: 18px; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; backdrop-filter: blur(var(--glass-blur)); -webkit-backdrop-filter: blur(var(--glass-blur)); border: 1px solid var(--border); }
.stat-card span { font-size: 13px; color: var(--text-light); display: block; }
.stat-card b { font-size: 24px; color: var(--primary-dark); }

.tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.tab-btn { border: none; background: rgba(255, 255, 255, .5); color: var(--text); font-size: 14px; padding: 8px 18px; border-radius: 8px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.tab-btn.active { background: var(--primary); color: #fff; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.admin-table { width: 100%; border-collapse: collapse; background: rgba(255, 255, 255, .45); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); font-size: 13px; backdrop-filter: blur(var(--glass-blur)); -webkit-backdrop-filter: blur(var(--glass-blur)); border: 1px solid var(--border); }
.admin-table th, .admin-table td { padding: 9px 10px; border-bottom: 1px solid var(--border); text-align: left; }
.admin-table thead th { background: var(--pink-soft); font-weight: 600; white-space: nowrap; }
.admin-table tbody tr:hover { background: rgba(255, 255, 255, .5); }
.row-banned { background: rgba(255, 247, 247, .6); }
.row-banned td { color: #6b7280; }
.user-cell { display: flex; align-items: center; gap: 8px; }
.op-cell { white-space: nowrap; }
.op-cell .btn { margin-right: 4px; }
.ua-cell { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============ 弹窗 ============ */
.modal-mask { position: fixed; inset: 0; background: rgba(80, 10, 40, .35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; z-index: 100; }
.modal { background: rgba(255, 255, 255, .85); backdrop-filter: blur(var(--glass-blur)); -webkit-backdrop-filter: blur(var(--glass-blur)); border: 1px solid rgba(255, 255, 255, .6); border-radius: 12px; width: 92%; max-width: 640px; max-height: 85vh; overflow-y: auto; padding: 20px; box-shadow: 0 16px 48px rgba(80, 10, 40, .25); }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.modal-user { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }

/* ============ Toast ============ */
.toast {
  position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%) translateY(20px);
  background: rgba(60, 8, 35, .85); color: #fff; padding: 10px 22px; border-radius: 8px; font-size: 14px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .25);
  opacity: 0; visibility: hidden; transition: all .25s; z-index: 200;
}
.toast.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

/* ============ 自定义悬浮气泡 ============ */
.site-tip {
  position: absolute; z-index: 400;
  background: rgba(60, 8, 35, .88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 10px;
  padding: 9px 14px;
  color: #fff;
  font-size: 12.5px;
  line-height: 1.5;
  box-shadow: 0 8px 24px rgba(60, 8, 35, .35);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0; visibility: hidden;
  transform: translateY(4px);
  transition: opacity .15s, transform .15s, visibility .15s;
}
.site-tip.show { opacity: 1; visibility: visible; transform: translateY(0); }
.site-tip::after {
  content: ''; position: absolute; left: 50%; top: -5px;
  width: 10px; height: 10px;
  background: rgba(60, 8, 35, .88);
  border-left: 1px solid rgba(255, 255, 255, .25);
  border-top: 1px solid rgba(255, 255, 255, .25);
  transform: translateX(-50%) rotate(45deg);
  border-radius: 2px;
}
.site-tip-main { font-weight: 600; color: #fff; }
.site-tip-sub { font-size: 12px; color: #ffd9e6; margin-top: 2px; white-space: normal; max-width: 260px; }

/* ============ 接口文档页 ============ */
.doc-container { max-width: 1000px; margin: 0 auto; padding: 30px 20px 10px; flex: 1 0 auto; width: 100%; }

.breadCrumbs { display: flex; gap: 6px; list-style: none; margin-bottom: 16px; font-size: 13px; color: var(--text-light); flex-wrap: wrap; }
.breadCrumbs li + li::before { content: '/'; margin-right: 6px; color: #f0c0d0; }
.breadCrumbs a { color: var(--text-light); text-decoration: none; }
.breadCrumbs a:hover { color: var(--primary-dark); }
.breadCrumbs .cur { color: var(--text); }

/* ---- 文档 hero 区 (白色毛玻璃拟态) ---- */
.doc-hero {
  background: rgba(255, 255, 255, .5);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 14px; padding: 26px 28px; color: var(--text); margin-bottom: 24px;
  box-shadow: var(--shadow);
}
.doc-hero-tags { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.doc-hero .doc-method { background: rgba(230,50,113,.12); color: var(--primary-dark); font-size: 12px; font-weight: 600; padding: 3px 12px; border-radius: 999px; font-style: normal; }
.doc-cat { font-size: 12px; background: rgba(230,50,113,.1); color: var(--primary-dark); padding: 3px 12px; border-radius: 999px; }
.doc-calls { font-size: 12px; color: var(--text-light); }
.doc-hero-title { font-size: 26px; font-weight: 700; margin-bottom: 8px; color: var(--primary-dark); }
.doc-hero-desc { font-size: 14px; color: var(--text); margin-bottom: 16px; line-height: 1.6; }
.doc-hero-path { display: flex; align-items: center; gap: 10px; }
.doc-hero-path .path-label { font-size: 12px; color: var(--text-light); }
.doc-hero-path code { background: rgba(230,50,113,.1); color: var(--primary-dark); padding: 6px 12px; border-radius: 6px; font-size: 13px; font-family: Consolas, Menlo, monospace; }
/* 可点击复制的接口路径 */
.path-copy, .route-copy {
  cursor: url('/assets/images/cursor-pointer.png') 2 2, pointer;
  transition: opacity .15s, background .15s;
  user-select: all;
}
.doc-hero-path .path-copy:hover { background: rgba(230,50,113,.2); opacity: .9; }
.info-val.path-copy:hover { background: rgba(230, 50, 113, .18); }
.route-copy { position: relative; }
.route-copy:hover { background: rgba(230, 50, 113, .2); }

/* ---- 页签 ---- */
.info-tap-bar { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 24px; }
.tap-item { padding: 10px 20px; font-size: 15px; color: var(--text-light); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: color .15s; }
.tap-item:hover { color: var(--primary-dark); }
.tap-item.active { color: var(--primary-dark); font-weight: 600; border-bottom-color: var(--primary); }

/* ---- 文档主体 ---- */
.doc-body { display: flex; flex-direction: column; gap: 26px; }
.doc-section {
  background: var(--card); border-radius: 12px; box-shadow: var(--shadow);
  padding: 22px 24px; border: 1px solid var(--border);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}
.section-head { display: flex; align-items: center; gap: 8px; font-size: 17px; margin-bottom: 16px; }
.section-head .sec-icon { color: var(--primary); font-size: 13px; }
.section-sub { font-size: 13px; color: var(--text-light); margin-bottom: 12px; }

/* ---- 接口信息 grid ---- */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.info-item { background: rgba(255, 242, 246, .5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.info-key { font-size: 12px; color: var(--text-light); }
.info-val { font-size: 13.5px; color: var(--text); font-family: Consolas, Menlo, monospace; word-break: break-all; text-decoration: none; }
.info-item .doc-method { align-self: flex-start; }

/* ---- 表格 ---- */
.table-box { overflow-x: auto; }
.public-table { width: 100%; border-collapse: collapse; font-size: 13px; background: rgba(255, 255, 255, .35); border-radius: 8px; overflow: hidden; }
.public-table th, .public-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.public-table thead th { background: var(--pink-soft); font-weight: 600; white-space: nowrap; }
.public-table tbody tr:hover { background: rgba(255, 255, 255, .5); }
.public-table tbody tr:last-child td { border-bottom: none; }
.code-pill { background: rgba(255, 238, 242, .8); padding: 2px 8px; border-radius: 5px; font-size: 12px; }
.type-pill { background: #ecfdf5; color: #059669; padding: 2px 8px; border-radius: 5px; font-size: 12px; }
.req-pill { background: #fee2e2; color: var(--danger); padding: 2px 8px; border-radius: 5px; font-size: 12px; font-weight: 600; }
.opt-pill { background: rgba(255, 238, 242, .8); color: var(--text-light); padding: 2px 8px; border-radius: 5px; font-size: 12px; }
.ok-code { color: #059669; font-weight: 600; }
.err-code-pill { background: #fee2e2; color: var(--danger); font-weight: 600; }

/* ---- 代码块 ----
  半透明黑底, 可隐约看到背景图, 参考 kikiw.cn 黑色代码风格 */
.code-block { margin-bottom: 12px; border-radius: 8px; overflow: hidden; border: 1px solid rgba(30, 41, 59, .6); background: rgba(15, 23, 42, .85); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.code-head { display: flex; justify-content: space-between; align-items: center; background: rgba(30, 41, 59, .85); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: 6px 12px; }
.code-lang { font-size: 12px; color: #94a3b8; text-transform: uppercase; letter-spacing: .05em; }
.btn-copy { border: 1px solid #475569; background: transparent; color: #e2e8f0; font-size: 12px; padding: 3px 12px; border-radius: 5px; transition: all .15s; }
.btn-copy:hover { background: #475569; }
.btn-copy.copied { background: #059669; border-color: #059669; color: #fff; }
.btn-copy.copied-fail { background: #dc2626; border-color: #dc2626; color: #fff; }
pre.doc-pre { background: transparent; padding: 14px 16px; overflow-x: auto; font-size: 12.5px; line-height: 1.6; margin: 0; }
pre.doc-pre code { font-family: Consolas, Menlo, monospace; text-decoration: none; }

/* ---- 语法高亮 token 色 ----
  代码块里的 URL / # 注释均不可点击, 不显示下划线 */
.tok-key  { color: #7dd3fc; }
.tok-str  { color: #86efac; }
.tok-num  { color: #fca5a5; }
.tok-lit  { color: #fde047; }
.tok-punc { color: #94a3b8; }
.tok-cmt  { color: #64748b; font-style: italic; text-decoration: none; }
.tok-url  { color: #7dd3fc; text-decoration: none; }
.tok-kw   { color: #c4b5fd; font-weight: 600; }
.tok-flag { color: #fda4af; }

/* ---- 错误卡片 ---- */
.err-card { border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; margin-bottom: 16px; background: rgba(255, 253, 253, .5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.err-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.err-name { font-size: 14px; font-weight: 600; }
.err-code { font-size: 12px; color: var(--danger); background: #fee2e2; padding: 2px 8px; border-radius: 999px; }

.doc-back { display: inline-block; margin-bottom: 14px; font-size: 13px; color: var(--text-light); text-decoration: none; }
.doc-back:hover { color: var(--primary-dark); }

/* ---- 首页 curl 请求示例浮层 (与文档页代码块同风格) ---- */
.code-pop-mask {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(80, 10, 40, .35);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: codePopIn .18s ease;
}
@keyframes codePopIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.code-pop {
  width: 100%; max-width: 640px;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(var(--glass-blur)); -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 12px; padding: 16px;
  box-shadow: 0 16px 48px rgba(80, 10, 40, .25);
  animation: codePopUp .18s ease;
}
@keyframes codePopUp {
  from { opacity: 0; transform: translateY(10px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.code-pop-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.code-pop-title { font-size: 14px; font-weight: 600; color: var(--text); }
.code-pop-close {
  border: none; background: rgba(230, 50, 113, .1); color: var(--primary-dark);
  width: 26px; height: 26px; border-radius: 50%;
  font-size: 16px; line-height: 1; cursor: url('/assets/images/cursor-pointer.png') 2 2, pointer;
  transition: background .15s;
}
.code-pop-close:hover { background: rgba(230, 50, 113, .25); }
.code-pop .code-block { margin-bottom: 0; }

@media (max-width: 768px) {
  .doc-hero { padding: 20px 18px; }
  .doc-hero-title { font-size: 22px; }
  .tap-item { padding: 8px 12px; font-size: 14px; }
  .doc-section { padding: 16px 14px; }
}

/* ============ 响应式 ============ */
@media (max-width: 768px) {
  .nav-list { display: none; }
  .hero h1 { font-size: 30px; }
  .api-grid { grid-template-columns: 1fr; }
  .section-title { flex-direction: column; align-items: flex-start; }
  .search-box input { width: 100%; }
  .nickname { max-width: 70px; }
  .hero-text { padding: 16px 22px; }
}