/* ============================================================
   文件：static/css/main.css
   说明：赛事网主样式（全局变量/重置/组件/通用）
   作者：星球软件CEWWW
   路径：/static/css/main.css
   主色：橙色 #FF6B35 | 辅助：深棕 #3E2723 / 浅灰 #F5F5F5
   ============================================================ */

/* ---------- 1. 全局CSS变量 ---------- */
:root {
    /* 主色（橙色系） */
    --hk-primary: #FF6B35;
    --hk-primary-dark: #E55A2B;
    --hk-primary-light: #FF8B5C;
    --hk-primary-bg: #FFF1EB;
    --hk-primary-border: #FFD0BC;

    /* 辅助色 */
    --hk-dark-brown: #3E2723;     /* 深棕 */
    --hk-brown: #5D4037;
    --hk-brown-light: #8D6E63;
    --hk-gray: #6c757d;           /* 浅灰文字 */
    --hk-gray-light: #adb5bd;
    --hk-gray-bg: #F5F5F5;        /* 浅灰背景 */
    --hk-gray-border: #E9ECEF;    /* 浅灰边框 */

    /* 功能色 */
    --hk-success: #28a745;
    --hk-warning: #ffc107;
    --hk-danger: #dc3545;
    --hk-info: #17a2b8;
    --hk-gold: #FFD700;

    /* 圆角 */
    --hk-radius: 12px;
    --hk-radius-sm: 8px;
    --hk-radius-lg: 18px;
    --hk-radius-full: 999px;

    /* 阴影 */
    --hk-shadow: 0 2px 12px rgba(62, 39, 35, 0.08);
    --hk-shadow-hover: 0 8px 28px rgba(62, 39, 35, 0.16);
    --hk-shadow-sm: 0 1px 4px rgba(62, 39, 35, 0.06);

    /* 间距 */
    --hk-gap: 16px;

    /* 字体 */
    --hk-font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;

    /* 渐变 */
    --hk-gradient: linear-gradient(135deg, #FF6B35 0%, #FF9558 100%);
    --hk-gradient-brown: linear-gradient(135deg, #3E2723 0%, #5D4037 100%);

    /* 布局 */
    --hk-header-h: 64px;
    --hk-footer-h: auto;
    --hk-tabbar-h: 56px;
    --hk-max-width: 1200px;
}

/* ---------- 2. 重置 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    font-family: var(--hk-font);
    font-size: 14px;
    line-height: 1.6;
    color: var(--hk-dark-brown);
    background: var(--hk-gray-bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { color: var(--hk-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--hk-primary-dark); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea, button { font-family: inherit; }

/* ---------- 3. 布局容器 ---------- */
.container { width: 100%; max-width: var(--hk-max-width); margin: 0 auto; padding: 0 15px; }
.container-fluid { width: 100%; padding: 0 15px; }
.row { display: flex; flex-wrap: wrap; margin: 0 -8px; }
.row > * { padding: 0 8px; }
.col-12 { flex: 0 0 100%; max-width: 100%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-md-2 { flex: 0 0 16.6667%; max-width: 16.6667%; }
.col-md-3 { flex: 0 0 25%; max-width: 25%; }
.col-md-4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
.col-md-6 { flex: 0 0 50%; max-width: 50%; }
.col-md-8 { flex: 0 0 66.6667%; max-width: 66.6667%; }
.col-md-9 { flex: 0 0 75%; max-width: 75%; }
.col-lg-3 { flex: 0 0 25%; max-width: 25%; }
.mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 16px; } .mb-4 { margin-bottom: 24px; }
.mt-2 { margin-top: 8px; } .mt-3 { margin-top: 16px; } .mt-4 { margin-top: 24px; }
.py-5 { padding-top: 48px; padding-bottom: 48px; }
.text-center { text-align: center; }
.text-muted { color: var(--hk-gray) !important; }
.text-primary { color: var(--hk-primary) !important; }
.text-dark { color: var(--hk-dark-brown) !important; }
.text-success { color: var(--hk-success) !important; }
.text-warning { color: #e65100 !important; }
.d-flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }
.align-items-end { align-items: flex-end; }
.mr-2 { margin-right: 8px; }
.h-100 { height: 100%; }

/* ---------- 4. 顶部导航 ---------- */
.hk-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: var(--hk-shadow-sm);
    border-bottom: 3px solid var(--hk-primary);
}
.hk-header-inner {
    max-width: var(--hk-max-width);
    margin: 0 auto;
    height: var(--hk-header-h);
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.hk-logo { display: flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 800; color: var(--hk-primary); }
.hk-logo .logo-icon {
    width: 38px; height: 38px; border-radius: 10px;
    background: var(--hk-gradient); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; box-shadow: 0 4px 10px rgba(255,107,53,.35);
}
.hk-logo:hover { color: var(--hk-primary-dark); }
.hk-logo .logo-sub { font-size: 12px; color: var(--hk-gray); font-weight: 400; }
.hk-nav { display: flex; align-items: center; gap: 4px; }
.hk-nav-item { position: relative; }
.hk-nav-item > a {
    display: flex; align-items: center; gap: 5px;
    padding: 8px 12px; color: var(--hk-dark-brown);
    font-size: 15px; font-weight: 500; border-radius: var(--hk-radius-sm);
    transition: all .2s; white-space: nowrap;
}
.hk-nav-item > a i { font-size: 14px; }
.hk-nav-item > a:hover, .hk-nav-item.active > a {
    color: var(--hk-primary); background: var(--hk-primary-bg);
}
.hk-nav-item > a .hk-badge-dot {
    position: absolute; top: 4px; right: 4px;
    width: 8px; height: 8px; background: var(--hk-danger);
    border-radius: 50%; border: 1.5px solid #fff;
}
.hk-nav-actions { display: flex; align-items: center; gap: 8px; }
.hk-nav-actions .user-chip {
    display: flex; align-items: center; gap: 6px;
    padding: 4px 10px 4px 4px; border-radius: var(--hk-radius-full);
    background: var(--hk-gray-bg); transition: background .2s;
}
.hk-nav-actions .user-chip:hover { background: var(--hk-primary-bg); }
.hk-nav-actions .user-chip img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.hk-nav-actions .user-chip span { font-size: 13px; color: var(--hk-dark-brown); font-weight: 500; }

/* 角色下拉工作台入口 */
.hk-dropdown { position: relative; }
.hk-dropdown-menu {
    position: absolute; top: calc(100% + 6px); right: 0;
    min-width: 200px; background: #fff;
    border-radius: var(--hk-radius); box-shadow: var(--hk-shadow-hover);
    border: 1px solid var(--hk-gray-border); padding: 6px;
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: all .2s; z-index: 1100;
}
.hk-dropdown:hover .hk-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.hk-dropdown-menu a {
    display: flex; align-items: center; gap: 8px;
    padding: 9px 12px; border-radius: var(--hk-radius-sm);
    color: var(--hk-dark-brown); font-size: 14px;
}
.hk-dropdown-menu a:hover { background: var(--hk-primary-bg); color: var(--hk-primary); }
.hk-dropdown-menu a i { width: 18px; text-align: center; color: var(--hk-primary); }
.hk-dropdown-divider { height: 1px; background: var(--hk-gray-border); margin: 4px 0; }

/* ---------- 5. 按钮 ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 9px 18px; font-size: 14px; font-weight: 500;
    border: 1px solid transparent; border-radius: var(--hk-radius-sm);
    cursor: pointer; transition: all .2s; line-height: 1.4; text-decoration: none;
}
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn-primary { background: var(--hk-primary); border-color: var(--hk-primary); color: #fff; }
.btn-primary:hover { background: var(--hk-primary-dark); border-color: var(--hk-primary-dark); color: #fff; }
.btn-outline-primary { background: #fff; border-color: var(--hk-primary-border); color: var(--hk-primary); }
.btn-outline-primary:hover { background: var(--hk-primary); border-color: var(--hk-primary); color: #fff; }
.btn-secondary { background: var(--hk-brown); border-color: var(--hk-brown); color: #fff; }
.btn-secondary:hover { background: var(--hk-dark-brown); border-color: var(--hk-dark-brown); color: #fff; }
.btn-outline-secondary { background: #fff; border-color: var(--hk-gray-border); color: var(--hk-gray); }
.btn-outline-secondary:hover { background: var(--hk-gray-bg); color: var(--hk-dark-brown); }
.btn-success { background: var(--hk-success); border-color: var(--hk-success); color: #fff; }
.btn-success:hover { filter: brightness(.95); color: #fff; }
.btn-danger { background: var(--hk-danger); border-color: var(--hk-danger); color: #fff; }
.btn-danger:hover { filter: brightness(.95); color: #fff; }
.btn-warning { background: var(--hk-warning); border-color: var(--hk-warning); color: #5d4037; }
.btn-block { width: 100%; }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-lg { padding: 12px 26px; font-size: 16px; }
.btn-group { display: inline-flex; }
.btn-group .btn { border-radius: 0; }
.btn-group .btn:first-child { border-top-left-radius: var(--hk-radius-sm); border-bottom-left-radius: var(--hk-radius-sm); }
.btn-group .btn:last-child { border-top-right-radius: var(--hk-radius-sm); border-bottom-right-radius: var(--hk-radius-sm); }

/* ---------- 6. 表单 ---------- */
.form-control {
    width: 100%; padding: 9px 12px; font-size: 14px;
    color: var(--hk-dark-brown); background: #fff;
    border: 1px solid var(--hk-gray-border); border-radius: var(--hk-radius-sm);
    transition: border-color .2s, box-shadow .2s; outline: none;
}
.form-control:focus { border-color: var(--hk-primary); box-shadow: 0 0 0 3px rgba(255,107,53,.15); }
.form-control::placeholder { color: var(--hk-gray-light); }
textarea.form-control { min-height: 96px; resize: vertical; }
select.form-control { cursor: pointer; }
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--hk-dark-brown); margin-bottom: 6px; }
.form-label .req { color: var(--hk-danger); }
.form-text { font-size: 12px; color: var(--hk-gray); margin-top: 4px; }
.form-row { display: flex; flex-wrap: wrap; margin: 0 -8px; }
.form-row > * { padding: 0 8px; }
.form-check { display: flex; align-items: center; gap: 6px; }
.form-check input { width: 16px; height: 16px; accent-color: var(--hk-primary); }
.form-error { color: var(--hk-danger); font-size: 12px; margin-top: 4px; }

