/* ========== 重置与基础 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #F2F4F6;               /* 精武堂背景 */
    font-family: '宋体', SimSun, 'Helvetica Neue', Arial, sans-serif;
    font-size: 15px;                    /* 统一基准字号 */
    color: #1A1A1A;
    line-height: 1.7;
    margin: 0;
    padding: 12px 10px;
}

/* 全局链接（精武堂风格：有下划线，色值更新） */
a {
    text-decoration: underline;
    color: #0066CC;
}
a:visited { color: #663399; }
a:hover {
    color: #FF5500;
    text-decoration: none;
}

hr {
    border: 0;
    border-top: 1px dashed #C0C6CC;
    margin: 18px 0;
}

/* ========== 布局容器 ========== */
.container {
    max-width: 640px;
    margin: 0 auto;
    background: #fff;
    min-height: 100vh;
}

.header {
    background: #0055AA;
    color: white;
    padding: 10px;
    font-weight: bold;
    font-size: 16px;
}

.nav {
    background: #e1eef9;
    padding: 8px;
    border-bottom: 1px solid #ccc;
    font-size: 12px;
}
.nav a {
    color: #0055aa;
    text-decoration: none;
}
.nav a:hover {
    text-decoration: none;
}

.content {
    padding: 10px;
}

.footer {
    border-top: 1px solid #ddd;
    padding: 10px;
    text-align: center;
    font-size: 12px;
    color: #666;
    background: #f9f9f9;
}
.footer a {
    color: #0055aa;
    text-decoration: none;
}
.footer a:hover {
    text-decoration: none;
}

/* 3GQQ 顶部蓝色导航条（保留原有紧凑设计） */
.top-bar {
    background: linear-gradient(to bottom, #A4D3EE 0%, #5CACEE 100%);
    border-bottom: 1px solid #4F94CD;
    padding: 4px 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.top-bar::-webkit-scrollbar {
    display: none;
}
.top-bar a {
    display: flex;
    align-items: center;
    gap: 3px;
    text-decoration: none;
    color: #FFFFFF;
    font-size: 13px;                /* 保持导航文字较小 */
    white-space: nowrap;
    text-shadow: 0 1px 1px #4F94CD;
}
.top-bar img {
    width: 18px;
    height: 18px;
    vertical-align: middle;
}
.top-bar .nickname {
    font-weight: bold;
}

/* ========== 通用组件 ========== */
.section-title {
    background: #e1eef9;
    padding: 5px;
    font-weight: bold;
    color: #0055aa;
    margin: 15px 0 5px 0;
    border-left: 3px solid #0055aa;
}

.btn {
    color: #0066CC;                 /* 精武堂按钮为文字链接样式 */
    text-decoration: underline;
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0 4px;
    cursor: pointer;
    font-size: inherit;              /* 继承 body 字号 */
}
.btn:hover {
    color: #FF5500;
    text-decoration: none;
}

/* 频道盒子（3GQQ 家园模块） */
.channel-box {
    border: 1px solid #D1E1F0;
    margin-bottom: 10px;
    background: #FFF;
}
.channel-title {
    background: linear-gradient(to bottom, #E1EEF9 0%, #C1D9F0 100%);
    color: #0055AA;
    padding: 6px 10px;
    font-weight: bold;
    font-size: 14px;
    border-bottom: 1px solid #A3C0D9;
}
.channel-content {
    padding: 10px;
    line-height: 1.6;
    font-size: 13px;
}
.channel-content a {
    margin-right: 8px;
    white-space: nowrap;
    line-height: 2;
}

/* 热门标签 */
.hot-tag {
    background: #FF4400;
    color: #FFF;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 2px;
    margin-right: 5px;
    display: inline-block;
}

/* 底部统计栏 */
.stat-bar {
    background: #F0F0F0;
    padding: 8px;
    font-size: 12px;
    color: #666;
    text-align: center;
    border-top: 1px solid #DDD;
    border-bottom: 1px solid #DDD;
    margin-top: 5px;
}

/* ========== 专用模块 ========== */

/* 每日60秒读懂世界 */
.world-60s-box { text-align: center; }
.world-60s-title {
    background: #FFEFD5;
    color: #D2691E;
    padding: 3px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 5px;
}
.news-item {
    margin: 5px 0;
    padding: 5px;
    text-align: left;
    font-size: 12px;
    line-height: 1.4;
    border-bottom: 1px dashed #EEE;
}
.news-index {
    display: inline-block;
    width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    background: #3366CC;
    color: white;
    border-radius: 2px;
    margin-right: 5px;
    font-size: 10px;
}
.news-time {
    color: #888;
    font-size: 10px;
    float: right;
}
.news-update {
    color: #FF4400;
    font-weight: bold;
    font-size: 11px;
}
.news-loading {
    color: #999;
    padding: 10px;
    text-align: center;
    font-size: 11px;
}
.news-source {
    font-size: 10px;
    color: #666;
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px dotted #DDD;
}
.news-error {
    color: #FF6600;
    padding: 10px;
    text-align: center;
    font-size: 11px;
    background: #FFF8E6;
    border: 1px dashed #FFD591;
}
.refresh-btn {
    padding: 3px 8px;
    font-size: 11px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    margin-right: 5px;
}
.refresh-btn:hover { background: #45a049; }
.refresh-btn:disabled {
    background: #CCCCCC;
    cursor: not-allowed;
}
.api-status {
    font-size: 9px;
    color: #666;
    margin-left: 5px;
}
.api-primary { color: #4CAF50; }
.api-backup { color: #FF9800; }

/* 折叠/展开 */
.news-collapsed {
    max-height: 180px;
    overflow: hidden;
    position: relative;
}
.news-collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0.95));
}
.news-expanded {
    max-height: none !important;
    overflow: visible !important;
}
.news-expanded::after {
    display: none !important;
}
.toggle-news-btn {
    display: block;
    width: 100%;
    padding: 5px;
    background: #f0f8ff;
    border: 1px solid #d1e1f0;
    border-radius: 3px;
    color: #3366cc;
    font-size: 11px;
    cursor: pointer;
    margin-top: 5px;
    text-align: center;
}
.toggle-news-btn:hover { background: #e1eef9; }
.news-count {
    font-size: 10px;
    color: #666;
    margin-left: 5px;
}

/* 公告活动 */
.announcement-box {
    background: #FFFBE6;
    border: 1px solid #FFD700;
    border-radius: 4px;
    margin: 10px 0;
    overflow: hidden;
}
.announcement-title {
    background: #FFD700;
    color: #8B4513;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.announcement-title a.more {
    color: #8B4513;
    font-size: 11px;
    text-decoration: none;
    border: 1px solid #8B4513;
    padding: 2px 8px;
    border-radius: 12px;
    background: rgba(255,255,255,0.3);
}
.announcement-title a.more:hover {
    background: #8B4513;
    color: #FFD700;
}
.announcement-list {
    padding: 8px 12px;
}
.announcement-item {
    padding: 8px 0;
    border-bottom: 1px dashed #FFE699;
    line-height: 1.5;
}
.announcement-item:last-child {
    border-bottom: none;
}
.announcement-item a {
    display: block;
    color: #333;
    text-decoration: none;
    font-size: 13px;
}
.announcement-item a:hover {
    color: #C00;
}
.announcement-badge {
    display: inline-block;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 2px;
    margin-right: 6px;
    color: #fff;
    vertical-align: middle;
}
.badge-urgent { background: #FF4D4F; }
.badge-important { background: #FA8C16; }
.badge-normal { background: #999; }
.announcement-date {
    float: right;
    color: #999;
    font-size: 11px;
    font-weight: normal;
}

/* 游戏中心卡片化样式 */
.game-center-box {
    background: #E6F7FF;
    border: 1px solid #91D5FF;
    border-radius: 8px;
    margin: 10px 0;
    box-shadow: 0 2px 4px rgba(0,85,170,0.1);
}
.game-center-title {
    background: linear-gradient(to bottom, #5CACEE, #0055AA);
    color: white;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
}
.game-center-title img {
    width: 20px;
    height: 20px;
    margin-right: 6px;
}
.game-center-content {
    padding: 15px;
    text-align: center;
}
.game-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-around;
    margin-top: 10px;
}
.game-item {
    background: white;
    border: 1px solid #BCD;
    border-radius: 6px;
    padding: 10px;
    width: 28%;
    min-width: 80px;
    text-align: center;
    transition: all 0.1s;
}
.game-item:hover {
    background: #E1EEF9;
    border-color: #0055AA;
}
.game-icon {
    font-size: 28px;
    margin-bottom: 5px;
}
.game-name {
    font-size: 12px;
    color: #0055AA;
    font-weight: bold;
}
.game-status {
    font-size: 10px;
    color: #FF6600;
    margin-top: 4px;
}
.btn-game {
    display: inline-block;
    background: #FF6600;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
    margin-top: 12px;
    border: 1px solid #CC5500;
    box-shadow: 0 2px 0 #CC5500;
}
.btn-game:hover {
    background: #FF4500;
    box-shadow: 0 1px 0 #CC5500;
    transform: translateY(1px);
}
.btn-game:active {
    transform: translateY(2px);
    box-shadow: none;
}
.btn-game.disabled {
    background: #CCC;
    border-color: #999;
    box-shadow: 0 2px 0 #999;
    pointer-events: none;
    color: #F5F5F5;
}

/* ========== 工具类 ========== */
.fr { float: right; }

/* 颜色类（以精武堂色值为准） */
.gray { color: #6F6F6F; }
.green { color: #008040; }
.orange { color: #CC6600; }
.red { color: #CC3300; }
.hot { color: #E60012; font-weight: bold; margin-right: 4px; }

/* 品质颜色 */
.q1 { color: #A0A0A0; } /* 普通 */
.q2 { color: #1EFF00; } /* 优秀 */
.q3 { color: #0070DD; } /* 精良 */
.q4 { color: #A335EE; } /* 史诗 */
.q5 { color: #FF8000; } /* 传说 */
.q6 { color: #E5CC80; } /* 神话 */
.q7 { color: #00FFFF; } /* 远古 */

/* 等级括号 */
.level-badge { color: #8A8A8A; }

/* 玩家行/物品行等 */
.player-line, .chat-line, .record-line, .item-line {
    margin: 8px 0;
    word-break: break-all;
    clear: both;
}
.time-tag { color: #4F7DA3; }

/* 无数据提示 */
.empty-msg {
    color: #999;
    text-align: center;
    padding: 20px 0;
    font-style: italic;
}

/* 底部版权 */
.copyright {
    margin-top: 25px;
    text-align: center;
    color: #999;
}

/* 强制所有辅助类继承 body 字号（精武堂统一风格） */
.small, .xsmall, .page-title, .number-highlight, .slot-tag {
    font-size: inherit !important;
}