/* ============================================================
 * style.css - 广象棋网 CMS 主样式表
 * 自适应移动端与电脑端
 * ============================================================ */

:root {
    --chess-red: #c0392b;
    --chess-red-dark: #962d22;
    --chess-red-light: #e74c3c;
    --chess-gold: #d4a548;
    --chess-gold-dark: #b8902f;
    --chess-black: #2c2c2c;
    --chess-bg: #f5f0e8;
    --chess-bg-alt: #ede5d3;
    --chess-text: #333333;
    --chess-text-light: #666666;
    --chess-border: #ddd2c0;
    --chess-shadow: 0 2px 8px rgba(0,0,0,.08);
}

/* ========== 全局 ========== */
* { box-sizing: border-box; }
body {
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
    color: var(--chess-text);
    background-color: var(--chess-bg);
    font-size: 15px;
    line-height: 1.7;
}
a {
    color: var(--chess-red);
    text-decoration: none;
    transition: color .2s;
}
a:hover { color: var(--chess-red-dark); text-decoration: underline; }

/* ========== 顶部条 ========== */
.topbar {
    background: linear-gradient(135deg, var(--chess-black) 0%, #1a1a1a 100%);
    color: #ccc;
    font-size: 13px;
    padding: 6px 0;
}
.topbar a { color: #ddd; }
.topbar a:hover { color: #fff; }
.topbar-left i, .topbar-right i { margin-right: 2px; }

/* ========== 站点头部 ========== */
.site-header {
    background: linear-gradient(180deg, #fff 0%, #faf6ef 100%);
    border-bottom: 3px solid var(--chess-red);
    box-shadow: 0 2px 4px rgba(0,0,0,.06);
}
.logo-link { text-decoration: none; display: inline-block; }
.site-logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--chess-red);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo-icon {
    display: inline-block;
    background: var(--chess-red);
    color: #fff;
    font-size: 14px;
    padding: 4px 12px;
    border-radius: 4px;
    letter-spacing: 2px;
    font-weight: normal;
    white-space: nowrap;
}
.logo-subtitle {
    font-size: 13px;
    color: var(--chess-text-light);
    margin: 2px 0 0;
}
.search-form .form-control {
    border: 2px solid var(--chess-red);
    border-right: none;
}
.search-form .btn-chess {
    border: 2px solid var(--chess-red);
}

/* ========== 导航栏 ========== */
.main-nav {
    background: linear-gradient(180deg, var(--chess-red) 0%, var(--chess-red-dark) 100%);
    padding: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.main-nav .navbar-nav .nav-link {
    color: rgba(255,255,255,.9) !important;
    font-size: 15px;
    font-weight: 500;
    padding: 14px 18px !important;
    transition: all .2s;
    border-bottom: 3px solid transparent;
}
.main-nav .navbar-nav .nav-link:hover,
.main-nav .navbar-nav .nav-link.active {
    color: #fff !important;
    background: rgba(0,0,0,.15);
    border-bottom-color: var(--chess-gold);
}
.main-nav .navbar-nav .nav-link i {
    margin-right: 4px;
}
.navbar-toggler {
    border-color: rgba(255,255,255,.5);
}
.navbar-toggler:focus { box-shadow: none; }
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255%2c255%2c255%2c0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ========== 移动端搜索 ========== */
.mobile-search {
    background: #fff;
    border-bottom: 1px solid var(--chess-border);
}

/* ========== 面包屑 ========== */
.breadcrumb-bar {
    background: #fff;
    border-bottom: 1px solid var(--chess-border);
    padding: 8px 0;
}
.breadcrumb {
    font-size: 13px;
}
.breadcrumb-item a { color: var(--chess-text-light); }
.breadcrumb-item a:hover { color: var(--chess-red); }
.breadcrumb-item.active { color: var(--chess-text); }

/* ========== 主体内容 ========== */
.main-content {
    min-height: 500px;
}

/* ========== 按钮 ========== */
.btn-chess {
    background: var(--chess-red);
    color: #fff;
    border: 1px solid var(--chess-red);
}
.btn-chess:hover {
    background: var(--chess-red-dark);
    color: #fff;
    border-color: var(--chess-red-dark);
}
.btn-outline-chess {
    color: var(--chess-red);
    border: 1px solid var(--chess-red);
    background: transparent;
}
.btn-outline-chess:hover {
    background: var(--chess-red);
    color: #fff;
}
.btn-gold {
    background: var(--chess-gold);
    color: #fff;
    border: 1px solid var(--chess-gold);
}
.btn-gold:hover {
    background: var(--chess-gold-dark);
    color: #fff;
}

/* ========== 卡片 ========== */
.chess-card {
    background: #fff;
    border: 1px solid var(--chess-border);
    border-radius: 6px;
    box-shadow: var(--chess-shadow);
    margin-bottom: 20px;
    overflow: hidden;
}
.chess-card-header {
    background: linear-gradient(180deg, #fff 0%, var(--chess-bg-alt) 100%);
    border-bottom: 2px solid var(--chess-red);
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.chess-card-header h3,
.chess-card-header h4 {
    margin: 0;
    font-size: 17px;
    font-weight: bold;
    color: var(--chess-text);
}
.chess-card-header h3::before,
.chess-card-header h4::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 18px;
    background: var(--chess-red);
    margin-right: 8px;
    vertical-align: middle;
    border-radius: 2px;
}
.chess-card-header .more-link {
    font-size: 13px;
    color: var(--chess-text-light);
}
.chess-card-body {
    padding: 12px 16px;
}

/* ========== 资讯列表 ========== */
.news-list { list-style: none; padding: 0; margin: 0; }
.news-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed var(--chess-border);
}
.news-list li:last-child { border-bottom: none; }
.news-list .news-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 10px;
}
.news-list .news-title a {
    color: var(--chess-text);
}
.news-list .news-title a:hover {
    color: var(--chess-red);
}
.news-list .news-date {
    color: var(--chess-text-light);
    font-size: 13px;
    white-space: nowrap;
}
.news-list .badge {
    margin-right: 6px;
    font-weight: normal;
}
.news-list .tag-hot { background: var(--chess-red); }
.news-list .tag-top { background: var(--chess-gold); }
.news-list .tag-new { background: #27ae60; }
.news-list .tag-premium { background: #8e44ad; }

/* ========== 棋手卡片 ========== */
.player-card {
    text-align: center;
    padding: 16px 10px;
}
.player-card .player-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--chess-gold);
    object-fit: cover;
    margin-bottom: 8px;
}
.player-card .player-name {
    font-weight: bold;
    font-size: 15px;
    margin: 0;
}
.player-card .player-title {
    font-size: 12px;
    color: var(--chess-text-light);
    margin: 2px 0;
}
.player-card .player-rating {
    color: var(--chess-red);
    font-weight: bold;
    font-size: 14px;
}

/* ========== 棋谱列表 ========== */
.game-list { list-style: none; padding: 0; margin: 0; }
.game-list li {
    padding: 8px 12px;
    border-bottom: 1px dashed var(--chess-border);
    display: flex;
    align-items: center;
    gap: 8px;
}
.game-result {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    min-width: 36px;
    text-align: center;
}
.game-result.red { background: var(--chess-red); }
.game-result.black { background: #333; }
.game-result.draw { background: var(--chess-gold); }

/* ========== 排行榜 ========== */
.rank-table th {
    background: var(--chess-red);
    color: #fff;
    font-weight: 500;
    text-align: center;
    border: none;
}
.rank-table td { text-align: center; vertical-align: middle; }
.rank-number {
    display: inline-block;
    width: 28px;
    height: 28px;
    line-height: 28px;
    border-radius: 50%;
    font-weight: bold;
    text-align: center;
    font-size: 14px;
}
.rank-1 { background: #ffd700; color: #333; }
.rank-2 { background: #c0c0c0; color: #333; }
.rank-3 { background: #cd7f32; color: #fff; }
.rank-other { background: #f0f0f0; color: #666; }

/* ========== 赛事卡片 ========== */
.tournament-card {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px dashed var(--chess-border);
}
.tournament-card .t-status {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 3px;
    font-size: 12px;
    color: #fff;
}
.t-status.active { background: #27ae60; }
.t-status.upcoming { background: var(--chess-gold); }
.t-status.ended { background: #95a5a6; }
.t-status.cancelled { background: #e74c3c; }

/* ========== 论坛列表 ========== */
.forum-board {
    display: flex;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid var(--chess-border);
    gap: 12px;
}
.forum-board .board-icon {
    font-size: 32px;
    color: var(--chess-red);
    width: 48px;
    text-align: center;
}
.forum-board .board-info { flex: 1; }
.forum-board .board-name {
    font-weight: bold;
    font-size: 15px;
}
.forum-board .board-stats {
    text-align: center;
    font-size: 13px;
    color: var(--chess-text-light);
}

/* ========== 底部 ========== */
.site-footer {
    background: linear-gradient(180deg, #2c2c2c 0%, #1a1a1a 100%);
    color: #bbb;
    margin-top: 30px;
}
.footer-title {
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 12px;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li { margin-bottom: 6px; }
.footer-links a { color: #aaa; font-size: 14px; }
.footer-links a:hover { color: #fff; }
.footer-desc { font-size: 13px; line-height: 1.6; }
.footer-contact { font-size: 13px; color: #aaa; }
.icp-link { color: #888; }
.icp-link:hover { color: #fff; }

/* ========== 友情链接 ========== */
.friend-links {
    background: #fff;
    border-top: 1px solid var(--chess-border);
    border-bottom: 1px solid var(--chess-border);
    font-size: 13px;
}
.fl-link {
    display: inline-block;
    margin-right: 12px;
    color: var(--chess-text-light);
}
.fl-link:hover { color: var(--chess-red); }

/* ========== 社交图标 ========== */
.social-icons { display: flex; gap: 8px; }
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    color: #ccc;
    font-size: 18px;
    transition: all .2s;
}
.social-icon:hover {
    background: var(--chess-red);
    color: #fff;
    text-decoration: none;
}

/* ========== 返回顶部 ========== */
.btn-back-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--chess-red);
    color: #fff;
    border: none;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all .3s;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,.3);
}
.btn-back-top.show {
    opacity: 1;
    visibility: visible;
}
.btn-back-top:hover {
    background: var(--chess-red-dark);
    transform: translateY(-2px);
}

/* ========== 侧边栏 ========== */
.sidebar-widget {
    background: #fff;
    border: 1px solid var(--chess-border);
    border-radius: 6px;
    margin-bottom: 20px;
    overflow: hidden;
}
.sidebar-widget .widget-header {
    background: linear-gradient(180deg, #fff 0%, var(--chess-bg-alt) 100%);
    border-bottom: 2px solid var(--chess-red);
    padding: 10px 14px;
    font-weight: bold;
    font-size: 15px;
}
.sidebar-widget .widget-header::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 16px;
    background: var(--chess-red);
    margin-right: 6px;
    vertical-align: middle;
    border-radius: 2px;
}
.sidebar-widget .widget-body { padding: 12px 14px; }

/* ========== 标签 ========== */
.tag-list a {
    display: inline-block;
    padding: 3px 10px;
    margin: 3px;
    border: 1px solid var(--chess-border);
    border-radius: 15px;
    font-size: 13px;
    color: var(--chess-text-light);
    background: #f9f9f9;
}
.tag-list a:hover {
    border-color: var(--chess-red);
    color: var(--chess-red);
    background: #fff;
}

/* ========== 广告位 ========== */
.ad-banner {
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;
}
.ad-banner img { width: 100%; display: block; }

/* ========== 详情页 ========== */
.article-detail h1 {
    font-size: 22px;
    color: var(--chess-text);
    margin-bottom: 10px;
}
.article-meta {
    color: var(--chess-text-light);
    font-size: 13px;
    padding: 10px 0;
    border-bottom: 1px solid var(--chess-border);
    margin-bottom: 20px;
}
.article-content {
    font-size: 16px;
    line-height: 2;
}
.article-content p { margin-bottom: 1em; }
.article-content img { max-width: 100%; border-radius: 4px; }

/* ========== 登录注册页 ========== */
.auth-wrapper {
    max-width: 460px;
    margin: 40px auto;
}
.auth-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,.1);
    overflow: hidden;
}
.auth-header {
    background: linear-gradient(135deg, var(--chess-red) 0%, var(--chess-red-dark) 100%);
    color: #fff;
    padding: 24px;
    text-align: center;
}
.auth-header h2 { margin: 0; font-size: 24px; }
.auth-header p { margin: 6px 0 0; opacity: .9; }
.auth-body { padding: 30px; }
.auth-footer {
    background: #f8f6f2;
    padding: 16px;
    text-align: center;
    font-size: 14px;
    border-top: 1px solid var(--chess-border);
}
.form-control:focus {
    border-color: var(--chess-red);
    box-shadow: 0 0 0 .2rem rgba(192,57,43,.15);
}
.form-check-input:checked {
    background-color: var(--chess-red);
    border-color: var(--chess-red);
}

/* ========== 微信登录 ========== */
.wechat-login-btn {
    background: #07c160;
    color: #fff;
    border: 1px solid #07c160;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    font-size: 15px;
    transition: all .2s;
}
.wechat-login-btn:hover {
    background: #06a050;
    color: #fff;
}
.divider-text {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--chess-text-light);
    font-size: 13px;
    margin: 16px 0;
}
.divider-text::before,
.divider-text::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid var(--chess-border);
}
.divider-text span { padding: 0 12px; }

/* ============================================================
 * 响应式 - 移动端适配
 * ============================================================ */
@media (max-width: 991.98px) {
    .site-logo { font-size: 22px; }
    .logo-icon { font-size: 12px; padding: 3px 8px; }
    .main-nav .navbar-nav .nav-link {
        padding: 10px 16px !important;
        border-bottom: 1px solid rgba(255,255,255,.1);
    }
    .main-nav .navbar-nav .nav-link i { width: 20px; text-align: center; }
    .chess-card-header h3,
    .chess-card-header h4 { font-size: 15px; }
    .sidebar-widget { margin-bottom: 15px; }
    .friend-links { display: none !important; }
    .site-footer .footer-title { font-size: 14px; }
}

@media (max-width: 767.98px) {
    body { font-size: 14px; }
    .container { padding-left: 12px; padding-right: 12px; }
    .site-logo { font-size: 20px; }
    .logo-subtitle { display: none; }
    .auth-wrapper { margin: 16px auto; }
    .auth-body { padding: 20px; }
    .news-list .news-date { display: none; }
    .game-list li { font-size: 13px; }
    .btn-back-top { width: 40px; height: 40px; bottom: 15px; right: 15px; }
    .article-detail h1 { font-size: 18px; }
    .article-content { font-size: 15px; }
}

@media (max-width: 575.98px) {
    .site-logo { font-size: 18px; gap: 6px; }
    .logo-icon { font-size: 10px; padding: 2px 6px; letter-spacing: 1px; }
    .main-content { padding-top: 12px !important; padding-bottom: 12px !important; }
    .chess-card-body { padding: 10px 12px; }
    .chess-card-header { padding: 8px 12px; }
    .player-card .player-avatar { width: 60px; height: 60px; }
    .forum-board .board-icon { font-size: 24px; width: 36px; }
}

/* ============================================================
 * 管理后台专用样式
 * ============================================================ */
.admin-body { background: #f4f5f7; }
.admin-sidebar {
    background: #2c3e50;
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    width: 230px;
    z-index: 1000;
    transition: all .3s;
}
.admin-sidebar .sidebar-header {
    padding: 20px;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.admin-sidebar .nav-link {
    color: #bdc3c7;
    padding: 12px 20px;
    border-radius: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all .2s;
}
.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: #fff;
    background: rgba(0,0,0,.2);
    border-left: 3px solid var(--chess-gold);
}
.admin-sidebar .nav-link i { width: 20px; }
.admin-content {
    margin-left: 230px;
    padding: 0;
    transition: all .3s;
}
.admin-topbar {
    background: #fff;
    padding: 12px 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}
.admin-main { padding: 20px 24px; }
.admin-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
    margin-bottom: 20px;
    overflow: hidden;
}
.admin-card-header {
    padding: 14px 20px;
    border-bottom: 1px solid #eee;
    font-weight: bold;
    font-size: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.admin-card-body { padding: 20px; }

/* 后台数据表格 */
.admin-table th {
    background: #f8f9fa;
    font-weight: 600;
    white-space: nowrap;
}
.admin-table td { vertical-align: middle; }

/* 后台统计卡片 */
.stat-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
    display: flex;
    align-items: center;
    gap: 16px;
}
.stat-card .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
}
.stat-card .stat-info h3 { margin: 0; font-size: 24px; font-weight: bold; }
.stat-card .stat-info p { margin: 0; color: #999; font-size: 13px; }

/* 后台响应式 */
@media (max-width: 991.98px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }
    .admin-sidebar.show {
        transform: translateX(0);
    }
    .admin-content {
        margin-left: 0;
    }
}

@media (max-width: 767.98px) {
    .admin-main { padding: 12px; }
    .admin-card-body { padding: 12px; }
    .stat-card { padding: 12px; gap: 10px; }
    .stat-card .stat-icon { width: 40px; height: 40px; font-size: 18px; }
    .stat-card .stat-info h3 { font-size: 18px; }
}

/* ============================================================
 * 资讯版块专用主题（2026-09-27 改为传统浅色阅读主题）
 * 规范：页面底 #F7F8FA / 卡片纯白；正文 #333，次要 #666，辅助 #999；
 *       主标题 #222；唯一强调色 #165DFF（链接/按钮/高亮）；边框 #E5E7EB。
 * ============================================================ */
body.module-news {
    background: #F7F8FA;
    color: #333333;
}
.module-news .breadcrumb-bar { background: #FFFFFF; border-color: #E5E7EB; }
.module-news .breadcrumb-item a { color: #666666; }
.module-news .breadcrumb-item a:hover { color: #165DFF; }
.module-news .breadcrumb-item.active { color: #333333; }
.module-news .chess-card,
.module-news .sidebar-widget {
    background: #FFFFFF;
    border-color: #E5E7EB;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.module-news .chess-card-header {
    background: #FFFFFF;
    border-bottom: 2px solid #165DFF;
}
.module-news .chess-card-header h3,
.module-news .chess-card-header h4 { color: #222222; }
.module-news .chess-card-header h3::before,
.module-news .chess-card-header h4::before { background: #165DFF; }
.module-news .sidebar-widget .widget-header {
    background: #FFFFFF;
    border-bottom: 2px solid #165DFF;
    color: #222222;
}
.module-news .sidebar-widget .widget-header::before { background: #165DFF; }
.module-news a { color: #165DFF; }
.module-news a:hover { color: #0E42D2; }
.module-news .news-list .news-title a { color: #333333; }
.module-news .news-list .news-title a:hover { color: #165DFF; }
.module-news .news-list .news-date { color: #999999; }
.module-news .text-muted { color: #999999 !important; }
.module-news .article-meta { border-bottom-color: #E5E7EB; color: #666666 !important; }
.module-news .article-meta a { color: #165DFF; }
.module-news .article-meta i { color: #999999; }
.module-news .article-detail h1 { color: #222222; }
.module-news .form-control,
.module-news .form-select {
    background: #FFFFFF;
    border-color: #E5E7EB;
    color: #333333;
}
.module-news .form-control:focus,
.module-news .form-select:focus {
    background: #FFFFFF;
    border-color: #165DFF;
    color: #333333;
    box-shadow: 0 0 0 .2rem rgba(22,93,255,.12);
}
.module-news .form-control::placeholder { color: #999999; opacity: 1; }
.module-news .btn-chess { background: #165DFF; border-color: #165DFF; color: #fff; }
.module-news .btn-chess:hover { background: #0E42D2; border-color: #0E42D2; color: #fff; }
.module-news .btn-outline-chess { color: #165DFF; border-color: #165DFF; background: transparent; }
.module-news .btn-outline-chess:hover { background: #165DFF; color: #fff; }
.module-news .pagination .page-link { background: #FFFFFF; border-color: #E5E7EB; color: #333333; }
.module-news .pagination .page-link:hover { background: #F0F5FF; color: #165DFF; }
.module-news .pagination .active .page-link { background: #165DFF; border-color: #165DFF; color: #fff; }
.module-news .comment-item { border-bottom-color: #E5E7EB; }
.module-news .comment-meta { color: #999999; }

/* 热门资讯时间选项卡 */
.hot-tabs { flex-wrap: wrap; gap: 2px; }
.hot-tabs .btn-outline-gold {
    color: #165DFF;
    border-color: #C9D8F8;
    background: transparent;
    padding: 2px 6px;
    font-size: 12px;
}
.hot-tabs .btn-outline-gold:hover,
.hot-tabs .btn-outline-gold.active {
    background: #165DFF;
    border-color: #165DFF;
    color: #fff;
}

/* 正文可读性：老文章常带内联浅色字体，统一压成深灰防“白字白底”；
   链接统一强调蓝并允许换行，修复外链标题被截断/遮挡 */
.module-news .article-content,
.module-news .article-content p,
.module-news .article-content span,
.module-news .article-content div,
.module-news .article-content font,
.module-news .article-content li,
.module-news .article-content td,
.module-news .article-content th,
.module-news .article-content blockquote,
.module-news .article-content strong,
.module-news .article-content em,
.module-news .article-content b,
.module-news .article-content i { color: #333333 !important; }
.module-news .article-content a {
    color: #165DFF !important;
    word-break: break-all;
    overflow-wrap: anywhere;
}
.module-news .article-content a:hover { color: #0E42D2 !important; }
.module-news .article-content .article-img-link { display: inline-block; }
.module-news .article-content .dpxq-wrap,
.module-news .article-content .dpxq-wrap * { color: initial !important; }
.module-news .article-content .dpxq-wrap a { color: initial !important; }

/* 点赞按钮（强调蓝） */
.btn-like {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    border: 1px solid #165DFF;
    border-radius: 20px;
    background: transparent;
    color: #165DFF;
    font-size: 13px;
    line-height: 1.4;
    text-decoration: none;
    cursor: pointer;
    transition: all .2s;
}
.btn-like:hover {
    background: #165DFF;
    color: #fff;
    text-decoration: none;
}
.btn-like.liked,
.btn-like:disabled {
    background: #165DFF;
    color: #fff;
    cursor: default;
    opacity: .9;
}
.btn-like i { font-size: 14px; }

/* 底部大点赞按钮 */
.article-like-bar { padding: 8px 0 4px; }
.btn-like.btn-like-lg {
    padding: 10px 32px;
    font-size: 16px;
    border-radius: 28px;
    gap: 8px;
}
.btn-like.btn-like-lg i { font-size: 18px; }

/* 全局标签色（修复详情页 置顶/推荐 与背景同色） */
.tag-top, .tag-hot, .tag-recommended, .tag-new, .tag-premium {
    display: inline-block;
    padding: .25em .55em;
    border-radius: .25rem;
    font-size: .75em;
    font-weight: 600;
    line-height: 1;
    vertical-align: baseline;
    white-space: nowrap;
    color: #fff;
}
.tag-top { background: #e67e22; }
.tag-hot { background: #c0392b; }
.tag-recommended { background: #2980b9; }
.tag-new { background: #27ae60; }
.tag-premium { background: #8e44ad; }

/* ============================================================
 * 个人中心（member/profile.asp）- 类后台双栏布局，兼容移动端
 * ============================================================ */
.member-left { margin-bottom: 15px; }

/* 用户卡 */
.member-user-card .chess-card-body {
    text-align: center;
    padding: 20px 14px 14px;
}
.member-user-card .member-avatar {
    border: 3px solid var(--chess-gold);
    border-radius: 50%;
    object-fit: cover;
}
.member-user-card h4 {
    margin: 10px 0 4px;
    font-size: 18px;
    color: var(--chess-text);
}
.member-user-card .member-mini-stats {
    display: flex;
    border-top: 1px solid var(--chess-border);
    margin-top: 14px;
    padding-top: 10px;
}
.member-user-card .member-mini-stats > div { flex: 1; }
.member-user-card .member-mini-stats .v { font-weight: bold; font-size: 16px; }
.member-user-card .member-mini-stats .l { font-size: 12px; color: var(--chess-text-light); }

/* 功能导航 */
.member-nav-card .chess-card-body { padding: 10px; }
.member-sidenav .nav-link {
    color: #444;
    border: none;
    background: none;
    border-radius: 6px;
    padding: 9px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    width: 100%;
    text-align: left;
    transition: all .2s;
}
.member-sidenav .nav-link:hover {
    background: #faf6ef;
    color: var(--chess-red);
    text-decoration: none;
}
.member-sidenav .nav-link.active {
    background: var(--chess-red);
    color: #fff;
}
.member-sidenav .nav-link i { width: 18px; }
.member-sidenav .nav-link .badge { margin-left: auto; }
.member-sidenav .nav-divider {
    border-top: 1px dashed var(--chess-border);
    margin: 8px 4px;
}

/* 快捷入口磁贴 */
.member-quick-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 10px;
}
.member-quick-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 6px;
    border: 1px solid var(--chess-border);
    border-radius: 8px;
    background: #fff;
    color: var(--chess-text);
    text-decoration: none;
    font-size: 13px;
    transition: all .2s;
    cursor: pointer;
}
.member-quick-tile i {
    font-size: 24px;
    color: var(--chess-red);
    transition: transform .2s;
}
.member-quick-tile:hover {
    border-color: var(--chess-red);
    box-shadow: var(--chess-shadow);
    color: var(--chess-red);
    text-decoration: none;
    transform: translateY(-2px);
}
.member-quick-tile:hover i { transform: scale(1.15); }

/* 复用后台统计卡，压缩间距 */
.member-center .stat-card { margin-bottom: 0; }

/* 个人中心移动端：导航横向滚动 */
@media (max-width: 991.98px) {
    .member-nav-card .chess-card-body { padding: 8px; }
    .member-sidenav {
        flex-direction: row !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 2px;
    }
    .member-sidenav .nav-item { flex: 0 0 auto; }
    .member-sidenav .nav-link {
        white-space: nowrap;
        border: 1px solid var(--chess-border);
        background: #fff;
        padding: 6px 12px;
    }
    .member-sidenav .nav-link.active {
        background: var(--chess-red);
        border-color: var(--chess-red);
    }
    .member-sidenav .nav-divider { display: none; }
}