/* ---------- 7. 卡片 ---------- */
.card {
    background: #fff; border: 1px solid var(--hk-gray-border);
    border-radius: var(--hk-radius); box-shadow: var(--hk-shadow);
    transition: all .3s; overflow: hidden;
}
.card:hover { box-shadow: var(--hk-shadow-hover); }
.card-body { padding: 18px; }
.card-header { padding: 14px 18px; border-bottom: 1px solid var(--hk-gray-border); font-weight: 600; background: var(--hk-gray-bg); }
.card-title { font-size: 1.05rem; font-weight: 600; color: var(--hk-dark-brown); }

/* ---------- 8. 徽章 ---------- */
.hk-badge, .badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 10px; font-size: 11px; font-weight: 500;
    border-radius: var(--hk-radius-full); line-height: 1.6;
}
.badge-primary { background: var(--hk-primary-bg); color: var(--hk-primary); }
.badge-success { background: #e8f5e9; color: #2e7d32; }
.badge-warning { background: #fff3e0; color: #e65100; }
.badge-danger { background: #ffebee; color: #c62828; }
.badge-secondary { background: #eceff1; color: #546e7a; }
.badge-gold { background: #fff8e1; color: #f57f17; }

/* ---------- 9. 页面标题与面包屑 ---------- */
.page-title { font-size: 1.8rem; font-weight: 800; color: var(--hk-dark-brown); margin-bottom: 0; }
.page-title small { font-size: 1rem; font-weight: 400; color: var(--hk-gray); margin-left: 10px; }
.page-title .text-primary { color: var(--hk-primary) !important; }
.page-subtitle { color: var(--hk-gray); font-size: 14px; margin-top: 6px; }

/* 面包屑（横条美化） */
.hk-breadcrumb-bar {
    width: 100%;
    background: var(--hk-primary-bg);
    border-bottom: 1px solid var(--hk-gray-border);
    margin-bottom: 20px;
}
.hk-breadcrumb {
    display: flex; align-items: center; gap: 6px;
    padding: 12px 0;
    background: transparent;
    font-size: 13px;
}
.hk-breadcrumb a { color: var(--hk-gray); }
.hk-breadcrumb a:hover { color: var(--hk-primary); }
.hk-breadcrumb .sep { color: var(--hk-gray-light); font-size: 11px; }
.hk-breadcrumb .current { color: var(--hk-dark-brown); font-weight: 600; }

/* ---------- 10. 分页 ---------- */
.hk-pagination { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 28px 0 8px; }
.hk-pagination .pagination { display: flex; gap: 4px; list-style: none; }
.hk-pagination .page-item .page-link {
    display: flex; align-items: center; justify-content: center;
    min-width: 36px; height: 36px; padding: 0 10px;
    border: 1px solid var(--hk-gray-border); border-radius: var(--hk-radius-sm);
    color: var(--hk-dark-brown); font-size: 14px; background: #fff;
    transition: all .2s;
}
.hk-pagination .page-item .page-link:hover { border-color: var(--hk-primary); color: var(--hk-primary); }
.hk-pagination .page-item.active .page-link { background: var(--hk-primary); border-color: var(--hk-primary); color: #fff; }
.hk-pagination .page-item.disabled .page-link { color: var(--hk-gray-light); cursor: not-allowed; }
.hk-pagination .pagination-info { font-size: 13px; color: var(--hk-gray); }
.hk-pagination .pagination-info strong { color: var(--hk-primary); }

/* ---------- 11. 表格 ---------- */
.hk-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--hk-radius); overflow: hidden; box-shadow: var(--hk-shadow); }
.hk-table th, .hk-table td { padding: 12px 14px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--hk-gray-border); }
.hk-table th { background: var(--hk-dark-brown); color: #fff; font-weight: 600; white-space: nowrap; }
.hk-table tr:hover td { background: var(--hk-gray-bg); }
.hk-table tr:last-child td { border-bottom: none; }

/* ---------- 12. 筛选栏 ---------- */
.filter-card { background: #fff; border-radius: var(--hk-radius); padding: 20px 24px; box-shadow: var(--hk-shadow); border: 1px solid var(--hk-gray-border); }
.filter-label { font-size: 13px; font-weight: 600; color: var(--hk-dark-brown); margin-bottom: 4px; display: block; }
.filter-label i { color: var(--hk-primary); margin-right: 4px; }
.result-stats { font-size: 14px; padding: 8px 0; color: var(--hk-gray); }
.result-stats strong { color: var(--hk-dark-brown); }

/* ---------- 13. 空状态 ---------- */
.empty-state { background: #fff; border-radius: var(--hk-radius); box-shadow: var(--hk-shadow); padding: 60px 20px; text-align: center; }
.empty-state i { color: var(--hk-gray-border); }
.empty-state h5 { color: var(--hk-gray); font-weight: 600; margin-top: 12px; }

/* ---------- 14. 星级 ---------- */
.star-rating { color: var(--hk-gold); font-size: 13px; letter-spacing: 1px; }
.star-rating .far { color: var(--hk-gray-border); }

/* ---------- 15. 移动端底部固定菜单 ---------- */
.hk-tabbar { display: none; }

/* ---------- 16. 页脚 ---------- */
.hk-footer { background: var(--hk-dark-brown); color: #d7ccc8; padding: 40px 0 20px; margin-top: 50px; }
.hk-footer-inner { max-width: var(--hk-max-width); margin: 0 auto; padding: 0 15px; }
.hk-footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 30px; }
.hk-footer h5 { color: #fff; font-size: 15px; margin-bottom: 14px; font-weight: 600; }
.hk-footer a { color: #bcaaa4; font-size: 13px; line-height: 2; }
.hk-footer a:hover { color: var(--hk-primary); }
.hk-footer-bottom { border-top: 1px solid #5D4037; padding-top: 18px; text-align: center; font-size: 12px; color: #8d6e63; }
.hk-footer-bottom a { color: #a1887f; margin: 0 6px; }
.hk-footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.hk-footer-brand .logo-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--hk-gradient); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.hk-footer-brand span { color: #fff; font-size: 18px; font-weight: 700; }
.hk-footer-slogan { font-size: 13px; color: #a1887f; line-height: 1.8; margin-bottom: 12px; }

/* ---------- 17. 通用工具类 ---------- */
.shadow-sm { box-shadow: var(--hk-shadow-sm) !important; }
.shadow { box-shadow: var(--hk-shadow) !important; }
.rounded { border-radius: var(--hk-radius) !important; }
.rounded-circle { border-radius: 50% !important; }
.bg-white { background: #fff !important; }
.bg-light { background: var(--hk-gray-bg) !important; }
.bg-primary { background: var(--hk-primary) !important; color: #fff !important; }
.bg-brown { background: var(--hk-dark-brown) !important; color: #fff !important; }
.small, small { font-size: 12px; }
.lead { font-size: 16px; color: var(--hk-gray); }
.divider { height: 1px; background: var(--hk-gray-border); margin: 16px 0; border: none; }

/* 头像基础 */
.rounded-circle { object-fit: cover; }

/* 渐变标题区 */
.hk-page-hero {
    background: var(--hk-gradient);
    color: #fff; padding: 36px 0; border-radius: 0 0 var(--hk-radius-lg) var(--hk-radius-lg);
    margin-bottom: 24px;
}
.hk-page-hero h1 { color: #fff; font-size: 1.9rem; font-weight: 800; margin-bottom: 6px; }
.hk-page-hero p { color: rgba(255,255,255,.92); font-size: 14px; }

/* 统计卡片网格 */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card { background: #fff; border-radius: var(--hk-radius); padding: 18px 20px; box-shadow: var(--hk-shadow); display: flex; align-items: center; gap: 14px; transition: transform .2s; }
.stat-card:hover { transform: translateY(-2px); }
.stat-card .stat-icon { width: 48px; height: 48px; border-radius: var(--hk-radius-sm); background: var(--hk-primary-bg); color: var(--hk-primary); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.stat-card .stat-num { font-size: 24px; font-weight: 800; color: var(--hk-dark-brown); line-height: 1.2; }
.stat-card .stat-label { font-size: 12px; color: var(--hk-gray); }

/* 标签页 */
.hk-tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--hk-gray-border); margin-bottom: 20px; overflow-x: auto; }
.hk-tabs a { padding: 10px 18px; color: var(--hk-gray); font-size: 14px; font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.hk-tabs a.active, .hk-tabs a:hover { color: var(--hk-primary); border-color: var(--hk-primary); }

/* 提示框 */
.alert { padding: 12px 16px; border-radius: var(--hk-radius-sm); margin-bottom: 16px; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.alert-info { background: #e3f2fd; color: #0d47a1; border: 1px solid #bbdefb; }
.alert-success { background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }
.alert-warning { background: #fff8e1; color: #e65100; border: 1px solid #ffe082; }
.alert-danger { background: #ffebee; color: #c62828; border: 1px solid #ffcdd2; }

/* ---------- 18. 公开模块通用卡片网格（裁判/赞助/场地/主办方） ---------- */
.pub-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pub-card { background: #fff; border-radius: var(--hk-radius); box-shadow: var(--hk-shadow); overflow: hidden; transition: all .3s; display: flex; flex-direction: column; }
.pub-card:hover { transform: translateY(-4px); box-shadow: var(--hk-shadow-hover); }
.pub-card-head { padding: 16px 16px 12px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--hk-gray-border); }
.pub-avatar { width: 56px; height: 56px; border-radius: var(--hk-radius); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 24px; color: #fff; font-weight: 700; object-fit: cover; }
.pub-info { flex: 1; min-width: 0; }
.pub-name { font-size: 15px; font-weight: 700; color: var(--hk-dark-brown); margin-bottom: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pub-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.pub-card-body { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.pub-stat-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--hk-gray); }
.pub-stat-row strong { color: var(--hk-dark-brown); font-weight: 600; }
.pub-stat-row .num-primary { color: var(--hk-primary); font-weight: 700; }
.pub-meta { font-size: 12px; color: var(--hk-gray); display: flex; align-items: center; gap: 4px; }
.pub-card-foot { padding: 10px 16px; border-top: 1px solid var(--hk-gray-border); display: flex; align-items: center; justify-content: space-between; background: var(--hk-gray-bg); }
.pub-score { font-weight: 700; color: var(--hk-gold); font-size: 13px; }
.pub-score small { font-weight: 400; color: var(--hk-gray); font-size: 11px; margin-left: 4px; }

/* 详情页通用样式 */
.detail-cover { height: 220px; border-radius: var(--hk-radius); background-size: cover; background-position: center; background-color: var(--hk-gray-bg); position: relative; margin-bottom: -60px; }
.detail-profile { display: flex; gap: 20px; align-items: flex-end; padding: 0 18px; position: relative; }
.detail-avatar-lg { width: 120px; height: 120px; border-radius: var(--hk-radius); border: 4px solid #fff; box-shadow: var(--hk-shadow); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 48px; color: #fff; font-weight: 700; object-fit: cover; background: var(--hk-gradient); }
.detail-basic { flex: 1; padding-bottom: 10px; }
.detail-basic h2 { font-size: 22px; font-weight: 800; color: var(--hk-dark-brown); margin-bottom: 6px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--hk-gray); }
.detail-section { margin-bottom: 20px; }
.detail-section h3 { font-size: 16px; font-weight: 700; color: var(--hk-dark-brown); margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid var(--hk-primary); display: inline-block; }
.detail-desc { font-size: 14px; line-height: 1.8; color: var(--hk-dark-brown); }
.detail-info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 18px; }
.detail-info-item { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--hk-gray); }
.detail-info-item i { width: 16px; color: var(--hk-primary); }
.detail-info-item strong { color: var(--hk-dark-brown); font-weight: 600; }
.detail-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.detail-stat-card { background: linear-gradient(135deg, var(--hk-primary-bg), #fff); border-radius: var(--hk-radius); padding: 14px; text-align: center; }
.detail-stat-card .ds-num { font-size: 22px; font-weight: 800; color: var(--hk-primary); }
.detail-stat-card .ds-label { font-size: 12px; color: var(--hk-gray); margin-top: 2px; }
.detail-eval-list { background: #fff; border-radius: var(--hk-radius); box-shadow: var(--hk-shadow-sm); }
.detail-eval-item { padding: 14px 16px; border-bottom: 1px solid var(--hk-gray-border); display: flex; gap: 12px; }
.detail-eval-item:last-child { border-bottom: none; }
.detail-eval-item img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.detail-eval-body { flex: 1; }
.detail-eval-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.detail-eval-name { font-size: 13px; font-weight: 600; color: var(--hk-dark-brown); }
.detail-eval-date { font-size: 11px; color: var(--hk-gray); margin-left: auto; }
.detail-eval-item p { font-size: 13px; color: var(--hk-dark-brown); line-height: 1.6; margin: 0; }

@media (max-width: 992px) {
    .pub-card-grid { grid-template-columns: repeat(2, 1fr); }
    .detail-stats { grid-template-columns: repeat(2, 1fr); }
    .detail-info-grid { grid-template-columns: 1fr; }
    .home-hero-row { grid-template-columns: 1fr !important; }
    .home-two-col { grid-template-columns: 1fr !important; }
    .home-partner-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .home-match-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 768px) {
    .pub-card-grid { grid-template-columns: 1fr; }
    .detail-stats { grid-template-columns: repeat(2, 1fr); }
    .detail-profile { flex-direction: column; align-items: center; text-align: center; padding: 0; }
    .detail-cover { margin-bottom: -50px; height: 160px; }
    .detail-avatar-lg { width: 100px; height: 100px; font-size: 40px; }
    .detail-meta { justify-content: center; }
    .home-match-grid { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
    .home-partner-grid { grid-template-columns: 1fr 1fr !important; }
    .home-cat-bar { padding: 10px !important; gap: 6px !important; overflow-x: auto; flex-wrap: nowrap; }
    .home-cat-bar a { flex-shrink: 0; padding: 6px 12px !important; font-size: 12px !important; }
}

/* ---------- 19. 首页专用组件 ---------- */
.hk-home-hero { padding: 20px 0 10px; }
.home-hero-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 18px;
    align-items: stretch;
}
.home-banner-wrap {
    position: relative;
    border-radius: var(--hk-radius-lg);
    overflow: hidden;
    box-shadow: var(--hk-shadow);
}
.home-banner-slider {
    position: relative;
    height: 340px;
}
.home-banner-slide {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    background-color: var(--hk-primary-bg);
    display: flex;
    align-items: flex-end;
    padding: 28px 32px;
    opacity: 0;
    transition: opacity .6s ease;
    text-decoration: none;
    color: #fff;
}
.home-banner-slide.active { opacity: 1; z-index: 1; }
.home-banner-slide::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(62,39,35,.7) 100%);
    z-index: 0;
}
.home-banner-caption {
    position: relative;
    z-index: 2;
    max-width: 560px;
}
.home-banner-caption h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.home-banner-caption p {
    color: rgba(255,255,255,.95);
    font-size: 14px;
    margin: 0;
}
.home-banner-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.home-banner-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
    cursor: pointer;
    transition: all .2s;
}
.home-banner-dots span.active {
    background: #fff;
    width: 28px;
    border-radius: 6px;
}

/* 首页侧边栏 */
.home-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.home-side-card {
    background: #fff;
    border-radius: var(--hk-radius);
    box-shadow: var(--hk-shadow);
    padding: 16px 18px;
    flex: 1;
}
.home-side-card h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--hk-dark-brown);
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--hk-primary-bg);
    display: flex;
    align-items: center;
    gap: 8px;
}
.home-side-card h4 i { color: var(--hk-primary); }
.home-anno-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px dashed var(--hk-gray-border);
}
.home-anno-list li:last-child { border-bottom: none; }
.home-anno-list li a {
    color: var(--hk-dark-brown);
    font-size: 13px;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.home-anno-list li a:hover { color: var(--hk-primary); }
.home-anno-time {
    font-size: 12px;
    color: var(--hk-gray);
    flex-shrink: 0;
}
.home-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.home-quick-grid a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 4px;
    border-radius: var(--hk-radius-sm);
    color: var(--hk-dark-brown);
    font-size: 12px;
    transition: all .2s;
    text-decoration: none;
}
.home-quick-grid a:hover {
    background: var(--hk-primary-bg);
    color: var(--hk-primary);
    transform: translateY(-2px);
}
.home-quick-grid a i {
    font-size: 20px;
    color: var(--hk-primary);
}

/* 首页通用区块 */
.home-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0 16px;
}
.home-section-head h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--hk-dark-brown);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}
.home-section-head a {
    font-size: 13px;
    color: var(--hk-gray);
    display: flex;
    align-items: center;
    gap: 4px;
}
.home-section-head a:hover { color: var(--hk-primary); }

/* 赛事分类条 */
.home-cat-bar {
    background: #fff;
    border-radius: var(--hk-radius);
    padding: 12px 18px;
    box-shadow: var(--hk-shadow-sm);
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 10px 0;
}
.home-cat-bar a {
    padding: 7px 16px;
    border-radius: var(--hk-radius-full);
    background: var(--hk-gray-bg);
    color: var(--hk-dark-brown);
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all .2s;
    text-decoration: none;
}
.home-cat-bar a:hover,
.home-cat-bar a.active {
    background: var(--hk-primary);
    color: #fff;
}

/* 首页赛事网格 */
.home-match-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* 两列布局 */
.home-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}
.home-rank-mini {
    background: #fff;
    border-radius: var(--hk-radius);
    box-shadow: var(--hk-shadow);
    padding: 10px 0;
    overflow: hidden;
}
.home-rank-mini .bm-rank-item { padding: 12px 18px; }
.home-article-list {
    background: #fff;
    border-radius: var(--hk-radius);
    box-shadow: var(--hk-shadow);
    padding: 6px 0;
    display: flex;
    flex-direction: column;
}
.home-article-item {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 14px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--hk-gray-border);
    text-decoration: none;
    transition: background .2s;
}
.home-article-item:last-child { border-bottom: none; }
.home-article-item:hover { background: var(--hk-gray-bg); }
.home-article-cover {
    width: 110px;
    height: 78px;
    border-radius: var(--hk-radius-sm);
    background-size: cover;
    background-position: center;
    background-color: var(--hk-gray-bg);
}
.home-article-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--hk-dark-brown);
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.home-article-info p {
    font-size: 12px;
    color: var(--hk-gray);
    line-height: 1.5;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.home-article-info span {
    font-size: 11px;
    color: var(--hk-gray-light);
}
.home-article-info span i { margin-right: 3px; }

/* 合作伙伴卡片 */
.home-partner-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 10px;
}
.home-partner-card {
    background: #fff;
    border-radius: var(--hk-radius);
    box-shadow: var(--hk-shadow);
    padding: 24px 18px;
    text-align: center;
    transition: all .3s;
    text-decoration: none;
    color: var(--hk-dark-brown);
    border-top: 3px solid var(--c, var(--hk-primary));
}
.home-partner-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--hk-shadow-hover);
}
.home-partner-card i {
    width: 56px;
    height: 56px;
    border-radius: var(--hk-radius);
    background: color-mix(in srgb, var(--c, var(--hk-primary)) 12%, #fff);
    color: var(--c, var(--hk-primary));
    font-size: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}
.home-partner-card h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--hk-dark-brown);
    margin-bottom: 4px;
}
.home-partner-card p {
    font-size: 12px;
    color: var(--hk-gray);
    margin: 0;
}

/* ---------- 20. 模态框（全局通用） ---------- */
.hk-modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(62, 39, 35, .5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}
.hk-modal-mask.active { display: flex; animation: hkFadeIn .2s ease; }
.hk-modal {
    background: #fff;
    border-radius: var(--hk-radius);
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: hkSlideUp .25s ease;
}
.hk-modal-lg { max-width: 720px; }
.hk-modal-sm { max-width: 380px; }
.hk-modal-head {
    padding: 16px 20px;
    border-bottom: 1px solid var(--hk-gray-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--hk-gray-bg);
}
.hk-modal-head h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--hk-dark-brown);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.hk-modal-head h3 i { color: var(--hk-primary); }
.hk-modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--hk-gray);
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    transition: all .2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hk-modal-close:hover { background: var(--hk-gray-border); color: var(--hk-dark-brown); }
.hk-modal-body { padding: 22px 20px; overflow-y: auto; flex: 1; }
.hk-modal-foot {
    padding: 14px 20px;
    border-top: 1px solid var(--hk-gray-border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: var(--hk-gray-bg);
}
@keyframes hkFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes hkSlideUp {
    from { opacity: 0; transform: translateY(20px) scale(.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 768px) {
    .hk-modal { border-radius: var(--hk-radius); }
    .hk-modal-body { padding: 18px 16px; }
}

/* ---------- 21. 消息提示 Toast ---------- */
.hk-toast-wrap {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.hk-toast {
    background: #fff;
    border-radius: var(--hk-radius-sm);
    box-shadow: var(--hk-shadow-hover);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    min-width: 220px;
    border-left: 4px solid var(--hk-gray);
    animation: hkToastIn .3s ease;
    pointer-events: auto;
}
.hk-toast.success { border-color: var(--hk-success); color: #2e7d32; }
.hk-toast.error { border-color: var(--hk-danger); color: #c62828; }
.hk-toast.warning { border-color: var(--hk-warning); color: #e65100; }
.hk-toast.info { border-color: var(--hk-info); color: #0d47a1; }
.hk-toast i { font-size: 16px; }
@keyframes hkToastIn {
    from { opacity: 0; transform: translateY(-16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- mc- 主样式类前缀（统一通用） ---------- */
.mc-container { width: 100%; max-width: var(--hk-max-width); margin: 0 auto; padding: 0 15px; }
.mc-row { display: flex; flex-wrap: wrap; margin: 0 -8px; }
.mc-row > * { padding: 0 8px; }
.mc-card { background: #fff; border: 1px solid var(--hk-gray-border); border-radius: var(--hk-radius); box-shadow: var(--hk-shadow); overflow: hidden; }
.mc-card-body { padding: 18px; }
.mc-card-head { padding: 14px 18px; border-bottom: 1px solid var(--hk-gray-border); font-weight: 600; background: var(--hk-gray-bg); display: flex; align-items: center; justify-content: space-between; }
.mc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 18px; font-size: 14px; font-weight: 500; border: 1px solid transparent; border-radius: var(--hk-radius-sm); cursor: pointer; transition: all .2s; text-decoration: none; }
.mc-btn-primary { background: var(--hk-primary); border-color: var(--hk-primary); color: #fff; }
.mc-btn-primary:hover { background: var(--hk-primary-dark); color: #fff; }
.mc-input { width: 100%; padding: 9px 12px; font-size: 14px; color: var(--hk-dark-brown); background: #fff; border: 1px solid var(--hk-gray-border); border-radius: var(--hk-radius-sm); transition: border-color .2s; outline: none; }
.mc-input:focus { border-color: var(--hk-primary); box-shadow: 0 0 0 3px rgba(255,107,53,.15); }
.mc-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--hk-radius); overflow: hidden; box-shadow: var(--hk-shadow); }
.mc-table th, .mc-table td { padding: 12px 14px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--hk-gray-border); }
.mc-table th { background: var(--hk-dark-brown); color: #fff; font-weight: 600; }
.mc-table tr:hover td { background: var(--hk-gray-bg); }
.mc-section-title { font-size: 1.4rem; font-weight: 800; color: var(--hk-dark-brown); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.mc-section-title i { color: var(--hk-primary); }
.mc-grid { display: grid; gap: 16px; }
.mc-grid-2 { grid-template-columns: repeat(2, 1fr); }
.mc-grid-3 { grid-template-columns: repeat(3, 1fr); }
.mc-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 992px) {
    .mc-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .mc-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .mc-grid-4, .mc-grid-3, .mc-grid-2 { grid-template-columns: 1fr; }
}

/* ============================================================
   全局统一卡片式设计系统 (从 model.php / model-index.php 提炼)
   作者：星球软件CEWWW
   组件：hk-card / hk-section-head / hk-grid / hk-badge /
         hk-stat-card / home-hero / home-X-* 等首页组件
   ============================================================ */

/* ---------- 通用卡片 ---------- */
.hk-card {
    background: #fff;
    border-radius: var(--hk-radius);
    box-shadow: 0 4px 20px rgba(62, 39, 35, 0.06);
    padding: 20px 22px;
    transition: box-shadow 0.3s, transform 0.3s;
    overflow: hidden;
    position: relative;
}
.hk-card:hover {
    box-shadow: var(--hk-shadow-hover);
}
.hk-card.card-hover-lift:hover {
    transform: translateY(-4px);
}
.hk-card.card-accent::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 4px;
    background: var(--c, var(--hk-gradient));
}
.hk-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--hk-gray-border);
}
.hk-card-header h3,
.hk-card-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--hk-dark-brown);
    display: flex;
    align-items: center;
    gap: 8px;
}
.hk-card-header h3 i,
.hk-card-header h4 i {
    color: var(--hk-primary);
}
.hk-card-header a,
.hk-card-header .more {
    font-size: 13px;
    color: var(--hk-primary);
    font-weight: 500;
    text-decoration: none;
    transition: all .2s;
}
.hk-card-header a:hover,
.hk-card-header .more:hover {
    color: var(--hk-primary-dark);
}
.hk-card-header a:hover i,
.hk-card-header .more:hover i {
    transform: translateX(4px);
}
.hk-card-header a i,
.hk-card-header .more i {
    transition: transform .2s;
}

/* ---------- 通用区块标题 ---------- */
.hk-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 28px 0 16px;
}
.hk-section-head h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--hk-dark-brown);
    margin: 0;
}
.hk-section-head h2 i {
    margin-right: 8px;
}
.hk-section-head h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--hk-dark-brown);
    margin: 0;
}
.hk-section-head h3 i {
    margin-right: 6px;
    color: var(--hk-primary);
}
.hk-section-head a {
    font-size: 14px;
    color: var(--hk-primary);
    font-weight: 500;
    text-decoration: none;
    transition: all .2s;
}
.hk-section-head a:hover {
    color: var(--hk-primary-dark);
}
.hk-section-head a i {
    transition: transform .2s;
}
.hk-section-head a:hover i {
    transform: translateX(4px);
}
.hk-section-head .text-muted {
    font-size: 13px;
    color: var(--hk-gray-light);
}

/* ---------- 通用网格布局 ---------- */
.hk-grid {
    display: grid;
    gap: 20px;
}
.hk-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.hk-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.hk-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.hk-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
.hk-grid.two-col {
    grid-template-columns: 1fr 1fr;
    align-items: start;
}
.hk-grid.hero-col {
    grid-template-columns: 1fr 340px;
}
@media (max-width: 1200px) {
    .hk-grid.cols-5 { grid-template-columns: repeat(4, 1fr); }
    .hk-grid.cols-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 992px) {
    .hk-grid.cols-4, .hk-grid.cols-5 { grid-template-columns: repeat(2, 1fr); }
    .hk-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
    .hk-grid.two-col, .hk-grid.hero-col { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .hk-grid.cols-2, .hk-grid.cols-3, .hk-grid.cols-4, .hk-grid.cols-5 {
        grid-template-columns: 1fr;
    }
}

/* ---------- 通用徽章 ---------- */
.hk-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    border-radius: var(--hk-radius-full);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
    background: var(--hk-gray-bg);
    color: var(--hk-gray);
}
.hk-badge i { font-size: 11px; }
.hk-badge.badge-primary { background: var(--hk-primary-bg); color: var(--hk-primary); }
.hk-badge.badge-success { background: #e6f7ea; color: #1e7e34; }
.hk-badge.badge-warning { background: #fff5e0; color: #c67c00; }
.hk-badge.badge-danger  { background: #fbeaea; color: #c0392b; }
.hk-badge.badge-info    { background: #e3f3fa; color: #0a6d8c; }
.hk-badge.badge-gold    { background: linear-gradient(135deg, #fff3e0, #ffe0b2); color: #c67c00; }
.hk-badge.badge-platinum{ background: linear-gradient(135deg, #e8f0fe, #f0e8fe); color: #563d9a; }
.hk-badge.badge-silver  { background: #f0f0f4; color: #777; }
.hk-badge.badge-bronze  { background: #f5ede6; color: #a15f2a; }

/* ---------- 统计卡片 (工作台仪表盘通用) ---------- */
.hk-stat-card {
    background: #fff;
    border-radius: var(--hk-radius);
    box-shadow: 0 4px 20px rgba(62, 39, 35, 0.06);
    padding: 20px 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all .3s;
    overflow: hidden;
    position: relative;
    border-left: 4px solid var(--c, var(--hk-primary));
}
.hk-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--hk-shadow-hover);
}
.hk-stat-card::after {
    content: '';
    position: absolute;
    top: -20px; right: -20px;
    width: 100px; height: 100px;
    background: var(--bg-deco, var(--hk-primary-bg));
    border-radius: 50%;
    opacity: .5;
}
.hk-stat-icon {
    width: 56px; height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: var(--icon-bg, var(--hk-primary-bg));
    color: var(--icon-color, var(--hk-primary));
    flex-shrink: 0;
    z-index: 1;
    transition: transform .3s;
}
.hk-stat-card:hover .hk-stat-icon {
    transform: scale(1.08) rotate(-3deg);
}
.hk-stat-info { position: relative; z-index: 1; flex: 1; min-width: 0; }
.hk-stat-num {
    font-size: 26px;
    font-weight: 800;
    color: var(--hk-dark-brown);
    line-height: 1.2;
}
.hk-stat-label {
    font-size: 13px;
    color: var(--hk-gray);
    margin-top: 4px;
}
.hk-stat-trend {
    font-size: 12px;
    margin-top: 6px;
    font-weight: 600;
}
.hk-stat-trend.up { color: var(--hk-success); }
.hk-stat-trend.down { color: var(--hk-danger); }

/* ---------- 面板卡片 (工作台列表容器) ---------- */
.hk-panel {
    background: #fff;
    border-radius: var(--hk-radius);
    box-shadow: 0 4px 20px rgba(62, 39, 35, 0.06);
    overflow: hidden;
    transition: box-shadow .3s;
}
.hk-panel:hover {
    box-shadow: 0 6px 28px rgba(62, 39, 35, 0.10);
}
.hk-panel-head {
    padding: 16px 22px;
    border-bottom: 1px solid var(--hk-gray-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.hk-panel-head h4,
.hk-panel-head h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--hk-dark-brown);
    display: flex;
    align-items: center;
    gap: 8px;
}
.hk-panel-head h4 i,
.hk-panel-head h3 i {
    color: var(--hk-primary);
}
.hk-panel-body {
    padding: 20px 22px;
}

/* ---------- 侧边栏卡片 ---------- */
.hk-sidebar-card {
    background: #fff;
    border-radius: var(--hk-radius);
    box-shadow: 0 2px 16px rgba(62, 39, 35, 0.06);
    padding: 18px 20px;
    margin-bottom: 16px;
    transition: box-shadow .3s;
}
.hk-sidebar-card:last-child { margin-bottom: 0; }
.hk-sidebar-card:hover { box-shadow: 0 4px 24px rgba(62,39,35,.10); }
.hk-sidebar-card h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--hk-dark-brown);
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--hk-gray-border);
    display: flex;
    align-items: center;
    gap: 8px;
}
.hk-sidebar-card h4 i { color: var(--hk-primary); }

/* ---------- 蓖麻榜样式 ---------- */
.hk-rank-list {
    background: #fff;
    border-radius: var(--hk-radius);
    box-shadow: 0 4px 20px rgba(62,39,35,.06);
    overflow: hidden;
}
.hk-rank-item {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid #f5f0ed;
    transition: background .2s;
}
.hk-rank-item:last-child { border-bottom: none; }
.hk-rank-item:hover { background: #fefaf7; }
.hk-rank-item.top1 { background: linear-gradient(135deg, #fff9f0 0%, #fff3e6 100%); }
.hk-rank-item.top2 { background: linear-gradient(135deg, #f8f8fa 0%, #f0f0f4 100%); }
.hk-rank-item.top3 { background: linear-gradient(135deg, #fdf7f0 0%, #f5ede6 100%); }
.hk-rank-num {
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    color: #fff;
    background: var(--hk-gray-light);
    flex-shrink: 0;
    margin-right: 12px;
}
.top1 .hk-rank-num { background: linear-gradient(135deg, #FFD700, #f5a623); box-shadow: 0 4px 12px rgba(255,215,0,.4); }
.top2 .hk-rank-num { background: linear-gradient(135deg, #c0c0c0, #a8a8a8); box-shadow: 0 4px 12px rgba(192,192,192,.4); }
.top3 .hk-rank-num { background: linear-gradient(135deg, #cd7f32, #b8722a); box-shadow: 0 4px 12px rgba(205,127,50,.4); }
.hk-rank-user { display: flex; align-items: center; flex: 1; gap: 10px; }
.hk-rank-user img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid #f0ebe8; }
.hk-rank-name { font-weight: 600; color: var(--hk-dark-brown); font-size: 14px; }
.hk-rank-meta { font-size: 12px; color: var(--hk-gray-light); }
.hk-rank-score { text-align: right; flex-shrink: 0; }
.hk-rank-points { font-weight: 700; color: var(--hk-primary); font-size: 16px; }
.hk-rank-level { font-size: 10px; padding: 2px 8px; border-radius: 20px; background: var(--hk-gray-bg); color: var(--hk-gray); font-weight: 600; text-transform: uppercase; }
.hk-rank-level.lv-bronze { background: #f5ede6; color: #b8722a; }
.hk-rank-level.lv-silver { background: #f0f0f4; color: #888; }
.hk-rank-level.lv-gold { background: #fff3e6; color: #f5a623; }
.hk-rank-level.lv-platinum { background: #e8f0fe; color: #4a7db5; }
.hk-rank-level.lv-diamond { background: linear-gradient(135deg, #e8f0fe, #f0e8fe); color: #6c3fa0; }
.hk-rank-level.lv-legend { background: linear-gradient(135deg, #fff3e6, #ffe8cc); color: #c0392b; }

/* ---------- 列表条目卡片 (赛事 / 商品 / 文章) ---------- */
.hk-item-card {
    background: #fff;
    border-radius: var(--hk-radius);
    box-shadow: 0 4px 20px rgba(62,39,35,.06);
    overflow: hidden;
    transition: all .3s;
    display: flex;
    flex-direction: column;
}
.hk-item-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(62,39,35,.12);
}
.hk-item-cover {
    position: relative;
    width: 100%;
    padding-top: 56%;
    background-size: cover;
    background-position: center;
    background-color: var(--hk-gray-bg);
}
.hk-item-cover a { display: block; position: absolute; inset: 0; }
.hk-item-cover .hk-status-tag {
    position: absolute;
    top: 10px; left: 10px;
}
.hk-item-body {
    padding: 14px 16px 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.hk-item-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--hk-dark-brown);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
    transition: color .2s;
}
.hk-item-title:hover { color: var(--hk-primary); }
.hk-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: var(--hk-gray);
}
.hk-item-meta span { display: inline-flex; align-items: center; gap: 4px; }
.hk-item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px 14px;
    border-top: 1px solid var(--hk-gray-border);
    margin-top: auto;
}
.hk-item-price {
    font-weight: 700;
    color: var(--hk-primary);
    font-size: 16px;
}
.hk-item-price.market { color: var(--hk-gray-light); font-size: 12px; text-decoration: line-through; font-weight: 400; margin-left: 6px; }
.hk-item-badge {
    position: absolute;
    top: 10px; right: 10px;
}

/* ---------- 空状态 ---------- */
.hk-empty {
    text-align: center;
    padding: 50px 20px;
    color: var(--hk-gray-light);
    background: #faf8f6;
    border-radius: var(--hk-radius);
}
.hk-empty i {
    font-size: 3rem;
    color: var(--hk-gray-bg);
    margin-bottom: 14px;
}
.hk-empty h5 {
    color: var(--hk-gray);
    font-weight: 500;
    margin: 0 0 8px;
}
.hk-empty p {
    color: var(--hk-gray-light);
    font-size: 13px;
    margin: 0;
}

/* ============================================================
   首页 Hero / 轮播 / 伙伴导航 (index.php 提取)
   ============================================================ */
.hk-home-hero { padding: 20px 0 28px; background: linear-gradient(180deg, #fef6f2 0%, #ffffff 100%); }
.home-hero-row { display: grid; grid-template-columns: 1fr 340px; gap: 20px; }
.home-banner-wrap { position: relative; border-radius: var(--hk-radius-lg); overflow: hidden; box-shadow: 0 8px 30px rgba(62,39,35,.12); }
.home-banner-slider { height: 360px; position: relative; background: #f0ebe8; }
.home-banner-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity .8s ease; display: flex; align-items: flex-end; text-decoration: none; }
.home-banner-slide.active { opacity: 1; }
.home-banner-caption { background: linear-gradient(transparent, rgba(62,39,35,.9)); color: #fff; padding: 40px 28px 24px; width: 100%; }
.home-banner-caption h3 { font-size: 1.8rem; font-weight: 800; margin-bottom: 4px; text-shadow: 0 2px 8px rgba(0,0,0,.3); }
.home-banner-caption p { font-size: 1rem; opacity: .9; text-shadow: 0 1px 4px rgba(0,0,0,.2); }
.home-banner-placeholder { text-align: center; padding: 20px; }
.home-banner-placeholder i { color: rgba(255,255,255,.7); }
.home-banner-dots { position: absolute; bottom: 18px; right: 24px; display: flex; gap: 8px; z-index: 3; }
.home-banner-dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; transition: all .3s; }
.home-banner-dots span:hover { background: rgba(255,255,255,.8); }
.home-banner-dots span.active { background: var(--hk-primary); width: 28px; border-radius: 6px; }

.home-banner-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,.85); color: var(--hk-primary);
    border: none; cursor: pointer; z-index: 4;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 14px rgba(62,39,35,.2);
    transition: all .25s ease; opacity: 0;
    font-size: 16px;
}
.home-banner-arrow:hover { background: var(--hk-primary); color: #fff; transform: translateY(-50%) scale(1.05); }
.home-banner-wrap:hover .home-banner-arrow,
.home-banner-wrap:focus-within .home-banner-arrow { opacity: 1; }
.home-banner-arrow:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.home-banner-prev { left: 16px; }
.home-banner-next { right: 16px; }

/* ---------- 首页侧边栏 ---------- */
.home-side { display: flex; flex-direction: column; gap: 16px; }
.home-side-card { background: #fff; border-radius: var(--hk-radius); box-shadow: 0 4px 20px rgba(62,39,35,.08); padding: 18px 16px; transition: box-shadow .3s; }
.home-side-card:hover { box-shadow: 0 6px 28px rgba(62,39,35,.12); }
.home-side-card h4 { font-size: 15px; font-weight: 700; color: var(--hk-dark-brown); margin-bottom: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--hk-gray-border); }
.home-side-card h4 i { color: var(--hk-primary); margin-right: 6px; }
.home-anno-list li { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; font-size: 13px; border-bottom: 1px solid #f5f0ed; }
.home-anno-list li:last-child { border-bottom: none; }
.home-anno-list a { color: var(--hk-dark-brown); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 8px; transition: color .2s; text-decoration: none; }
.home-anno-list a:hover { color: var(--hk-primary); }
.home-anno-time { color: var(--hk-gray-light); font-size: 11px; flex-shrink: 0; }
.home-quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.home-quick-grid a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 4px; border-radius: var(--hk-radius-sm); color: var(--hk-dark-brown); font-size: 12px; transition: all .25s; text-decoration: none; }
.home-quick-grid a:hover { background: var(--hk-primary-bg); color: var(--hk-primary); transform: translateY(-3px); }
.home-quick-grid a i { font-size: 22px; color: var(--hk-primary); transition: transform .25s; }
.home-quick-grid a:hover i { transform: scale(1.1); }

/* ---------- 首页分类导航 ---------- */
.home-cat-bar { display: flex; gap: 10px; overflow-x: auto; padding: 12px 0 16px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.home-cat-bar::-webkit-scrollbar { height: 4px; }
.home-cat-bar::-webkit-scrollbar-thumb { background: var(--hk-primary); border-radius: 4px; }
.home-cat-bar a { display: flex; align-items: center; gap: 6px; padding: 8px 20px; background: #fff; border-radius: var(--hk-radius-full); font-size: 13px; font-weight: 500; color: var(--hk-dark-brown); white-space: nowrap; box-shadow: 0 2px 8px rgba(62,39,35,.06); transition: all .25s; text-decoration: none; border: 1px solid transparent; }
.home-cat-bar a:hover { border-color: var(--hk-primary); color: var(--hk-primary); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(255,107,53,.15); }
.home-cat-bar a.active { background: var(--hk-primary); color: #fff; box-shadow: 0 4px 16px rgba(255,107,53,.3); }
.home-cat-bar a.active:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(255,107,53,.4); }

/* ---------- 合作伙伴卡片 ---------- */
.home-partner-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.home-partner-card { background: #fff; border-radius: var(--hk-radius); padding: 28px 20px 24px; text-align: center; box-shadow: 0 4px 20px rgba(62,39,35,.06); transition: all .35s; text-decoration: none; border-top: 4px solid var(--c); position: relative; overflow: hidden; }
.home-partner-card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.02)); pointer-events: none; }
.home-partner-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(62,39,35,.12); }
.home-partner-card .partner-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--c); color: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; font-size: 28px; transition: all .35s; }
.home-partner-card:hover .partner-icon { transform: scale(1.08) rotate(-4deg); }
.home-partner-card h4 { font-size: 17px; font-weight: 700; color: var(--hk-dark-brown); margin-bottom: 4px; }
.home-partner-card p { font-size: 13px; color: var(--hk-gray); margin-bottom: 8px; }
.home-partner-card .partner-arrow { display: inline-block; color: var(--c); font-size: 14px; transition: transform .3s; }
.home-partner-card:hover .partner-arrow { transform: translateX(6px); }

/* ---------- 蓖麻榜 / 资讯 双列 ---------- */
.home-article-item { display: flex; gap: 14px; padding: 14px 18px; border-bottom: 1px solid #f5f0ed; text-decoration: none; transition: background .2s; }
.home-article-item:last-child { border-bottom: none; }
.home-article-item:hover { background: #fefaf7; }
.home-article-cover { width: 100px; height: 72px; border-radius: var(--hk-radius-sm); background-size: cover; background-position: center; flex-shrink: 0; background-color: var(--hk-gray-bg); }
.home-article-info { flex: 1; min-width: 0; }
.home-article-info h4 { font-size: 14px; font-weight: 600; color: var(--hk-dark-brown); margin-bottom: 4px; line-height: 1.4; }
.home-article-info p { font-size: 13px; color: var(--hk-gray); margin-bottom: 4px; line-height: 1.4; }
.home-article-info span { font-size: 12px; color: var(--hk-gray-light); }

/* ---------- 赛事网格卡 (沿用 uc-match-card，保证兼容) ---------- */
.home-match-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.uc-match-card { background: #fff; border-radius: var(--hk-radius); box-shadow: 0 4px 20px rgba(62,39,35,.06); overflow: hidden; transition: all .3s; display: flex; flex-direction: column; }
.uc-match-card:hover { transform: translateY(-5px); box-shadow: 0 12px 36px rgba(62,39,35,.14); }
.uc-match-card .uc-cover { display: block; position: relative; width: 100%; padding-top: 56%; background-size: cover; background-position: center; background-color: var(--hk-gray-bg); text-decoration: none; }
.uc-match-card .uc-cover .uc-status-tag { position: absolute; top: 10px; left: 10px; }
.uc-match-card .uc-body { padding: 14px 16px 10px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.uc-match-card .uc-title { font-size: 15px; font-weight: 700; color: var(--hk-dark-brown); line-height: 1.4; text-decoration: none; transition: color .2s; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.uc-match-card .uc-title:hover { color: var(--hk-primary); }
.uc-match-card .uc-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--hk-gray); }
.uc-match-card .uc-meta span { display: inline-flex; align-items: center; gap: 3px; }
.uc-match-card .uc-footer { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px 14px; border-top: 1px solid var(--hk-gray-border); margin-top: auto; }
.uc-match-card .uc-prize { font-weight: 700; color: var(--hk-primary); font-size: 16px; }

/* ---------- 商城卡片 (兼容) ---------- */
.sp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.sp-product-card { background: #fff; border-radius: var(--hk-radius); overflow: hidden; box-shadow: 0 4px 20px rgba(62,39,35,.06); transition: all .3s; text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.sp-product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(62,39,35,.14); color: inherit; }
.sp-product-img { width: 100%; padding-top: 100%; background-size: cover; background-position: center; background-color: var(--hk-gray-bg); position: relative; }
.sp-product-img .sp-tag { position: absolute; top: 10px; left: 10px; }
.sp-product-body { padding: 14px 14px 12px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.sp-product-name { font-size: 14px; font-weight: 600; color: var(--hk-dark-brown); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sp-product-desc { font-size: 12px; color: var(--hk-gray); }
.sp-product-price { display: flex; align-items: baseline; gap: 6px; }
.sp-product-price .sp-price { color: var(--hk-primary); font-weight: 800; font-size: 17px; }
.sp-product-price .sp-market { color: var(--hk-gray-light); font-size: 12px; text-decoration: line-through; }
.sp-product-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.sp-product-footer .sp-sold { font-size: 12px; color: var(--hk-gray-light); }

/* ---------- 愿景横幅 ---------- */
.home-vision-banner { background: var(--hk-gradient-brown); color: #fff; border-radius: var(--hk-radius-lg); padding: 40px 44px; display: flex; align-items: center; justify-content: space-between; margin: 36px 0 20px; flex-wrap: wrap; gap: 20px; box-shadow: 0 8px 30px rgba(62,39,35,.2); }
.home-vision-banner h2 { font-size: 1.3rem; font-weight: 600; margin-bottom: 4px; }
.home-vision-banner p { opacity: .85; font-size: 1rem; }
.home-vision-banner .vision-tags { display: flex; gap: 18px; margin-top: 10px; }
.home-vision-banner .vision-tags span { font-size: 13px; opacity: .8; }
.home-vision-banner .vision-tags i { color: #FFD700; margin-right: 4px; }

/* ---------- 首页响应式 ---------- */
@media (max-width: 1200px) {
    .home-match-grid { grid-template-columns: repeat(3, 1fr); }
    .sp-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 992px) {
    .home-hero-row { grid-template-columns: 1fr; }
    .home-banner-slider { height: 260px; }
    .home-match-grid, .sp-grid, .home-partner-grid { grid-template-columns: repeat(2, 1fr); }
    .home-quick-grid { grid-template-columns: repeat(4, 1fr); }
    .home-vision-banner { flex-direction: column; text-align: center; padding: 32px 24px; }
    .home-vision-banner .vision-tags { justify-content: center; }
}
@media (max-width: 768px) {
    .home-banner-slider { height: 200px; }
    .home-banner-caption h3 { font-size: 1.3rem; }
    .home-section-head h2 { font-size: 18px; }
    .home-partner-card { padding: 20px 14px 18px; }
    .home-partner-card .partner-icon { width: 48px; height: 48px; font-size: 20px; }
    .home-banner-caption { padding: 20px 16px 16px; }
}
@media (max-width: 480px) {
    .home-match-grid, .sp-grid, .home-quick-grid, .home-partner-grid { grid-template-columns: repeat(2, 1fr); }
    .home-banner-slider { height: 160px; }
    .home-banner-caption h3 { font-size: 1rem; }
    .home-banner-caption p { font-size: .85rem; }
    .home-banner-dots { bottom: 10px; right: 14px; }
    .home-banner-dots span { width: 8px; height: 8px; }
    .home-banner-dots span.active { width: 20px; }
    .home-side-card { padding: 14px 12px; }
    .home-article-item { padding: 10px 12px; }
    .home-article-cover { width: 70px; height: 56px; }
    .home-article-info h4 { font-size: 13px; }
}

/* ============================================================
   文章详情页样式 (article.php / model.php 提取)
   ============================================================ */
.hk-article-page { padding: 20px 0 40px; }
.hk-article-grid { display: grid; grid-template-columns: 1fr 280px; gap: 24px; }

/* 主内容 */
.hk-article-card { background: #fff; border-radius: var(--hk-radius); box-shadow: 0 2px 16px rgba(62,39,35,0.06); overflow: hidden; transition: box-shadow 0.3s; }
.hk-article-card:hover { box-shadow: 0 4px 28px rgba(62,39,35,0.10); }
.article-header { padding: 28px 32px 0; }
.article-category { display: inline-flex; align-items: center; gap: 4px; padding: 2px 12px; background: var(--hk-primary-bg); color: var(--hk-primary); border-radius: var(--hk-radius-full); font-size: 12px; font-weight: 600; margin-bottom: 10px; }
.article-title { font-size: 26px; font-weight: 800; color: var(--hk-dark-brown); line-height: 1.35; margin-bottom: 10px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 13px; color: var(--hk-gray); padding-bottom: 14px; border-bottom: 1px solid var(--hk-gray-border); }
.meta-item { display: flex; align-items: center; gap: 4px; }
.meta-item i { font-size: 13px; color: var(--hk-gray-light); }
.meta-divider { color: var(--hk-gray-border); }
.top-badge { color: var(--hk-primary); font-weight: 500; }
.top-badge i { color: var(--hk-primary); }
.recommend-badge { color: #f59e0b; font-weight: 500; }
.recommend-badge i { color: #f59e0b; }

.article-cover { padding: 0 32px; margin-top: 18px; }
.article-cover img { width: 100%; border-radius: var(--hk-radius-sm); max-height: 380px; object-fit: cover; background: var(--hk-gray-bg); }

.article-summary { margin: 18px 32px 0; padding: 14px 20px; background: var(--hk-gray-bg); border-radius: var(--hk-radius-sm); border-left: 4px solid var(--hk-primary); font-size: 15px; line-height: 1.7; color: #555; }
.article-summary i { color: var(--hk-primary); margin-right: 6px; opacity: 0.6; }

.article-body { padding: 22px 32px 16px; font-size: 15px; line-height: 1.9; color: #444; }
.article-body p { margin-bottom: 14px; }
.article-body h2, .article-body h3 { color: var(--hk-dark-brown); margin-top: 24px; margin-bottom: 12px; }
.article-body ul, .article-body ol { padding-left: 24px; margin-bottom: 14px; }
.article-body li { margin-bottom: 6px; }
.article-body blockquote { border-left: 4px solid var(--hk-primary); padding: 12px 20px; background: var(--hk-gray-bg); border-radius: var(--hk-radius-sm); margin: 16px 0; color: #555; }
.article-body img { max-width: 100%; border-radius: var(--hk-radius-sm); margin: 12px 0; }
.article-body a { color: var(--hk-primary); text-decoration: none; }
.article-body a:hover { text-decoration: underline; }
.article-body table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.article-body table th, .article-body table td { padding: 8px 12px; border: 1px solid var(--hk-gray-border); }
.article-body table th { background: var(--hk-gray-bg); font-weight: 600; }

.article-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 0 32px 8px; }
.tags-label { font-size: 13px; color: var(--hk-gray); }
.tag-item { font-size: 13px; color: var(--hk-primary); background: var(--hk-primary-bg); padding: 2px 12px; border-radius: var(--hk-radius-full); transition: all 0.2s; }
.tag-item:hover { background: var(--hk-primary); color: #fff; cursor: default; }

.article-footer { padding: 16px 32px 24px; border-top: 1px solid var(--hk-gray-border); margin-top: 8px; }
.footer-actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.btn-back { display: inline-flex; align-items: center; gap: 6px; padding: 8px 18px; background: var(--hk-gray-bg); border-radius: var(--hk-radius-full); font-size: 14px; font-weight: 500; color: var(--hk-dark-brown); text-decoration: none; transition: all 0.2s; }
.btn-back:hover { background: var(--hk-primary-bg); color: var(--hk-primary); text-decoration: none; }
.footer-share { display: flex; align-items: center; gap: 6px; }
.share-label { font-size: 13px; color: var(--hk-gray); }
.share-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--hk-gray-bg); color: var(--hk-gray); font-size: 14px; text-decoration: none; transition: all 0.2s; }
.share-btn:hover { background: var(--hk-primary); color: #fff; text-decoration: none; transform: translateY(-2px); }
.footer-info { display: flex; justify-content: center; gap: 20px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--hk-gray-border); font-size: 12px; color: var(--hk-gray-light); }
.footer-info i { margin-right: 4px; }

/* 评论区 */
.hk-comments-section { background: #fff; border-radius: var(--hk-radius); box-shadow: 0 2px 16px rgba(62,39,35,0.06); padding: 20px 28px; margin-top: 20px; }
.hk-comments-section h4 { font-size: 16px; font-weight: 700; color: var(--hk-dark-brown); display: flex; align-items: center; gap: 8px; margin: 0; }
.hk-comments-section h4 i { color: var(--hk-primary); }

/* 侧边栏 */
.hk-article-sidebar .sidebar-card { background: #fff; border-radius: var(--hk-radius); box-shadow: 0 2px 16px rgba(62,39,35,0.06); padding: 18px 20px; margin-bottom: 16px; }
.hk-article-sidebar .sidebar-card:last-child { margin-bottom: 0; }
.hk-article-sidebar .sidebar-card h4 { font-size: 15px; font-weight: 700; color: var(--hk-dark-brown); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.hk-article-sidebar .sidebar-card h4 i { color: var(--hk-primary); }
.empty-text { font-size: 14px; color: var(--hk-gray-light); text-align: center; padding: 12px 0; }

/* 相关文章列表 */
.related-list { list-style: none; padding: 0; margin: 0; }
.related-list li { border-bottom: 1px solid var(--hk-gray-border); }
.related-list li:last-child { border-bottom: none; }
.related-list a { display: flex; align-items: center; gap: 10px; padding: 8px 0; text-decoration: none; transition: all 0.2s; }
.related-list a:hover { color: var(--hk-primary); }
.related-thumb { width: 44px; height: 44px; border-radius: var(--hk-radius-sm); background-size: cover; background-position: center; flex-shrink: 0; background-color: var(--hk-gray-bg); }
.related-thumb.placeholder { display: flex; align-items: center; justify-content: center; background: var(--hk-gray-bg); color: var(--hk-gray-light); font-size: 18px; }
.related-title { flex: 1; font-size: 14px; color: var(--hk-dark-brown); }
.related-list a:hover .related-title { color: var(--hk-primary); }
.related-date { font-size: 12px; color: var(--hk-gray-light); flex-shrink: 0; }

/* 热门文章 */
.hot-list { list-style: none; padding: 0; margin: 0; }
.hot-list li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--hk-gray-border); }
.hot-list li:last-child { border-bottom: none; }
.hot-rank { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; font-size: 12px; font-weight: 700; color: var(--hk-gray-light); background: var(--hk-gray-bg); flex-shrink: 0; }
.hot-rank.top { background: var(--hk-primary); color: #fff; }
.hot-list a { flex: 1; font-size: 14px; color: var(--hk-dark-brown); text-decoration: none; transition: color 0.2s; }
.hot-list a:hover { color: var(--hk-primary); }
.hot-views { font-size: 12px; color: var(--hk-gray-light); flex-shrink: 0; }
.hot-views i { margin-right: 2px; }

/* 作者卡片 */
.author-info { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.author-avatar { font-size: 44px; color: var(--hk-gray-border); }
.author-info strong { display: block; font-size: 15px; color: var(--hk-dark-brown); }
.author-info span { font-size: 13px; color: var(--hk-gray); }
.author-bio { font-size: 13px; color: var(--hk-gray); line-height: 1.6; margin: 0; }

/* 详情页响应式 */
@media (max-width: 992px) {
    .hk-article-grid { grid-template-columns: 1fr; gap: 20px; }
    .hk-article-sidebar { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
    .hk-article-sidebar .sidebar-card { margin-bottom: 0; }
}
@media (max-width: 768px) {
    .article-header { padding: 20px 18px 0; }
    .article-title { font-size: 20px; }
    .article-cover { padding: 0 18px; margin-top: 14px; }
    .article-cover img { max-height: 240px; }
    .article-summary { margin: 14px 18px 0; padding: 12px 16px; font-size: 14px; }
    .article-body { padding: 16px 18px 12px; font-size: 14px; }
    .article-tags { padding: 0 18px 6px; }
    .article-footer { padding: 12px 18px 16px; }
    .footer-actions { flex-direction: column; align-items: stretch; }
    .btn-back { justify-content: center; }
    .footer-share { justify-content: center; }
    .footer-info { flex-wrap: wrap; gap: 8px 16px; }
    .hk-article-sidebar { grid-template-columns: 1fr 1fr; gap: 12px; }
    .hk-comments-section { padding: 16px 18px; }
}
@media (max-width: 480px) {
    .article-header { padding: 14px 12px 0; }
    .article-title { font-size: 17px; }
    .article-meta { font-size: 12px; gap: 2px; }
    .article-cover { padding: 0 12px; }
    .article-cover img { max-height: 180px; }
    .article-summary { margin: 10px 12px 0; padding: 10px 14px; font-size: 13px; }
    .article-body { padding: 12px 12px 10px; font-size: 13px; }
    .article-tags { padding: 0 12px 4px; }
    .tag-item { font-size: 12px; padding: 1px 10px; }
    .article-footer { padding: 10px 12px 14px; }
    .btn-back { font-size: 13px; padding: 6px 14px; }
    .share-btn { width: 30px; height: 30px; font-size: 12px; }
    .footer-info { font-size: 11px; }
    .hk-article-sidebar { grid-template-columns: 1fr; gap: 12px; }
    .hk-article-sidebar .sidebar-card { padding: 14px 14px; }
    .hk-comments-section { padding: 14px 14px; }
    .hk-comments-section h4 { font-size: 15px; }
}
