/* ========== 字体导入：魔兽史诗风格 ========== */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;500;700&display=swap');

/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Serif SC', "Microsoft YaHei", serif;
    -webkit-tap-highlight-color: transparent;
}

/* 自定义滚动条：魔兽UI风格 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #0a0a0a;
    border-left: 1px solid #1a1a1a;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #3d2b1f 0%, #5c4033 50%, #3d2b1f 100%);
    border: 1px solid #111;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #7a5a40;
}

/* 全局魔兽风格背景 */
body {
    width: 100%;
    min-width: 320px;
    background-color: #0b0b0b;
    background-image: 
        linear-gradient(rgba(11, 11, 11, 0.9), rgba(11, 11, 11, 0.9)),
        radial-gradient(circle at 50% 50%, rgba(45, 30, 20, 0.3) 0%, transparent 80%);
    position: relative;
    font-size: 14px;
    color: #e5cc80; /* 魔兽经典的羊皮纸黄 */
    line-height: 1.5;
}

/* 顶部导航栏：魔兽动作条上方装饰带风格 */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 48px;
    line-height: 48px;
    background: linear-gradient(180deg, #1f1410 0%, #0d0806 100%);
    color: #ffcc00; /* 魔兽经典金 */
    text-align: center;
    font-size: 17px;
    font-weight: 700;
    font-family: 'Cinzel', 'Noto Serif SC', serif;
    letter-spacing: 1px;
    z-index: 9999;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.9);
    border-bottom: 2px solid #5a4028;
    text-shadow: 1px 1px 2px #000, 0 0 10px rgba(255, 204, 0, 0.2);
}

/* 返回按钮：魔兽风格金黄色箭头 */
.back-btn {
    position: absolute;
    left: 15px;
    top: 0;
    color: #ffcc00;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    height: 100%;
    transition: all 0.2s;
    text-shadow: 1px 1px 2px #000;
    z-index: 10000;
}
.back-btn:hover { color: #fff; text-shadow: 0 0 5px #ffcc00; }
.back-btn i {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-left: 2px solid #ffcc00;
    border-bottom: 2px solid #ffcc00;
    transform: rotate(45deg);
    margin-right: 6px;
    transition: all 0.2s;
}
.back-btn:hover i { border-color: #fff; }

/* 主容器 */
.main-wrap {
    width: 100%;
    padding: 58px 0 20px;
}

/* 内容面板：暗黑法术书底座 */
.container {
    width: 94%;
    margin: 12px auto;
    background: rgba(18, 14, 12, 0.95);
    padding: 16px;
    border-radius: 6px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 1), 0 5px 15px rgba(0, 0, 0, 0.8);
    border: 1px solid #3b3024;
}

/* 标题样式 */
h1 {
    font-size: 17px;
    color: #ffcc00;
    margin-bottom: 16px;
    text-align: center;
    font-weight: 700;
    font-family: 'Cinzel', 'Noto Serif SC', serif;
    text-shadow: 2px 2px 3px #000, 0 0 8px rgba(255, 204, 0, 0.2);
}

/* 按钮通用魔兽质感 */
button {
    padding: 14px 32px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    font-family: 'Cinzel', 'Noto Serif SC', serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.05);
    text-shadow: 1px 1px 2px #000;
}

/* 提示语 */
.empty-tip, .unopen-tip, .loading-tip, .error-tip {
    text-align: center;
    padding: 40px 20px;
    font-size: 14px;
    line-height: 1.5;
    background: rgba(0,0,0,0.3);
    border-radius: 4px;
    margin-top: 10px;
}
.unopen-tip, .error-tip { color: #ff3333; text-shadow: 1px 1px 2px #000; }
.empty-tip, .loading-tip { color: #a38d6d; }

/* 媒体查询：适配超小屏 */
@media (max-width: 375px) {
    .join-match-btn, .hall-of-fame-btn { padding: 16px 0; font-size: 18px; }
    .class-item { padding: 10px 12px; min-width: 60px; font-size: 13px; }
    .spec-item { padding: 10px 12px; font-size: 13px; }
    .tab-btn { padding: 8px 12px; font-size: 13px; }
    .rank-table { font-size: 10px; }
    .rank-table th, .rank-table td { padding: 8px 1px; }
    .page-btn, .refresh-btn, .page-btn-placeholder {
        padding: 10px 6px; min-width: 55px; max-width: 65px; font-size: 11px; line-height: 1.1;
    }
    .pagination-group { gap: 4px; }
    .container { padding: 20px 16px; }
    .btn-group { flex-direction: column; }
    button { width: 100%; }
    #uploadBtn { padding: 16px 0; font-size: 18px; }
    .cd-circle { width: 50px; height: 50px; }
    .cd-circle .circle-progress { stroke-dasharray: 125.66; }
    #resetBtn, .rank-btn, .get-wa-btn { 
        padding: 10px 10px; 
        font-size: 12px; 
        min-width: auto; 
    }
    #uploadResult { min-height: 180px; font-size: 12px;}
    .big-btn {
        padding: 18px 0;
        font-size: 18px;
    }
    .skill-table { font-size: 12px; }
    .skill-table th, .skill-table td { padding: 8px 4px; }
    .skill-table th:first-child, .skill-table td:first-child { width: 65px; font-size: 11px; }
    .skill-table th:nth-child(2), .skill-table td:nth-child(2) { width: calc(100% - 65px); padding-left: 8px; }
}
