/* ============================================================
 *  Legendary Auth - 样式表
 *  深色主题 + Minecraft 风格点缀
 * ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: #1a1a2e;
    color: #eaeaea;
    min-height: 100vh;
}

code {
    background: rgba(255,255,255,0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: "Consolas", monospace;
}

/* ===== 登录页 ===== */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 40px 36px;
    background: rgba(26, 26, 46, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-header h1 {
    font-size: 28px;
    margin-bottom: 8px;
    background: linear-gradient(90deg, #e94560, #f39c12);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: #888;
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #ccc;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #fff;
    transition: all 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #e94560;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.2);
}

.error-msg {
    padding: 10px 14px;
    background: rgba(233, 69, 96, 0.15);
    border: 1px solid #e94560;
    border-radius: 8px;
    color: #e94560;
    font-size: 14px;
    margin-bottom: 16px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    width: 100%;
}

.btn-primary {
    background: linear-gradient(90deg, #e94560, #c73650);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(233, 69, 96, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-ghost {
    width: auto;
    padding: 8px 16px;
    background: transparent;
    color: #aaa;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 14px;
    font-weight: normal;
}

.btn-ghost:hover {
    color: #fff;
    border-color: #fff;
}

.login-footer {
    text-align: center;
    margin-top: 24px;
    color: #666;
    font-size: 13px;
}

/* ===== 仪表盘 ===== */

/* 服务器风景图背景（laun.jpg）+ 深色遮罩，dashboard / profile 共用 */
.dashboard-page,
.profile-page {
    background:
        linear-gradient(rgba(12, 10, 24, 0.72), rgba(12, 10, 24, 0.80)),
        url('../img/laun.jpg') center / cover no-repeat fixed;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    background: rgba(26, 26, 46, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(90deg, #e94560, #f39c12);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 全站统一顶栏：左「职业数据 / 世界地图」· 中 logo（比栏高，上下溢出）· 右「账号档案 / 副本数据」· 最右贴边「账号登录」 */
nav.site-nav {
    /* 首尾两列等宽：右侧欢迎语再长，中间 logo 也不会被挤偏 */
    --sn-acct-w: 190px;
    display: grid;
    grid-template-columns: var(--sn-acct-w) 1fr auto 1fr var(--sn-acct-w);
    align-items: center;
    gap: 26px;
    padding: 10px 24px;
}
.sn-spacer { display: block; }
/* 最右一格：定宽 + 超长省略，长度变化不影响居中 */
.sn-account {
    justify-self: end;
    width: 100%;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
}
#logoutBtn { justify-self: end; }
.sn-side {
    display: flex;
    align-items: center;
    gap: 26px;
}
.sn-left { justify-content: flex-end; }
.sn-right { justify-content: flex-start; }
.sn-item {
    color: #cfc2e8;
    text-decoration: none;
    font-size: 15px;
    white-space: nowrap;
    transition: color 0.2s;
}
.sn-item:hover { color: #fff; }
.sn-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 5;
}
/* logo 高度故意大于栏高：用负边距抵消掉多出来的部分，视觉上就上下溢出栏外 */
.sn-logo img {
    height: 88px;
    width: auto;
    display: block;
    margin: -28px 0;
}
@media (max-width: 768px) {
    nav.site-nav { --sn-acct-w: 108px; gap: 14px; padding: 8px 12px; }
    .sn-side { gap: 14px; }
    .sn-item { font-size: 13px; }
    .sn-logo img { height: 64px; margin: -20px 0; }
}
@media (max-width: 520px) {
    nav.site-nav { --sn-acct-w: 72px; gap: 8px; padding: 8px 10px; }
    .sn-side { gap: 8px; }
    .sn-item { font-size: 11px; }
    .sn-logo img { height: 48px; margin: -14px 0; }
}

.dashboard-container {
    max-width: 1100px;
    margin: 32px auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 768px) {
    .dashboard-container {
        grid-template-columns: 1fr;
    }
}

.card {
    background: rgba(16, 16, 28, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h2 {
    font-size: 18px;
    font-weight: 600;
}

.player-name {
    font-size: 22px;
    font-weight: 700;
    color: #e94560;
}

.card-body {
    padding: 20px 24px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.info-row:last-child {
    border-bottom: none;
}

.info-row .label {
    color: #888;
    font-size: 14px;
}

.info-row .value {
    color: #eaeaea;
    font-size: 14px;
    font-weight: 500;
    max-width: 60%;
    text-align: right;
    word-break: break-all;
}

/* 公会卡片特殊样式 */
.guild-card .guild-banner {
    padding: 16px;
    background: linear-gradient(135deg, rgba(233,69,96,0.2), rgba(243,156,18,0.2));
    border-radius: 8px;
    margin-bottom: 16px;
    text-align: center;
}

.guild-card .guild-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.guild-card .guild-tag {
    display: inline-block;
    padding: 2px 10px;
    background: #e94560;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.no-guild {
    text-align: center;
    color: #666;
    padding: 32px 0;
    font-size: 14px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 14px;
    color: #aaa;
}

.stat-row span:last-child {
    color: #eaeaea;
    font-weight: 600;
}

/* ===== 公会成员列表卡片 ===== */
.guild-members-card {
    grid-column: 1 / -1;   /* 跨两列 */
}

.guild-members-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-sm {
    padding: 4px 10px;
    font-size: 12px;
}

.online-badge {
    font-size: 13px;
    color: #4caf50;
    font-weight: 600;
}

.members-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

/* 手机端适配：公会成员表格可横向拖动 */
.guild-members-card .card-body {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.guild-members-card .members-table {
    min-width: 680px;
}

.members-table thead th {
    text-align: left;
    padding: 12px 14px;
    color: #888;
    font-weight: 500;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.members-table tbody td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.members-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.members-table tbody tr:last-child td {
    border-bottom: none;
}

.player-cell {
    font-weight: 600;
    color: #fff;
}

/* 在线状态点 */
.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.online {
    background: #4caf50;
    box-shadow: 0 0 6px #4caf50;
}

.dot.offline {
    background: #555;
}

.server-name {
    color: #4caf50;
}

.offline-text {
    color: #666;
}

.loading-text {
    text-align: center;
    color: #666;
    padding: 20px;
}

/* ============ 修改密码模态框 ============ */
.card-footer {
    padding: 12px 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    justify-content: flex-start;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal {
    background: #1a1f2e;
    border-radius: 12px;
    width: 420px;
    max-width: 90vw;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
}

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 { margin: 0; color: #e8eaf6; font-size: 16px; }

.modal-close {
    background: none; border: none; color: #888;
    font-size: 18px; cursor: pointer; padding: 4px 8px;
}
.modal-close:hover { color: #e8eaf6; }

.modal-body { padding: 20px; }
.modal-footer {
    padding: 12px 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.form-group { margin-bottom: 14px; }
.form-group label {
    display: block; font-size: 12px; color: #90a4ae;
    margin-bottom: 6px;
}
.form-input {
    width: 100%; padding: 10px 12px;
    background: #0f1320; border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px; color: #e8eaf6; font-size: 14px;
    box-sizing: border-box;
}
.form-input:focus {
    outline: none; border-color: #64b5f6;
    box-shadow: 0 0 0 2px rgba(100,181,246,0.2);
}

.question-text {
    background: #0f1320; padding: 10px 12px;
    border-radius: 6px; color: #ffcc80; font-size: 14px;
    border: 1px solid rgba(255,204,128,0.2);
}

.form-msg { font-size: 13px; margin-top: 6px; min-height: 18px; }
.form-msg.msg-ok { color: #81c784; }
.form-msg.msg-err { color: #e57373; }

.btn-outline {
    background: transparent; border: 1px solid rgba(255,255,255,0.2);
    color: #bdbdbd;
}
.btn-outline:hover { border-color: #64b5f6; color: #64b5f6; }
.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 4px; }

/* ============ 装备展示网格 ============ */
.equipment-card { margin-top: 20px; }

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

/* 属性图标（stat.png 精灵裁格） */
.mc-stat .stat-icon {
    width: 16px;
    height: 16px;
    image-rendering: pixelated;
    vertical-align: -3px;
    margin-right: 6px;
}
/* 未配置图标的属性：占位同宽，保证与有图标属性缩进一致 */
.mc-stat .stat-icon-blank { display: inline-block; background: transparent; }

.equip-slot {
    background: #0f1320;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 12px;
    transition: border-color 0.2s;
    min-height: 120px;
}
.equip-slot:hover { border-color: #64b5f6; }

.equip-slot.empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-style: dashed;
    border-color: rgba(255,255,255,0.1);
}
.equip-slot.empty .empty-item {
    color: #546e7a;
    font-size: 12px;
    margin-top: 4px;
}
.equip-slot.empty .slot-icon { font-size: 20px; opacity: 0.3; }
.equip-slot.empty .slot-label { font-size: 11px; color: #546e7a; }

.slot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.slot-label {
    font-size: 11px; color: #90a4ae; font-weight: bold;
}
.slot-basics {
    font-size: 11px; color: #78909c;
}

.equip-slot.filled .item-name {
    font-size: 14px; font-weight: bold; color: #e8eaf6;
    margin-bottom: 2px;
}
.equip-slot.filled .item-id {
    font-size: 10px; color: #546e7a; margin-bottom: 8px;
    font-family: monospace;
}

.item-effects { margin-top: 4px; }
.effect-tag {
    display: inline-block;
    font-size: 11px;
    padding: 3px 8px;
    margin: 2px 3px 0 0;
    background: linear-gradient(135deg, rgba(124,77,255,0.2), rgba(56,142,255,0.2));
    border: 1px solid rgba(124,77,255,0.3);
    border-radius: 4px;
    color: #b39ddb;
}

.item-skin {
    font-size: 11px;
    padding: 4px 8px;
    margin-top: 4px;
    background: rgba(255,193,7,0.1);
    border: 1px solid rgba(255,193,7,0.3);
    border-radius: 4px;
    color: #ffcc80;
}

/* ============ hd_web 原版 mc-box / item-panels 样式 ============ */
.item-panels, .mc-name { font-family: var(--font, 'Microsoft YaHei'); text-shadow: 1px 1px 0 #000; }

.item-panels {
    --mc-unit: 2px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    width: max-content;
    max-width: 100%;
    min-width: 0;
    color: #aaa;
    font-size: 14px;
    line-height: 1.5;
    padding: 2px;
}

.mc-box {
    flex: none;
    width: max-content;
    max-width: 100%;
    min-width: 0;
    padding: calc(3 * var(--mc-unit));
    border: var(--mc-unit) solid transparent;
    border-image: linear-gradient(rgba(80,0,255,.314), rgba(40,0,127,.314)) 1;
    background: rgba(16,0,16,.94);
    box-shadow: 0 0 0 1px rgba(16,0,16,.94);
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.mc-item-name {
    font-size: 16px;
    color: #fff;
    margin-bottom: 3px;
}

.mc-item-name:last-child { margin-bottom: 0; }

.mc-lore-line { min-height: 1.5em; }

.mc-stat {
    display: flex;
    gap: 4px;
    align-items: baseline;
    max-width: 100%;
}
.mc-stat > span:last-child { min-width: 0; overflow-wrap: anywhere; }

/* 分组标题（hd_web 原版没有，我们加的） */
.mc-group-title {
    font-size: 11px;
    font-weight: bold;
    color: #90caf9;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 6px;
    margin-bottom: 2px;
    padding-bottom: 1px;
    border-bottom: 1px solid rgba(80,0,255,.5);
}
.mc-group-title:first-child { margin-top: 0; }

/* ============ hd_web 原版 tooltip 弹框 ============ */
.item-tooltip {
    position: fixed;
    inset: auto;
    margin: 0;
    width: max-content;
    max-width: calc(100vw - 16px);
    padding: 34px 2px 2px;
    border: 0;
    background: transparent;
    color: #fff;
    overflow: auto;
    overscroll-behavior: contain;
    z-index: 10000;
    box-sizing: border-box;
    pointer-events: auto;
}
.item-tooltip[hidden] { display: none; }

/* ============ 装备卡片上的图标按钮 ============ */
.item-artwork {
    position: relative;
    width: 48px;
    height: 48px;
    background: #1a1f2e;
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
    image-rendering: pixelated;
    margin-bottom: 6px;
}
.item-artwork:hover {
    border-color: #ffd54f;
    transform: scale(1.05);
    box-shadow: 0 0 12px rgba(255,213,79,0.4);
}
.item-artwork img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}
.item-artwork.missing,
.item-artwork.img-failed {
    color: #607d8b;
    font-size: 20px;
    font-weight: bold;
    font-family: monospace;
}
.item-count {
    position: absolute;
    bottom: 2px;
    right: 4px;
    font-size: 11px;
    font-weight: bold;
    color: #fff;
    text-shadow: 1px 1px 0 #000;
    font-family: monospace;
}

.item-skin-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 14px;
    filter: drop-shadow(0 0 3px rgba(255,193,7,0.8));
}

.equip-slot.filled { position: relative; }

/* ============ 公开玩家档案页 profile.html ============ */

/* 登录页：查询公开档案入口 */
.login-query { margin-top: 18px; }
.login-query-divider {
    text-align: center;
    color: #666;
    font-size: 13px;
    margin-bottom: 10px;
    position: relative;
}
.login-query-divider::before,
.login-query-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 38%;
    height: 1px;
    background: rgba(138, 43, 226, 0.3);
}
.login-query-divider::before { left: 0; }
.login-query-divider::after { right: 0; }
.login-query-row { display: flex; gap: 8px; }
.login-query-row + .login-query-row { margin-top: 10px; }
.login-query-row input {
    flex: 1;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid rgba(138, 43, 226, 0.4);
    background: rgba(16, 0, 16, 0.94);
    color: #eee;
    font-size: 14px;
}
.login-query-select {
    flex: 1;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(138, 43, 226, 0.4);
    background: rgba(16, 0, 16, 0.94);
    color: #eee;
    font-size: 14px;
}
.login-query-select option { background: #1a0a1f; color: #eee; }

/* 公会档案页 guilds.html */
.gd-info { padding: 18px 20px; }
.gd-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 14px;
}
.gd-stat {
    background: rgba(138, 43, 226, 0.10);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.gd-stat span { color: #aaa; font-size: 13px; }
.gd-stat b { color: #fff; font-size: 18px; }
.gd-side-badge {
    padding: 2px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2b6be2, #1a4b99);
    color: #fff;
    font-size: 14px;
}
@media (max-width: 860px) {
    .gd-stats { grid-template-columns: repeat(2, 1fr); }
}

/* 公会成员表：查询档案按钮 */
.btn-member-query {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid rgba(138, 43, 226, 0.45);
    background: rgba(138, 43, 226, 0.12);
    text-decoration: none;
    font-size: 13px;
    line-height: 1.4;
}
.btn-member-query:hover {
    background: rgba(138, 43, 226, 0.35);
    box-shadow: 0 0 8px rgba(138, 43, 226, 0.5);
}

.profile-container {
    max-width: 1440px;
    margin: 24px auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.pf-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 264px;
    gap: 16px;
    align-items: start;
}
.pf-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pf-search { display: flex; gap: 8px; }
.pf-search input {
    flex: 1;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid rgba(138, 43, 226, 0.4);
    background: rgba(16, 0, 16, 0.94);
    color: #eee;
    font-size: 15px;
}
.pf-status { min-height: 20px; color: #aaa; font-size: 14px; }
.pf-status.pf-err { color: #ff6b6b; }
.pf-summary { padding: 18px 20px; }
.pf-head { display: flex; align-items: baseline; gap: 12px; }
.pf-name { font-size: 22px; font-weight: 700; color: #fff; }
.pf-level-badge {
    padding: 2px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #8a2be2, #5b1a99);
    color: #fff;
    font-size: 14px;
}
.pf-exp { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.pf-exp-label { color: #aaa; font-size: 13px; white-space: nowrap; }
.pf-exp-track {
    flex: 1;
    height: 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}
.pf-exp-fill {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #3ddc84, #7ef29a);
    transition: width 0.5s ease;
}
.pf-exp-text { color: #cfe; font-size: 13px; min-width: 48px; text-align: right; }
.pf-equip { padding: 18px 20px; }
.pf-empty-equip { color: #888; padding: 12px 0; }

/* 右侧人物面板 */
.pf-side {
    padding: 16px;
    position: sticky;
    top: 76px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.pf-side .card-header { width: 100%; }
.pf-skin-box {
    width: 100%;
    padding: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 14px;
    /* 紫色渐变描边框 */
    border: 1px solid rgba(160, 80, 240, 0.55);
    background:
        radial-gradient(ellipse 70% 26% at 50% 92%, rgba(138, 43, 226, 0.28), transparent 70%),
        linear-gradient(180deg, rgba(40, 10, 60, 0.55), rgba(8, 2, 12, 0.75));
    box-shadow:
        0 0 18px rgba(138, 43, 226, 0.25),
        inset 0 0 24px rgba(0, 0, 0, 0.55);
    overflow: hidden;
}
.pf-skin-box canvas {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 副本纪录卡 */
.pf-dungeon { padding: 18px 20px; }
.pf-dungeon-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: #aaa;
    font-size: 14px;
}
.pf-dungeon-select {
    flex: 1;
    max-width: 320px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(138, 43, 226, 0.4);
    background: rgba(16, 0, 16, 0.94);
    color: #eee;
    font-size: 14px;
}
.pf-dungeon-select option { background: #1a0a1f; color: #eee; }
.pf-dungeon-empty { color: #888; padding: 10px 0; font-size: 14px; }
/* 副本分页条 */
.pf-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
}
.pf-pager-btn {
    width: 32px;
    height: 32px;
    line-height: 1;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: #cfd8e3;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.pf-pager-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.35);
}
.pf-pager-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}
.pf-pager-ind {
    min-width: 76px;
    text-align: center;
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.05);
    color: #e8eef5;
    font-size: 14px;
    letter-spacing: 1px;
}
.pf-dungeon-body { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pf-dungeon-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 760px;
}
.pf-dungeon-table th,
.pf-dungeon-table td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    white-space: nowrap;
}
.pf-dungeon-table th { color: #b9a8d6; font-weight: 600; }
.pf-dungeon-table th.sortable { cursor: pointer; user-select: none; }
.pf-dungeon-table th.sortable:hover { color: #e2d3f7; }
.pf-dungeon-table .sort-ind { font-size: 10px; margin-left: 3px; color: #c084fc; }
.pf-dungeon-table .sort-ind.sort-idle { color: #555; }
.pf-dungeon-table td { color: #ddd; }
.pf-dungeon-table tbody tr:hover { background: rgba(138, 43, 226, 0.08); }
.pf-dungeon-table .num-damage { color: #ff7b7b; }
.pf-dungeon-table .num-defend { color: #ffd166; }
.pf-dungeon-table .num-heal { color: #6ee7a0; }
/* 速率悬停提示框 */
.pf-dungeon-table .rate-cell { cursor: help; }
.pf-rate-tip {
    position: fixed; z-index: 1200;
    background: #17112a; border: 1px solid rgba(138, 43, 226, 0.65);
    border-radius: 8px; padding: 8px 12px;
    font-size: 12px; line-height: 1.7; color: #cfc6e4;
    pointer-events: none; white-space: nowrap;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55);
}
.pf-rate-tip .rate-good { color: #55ff55; }
.pf-rate-tip .rate-gold { color: #ffd700; }
.pf-rate-tip .rate-normal { color: #ffffff; }
.pf-rate-tip .rate-bad { color: #ff5555; }

/* 窄屏：人物面板移到顶部 */
@media (max-width: 860px) {
    .pf-layout { grid-template-columns: 1fr; }
    .pf-side { position: static; order: -1; }
    .pf-skin-box { min-height: 220px; }
}

/* ============ 全服副本统计页 dungeon_server.html ============ */
.ds-back {
    margin-left: auto;
    color: #b9a8d6;
    text-decoration: none;
    font-size: 14px;
    padding: 4px 12px;
    border: 1px solid rgba(138, 43, 226, 0.4);
    border-radius: 8px;
}
.ds-back:hover { color: #fff; background: rgba(138, 43, 226, 0.25); }
.pf-ds-btn {
    color: #b9a8d6;
    text-decoration: none;
    font-size: 13px;
    padding: 4px 12px;
    border: 1px solid rgba(138, 43, 226, 0.4);
    border-radius: 8px;
    white-space: nowrap;
}
.pf-ds-btn:hover { color: #fff; background: rgba(138, 43, 226, 0.25); }
.ds-filter { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: #aaa; font-size: 14px; }
.ds-overview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.ds-stat-card {
    background: rgba(138, 43, 226, 0.10);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 10px;
    padding: 14px;
    text-align: center;
}
.ds-stat-num { color: #fff; font-size: 24px; font-weight: 700; }
.ds-stat-label { color: #aaa; font-size: 13px; margin-top: 4px; }
.ds-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ds-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 620px;
}
.ds-table th, .ds-table td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    white-space: nowrap;
}
.ds-table th { color: #b9a8d6; font-weight: 600; }
.ds-table td { color: #ddd; }
/* 玩家排行：玩家列整体右移，与排名列拉开间距 */
#dsRankTable th:nth-child(2), #dsRankTable td:nth-child(2) { padding-left: 30px; }
.ds-table tbody tr:hover { background: rgba(138, 43, 226, 0.08); }
.ds-empty { text-align: center; color: #888; }
.ds-rank-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.ds-tabs { display: flex; gap: 6px; }
.ds-tab {
    background: transparent;
    border: 1px solid rgba(138, 43, 226, 0.45);
    color: #b9a8d6;
    padding: 4px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}
.ds-tab.active { background: rgba(138, 43, 226, 0.45); color: #fff; }
.ds-pct {
    display: inline-block;
    min-width: 38px;
    text-align: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}
.ds-pct-gold { background: rgba(255, 180, 0, 0.14); color: #ffb400; border: 1px solid rgba(255, 180, 0, 0.5); }
.ds-pct-purple { background: rgba(160, 80, 255, 0.14); color: #c090ff; border: 1px solid rgba(160, 80, 255, 0.5); }
.ds-pct-blue { background: rgba(60, 140, 255, 0.14); color: #70a8ff; border: 1px solid rgba(60, 140, 255, 0.5); }
.ds-pct-low { background: rgba(120, 120, 140, 0.14); color: #9a9aa5; border: 1px solid rgba(120, 120, 140, 0.4); }
.ds-note { color: #888; font-size: 12px; margin-top: 10px; }
@media (max-width: 860px) {
    .ds-overview { grid-template-columns: repeat(2, 1fr); }
}

/* ============ 职业技能页 classes.html ============ */
.ds-nav-links { display: flex; gap: 8px; }
.cs-tabs { display: flex; gap: 8px; margin: 6px 0 14px; flex-wrap: wrap; }
.cs-tab {
    background: transparent;
    border: 1px solid var(--cs-accent, #8a2be2);
    color: var(--cs-accent, #b9a8d6);
    padding: 6px 22px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
}
.cs-tab.active { background: var(--cs-accent); color: #14101f; }
.cs-class-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-bottom: 16px; }
.cs-class-chip {
    display: flex; align-items: center; gap: 10px;
    background: rgba(20, 16, 36, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
    transition: border-color .15s, transform .15s;
}
.cs-class-chip:hover { transform: translateY(-2px); }
.cs-class-chip.active { border-color: var(--cs-accent); box-shadow: 0 0 0 1px var(--cs-accent) inset; }
.cs-class-chip img { width: 40px; height: 40px; image-rendering: pixelated; flex: none; }
.cs-chip-name { color: #fff; font-weight: 700; font-size: 15px; }
.cs-chip-desc { color: #9a90b0; font-size: 12px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-class-card { --cs-accent: #8a2be2; }
.cs-class-head { display: flex; align-items: center; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.cs-class-icon { width: 64px; height: 64px; image-rendering: pixelated; flex: none; }
.cs-class-name { color: #fff; font-size: 22px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.cs-branch-badge { font-size: 12px; padding: 2px 10px; border-radius: 999px; border: 1px solid; font-weight: 600; }
.cs-class-desc { color: #b9a8d6; font-size: 13px; margin-top: 6px; line-height: 1.6; }
.cs-section-title {
    color: #fff; font-size: 15px; font-weight: 700; margin: 18px 0 10px;
    padding-left: 10px; border-left: 3px solid var(--cs-accent);
}
.cs-skill-grid { display: grid; gap: 10px; }
.cs-grid-active { grid-template-columns: repeat(2, 1fr); }   /* 主动技能 2x2 */
.cs-grid-passive { grid-template-columns: repeat(3, 1fr); }  /* 被动/固有 3x3 */
.cs-skill-card {
    display: flex; gap: 12px; align-items: flex-start;
    background: rgba(28, 22, 48, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 12px;
    min-height: 120px;
}
.cs-skill-card:hover { border-color: var(--cs-accent); }
.cs-skill-icon { width: 44px; height: 44px; image-rendering: pixelated; flex: none; }
.cs-noicon { background: rgba(255,255,255,0.06); border-radius: 6px; }
.cs-skill-body { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.cs-skill-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.cs-skill-name { color: #fff; font-weight: 700; font-size: 14px; }
.cs-skill-type { font-size: 11px; color: var(--cs-accent); border: 1px solid var(--cs-accent); border-radius: 999px; padding: 1px 8px; }
.cs-skill-desc { line-height: 1.55; max-height: 132px; overflow-y: auto; padding-right: 4px; }
.cs-skill-desc::-webkit-scrollbar { width: 6px; }
.cs-skill-desc::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.18); border-radius: 3px; }
.cs-skill-desc::-webkit-scrollbar-track { background: transparent; }
.cs-skill-line { color: #cfc6e4; font-size: 12px; margin-bottom: 3px; }
.cs-ph { position: relative; color: #55ff55; font-weight: 600; cursor: help; }
.cs-tip {
    position: fixed;
    z-index: 200;
    background: #191227;
    border: 1px solid rgba(180, 143, 255, 0.5);
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 11px; font-weight: 400; color: #e8e0f5;
    white-space: pre-line; line-height: 1.7;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.55);
    pointer-events: none;
    min-width: 150px;
}
.cs-level-panel {
    margin-left: auto; flex: none;
    display: flex; flex-direction: row; align-items: center; gap: 12px;
    background: rgba(20, 16, 36, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 10px 16px;
}
.cs-level-range { display: flex; align-items: center; gap: 8px; }
.cs-exp-box {
    color: #cfc6e4; font-size: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    padding: 5px 10px;
    white-space: nowrap;
}
.cs-exp-box #csExpLv { color: #b48fff; font-weight: 700; }
.cs-exp-box #csExpTotal { color: #55ff55; font-weight: 700; }
.cs-level-cap { color: #9a90b0; font-size: 11px; }
.cs-level-badge { color: #b48fff; font-size: 15px; font-weight: 700; min-width: 52px; text-align: center; }
#csLevel {
    width: 320px;
    accent-color: #b48fff;
    cursor: ew-resize;
}
@media (max-width: 1200px) {
    .cs-grid-passive { grid-template-columns: repeat(2, 1fr); }
    #csLevel { width: 200px; }
}
@media (max-width: 860px) {
    .cs-skill-grid { grid-template-columns: 1fr; }
    .cs-class-head { flex-wrap: wrap; }
    .cs-level-panel { margin-left: 0; }
}
