/* ============================================================
   4K壁纸 网站样式（与客户端 / 落地页同一套视觉体系）
   配色：背景 #0D1B21 | 面板 #142A33 | 按钮底 #1A3A45
         主色 #00E5FF | 文字 #E0F7FA | 次要文字 #8CA0A8
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700;900&display=swap');

:root {
  --bg: #0D1B21;
  --surface: #142A33;
  --surface-light: #1A3A45;
  --primary: #00E5FF;
  --text: #E0F7FA;
  --muted: #8CA0A8;
  --glow: 0 0 24px rgba(0, 229, 255, .35);
  --glow-sm: 0 0 12px rgba(0, 229, 255, .25);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  /* 方格纹理背景（与 landing.php 落地页 Hero 同款：60px 青色网格线） */
  background-image:
    linear-gradient(rgba(0,229,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,0.08) 1px, transparent 1px);
  background-size: 60px 60px;
  background-attachment: fixed;
}

a { color: var(--primary); text-decoration: none; }
img { border: 0; }
button { font-family: inherit; }

/* 滚动条（与落地页一致） */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0D1B21; }
::-webkit-scrollbar-thumb { background: #1A3A45; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #00E5FF; }

/* 1380px 主容器 */
.container { width: 1380px; max-width: 100%; margin: 0 auto; padding: 0 15px; }

/* ==================== 导航条（与客户端导航同一风格） ==================== */
.site-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  width: 1380px; max-width: 100%; margin: 0 auto; padding: 0 15px;
  display: flex; align-items: center; gap: 6px; height: 60px;
}
.nav-logo { flex: none; display: flex; align-items: center; margin-right: 20px; }
.nav-logo img { height: 30px; width: auto; display: block; }

.nav-menus { display: flex; align-items: center; gap: 8px; }
.nav-item { position: relative; height: 60px; display: flex; align-items: center; }
.nav-link {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--surface-light);
  color: var(--primary);
  font-size: 14px; font-weight: 500;
  padding: 7px 14px;
  border-radius: 4px;
  transition: background .25s, color .25s, box-shadow .25s;
}
.nav-link:hover, .nav-item.active .nav-link, .nav-item.active > a.nav-link {
  background: var(--primary);
  color: #000;
  box-shadow: var(--glow-sm);
}
.nav-link .caret { font-size: 11px; opacity: .85; }

/* 二级分类下拉 */
.nav-dropdown {
  display: none;
  position: absolute; top: 58px; left: 0;
  min-width: 148px;
  background: var(--surface);
  border: 1px solid rgba(0, 229, 255, .5);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .5), var(--glow-sm);
  padding: 6px 0;
  z-index: 120;
}
.nav-dropdown a {
  display: block;
  color: var(--text);
  font-size: 14px;
  padding: 9px 18px;
  transition: background .2s, color .2s, padding-left .2s;
  white-space: nowrap;
}
.nav-dropdown a:hover {
  background: var(--surface-light);
  color: var(--primary);
  padding-left: 24px;
}
.dropdown-wrap:hover .nav-dropdown,
.dropdown-wrap:focus-within .nav-dropdown { display: block; }

