/* ============================================================
   一体感：去掉「黑底 + 色块卡片」的割裂
   整页是一张连续的表面，用发丝线分区，不用卡片框
   ============================================================ */

/* 全站连续表面 */
body.theme-v4 {
  background:
    radial-gradient(1500px 900px at 50% -12%, rgba(217, 179, 107, 0.10), transparent 62%),
    radial-gradient(1100px 700px at 88% 8%, rgba(160, 120, 70, 0.07), transparent 60%),
    radial-gradient(900px 600px at 6% 26%, rgba(120, 96, 62, 0.06), transparent 62%),
    linear-gradient(180deg, #0d0c0a 0%, #0b0a08 42%, #0a0907 100%) !important;
  background-attachment: fixed !important;
}

/* 面板不再像卡片：透明 + 只留发丝线 */
body.theme-v4 .panel,
body.theme-v4 .board-panel,
body.theme-v4 .side-panel,
body.theme-v4 .op-card,
body.theme-v4 .player-hero {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

/* 用顶部发丝线代替卡片边框 */
body.theme-v4 .panel {
  border-top: 1px solid rgba(255, 244, 226, 0.10) !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.theme-v4 .side-panel {
  border-top: 0 !important;
  border-right: 1px solid rgba(255, 244, 226, 0.08) !important;
  padding-right: 18px !important;
  margin-right: 22px;
}

/* 表格：去掉外框，只留行线 */
body.theme-v4 .rank-table,
body.theme-v4 table {
  border: 0 !important;
  border-collapse: collapse !important;
}

body.theme-v4 thead,
body.theme-v4 .rank-head,
body.theme-v4 .board-head,
body.theme-v4 .table-head {
  background: transparent !important;
  border-bottom: 1px solid rgba(255, 244, 226, 0.14) !important;
}

body.theme-v4 td,
body.theme-v4 .rank-row {
  border-bottom: 1px solid rgba(255, 244, 226, 0.06) !important;
}

/* 玩家页：hero 区不画框，改用一条底线 */
body.theme-v4 .player-hero {
  border-bottom: 1px solid rgba(255, 244, 226, 0.10) !important;
  padding-bottom: 28px !important;
}

/* 干员小卡：透明 + 细线，不用色块 */
body.theme-v4 .op-card {
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 244, 226, 0.07) !important;
  padding-left: 0 !important;
}

body.theme-v4 .op-card:hover { background: rgba(217, 179, 107, 0.045) !important; }

/* 输入 / 按钮保持精致小件 */
body.theme-v4 input, body.theme-v4 select, body.theme-v4 textarea {
  background: rgba(255, 244, 226, 0.04) !important;
}

/* 页头与页面同色，不再像贴片 */
body.theme-v4 .site-header {
  background: rgba(13, 12, 10, 0.72) !important;
  border-bottom: 1px solid rgba(255, 244, 226, 0.07) !important;
}

/* 页脚同色收尾 */
body.theme-v4 .site-footer {
  background: transparent !important;
  border-top: 1px solid rgba(255, 244, 226, 0.07) !important;
}

/* 页面主体区左右留白更宽，减少“框”的感觉 */
body.theme-v4 main.container { max-width: 1180px; }


/* 排行榜：彻底去卡片感 */
body.theme-v4 .rank-table thead th {
  background: transparent !important;
  backdrop-filter: none !important;
  border-bottom: 1px solid rgba(255, 244, 226, 0.14) !important;
  color: rgba(244, 239, 230, 0.5) !important;
}

body.theme-v4 .rank-table tbody tr,
body.theme-v4 .rank-table tbody td,
body.theme-v4 .rank-table tbody tr:nth-child(odd) {
  background: transparent !important;
}

body.theme-v4 .rank-table tbody tr { border-bottom: 1px solid rgba(255, 244, 226, 0.055) !important; }

body.theme-v4 .rank-table tbody tr:hover,
body.theme-v4 .rank-table tbody tr:nth-child(odd):hover {
  background: rgba(217, 179, 107, 0.045) !important;
}

/* 名次章：去底色，只留数字 */
body.theme-v4 .rank-medal,
body.theme-v4 .rank-medal.top1,
body.theme-v4 .rank-medal.top2,
body.theme-v4 .rank-medal.top3 {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-family: var(--num) !important;
  font-size: 17px;
  color: rgba(244, 239, 230, 0.55) !important;
  padding: 0 !important;
  min-width: 30px;
}

body.theme-v4 .rank-medal.top1 { color: #f2dfb6 !important; }
body.theme-v4 .rank-medal.top2,
body.theme-v4 .rank-medal.top3 { color: rgba(244, 239, 230, 0.82) !important; }

/* 头像统一圆章 */
body.theme-v4 .avatar { border-radius: 50% !important; }
body.theme-v4 .player-cell { background: transparent !important; }
body.theme-v4 .player-name { font-size: 14px; letter-spacing: 0.01em; }

/* 侧栏选中项：不要色块，改左侧竖线 */
body.theme-v4 .side-panel a.active,
body.theme-v4 .side-item.active {
  background: transparent !important;
  border-color: transparent !important;
  color: #f2dfb6 !important;
  box-shadow: inset 2px 0 0 rgba(217, 179, 107, 0.85) !important;
}

/* 表格内小圆点去光圈 */
body.theme-v4 .op-dot { box-shadow: inset 0 0 0 1px rgba(255, 244, 226, 0.16) !important; }


/* 玩家单元格：去掉任何圆角底块 */
body.theme-v4 .player-cell,
body.theme-v4 .player-cell > *,
body.theme-v4 .player-meta,
body.theme-v4 .player-name,
body.theme-v4 .player-tag {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.theme-v4 .player-cell { gap: 12px; }
body.theme-v4 .player-tag { color: rgba(244, 239, 230, 0.38) !important; font-size: 11px; }

/* 整行：去掉任何残留的圆角块 */
body.theme-v4 .rank-table tbody tr,
body.theme-v4 .rank-table tbody td,
body.theme-v4 .rank-table tbody td > div {
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}


/* 头像恢复：细环字章，不再是色块 */
body.theme-v4 .player-cell > .avatar,
body.theme-v4 .avatar {
  background: rgba(255, 244, 226, 0.055) !important;
  border: 1px solid rgba(255, 244, 226, 0.16) !important;
  border-radius: 50% !important;
  color: rgba(244, 239, 230, 0.9) !important;
  box-shadow: none !important;
  width: 32px !important;
  height: 32px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}

body.theme-v4 .rank-table tbody td { padding-top: 16px !important; padding-bottom: 16px !important; }


/* ===== 真正的一体：底色完全均匀，去掉中心亮斑 ===== */
body.theme-v4,
body.theme-v4.h4 {
  background: #0b0a08 !important;
  background-image: linear-gradient(180deg, #0c0b09 0%, #0b0a08 40%, #0a0907 100%) !important;
  background-attachment: scroll !important;
}

/* 页头透明，与页面连成一片 */
body.theme-v4 .site-header {
  background: transparent !important;
  border-bottom: 0 !important;
  backdrop-filter: none !important;
}

/* 公告条也透明，只留一行细字 */
body.theme-v4 #announceBar {
  background: transparent !important;
  border-bottom: 0 !important;
  color: rgba(242, 223, 182, 0.72) !important;
}

/* 页脚不再是一条横带 */
body.theme-v4 .site-footer {
  background: transparent !important;
  border-top: 0 !important;
  padding-top: 26px !important;
}

/* 侧栏不再画竖线 */
body.theme-v4 .side-panel {
  border-right: 0 !important;
  padding-right: 0 !important;
  margin-right: 0 !important;
}

/* 面板顶部细线也不要（只在表格里保留行线） */
body.theme-v4 .panel { border-top: 0 !important; }

/* 表格行线统一更淡 */
body.theme-v4 .rank-table tbody tr { border-bottom: 1px solid rgba(255, 244, 226, 0.045) !important; }

/* 排行榜标题区与列表之间只留一条线 */
body.theme-v4 .rank-table thead th { border-bottom: 1px solid rgba(255, 244, 226, 0.09) !important; }

/* 侧栏选中项：极细竖线，不要块 */
body.theme-v4 .side-panel a.active,
body.theme-v4 .side-item.active {
  background: transparent !important;
  box-shadow: inset 1px 0 0 rgba(217, 179, 107, 0.65) !important;
}


/* ===== 根因：main 上的旧光晕把内容框出来了 ===== */
body.theme-v4 main::before,
body.theme-v4 main::after,
body.theme-v4 .container::before,
body.theme-v4 .container::after {
  display: none !important;
  content: none !important;
  background: none !important;
}

/* 页面统一为一张均匀的布 */
body.theme-v4 {
  background: #0b0a08 !important;
  background-image: none !important;
}

/* 页头/公告/页脚彻底透明，不留任何横带 */
body.theme-v4 .site-header,
body.theme-v4 #announceBar,
body.theme-v4 .site-footer {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}


/* ===== 不再是纯黑：暖褐灰底 ===== */
body.theme-v4 {
  --ink: #17130f;
  --hair: rgba(255, 246, 230, 0.075);
  background: #17130f !important;
  background-image: none !important;
  color: #f4efe6;
}

body.theme-v4 .site-header,
body.theme-v4 #announceBar,
body.theme-v4 .site-footer { background: transparent !important; }

/* 表格行线在浅一点的底上要更清楚 */
body.theme-v4 .rank-table tbody tr { border-bottom: 1px solid rgba(255, 246, 230, 0.07) !important; }
body.theme-v4 thead th,
body.theme-v4 .rank-table thead th { border-bottom: 1px solid rgba(255, 246, 230, 0.13) !important; }

/* 细分隔与输入框 */
body.theme-v4 input, body.theme-v4 select, body.theme-v4 textarea {
  background: rgba(255, 246, 230, 0.05) !important;
  border-color: rgba(216, 178, 106, 0.26) !important;
}

/* 头像章在褐底上更清楚 */
body.theme-v4 .player-cell > .avatar,
body.theme-v4 .avatar {
  background: rgba(255, 246, 230, 0.07) !important;
  border-color: rgba(255, 246, 230, 0.18) !important;
}

/* 侧栏选中竖线 */
body.theme-v4 .side-panel a.active,
body.theme-v4 .side-item.active { box-shadow: inset 1px 0 0 rgba(217, 179, 107, 0.7) !important; }


/* 再提一档：明显的暖褐灰，不再接近黑 */
body.theme-v4 {
  background: #1c1813 !important;
  background-image: radial-gradient(1200px 700px at 50% -14%, rgba(217, 179, 107, 0.05), transparent 66%) !important;
}


/* ===== 轻层次：不是框，是一点光 ===== */
body.theme-v4 main.container {
  background:
    radial-gradient(130% 70% at 50% 0%, rgba(255, 246, 230, 0.032), rgba(255, 246, 230, 0.012) 42%, transparent 72%) !important;
  border-radius: 0 !important;
}

/* 侧栏：极淡的竖向明暗，边界自然消失 */
body.theme-v4 .side-panel {
  background: linear-gradient(90deg, rgba(255, 246, 230, 0.028), rgba(255, 246, 230, 0.008) 62%, transparent) !important;
}

/* 表头：像一条压暗的标题带，不是色块 */
body.theme-v4 thead th,
body.theme-v4 .rank-table thead th {
  background: rgba(255, 246, 230, 0.035) !important;
  border-bottom: 1px solid rgba(255, 246, 230, 0.12) !important;
}

/* 行悬停：一层很薄的光 */
body.theme-v4 .rank-table tbody tr:hover {
  background: rgba(255, 246, 230, 0.035) !important;
}

/* 玩家页 hero 区块给一点托底 */
body.theme-v4 .player-hero {
  background: radial-gradient(120% 140% at 50% 0%, rgba(255, 246, 230, 0.035), transparent 70%) !important;
}

/* 干员卡：极淡的底，无边框 */
body.theme-v4 .op-card {
  background: linear-gradient(180deg, rgba(255, 246, 230, 0.025), rgba(255, 246, 230, 0.006)) !important;
  border: 0 !important;
}


/* ===== 修正：光落在页面上，不是落在容器盒子里 ===== */
body.theme-v4 main.container {
  background: none !important;
}

body.theme-v4 .side-panel {
  background: none !important;
}

body.theme-v4 {
  background-color: #1c1813 !important;
  background-image: radial-gradient(1100px 720px at 50% 18%, rgba(255, 246, 230, 0.038), rgba(255, 246, 230, 0.012) 46%, transparent 74%) !important;
  background-attachment: fixed !important;
  background-repeat: no-repeat !important;
}

/* 表头保留一条薄带（这是唯一允许的“横带”） */
body.theme-v4 thead th,
body.theme-v4 .rank-table thead th {
  background: rgba(255, 246, 230, 0.04) !important;
}


/* ===== 恢复结构：细金边 + 微亮面，边框要细不要重 ===== */
body.theme-v4 .panel,
body.theme-v4 .board-panel,
body.theme-v4 .side-panel,
body.theme-v4 .player-hero,
body.theme-v4 .op-card {
  background: rgba(255, 246, 230, 0.022) !important;
  border: 1px solid rgba(255, 246, 230, 0.10) !important;
  border-radius: 3px !important;
  box-shadow: none !important;
}

body.theme-v4 .side-panel {
  border-right: 1px solid rgba(255, 246, 230, 0.10) !important;
}

/* 表格外框 */
body.theme-v4 .rank-table,
body.theme-v4 table.rank-table {
  border: 1px solid rgba(255, 246, 230, 0.10) !important;
  border-radius: 3px !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  overflow: hidden;
}

body.theme-v4 .rank-table thead th {
  background: rgba(255, 246, 230, 0.045) !important;
  border-bottom: 1px solid rgba(255, 246, 230, 0.12) !important;
}

body.theme-v4 .rank-table tbody tr:hover {
  background: rgba(255, 246, 230, 0.03) !important;
}


/* 修正：表格不要 separate + overflow，否则表头压住第一行 */
body.theme-v4 .rank-table,
body.theme-v4 table.rank-table {
  border: 0 !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  border-radius: 0 !important;
  overflow: visible !important;
}

body.theme-v4 .rank-table thead th {
  position: static !important;
  background: rgba(255, 246, 230, 0.045) !important;
  border-top: 1px solid rgba(255, 246, 230, 0.10) !important;
  border-bottom: 1px solid rgba(255, 246, 230, 0.12) !important;
}
