/* ZYCode —— 前端样式（暖纸张 / 墨黑 / 陶土橙） */
:root {
  --paper: #f6f5f2;
  --card: #ffffff;
  --ink: #20242b;
  --ink-2: #3b4049;
  --muted: #6f747c;
  --faint: #9aa0a8;
  --line: #e8e6e1;
  --line-2: #f1efea;
  --accent: #c2410c;
  --accent-d: #a8340a;
  --accent-soft: #fbeee6;
  --green: #2f8f5b;
  --green-soft: #e9f5ee;
  --red: #c0392b;
  --radius: 13px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(20, 22, 26, .04), 0 10px 30px rgba(20, 22, 26, .07);
  --maxw: 1120px;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.72;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent); }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }

/* 公告条 */
.announce { background: #fff8ef; border-bottom: 1px solid #f0e2cf; color: #8a6d1a; font-size: 13px; }
.announce .container { padding: 8px 18px; overflow: hidden; white-space: nowrap; }
.ab-item { margin-right: 22px; }

/* ===== 顶栏 ===== */
.topbar { background: rgba(255, 255, 255, .92); backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.topbar-in { display: flex; align-items: center; gap: 18px; height: 62px; }
.logo { font-family: var(--mono); font-size: 21px; font-weight: 700; color: var(--ink); letter-spacing: .3px; }
.logo:hover { color: var(--accent); }
.nav { display: flex; gap: 2px; }
.nav a { padding: 8px 13px; border-radius: var(--radius-sm); color: var(--ink-2); font-size: 14px; font-weight: 500; }
.nav a:hover { background: var(--line-2); text-decoration: none; }
.nav a.active { color: var(--accent); background: var(--accent-soft); }
.search { margin-left: auto; display: flex; }
.search input { width: 210px; padding: 9px 13px; border: 1px solid var(--line); border-right: none; border-radius: var(--radius-sm) 0 0 var(--radius-sm); outline: none; font-size: 13px; background: var(--paper); color: var(--ink); }
.search input:focus { background: #fff; border-color: var(--accent); }
.search button { padding: 9px 16px; border: 1px solid var(--ink); background: var(--ink); color: #fff; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; cursor: pointer; font-size: 13px; white-space: nowrap; }
.search button:hover { background: #000; }
.user-box { display: flex; align-items: center; gap: 10px; }
.btn-login, .btn-reg { padding: 8px 15px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 500; }
.btn-login { background: var(--ink); color: #fff; }
.btn-login:hover { background: #000; color: #fff; }
.btn-reg { border: 1px solid var(--line); color: var(--ink-2); }
.btn-reg:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.user-area { position: relative; }
.ua-name { font-weight: 600; color: var(--ink); padding: 7px 11px; border-radius: var(--radius-sm); display: inline-block; }
.ua-name:hover { background: var(--line-2); text-decoration: none; }
.vip-badge { background: var(--accent); color: #fff; font-size: 11px; padding: 1px 6px; border-radius: 4px; margin-left: 5px; vertical-align: middle; font-weight: 600; }
.ua-menu { display: none; position: absolute; right: 0; top: 44px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); min-width: 152px; padding: 6px 0; z-index: 60; }
.user-area:hover .ua-menu { display: block; }
.ua-menu a { display: block; padding: 9px 16px; color: var(--ink-2); font-size: 13px; }
.ua-menu a:hover { background: var(--line-2); color: var(--accent); }

/* 分类条 */
.catbar { background: #fff; border-bottom: 1px solid var(--line); }
.catbar .container { display: flex; gap: 20px; overflow-x: auto; padding: 11px 18px; font-size: 13px; scrollbar-width: none; }
.catbar .container::-webkit-scrollbar { display: none; }
.catbar .container a { color: var(--muted); white-space: nowrap; font-weight: 500; }
.catbar .container a:hover { color: var(--accent); }

.main { padding: 26px 18px 44px; min-height: 50vh; }

/* 提示 */
.flash { padding: 11px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 14px; border: 1px solid; }
.flash-success { background: var(--green-soft); color: #1f6b41; border-color: #bfe3cd; }
.flash-error { background: #fdecec; color: #b02a2a; border-color: #f5c2c2; }
.flash-info { background: var(--accent-soft); color: var(--accent-d); border-color: #f3d4c4; }

/* ===== 首页 ===== */
.hero { background: var(--accent-soft); border: 1px solid #f1d9cc; border-radius: var(--radius); padding: 34px 32px; margin-bottom: 22px; }
.hero h1 { font-size: 27px; letter-spacing: .3px; }
.hero p { color: var(--muted); margin-top: 9px; font-size: 15px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; flex-wrap: wrap; gap: 8px; }
.tb-left { display: flex; gap: 4px; }
.tb-left a { display: inline-block; padding: 7px 15px; color: var(--muted); border-radius: var(--radius-sm); margin-right: 4px; font-size: 14px; font-weight: 500; }
.tb-left a.on, .tb-left a:hover { background: #fff; color: var(--accent); box-shadow: 0 1px 3px rgba(20, 22, 26, .05); }
.tb-right { color: var(--faint); font-size: 13px; }
.empty { background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); padding: 44px; text-align: center; color: var(--muted); }

.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 17px; display: flex; flex-direction: column; gap: 9px; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #ddd9d2; text-decoration: none; }
.card-top { display: flex; justify-content: space-between; align-items: center; }
.cat { background: var(--accent-soft); color: var(--accent-d); font-size: 12px; padding: 3px 9px; border-radius: 6px; font-weight: 600; }
.price { font-weight: 700; color: var(--red); font-size: 14px; }
.price.free { color: var(--green); }
.card-title { font-size: 15px; color: var(--ink); font-weight: 600; line-height: 1.45; }
.card-desc { color: var(--muted); font-size: 13px; flex: 1; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.card-meta { display: flex; gap: 12px; color: var(--faint); font-size: 12px; flex-wrap: wrap; }
.card-rating { font-size: 12px; color: var(--muted); margin-top: 4px; }
.card-rating em { font-style: normal; color: var(--accent); font-weight: 700; }

.pager { text-align: center; margin-top: 26px; }
.pager a, .pager .cur { display: inline-block; padding: 7px 13px; margin: 0 3px; border-radius: var(--radius-sm); border: 1px solid var(--line); color: var(--ink-2); font-size: 13px; }
.pager a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.pager .cur { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ===== 表单通用 ===== */
label { display: block; font-size: 13px; color: var(--ink-2); margin: 15px 0 7px; font-weight: 500; }
input[type=text], input[type=password], input[type=email], input[type=number], select, textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 14px; font-family: inherit; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { resize: vertical; }
.btn-primary { display: inline-block; background: var(--ink); color: #fff; border: none; padding: 12px 24px; border-radius: var(--radius-sm); font-size: 15px; cursor: pointer; font-weight: 600; transition: background .15s ease; }
.btn-primary:hover { background: #000; text-decoration: none; }
.btn-primary.block { display: block; width: 100%; text-align: center; margin-top: 10px; }
.btn-primary.small { padding: 8px 16px; font-size: 13px; }
.btn-line { display: inline-block; padding: 11px 22px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink-2); font-weight: 500; }
.btn-line:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.btn-danger { background: var(--red); color: #fff; border: none; padding: 8px 16px; border-radius: var(--radius-sm); cursor: pointer; font-size: 13px; font-weight: 500; }
.btn-danger.small { padding: 5px 11px; font-size: 12px; }
.hint { font-size: 12px; color: var(--faint); margin-top: 7px; }
.form-err { background: #fdecec; color: #b02a2a; padding: 11px 15px; border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 15px; border: 1px solid #f5c2c2; }
.form-ok { background: var(--green-soft); color: #1f6b41; padding: 11px 15px; border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 15px; border: 1px solid #bfe3cd; }
.form-tip { background: #fff8ef; border: 1px solid #f0e2cf; color: #8a6d1a; padding: 11px 15px; border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 15px; }
.radio-row { display: flex; gap: 20px; }
.radio-row.center { justify-content: center; }
.radio { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-2); margin: 0; font-weight: 500; }
.radio input { width: auto; }

/* 认证页 */
.auth-wrap { display: flex; justify-content: center; padding: 34px 0; }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; width: 390px; box-shadow: var(--shadow); }
.auth-card h2 { font-size: 21px; margin-bottom: 20px; letter-spacing: .3px; }
.auth-foot { margin-top: 18px; font-size: 13px; text-align: center; color: var(--muted); }
.auth-foot a { color: var(--accent); font-weight: 500; }

/* 人机验证 */
.captcha-box { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cap-img { height: 42px; width: 112px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; cursor: pointer; }
.cap-input { width: 140px; }
.cap-refresh { font-size: 13px; color: var(--accent); }

/* 普通页面 */
.page-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.page-box h1 { font-size: 23px; margin-bottom: 18px; }
.page-content { color: var(--ink-2); line-height: 2; white-space: pre-wrap; }
.page-update { color: var(--faint); font-size: 12px; margin-top: 18px; }

/* ===== 详情页 ===== */
.detail { display: flex; gap: 24px; align-items: flex-start; }
.detail-main { flex: 1; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; min-width: 0; }
.detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.detail-head h1 { font-size: 23px; line-height: 1.4; }
.detail-tags { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.tag { background: var(--accent-soft); color: var(--accent-d); font-size: 12px; padding: 3px 11px; border-radius: 6px; font-weight: 600; }
.tag.price { background: #fdecec; color: var(--red); }
.tag.free { background: var(--green-soft); color: var(--green); }
.badge-admin { background: var(--ink); color: #fff; font-size: 12px; padding: 4px 11px; border-radius: 6px; white-space: nowrap; }
.detail-meta { display: flex; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: 13px; margin: 18px 0; padding: 13px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.detail-keywords { color: var(--ink-2); font-size: 13px; margin-bottom: 14px; }
.detail-desc { color: var(--ink-2); line-height: 2; white-space: pre-wrap; }
.owner-tools { margin-top: 18px; display: flex; gap: 12px; flex-wrap: wrap; }
.link-btn { color: var(--accent); font-size: 13px; font-weight: 500; }
.link-btn.small { font-size: 12px; }
.detail-side { width: 286px; flex-shrink: 0; }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: sticky; top: 86px; }
.side-ok { color: var(--green); font-size: 14px; margin-bottom: 12px; font-weight: 500; }
.side-tip { color: var(--muted); font-size: 12px; margin-top: 12px; text-align: center; }
.side-price { text-align: center; color: var(--muted); }
.side-price-num { text-align: center; font-size: 27px; font-weight: 700; color: var(--red); margin: 8px 0 16px; }
.side-balance { text-align: center; color: var(--muted); font-size: 12px; margin-top: 8px; }
.side-hr { border: none; border-top: 1px solid var(--line-2); margin: 15px 0; }

/* VIP 页 */
.vip-banner { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 28px 30px; margin-bottom: 22px; }
.vip-banner h2 { font-size: 22px; }
.vip-banner p { opacity: .82; margin-top: 7px; }
.vip-cur { margin-top: 10px; font-weight: 600; color: #f0a860; }
.vip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.vip-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-align: center; transition: box-shadow .15s ease, transform .15s ease; }
.vip-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.vip-card h3 { font-size: 17px; }
.vip-price { font-size: 29px; font-weight: 700; color: var(--accent); margin: 14px 0; }
.vip-price span { font-size: 13px; color: var(--faint); font-weight: 400; }
.vip-desc { color: var(--muted); font-size: 13px; min-height: 40px; margin-bottom: 16px; }

/* 用户中心 */
.uc-head { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 18px; }
.uc-avatar { width: 58px; height: 58px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 24px; display: flex; align-items: center; justify-content: center; font-weight: 600; }
.uc-head h2 { font-size: 19px; }
.uc-sub { color: var(--muted); font-size: 13px; margin-top: 3px; }
.uc-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.uc-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.uc-card-num { font-size: 21px; font-weight: 700; color: var(--accent); }
.uc-card-label { color: var(--muted); font-size: 13px; margin: 5px 0 10px; }
.uc-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.uc-tip { background: #fff8ef; border: 1px solid #f0e2cf; color: #8a6d1a; padding: 13px 16px; border-radius: var(--radius-sm); font-size: 13px; margin-top: 16px; }
.dot { background: var(--red); color: #fff; border-radius: 10px; padding: 0 6px; font-size: 11px; margin-left: 4px; }

/* 表格 */
.tbl { width: 100%; background: #fff; border-collapse: collapse; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 8px; }
.tbl th, .tbl td { padding: 12px 15px; text-align: left; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.tbl th { background: #faf9f6; color: var(--muted); font-weight: 600; }
.tbl tr:last-child td { border-bottom: none; }
.tbl .empty { text-align: center; color: var(--faint); padding: 30px; }
.ops a, .ops button { margin-right: 10px; font-size: 13px; background: none; border: none; color: var(--accent); cursor: pointer; padding: 0; font-family: inherit; font-weight: 500; }
.ops button:hover, .ops a:hover { text-decoration: underline; }
.inline-form { display: inline-flex; gap: 4px; align-items: center; }
.mini { width: 70px; padding: 5px 8px; font-size: 12px; }
.presets { display: flex; gap: 8px; margin: 10px 0; }
.preset { padding: 6px 12px; border: 1px solid var(--line); background: #fff; border-radius: var(--radius-sm); cursor: pointer; font-size: 13px; }
.preset:hover { border-color: var(--accent); color: var(--accent); }
.balance-line { margin-bottom: 12px; color: var(--ink-2); }

/* 我的资源 */
.myup-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.myup-head h2 { font-size: 19px; }

/* 表单页 */
.form-page { display: flex; justify-content: center; padding: 22px 0; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; width: 500px; box-shadow: var(--shadow); }
.form-card h2 { font-size: 21px; margin-bottom: 18px; }
.form-card .hint { margin-bottom: 4px; }

/* ===== 页脚 ===== */
.footer { background: var(--ink); color: #b8bcc4; margin-top: 44px; padding: 30px 0; font-size: 13px; }
.footer .links { text-align: center; margin-bottom: 12px; }
.footer .links a { color: #cdd2da; margin: 0 13px; }
.footer .links a:hover { color: #fff; }
.footer .copyright { text-align: center; color: #8b9099; }
.footer .copyright a { color: #cdd2da; text-decoration: underline; text-underline-offset: 2px; }
.footer .copyright a:hover { color: #fff; }

/* ===== 轮播图 ===== */
.carousel { position: relative; border-radius: var(--radius); overflow: hidden; margin-bottom: 22px; background: #fff; box-shadow: 0 1px 3px rgba(20, 22, 26, .05); }
.carousel-track { display: flex; transition: transform .45s cubic-bezier(.4, 0, .2, 1); }
.slide { min-width: 100%; }
.slide img { width: 100%; height: 320px; object-fit: cover; display: block; }
.carousel-dots { position: absolute; bottom: 13px; left: 0; right: 0; text-align: center; }
.carousel-dots .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .55); margin: 0 4px; cursor: pointer; transition: background .2s; }
.carousel-dots .dot.on { background: #fff; }
.carousel-prev, .carousel-next { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: none; border-radius: 50%; background: rgba(20, 22, 26, .35); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; transition: background .2s; }
.carousel-prev:hover, .carousel-next:hover { background: rgba(20, 22, 26, .6); }
.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }

/* 友情链接 */
.friend-links { text-align: center; margin-bottom: 14px; color: #8b9099; font-size: 13px; line-height: 2.3; }
.friend-links .fl-label { color: var(--faint); margin-right: 6px; }
.friend-links a { color: #cdd2da; margin: 0 8px; }
.friend-links a:hover { color: #fff; text-decoration: none; }
.friend-links a.fl-img { display: inline-block; vertical-align: middle; }
.friend-links a.fl-img img { height: 24px; max-width: 100px; object-fit: contain; vertical-align: middle; background: #fff; border-radius: 3px; padding: 2px 4px; }

/* ===== 移动端抽屉 ===== */
.nav-toggle { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 40px; height: 40px; margin-left: -8px; background: none; border: none; cursor: pointer; }
.nav-toggle i { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; }
.drawer, .drawer-mask { display: none; }
.drawer-mask { position: fixed; inset: 0; background: rgba(20, 22, 26, .46); z-index: 150; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .26s ease, visibility 0s linear .26s; }
.drawer { position: fixed; top: 0; left: 0; bottom: 0; width: 84%; max-width: 330px; background: #fff; z-index: 200; transform: translateX(-100%); transition: transform .28s cubic-bezier(.4, 0, .2, 1); box-shadow: 2px 0 28px rgba(20, 22, 26, .16); overflow-y: auto; padding: 0 0 26px; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line-2); position: sticky; top: 0; background: #fff; }
.drawer-name { font-family: var(--mono); font-weight: 700; font-size: 18px; color: var(--ink); }
.drawer-close { background: none; border: none; font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 4px; }
.drawer-close:hover { color: var(--accent); }
.drawer-nav { display: flex; flex-direction: column; padding: 10px 12px 4px; }
.drawer-nav a { padding: 13px 12px; border-radius: var(--radius-sm); color: var(--ink-2); font-size: 15px; font-weight: 500; border-bottom: 1px solid var(--line-2); }
.drawer-nav a:hover { background: var(--line-2); color: var(--accent); text-decoration: none; }
.drawer-search { display: flex; padding: 14px 16px 6px; }
.drawer-search input { flex: 1; border: 1px solid var(--line); border-right: none; border-radius: var(--radius-sm) 0 0 var(--radius-sm); padding: 10px 12px; font-size: 14px; outline: none; }
.drawer-search input:focus { border-color: var(--accent); }
.drawer-search button { padding: 10px 16px; border: 1px solid var(--ink); background: var(--ink); color: #fff; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; cursor: pointer; font-size: 14px; }
.drawer-user { display: flex; flex-direction: column; padding: 8px 16px; border-top: 1px solid var(--line-2); margin-top: 6px; }
.drawer-user .du-name { font-weight: 700; color: var(--ink); padding: 12px 0 10px; border-bottom: 1px solid var(--line-2); margin-bottom: 4px; }
.drawer-user a { padding: 12px 0; color: var(--ink-2); font-size: 14px; border-bottom: 1px solid var(--line-2); }
.drawer-user a:hover { color: var(--accent); text-decoration: none; }
.drawer-user .du-btn { text-align: center; border: 1px solid var(--ink); border-radius: var(--radius-sm); margin-top: 12px; padding: 11px; font-weight: 600; color: #fff; background: var(--ink); }
.drawer-user .du-btn.ghost { background: #fff; color: var(--ink-2); border-color: var(--line); }

/* 后台 */
body.admin { background: #f0f2f5; }
.admin-top { background: #1c2026; color: #fff; }
.admin-top-in { max-width: 1200px; margin: 0 auto; padding: 0 20px; height: 56px; display: flex; align-items: center; }
.admin-logo { color: #fff; font-size: 18px; font-weight: 700; font-family: var(--mono); }
.admin-top-right { margin-left: auto; display: flex; gap: 18px; font-size: 13px; }
.admin-top-right a { color: #cdd5e0; }
.admin-layout { display: flex; align-items: flex-start; max-width: 1200px; margin: 0 auto; padding: 20px; gap: 20px; }
.admin-side { width: 184px; flex-shrink: 0; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px; position: sticky; top: 20px; }
.admin-side a { display: block; padding: 11px 14px; border-radius: var(--radius-sm); color: var(--ink-2); font-size: 14px; font-weight: 500; }
.admin-side a:hover { background: var(--line-2); text-decoration: none; }
.admin-side a.on { background: var(--ink); color: #fff; }
.admin-main { flex: 1; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 24px; }
.admin-toolbar { margin-bottom: 16px; }
.at-form { display: flex; gap: 10px; align-items: center; }
.at-form input, .at-form select { width: auto; }
.at-form button, .tabs a { padding: 9px 17px; border: 1px solid var(--ink); background: var(--ink); color: #fff; border-radius: var(--radius-sm); cursor: pointer; font-size: 13px; font-weight: 500; }
.tabs { display: flex; gap: 8px; }
.tabs a { background: #fff; color: var(--ink-2); border-color: var(--line); text-decoration: none; }
.tabs a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.dash .stat-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 22px; }
.stat { background: #faf9f6; border: 1px solid var(--line); border-radius: 10px; padding: 18px; text-align: center; }
.stat .num { font-size: 22px; font-weight: 700; color: var(--accent); }
.stat .lab { color: var(--muted); font-size: 13px; margin-top: 4px; }
.dash-tip { background: #fff8ef; border: 1px solid #f0e2cf; color: #8a6d1a; padding: 11px 15px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: 13px; }
.dash-tip a { color: #8a6d1a; text-decoration: underline; }
.dash-h { font-size: 16px; margin: 8px 0 12px; }
.cat-admin .cat-add { background: #faf9f6; border: 1px solid var(--line); border-radius: 10px; padding: 18px; margin-bottom: 20px; }
.cat-admin h3 { font-size: 16px; margin-bottom: 12px; }
.cat-admin .cat-add form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.cat-admin .cat-add input { width: auto; }
.cat-admin .cat-add button { padding: 10px 18px; border: none; background: var(--ink); color: #fff; border-radius: var(--radius-sm); cursor: pointer; font-weight: 500; }
.policy-edit textarea { min-height: 360px; font-family: monospace; }
.settings form { max-width: 720px; }
.settings h3 { font-size: 16px; margin: 22px 0 6px; padding-bottom: 6px; border-bottom: 2px solid var(--line-2); }
.ck { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); margin: 6px 0; }

/* 举报 */
.report-list { display: flex; flex-direction: column; gap: 12px; }
.report-item { border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.ri-head { display: flex; justify-content: space-between; align-items: center; }
.ri-head a { font-weight: 600; }
.ri-time { color: var(--faint); font-size: 12px; }
.ri-body { color: var(--ink-2); font-size: 13px; margin: 8px 0; }
.ri-actions a { margin-right: 16px; font-size: 13px; }

/* 支付结果 */
.center-result { text-align: center; }
.result-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--green); color: #fff; font-size: 34px; line-height: 64px; margin: 0 auto 16px; }
.result-icon.ok { background: var(--green); }
.result-icon.wait { background: #b7791f; }
.result-icon.err { background: var(--red); }
.center-result h1 { font-size: 22px; margin-bottom: 10px; }
.center-result p { color: var(--muted); margin-bottom: 20px; }
.result-actions { display: flex; gap: 14px; justify-content: center; align-items: center; }

/* 星级评分 */
.stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.star { width: 15px; height: 15px; display: inline-block; background: #d7dbe2; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); position: relative; }
.star.on { background: var(--accent); }
.star.half { background: linear-gradient(90deg, var(--accent) 50%, #d7dbe2 50%); }
.detail-rating { color: var(--muted); }
.detail-rating em { font-style: normal; color: var(--accent); font-weight: 700; }

/* 评价区 */
.reviews { margin-top: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.reviews-title { font-size: 17px; margin-bottom: 16px; }
.reviews-sub { font-size: 13px; color: var(--muted); font-weight: 400; margin-left: 8px; }
.review-form { background: #faf9f6; border: 1px solid var(--line-2); border-radius: 10px; padding: 16px; margin-bottom: 18px; }
.review-form h3 { font-size: 14px; margin-bottom: 10px; color: var(--ink-2); }
.review-form textarea { width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 11px; font-size: 14px; font-family: inherit; resize: vertical; }
.rf-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.rf-label { font-size: 13px; color: var(--ink-2); }
.rf-select { padding: 8px 11px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 14px; }
.reviews-login { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.reviews-login a { color: var(--accent); font-weight: 500; }
.review-list { display: flex; flex-direction: column; gap: 14px; }
.review-item { border-top: 1px solid var(--line-2); padding-top: 14px; }
.review-item:first-child { border-top: none; padding-top: 0; }
.ri-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.ri-user { font-weight: 600; color: var(--ink); }
.ri-time { font-size: 12px; color: var(--faint); }
.ri-content { color: var(--ink-2); white-space: pre-wrap; }
.review-empty { color: var(--faint); font-size: 13px; }

/* 后台：轮播图 / 友链管理 */
.card-soft { background: #faf9f6; border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; margin-bottom: 20px; }
.card-soft h3 { font-size: 16px; margin-bottom: 14px; }
.banners-page, .links-page { display: grid; grid-template-columns: 360px 1fr; gap: 20px; align-items: start; }
.ba-row { display: flex; gap: 16px; margin-top: 6px; }
.ba-row > div { flex: 1; }
.ba-form input[type=file] { padding: 8px 0; }
.ba-thumb, .fl-thumb { height: 46px; max-width: 120px; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); }
.fl-thumb { height: 26px; max-width: 80px; }

/* 后台工具栏按钮 */
.at-btn { margin-left: 12px; padding: 8px 15px; background: #4a5568; color: #fff; border-radius: var(--radius-sm); font-size: 13px; align-self: center; font-weight: 500; }
.at-btn:hover { background: #2d3748; text-decoration: none; }

/* 升级日志 */
.up-log { list-style: disc; padding-left: 22px; margin: 14px 0; color: var(--ink-2); }
.up-log li { margin: 4px 0; }

/* ===== 响应式 ===== */
@media (max-width: 980px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .uc-cards, .vip-grid, .dash .stat-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
  /* 桌面导航收起，改用左侧抽屉 */
  .nav, .search, .user-box { display: none; }
  .nav-toggle { display: inline-flex; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .detail { flex-direction: column; }
  .detail-side { width: 100%; }
  .detail-side .side-card { position: static; }
  .banners-page, .links-page { grid-template-columns: 1fr; }
  .drawer, .drawer-mask { display: block; }
  body.nav-open { overflow: hidden; }
  body.nav-open .drawer { transform: translateX(0); }
  body.nav-open .drawer-mask { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .26s ease, visibility 0s; }
}
@media (max-width: 600px) {
  .card-grid, .uc-cards, .vip-grid, .dash .stat-row { grid-template-columns: 1fr; }
  .catbar .container { font-size: 12px; gap: 16px; }
  .hero { padding: 26px 20px; }
  .hero h1 { font-size: 22px; }
  .footer .links a { margin: 0 7px; font-size: 12px; }
  .friend-links a { margin: 0 5px; }
  .uc-head { flex-wrap: wrap; }
  .tbl { display: block; overflow-x: auto; white-space: nowrap; }
  .admin-layout { flex-direction: column; padding: 12px; }
  .admin-side { width: 100%; display: flex; flex-wrap: wrap; gap: 6px; position: static; }
  .admin-side a { display: inline-block; padding: 8px 13px; }
  .admin-main { padding: 16px; }
  .slide img { height: 180px; }
  .auth-card { width: 100%; }
  .form-card { width: 100%; }
}