/* 搜索框（与客户端 CyanTextBox 同风格） */
.nav-search {
  margin-left: auto;
  display: flex; align-items: center;
  background: var(--surface-light);
  border: 1px solid var(--primary);
  border-radius: 4px;
  height: 36px;
  width: 250px;
  transition: box-shadow .25s;
}
.nav-search:focus-within { box-shadow: var(--glow-sm); }
.nav-search input {
  flex: 1; min-width: 0;
  background: transparent; border: 0; outline: none;
  color: var(--text);
  font-size: 13px;
  padding: 0 6px 0 12px;
  font-family: inherit;
}
.nav-search input::placeholder { color: var(--muted); }
.nav-search button {
  flex: none;
  background: transparent; border: 0; cursor: pointer;
  color: var(--primary);
  width: 36px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-left: 1px solid rgba(0, 229, 255, .35);
}
.nav-search button:hover { background: var(--primary); color: #000; }

/* 登录 | 注册 */
.nav-auth { display: flex; align-items: center; gap: 8px; margin-left: 14px; flex: none; }
.nav-auth .sep { color: rgba(140, 160, 168, .6); font-size: 13px; }
.nav-auth a { font-size: 14px; transition: color .2s, text-shadow .2s; }
.nav-auth a:hover { color: var(--primary); text-shadow: 0 0 10px rgba(0, 229, 255, .6); }
.nav-auth .nav-username { color: var(--primary); font-weight: 700; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-auth .nav-login, .nav-auth .nav-reg { color: var(--primary); font-weight: 500; }
.nav-auth .nav-logout { color: var(--muted); }

/* ==================== 区块标题 ==================== */
.home-section { padding: 34px 0 10px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.section-title {
  display: flex; align-items: center; gap: 12px;
  font-size: 24px; font-weight: 900; color: var(--text);
  letter-spacing: 1px;
}
.title-bar { width: 5px; height: 24px; background: var(--primary); box-shadow: var(--glow-sm); border-radius: 1px; }
.more-link { font-size: 14px; color: var(--muted); transition: color .2s, text-shadow .2s; }
.more-link:hover { color: var(--primary); text-shadow: 0 0 10px rgba(0, 229, 255, .6); }

/* ==================== 轮播区（与客户端同一套布局） ====================
   Banner(920px 16:9)：封面/预览视频 + 底部标题遮罩 + 左右箭头 + 圆点指示器
   右侧并排 2 张壁纸卡片 */
.banner-area { display: flex; gap: 12px; margin-bottom: 12px; }
.banner-main {
  position: relative; flex: none;
  width: 920px; height: 517px;
  background: var(--surface);
  overflow: hidden;
  user-select: none;
}
.banner-media { position: absolute; inset: 0; }
.banner-media img, .banner-media video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.banner-media video { z-index: 2; }
.banner-overlay {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  background: rgba(0, 0, 0, .5);
  padding: 20px 20px 24px;
}
.banner-title { font-size: 20px; font-weight: 700; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.banner-meta { font-size: 12px; color: #B0E0E6; margin-top: 4px; }
.banner-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 44px; height: 44px;
  background: rgba(0, 0, 0, .5);
  color: var(--primary);
  font-size: 28px; font-weight: 700; line-height: 1;
  border: 0; border-radius: 0;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.banner-arrow:hover { background: rgba(0, 229, 255, .35); }
.banner-arrow.prev { left: 10px; }
.banner-arrow.next { right: 10px; }
.banner-dots {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); z-index: 5;
  display: flex; align-items: center; gap: 8px;
}
.banner-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255, 255, 255, .6);
  border: 0; padding: 0; cursor: pointer;
  transition: all .25s;
}
.banner-dot:hover { background: rgba(255, 255, 255, .9); }
.banner-dot.active { width: 12px; height: 12px; background: var(--primary); box-shadow: var(--glow-sm); }

.banner-side { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.banner-side .card { flex: 1; height: auto; }

/* ==================== 壁纸卡片（与客户端卡片同一布局） ==================== */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.card {
  position: relative; display: block;
  background: var(--surface);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  transition: box-shadow .3s, outline-color .3s;
  outline: 1px solid transparent;
}
.card img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .45s ease;
}
.card:hover img { transform: scale(1.04); }
.card:hover { outline-color: rgba(0, 229, 255, .5); box-shadow: var(--glow-sm); }
.card-info {
  position: absolute; top: 0; left: 0; z-index: 2;
  max-width: calc(100% - 8px);
  color: #fff; font-size: 11px; line-height: 1.4;
  background: rgba(0, 0, 0, .63);
  padding: 4px 6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ==================== 分类浏览页 ==================== */
.page-body { padding: 30px 0 40px; }
.cat-head { margin-bottom: 20px; }
.cat-count { color: var(--muted); font-size: 13px; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.chip {
  background: var(--surface-light);
  color: var(--primary);
  font-size: 14px;
  padding: 7px 16px;
  border-radius: 4px;
  transition: background .25s, color .25s, box-shadow .25s;
}
.chip:hover { background: #22485a; color: var(--primary); }
.chip.active { background: var(--primary); color: #000; font-weight: 700; box-shadow: var(--glow-sm); }

.empty-tip {
  padding: 90px 0; text-align: center; color: var(--muted); font-size: 15px;
  background: var(--surface); border: 1px dashed rgba(0, 229, 255, .25);
}

/* 分页 */
.pager { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 34px; flex-wrap: wrap; }
.page-btn {
  min-width: 36px; height: 36px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-light);
  color: var(--primary);
  font-size: 14px; border-radius: 4px;
  transition: background .2s, color .2s;
}
.page-btn:hover { background: var(--primary); color: #000; }
.page-btn.active { background: var(--primary); color: #000; font-weight: 700; box-shadow: var(--glow-sm); }
.page-btn.disabled { opacity: .4; pointer-events: none; }

/* 搜索结果提示 */
.search-tip { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.search-tip b { color: var(--primary); font-weight: 700; }

/* ==================== 详情页 ==================== */
.detail-head { padding: 30px 0 18px; }
.detail-title { font-size: 26px; font-weight: 900; color: var(--text); letter-spacing: .5px; }
.detail-sub { margin-top: 8px; color: var(--muted); font-size: 13px; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.detail-sub .hl { color: var(--primary); }

.detail-main { display: flex; gap: 14px; align-items: stretch; }
.detail-preview {
  flex: 1; min-width: 0;
  background: #0a151b;
  border: 1px solid var(--surface-light);
  aspect-ratio: 16 / 9;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.detail-preview img, .detail-preview video {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  display: block;
}
.detail-preview video { width: 100%; height: 100%; }

.detail-info {
  flex: none; width: 400px;
  background: var(--surface);
  border: 1px solid var(--surface-light);
  border-top: 2px solid var(--primary);
  padding: 24px;
  display: flex; flex-direction: column;
}
.info-title { font-size: 16px; font-weight: 700; color: var(--primary); margin-bottom: 14px; letter-spacing: 1px; }
.info-table { width: 100%; border-collapse: collapse; flex: 1; }
.info-table th, .info-table td { padding: 9px 4px; font-size: 13.5px; border-bottom: 1px solid rgba(26, 58, 69, .8); text-align: left; vertical-align: top; }
.info-table th { color: var(--muted); font-weight: 500; white-space: nowrap; width: 76px; }
.info-table td { color: var(--text); word-break: break-all; }
.info-table td .hl { color: var(--primary); font-weight: 700; }

.btn-download {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 20px;
  background: var(--primary); color: #000;
  font-size: 16px; font-weight: 700;
  padding: 13px 0; border-radius: 4px;
  transition: box-shadow .25s, transform .25s;
}
.btn-download:hover { box-shadow: var(--glow); transform: translateY(-1px); }
.btn-download svg { flex: none; }
.download-tip { margin-top: 10px; text-align: center; color: var(--muted); font-size: 12px; }

/* ==================== 交流区（评论） ==================== */
.comments { margin: 44px 0 30px; }
.comment-total { font-size: 14px; color: var(--muted); font-weight: 400; margin-left: 2px; }
.comment-post { background: var(--surface); border: 1px solid var(--surface-light); padding: 18px; margin: 4px 0 24px; }
.comment-identity { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.comment-identity .hl { color: var(--primary); font-weight: 700; }
.comment-input {
  width: 100%; height: 92px; resize: vertical;
  background: #0d1e26;
  border: 1px solid var(--surface-light);
  color: var(--text);
  font-family: inherit; font-size: 14px;
  padding: 10px 12px;
  outline: none;
  transition: border-color .25s, box-shadow .25s;
}
.comment-input:focus { border-color: var(--primary); box-shadow: var(--glow-sm); }
.comment-input::placeholder { color: var(--muted); }
.comment-toolbar { display: flex; align-items: center; margin-top: 12px; gap: 10px; }
.toolbar-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.char-count { color: var(--muted); font-size: 12px; }
.char-count.warn { color: #ffb74d; }
.btn-ghost {
  background: var(--surface-light); color: var(--primary);
  border: 1px solid rgba(0, 229, 255, .35);
  font-size: 13px; padding: 7px 14px; border-radius: 4px; cursor: pointer;
  transition: background .2s, color .2s;
}
.btn-ghost:hover { background: var(--primary); color: #000; }
.btn-primary {
  background: var(--primary); color: #000;
  font-size: 14px; font-weight: 700;
  padding: 8px 22px; border: 0; border-radius: 4px; cursor: pointer;
  transition: box-shadow .25s, transform .25s;
}
.btn-primary:hover { box-shadow: var(--glow-sm); transform: translateY(-1px); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* 表情面板 */
.emoji-wrap { position: relative; }
.emoji-panel {
  position: absolute; bottom: 44px; left: 0; z-index: 30;
  width: 328px;
  background: var(--surface);
  border: 1px solid rgba(0, 229, 255, .5);
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .55), var(--glow-sm);
  padding: 10px;
  display: grid; grid-template-columns: repeat(8, 1fr);
}
.emoji-panel[hidden] { display: none; }
.emoji-panel button {
  background: transparent; border: 0; cursor: pointer;
  font-size: 20px; line-height: 1;
  padding: 6px 0;
  border-radius: 4px;
  transition: background .15s, transform .15s;
}
.emoji-panel button:hover { background: var(--surface-light); transform: scale(1.25); }

/* 评论列表 */
.comment-list { display: flex; flex-direction: column; gap: 14px; }
.comment-item {
  display: flex; gap: 14px;
  background: var(--surface);
  border: 1px solid var(--surface-light);
  padding: 16px 18px;
  transition: border-color .25s;
}
.comment-item:hover { border-color: rgba(0, 229, 255, .35); }
.comment-avatar {
  flex: none;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface-light);
  color: var(--primary);
  font-size: 17px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(0, 229, 255, .4);
}
.comment-body { flex: 1; min-width: 0; }
.comment-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.comment-user { color: var(--primary); font-weight: 700; font-size: 14px; }
.comment-time { color: var(--muted); font-size: 12px; }
.comment-content { margin-top: 6px; font-size: 14.5px; color: var(--text); word-break: break-word; white-space: pre-wrap; }
.comment-del {
  margin-left: auto; flex: none; align-self: flex-start;
  background: transparent; border: 0; cursor: pointer;
  color: var(--muted); font-size: 12px;
  transition: color .2s;
}
.comment-del:hover { color: #ff7043; }
.comment-empty { padding: 40px 0; text-align: center; color: var(--muted); font-size: 14px; }
.comment-login-tip {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  background: var(--surface); border: 1px dashed rgba(0, 229, 255, .35);
  padding: 26px; color: var(--muted); font-size: 14px; margin: 4px 0 24px;
}
.comment-login-tip a { font-weight: 700; }

/* ==================== 登录 / 注册 / 找回密码（与客户端登录页同风格） ==================== */
.auth-wrap {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 40px 20px;
  background:
    radial-gradient(ellipse at center, rgba(0, 229, 255, .07) 0%, transparent 60%),
    var(--bg);
}
.auth-card {
  width: 400px; max-width: 100%;
  background: var(--surface);
  border: 1px solid var(--primary);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5), var(--glow-sm);
}
.auth-logo { display: block; height: 34px; margin: 0 auto 22px; }
.auth-title { text-align: center; font-size: 30px; font-weight: 900; color: var(--primary); text-shadow: 0 0 14px rgba(0, 229, 255, .5); margin-bottom: 4px; }
.auth-sub { text-align: center; font-size: 15px; color: var(--text); margin-bottom: 24px; }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form input {
  background: var(--surface-light);
  border: 1px solid var(--primary);
  color: var(--text);
  font-family: inherit; font-size: 14px;
  padding: 11px 12px;
  border-radius: 4px;
  outline: none;
  transition: box-shadow .25s;
  width: 100%;
}
.auth-form input:focus { box-shadow: var(--glow-sm); }
.auth-form input::placeholder { color: var(--muted); }
.code-row { display: flex; gap: 10px; }
.code-row input { flex: 1; min-width: 0; }
.btn-code {
  flex: none; white-space: nowrap;
  background: var(--surface-light); color: var(--primary);
  border: 1px solid rgba(0, 229, 255, .5);
  font-size: 13px; padding: 0 16px; border-radius: 4px; cursor: pointer;
  transition: background .2s, color .2s;
}
.btn-code:hover:not(:disabled) { background: var(--primary); color: #000; }
.btn-code:disabled { opacity: .55; cursor: not-allowed; }
.auth-submit {
  margin-top: 8px;
  background: var(--primary); color: #000;
  border: 0; border-radius: 4px;
  font-size: 16px; font-weight: 700;
  padding: 12px 0; cursor: pointer;
  transition: box-shadow .25s, transform .25s;
}
.auth-submit:hover:not(:disabled) { box-shadow: var(--glow); transform: translateY(-1px); }
.auth-submit:disabled { opacity: .6; cursor: not-allowed; }
.auth-links { display: flex; justify-content: center; gap: 12px; margin-top: 20px; font-size: 14px; }
.auth-links .sep { color: rgba(140, 160, 168, .55); }
.auth-links a:hover { text-shadow: 0 0 10px rgba(0, 229, 255, .6); }
.auth-announce {
  width: 520px; max-width: 100%;
  margin-top: 22px;
  background: var(--surface);
  border-top: 1px solid var(--primary);
  padding: 16px 22px;
  font-size: 13px; color: var(--text);
}
.auth-announce b { color: var(--primary); display: block; margin-bottom: 5px; }
.auth-announce p { white-space: pre-line; }

/* ==================== 页脚 ==================== */
.site-footer {
  margin-top: 50px;
  background: var(--surface);
  border-top: 1px solid var(--primary);
  padding: 26px 0 30px;
}
.footer-links { display: flex; justify-content: center; gap: 26px; margin-bottom: 14px; }
.footer-links a { color: var(--muted); font-size: 13px; transition: color .2s; }
.footer-links a:hover { color: var(--primary); }
.copyright { text-align: center; color: rgba(140, 160, 168, .7); font-size: 12px; }

/* ==================== 轻提示 ==================== */
.toast {
  position: fixed; top: 76px; left: 50%; transform: translateX(-50%);
  z-index: 999;
  background: var(--surface);
  border: 1px solid var(--primary);
  color: var(--text);
  font-size: 14px;
  padding: 10px 22px;
  border-radius: 4px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .5), var(--glow-sm);
  animation: toastIn .25s ease-out;
}
.toast.err { border-color: #ff7043; box-shadow: 0 8px 30px rgba(0, 0, 0, .5), 0 0 12px rgba(255, 112, 67, .3); }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -8px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ==================== 导航条公告（与客户端“公告2区”同一数据源） ==================== */
.nav-announce {
  flex: 1; min-width: 0;
  margin: 0 8px;
  display: flex; align-items: center; gap: 7px;
  overflow: hidden;
  color: var(--primary);
}
.nav-announce svg { flex: none; filter: drop-shadow(0 0 4px rgba(0,229,255,.5)); }
.nav-announce-scroll { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; }
.nav-announce-scroll span {
  display: inline-block;
  padding-left: 100%;
  font-size: 13px; color: var(--primary);
  animation: navMarquee 18s linear infinite;
}
@keyframes navMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
.nav-announce:hover .nav-announce-scroll span { animation-play-state: paused; }

/* ==================== 详情页积分信息 ==================== */
.download-kc { margin-top: 12px; padding: 12px 14px; background: #0d1e26; border: 1px solid var(--surface-light); }
.download-kc p { font-size: 13.5px; color: var(--muted); line-height: 1.9; }
.download-kc .hl { color: var(--primary); font-weight: 700; font-size: 15px; }
.download-kc .free { color: #00e676; font-weight: 700; }
.kc-short-link {
  display: inline-block; margin-top: 6px;
  font-size: 13px; font-weight: 700;
  color: #ffb74d;
}
.kc-short-link:hover { text-decoration: underline; text-shadow: 0 0 8px rgba(255, 183, 77, .6); }

/* ==================== 个人中心 ==================== */
.uc-summary {
  display: flex; align-items: center; gap: 18px;
  background: var(--surface);
  border: 1px solid var(--surface-light);
  border-left: 3px solid var(--primary);
  padding: 22px 26px;
  margin-bottom: 18px;
}
.uc-avatar {
  flex: none; width: 56px; height: 56px; border-radius: 50%;
  background: var(--surface-light);
  border: 1px solid rgba(0, 229, 255, .4);
  color: var(--primary);
  font-size: 24px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
.uc-base { flex: 1; min-width: 0; }
.uc-name { font-size: 19px; font-weight: 700; color: var(--text); }
.uc-meta { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.uc-kc { flex: none; text-align: right; }
.uc-kc-label { display: block; font-size: 12px; color: var(--muted); }
.uc-kc-num { font-size: 26px; font-weight: 900; color: var(--primary); text-shadow: 0 0 12px rgba(0, 229, 255, .4); }
.uc-kc-unit { font-size: 12px; color: var(--muted); margin-left: 4px; }

.uc-short-tip {
  margin-bottom: 16px;
  padding: 12px 18px;
  background: rgba(255, 112, 67, .08);
  border: 1px solid rgba(255, 112, 67, .5);
  color: #ffb74d;
  font-size: 14px;
}

/* 选项卡 */
.uc-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.uc-tab {
  background: var(--surface-light);
  color: var(--primary);
  font-size: 15px; font-weight: 500;
  padding: 10px 26px;
  border: 1px solid transparent;
  border-radius: 4px 4px 0 0;
  cursor: pointer;
  transition: background .2s, color .2s, box-shadow .2s;
}
.uc-tab:hover { background: #22485a; }
.uc-tab.active { background: var(--primary); color: #000; font-weight: 700; box-shadow: var(--glow-sm); }

.uc-panel {
  background: var(--surface);
  border: 1px solid var(--surface-light);
  border-top: 2px solid var(--primary);
  padding: 24px;
}
.uc-panel[hidden] { display: none; }
.uc-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.uc-panel-title { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 900; color: var(--text); }

/* 购买记录表格（与客户端积分记录同列） */
.pay-table-wrap { overflow-x: auto; }
.pay-table { width: 100%; border-collapse: collapse; }
.pay-table th, .pay-table td {
  padding: 11px 12px; font-size: 13.5px; text-align: left;
  border-bottom: 1px solid rgba(26, 58, 69, .8);
  white-space: nowrap;
}
.pay-table th { color: var(--primary); font-weight: 700; background: #0d1e26; }
.pay-table td { color: var(--text); }
.pay-table tbody tr:hover { background: rgba(26, 58, 69, .45); }
.pay-table .trade-no { color: var(--muted); font-size: 12.5px; }
.pay-loading { text-align: center; color: var(--muted); padding: 34px 0 !important; }
.type-tag { font-weight: 700; }
.type-tag.t-recharge { color: var(--primary); }
.type-tag.t-spend { color: #FF7F50; }
.type-tag.t-reward { color: #00FF7F; }
.pay-table .s-paid { color: #07C160; font-weight: 700; }
.pay-table .s-pending { color: #888; }

/* 资料修改 */
.uc-profile-grid { display: grid; grid-template-columns: 300px 1fr; gap: 26px; }
.profile-ro {
  align-self: start;
  background: #0d1e26;
  border: 1px solid var(--surface-light);
  padding: 16px 18px;
}
.profile-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; }
.profile-row + .profile-row { border-top: 1px dashed rgba(26, 58, 69, .9); }
.profile-label { color: var(--muted); }
.profile-value { color: var(--text); font-weight: 500; }
.profile-form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: flex; align-items: center; gap: 14px; }
.form-row label { flex: none; width: 80px; font-size: 14px; color: var(--muted); text-align: right; }
.form-row input {
  flex: 1; max-width: 360px;
  background: var(--surface-light);
  border: 1px solid var(--primary);
  color: var(--text);
  font-family: inherit; font-size: 14px;
  padding: 10px 12px;
  border-radius: 4px;
  outline: none;
  transition: box-shadow .25s;
}
.form-row input:focus { box-shadow: var(--glow-sm); }
.form-row input::placeholder { color: var(--muted); }

/* 充值 */
.recharge-box { display: flex; gap: 30px; align-items: flex-start; flex-wrap: wrap; }
.recharge-form { flex: 1; min-width: 300px; }
.recharge-price { font-size: 14px; color: var(--muted); }
.recharge-price .hl { color: var(--primary); font-size: 20px; font-weight: 900; }
.qr-area { flex: none; text-align: center; }
.qr-box {
  background: #fff;
  padding: 10px;
  border-radius: 6px;
  box-shadow: var(--glow-sm);
}
.qr-box img { display: block; width: 200px; height: 200px; }
.qr-tip { margin-top: 12px; font-size: 13.5px; color: var(--text); line-height: 1.7; }
.qr-tip .hl { color: var(--primary); font-weight: 700; }
.qr-status { margin-top: 8px; font-size: 13px; color: var(--muted); }
.qr-status.paid { color: #07C160; font-weight: 700; }

/* 响应式兜底（窄屏时等比收缩） */
@media (max-width: 1420px) {
  .banner-main { width: 66%; height: auto; aspect-ratio: 16 / 9; }
  .banner-area { flex-wrap: nowrap; }
}
@media (max-width: 1000px) {
  .banner-area { flex-direction: column; }
  .banner-main { width: 100%; }
  .banner-side { flex-direction: row; }
  .banner-side .card { flex: 1; height: auto; }
  .detail-main { flex-direction: column; }
  .detail-info { width: 100%; }
  .nav-inner { flex-wrap: wrap; height: auto; padding: 10px 15px; }
  .nav-item { height: auto; }
  .nav-search { margin-left: 0; width: 180px; }
  .nav-announce { display: none; }
  .uc-profile-grid { grid-template-columns: 1fr; }
  .uc-tabs { flex-wrap: wrap; }
}
