/* ===========================
   网站装修主题 - 动态生成
   此文件由后台装修功能自动生成
   =========================== */

:root {
    /* 主色调 */
    --theme-primary: #8b0000;
    --theme-primary-light: #a01515;
    --theme-primary-lighter: #b91c1c;
    /* 强调色 */
    --theme-accent: #ffd700;
    /* 导航栏 */
    --theme-nav-gradient: linear-gradient(to bottom, #8b0000, #a01515);
    /* 页脚 */
    --theme-footer-bg: #2d1010;
    /* 页面背景 */
    --theme-page-bg: #f5f5f5;
    /* 卡片圆角 */
    --theme-card-radius: 8px;
    /* 基础字体大小 */
    --theme-font-size: 14px;
    /* 头部底边框色 */
    --theme-header-border: #8b0000;
    /* 区块标题背景 */
    --theme-block-header-bg: linear-gradient(to right, #fff5f5, #fff);
    /* 链接hover色 */
    --theme-link-hover: #b91c1c;
    /* 回到顶部按钮 */
    --theme-back-top: #8b0000;
}

/* ====== 主体 ====== */
body {
    background-color: var(--theme-page-bg);
    font-size: var(--theme-font-size);
}

/* ====== 顶部公告条 ====== */
.top-bar {
    background: var(--theme-primary);
}

/* ====== 头部 ====== */
.header {
    border-bottom-color: var(--theme-header-border);
}
.logo-icon {
    background: var(--theme-primary);
}
.logo-text h1 {
    color: var(--theme-primary);
}
.search-box button {
    background: var(--theme-primary);
}
.search-box button:hover {
    background: var(--theme-primary-light);
}

/* ====== 导航栏 ====== */
.nav {
    background: var(--theme-nav-gradient);
}
.nav a:hover,
.nav a.active {
    color: var(--theme-accent);
}
.nav a::after {
    background: var(--theme-accent);
}

/* ====== 内容区块 ====== */
.content-block {
    border-radius: var(--theme-card-radius);
}
.block-header {
    background: var(--theme-block-header-bg);
}
.block-header h3 {
    color: var(--theme-primary);
}
.block-header h3::before {
    background: var(--theme-primary);
}
.block-header .more-link:hover {
    color: var(--theme-primary);
}

/* ====== 新闻区 ====== */
.news-feature {
    border-radius: var(--theme-card-radius);
}
.news-notice {
    border-radius: var(--theme-card-radius);
}
.news-feature .feature-list li a::before {
    color: var(--theme-primary);
}
.section-tab.active {
    color: var(--theme-primary);
    border-bottom-color: var(--theme-primary);
}
.section-tab:hover {
    color: var(--theme-primary);
}
.tab-content li a::before {
    color: var(--theme-primary);
}
.section-more a:hover {
    color: var(--theme-primary);
}

/* ====== 卡片hover ====== */
.training-card:hover {
    border-color: var(--theme-primary);
    box-shadow: 0 4px 16px rgba(139,0,0,0.12);
}
.training-card .card-image {
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-primary-lighter));
}

/* ====== 文章列表 ====== */
.article-list-item .item-date .day {
    color: var(--theme-primary);
}
.article-list-item .item-content h4 a:hover {
    color: var(--theme-primary);
}
.article-list-item:hover {
    background: rgba(139,0,0,0.03);
}

/* ====== 通知公告 ====== */
.notice-title:hover {
    color: var(--theme-primary-lighter);
}

/* ====== 分页 ====== */
.pagination a:hover {
    background: var(--theme-primary);
    color: #fff;
    border-color: var(--theme-primary);
}
.pagination .current {
    background: var(--theme-primary);
    color: #fff;
    border-color: var(--theme-primary);
}

/* ====== 文章详情 ====== */
.article-detail {
    border-radius: var(--theme-card-radius);
}
.article-detail-body h2,
.article-detail-body h3,
.article-detail-body h4 {
    color: var(--theme-primary);
}
.article-detail-body strong {
    color: var(--theme-primary);
}
.article-nav a:hover {
    color: var(--theme-primary);
}

/* ====== 面包屑 ====== */
.breadcrumb a:hover {
    color: var(--theme-primary);
}

/* ====== 侧边栏 ====== */
.sidebar-block {
    border-radius: var(--theme-card-radius);
}

/* ====== 页脚 ====== */
.footer {
    background: var(--theme-footer-bg);
}

/* ====== 回到顶部 ====== */
.back-to-top {
    background: var(--theme-back-top);
}
.back-to-top:hover {
    background: var(--theme-primary-light);
}

/* ====== 链接 ====== */
a:hover {
    color: var(--theme-link-hover);
}

/* ====== 快捷入口hover ====== */
.quick-item:hover {
    background: rgba(139,0,0,0.05);
}
