/* 全局样式 */
:root {
    --primary-color: #3b5de7;
    --success-color: #45cb85;
    --warning-color: #eeb902;
    --danger-color: #ff715b;
    --dark-bg: #2a3042;
    --light-bg: #f8f9fa;
    --border-color: #e9ecef;
}

body {
    background-color: var(--light-bg);
    color: #333;
    min-height: 100vh;
}

/* 主容器样式 */
.layui-container {
    width: 100%;
    max-width: 1200px;
    padding: 0 15px;
    margin: 0 auto;
    box-sizing: border-box;
}

.main-container {
    margin-top: 80px;
    padding: 20px 15px;
}

/* 内容区块样式 */
.section-block {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
}

/* 数据概览模块样式 */
.data-overview {
    margin: 0 0 20px 0;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.overview-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 0;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

.overview-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all .3s;
    width: 100%;
    box-sizing: border-box;
}

.overview-item:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.item-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    transition: all .3s;
}

.item-icon .layui-icon {
    font-size: 24px;
    color: #fff;
}

/* 不同图标的背景色 */
.overview-item:nth-child(1) .item-icon {
    background: linear-gradient(135deg, var(--primary-color), #4c6ef5);
}

.overview-item:nth-child(2) .item-icon {
    background: linear-gradient(135deg, #ff9800, #ffc107);
}

.overview-item:nth-child(3) .item-icon {
    background: linear-gradient(135deg, #4caf50, #8bc34a);
}

.item-info {
    flex: 1;
}

.item-label {
    display: block;
    color: #666;
    font-size: 13px;
    margin-bottom: 4px;
}

.item-value {
    display: flex;
    align-items: baseline;
}

.item-value .num {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-right: 8px;
}

/* 响应式调整 */
@media screen and (max-width: 992px) {
    .overview-items {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .data-overview {
        padding: 15px;
    }
}

@media screen and (max-width: 480px) {
    .overview-items {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .data-overview {
        padding: 10px;
    }
}

/* 新闻和统计模块样式 */
.news-stats-module {
    height: 220px;
    padding: 0;
    overflow: hidden;
    display: flex;
    background: linear-gradient(to right, #fff 65%, #f8f9fa 35%);
}

.news-stats-container {
    display: flex;
    height: 100%;
    width: 100%;
}

/* 新闻列表样式 */
.news-list {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
}

.module-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.module-title h3 {
    font-size: 16px;
    color: #333;
    margin: 0;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.module-title h3 i {
    font-size: 18px;
    margin-right: 8px;
    color: var(--primary-color);
}

.news-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 10px;
    border-radius: 4px;
    transition: all .3s;
    background: #f8f9fa;
}

.news-tag {
    padding: 2px 8px;
    font-size: 12px;
    color: #fff;
    border-radius: 3px;
    margin-right: 12px;
    display: inline-block;
}

.news-item:nth-child(1) {
    border-left: 3px solid var(--primary-color);
}

.news-item:nth-child(2) {
    border-left: 3px solid #ff9800;
}

.news-item:nth-child(3) {
    border-left: 3px solid #4caf50;
}

.news-item:nth-child(1) .news-tag {
    background: var(--primary-color);
}

.news-item:nth-child(2) .news-tag {
    background: #ff9800;
}

.news-item:nth-child(3) .news-tag {
    background: #4caf50;
}

.news-link {
    flex: 1;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all .3s;
    font-size: 14px;
}

.news-item:hover {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.news-item:hover .news-link {
    color: var(--primary-color);
}

.news-time {
    color: #999;
    font-size: 12px;
    margin-left: 15px;
}

.more-link {
    color: #666;
    font-size: 13px;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all .3s;
    padding: 4px 8px;
    border-radius: 4px;
}

.more-link:hover {
    color: var(--primary-color);
    background: rgba(59, 93, 231, 0.05);
}

.more-link .layui-icon {
    font-size: 12px;
    margin-left: 4px;
}

/* 右侧统计数据样式 */
.quick-stats {
    width: 35%;
    padding: 25px;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stat-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    transition: all .3s;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.stat-item .layui-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    margin-right: 12px;
    background: var(--primary-color);
}

.stat-info {
    flex: 1;
}

.stat-num {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: #666;
}

/* 响应式布局补充 */
@media screen and (max-width: 768px) {
    .news-stats-module {
        height: auto;
        flex-direction: column;
    }
    
    .news-stats-container {
        flex-direction: column;
    }
    
    .news-list {
        border-bottom: 1px solid #f0f0f0;
    }
    
    .quick-stats {
        width: 100%;
        padding: 20px;
        flex-direction: row;
        justify-content: space-between;
    }
    
    .stat-item {
        width: 33.33%;
        padding: 10px;
    }
}

@media screen and (max-width: 480px) {
    .news-list {
        padding: 15px;
    }
    
    .quick-stats {
        padding: 15px;
        flex-direction: column;
        gap: 15px;
    }
    
    .stat-item {
        width: 100%;
        padding: 5px 0;
    }
}

/* 顶部导航样式 */
.header {
    background-color: var(--primary-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header .layui-container {
    display: flex;
    align-items: center;
    height: 60px;
}

/* LOGO样式 */
.header-logo {
    display: flex;
    align-items: center;
    padding-right: 20px;
    min-width: 200px;
}

.logo-img {
    height: 32px;
    width: 32px;
    margin-right: 10px;
}

.header-logo h1 {
    color: #fff;
    font-size: 20px;
    margin: 0;
    font-weight: normal;
}

/* 主导航样式 */
.main-nav {
    flex: 1;
    background: none !important;
    padding: 0;
    margin: 0 20px;
}

.main-nav .layui-nav-item {
    margin: 0;
}

.main-nav .layui-nav-item > a {
    color: rgba(255,255,255,.85) !important;
    font-size: 15px;
    padding: 0 20px;
    height: 60px;
    line-height: 60px;
}

.main-nav .layui-nav-item > a:hover,
.main-nav .layui-this > a {
    color: #fff !important;
}

.main-nav .layui-this:after {
    background-color: #fff !important;
}

/* 右侧工具栏样式 */
.header-nav {
    background: none !important;
    padding: 0;
}

.header-nav .layui-nav-item {
    margin: 0;
    position: relative;
}

.header-nav .layui-nav-img {
    width: 30px;
    height: 30px;
    margin-right: 8px;
}

.admin-name {
    color: #fff;
}

/* 消息通知样式 */
.message-num {
    position: absolute;
    top: 10px;
    right: 5px;
    background: #ff5722;
    color: #fff;
    border-radius: 10px;
    padding: 0 6px;
    font-size: 12px;
    line-height: 16px;
    min-width: 16px;
    text-align: center;
}

/* 移动端菜单按钮 */
.menu-btn {
    display: none;
    color: #fff;
    padding: 0 15px;
    font-size: 18px;
}

/* 响应式导航样式 */
@media screen and (max-width: 768px) {
    .menu-btn {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background-color: var(--primary-color) !important;
        margin: 0;
        padding: 10px 0;
    }

    .main-nav.show {
        display: block;
    }

    .main-nav .layui-nav-item {
        display: block;
        margin: 0;
    }

    .main-nav .layui-nav-item > a {
        padding: 0 15px;
        height: 45px;
        line-height: 45px;
    }

    .header-logo {
        min-width: auto;
    }

    .header-logo h1 {
        display: none;
    }

    .header-nav .layui-nav-item:not(:last-child) {
        display: none;
    }
}

/* 主题选择面板 */
.theme-list {
    padding: 15px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 240px;
}

.theme-item {
    width: 100%;
    height: 40px;
    border-radius: 4px;
    cursor: pointer;
    transition: all .3s;
}

.theme-item:hover {
    transform: scale(1.05);
}

.theme-item.active {
    position: relative;
}

.theme-item.active:after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 16px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* 主题色样式 */
.theme-blue {
    background: #3b5de7;
}

.theme-green {
    background: #45cb85;
}

.theme-purple {
    background: #6559cc;
}

.theme-red {
    background: #ff715b;
}

.theme-orange {
    background: #f1963f;
}

.theme-cyan {
    background: #16c7c7;
}

/* 主题切换按钮样式 */
#themeBtn {
    padding: 0 15px;
    color: rgba(255,255,255,.85) !important;
}

#themeBtn .layui-icon {
    font-size: 20px;
}

/* 应用主题色的元素 */
.header,
.layui-nav,
.layui-btn:not(.layui-btn-primary) {
    background-color: var(--primary-color) !important;
}

.layui-btn:not(.layui-btn-primary):hover {
    background-color: var(--hover-color) !important;
}

.layui-nav .layui-this:after,
.layui-nav-bar {
    background-color: #fff !important;
}

.text-primary,
.layui-nav .layui-nav-item a:hover,
.more-link:hover,
.quick-action-item .layui-icon {
    color: var(--primary-color) !important;
}

/* 主题色渐变背景 */
.gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--hover-color)) !important;
}

/* 账户余额模块样式 */
.balance-section {
    background: var(--primary-color);  /* 使用主题变量 */
    color: #fff;
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.15);
}

/* 主余额显示 */
.balance-main {
    display: flex;
    align-items: center;
    padding: 25px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.balance-section .layui-icon {
    font-size: 22px;
    margin-right: 15px;
    background: rgba(255,255,255,0.15);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: all .3s ease;
}

.balance-main .card-content {
    flex: 1;
}

.balance-main .card-content p {
    margin: 0;
    font-size: 13px;
    opacity: 0.8;
}

.balance-main .card-content h2 {
    margin: 4px 0 0;
    font-size: 28px;
    font-weight: 600;
}

/* 余额详情 */
.balance-details {
    padding: 20px 25px;
    display: flex;
    gap: 20px;
}

.balance-item {
    flex: 1;
    text-align: center;
    position: relative;
}

/* 分隔线 */
.balance-item:not(:last-child):after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    height: 24px;
    width: 1px;
    background: rgba(255,255,255,0.1);
}

.balance-item p {
    margin: 0;
    font-size: 13px;
    opacity: 0.7;
}

.balance-item h3 {
    margin: 6px 0 0;
    font-size: 18px;
    font-weight: 500;
}

/* 操作按钮 */
.balance-actions {
    display: flex;
    padding: 20px 25px;
    gap: 12px;
    background: rgba(0,0,0,0.03);
}

.balance-actions .layui-btn {
    flex: 1;
    height: 40px;
    line-height: 40px;
    font-size: 14px;
    border-radius: 10px;
    font-weight: 500;
    transition: all .3s ease;
}

.balance-actions .layui-btn:not(.layui-btn-primary) {
    background: #fff !important;
    color: var(--primary-color) !important;  /* 使用主题变量 */
}

.balance-actions .layui-btn-primary {
    background: rgba(255,255,255,0.1) !important;
    border: none;
    color: #fff !important;
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    .balance-main {
        padding: 20px;
    }
    
    .balance-main .card-content h2 {
        font-size: 24px;
    }
    
    .balance-details {
        padding: 15px 20px;
        gap: 15px;
    }
    
    .balance-actions {
        padding: 15px 20px;
    }
}

@media screen and (max-width: 480px) {
    .balance-section {
        border-radius: 12px;
    }
    
    .balance-main {
        padding: 15px;
    }
    
    .balance-section .layui-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
        margin-right: 12px;
    }
    
    .balance-main .card-content h2 {
        font-size: 22px;
    }
    
    /* 移动端垂直布局 */
    .balance-details {
        flex-direction: column;
        gap: 12px;
        padding: 15px;
    }
    
    .balance-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: left;
    }
    
    /* 移除垂直分隔线 */
    .balance-item:not(:last-child):after {
        display: none;
    }
    
    .balance-item:not(:last-child) {
        padding-bottom: 12px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .balance-item h3 {
        margin: 0;
    }
    
    .balance-actions {
        padding: 15px;
        flex-direction: column;
        gap: 10px;
    }
    
    .balance-actions .layui-btn {
        width: 100%;
        height: 38px;
        line-height: 38px;
    }
}

/* 为不同主题设置特定的阴影颜色 */
[data-theme="#1E9FFF"] .balance-section {
    box-shadow: 0 8px 24px -12px rgba(30, 159, 255, 0.4);
}

[data-theme="#009688"] .balance-section {
    box-shadow: 0 8px 24px -12px rgba(0, 150, 136, 0.4);
}

[data-theme="#5FB878"] .balance-section {
    box-shadow: 0 8px 24px -12px rgba(95, 184, 120, 0.4);
}

[data-theme="#FF5722"] .balance-section {
    box-shadow: 0 8px 24px -12px rgba(255, 87, 34, 0.4);
}

/* 主题切换按钮样式 */
.theme-switch {
    position: fixed;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 999;
}

.theme-item {
    width: 25px;
    height: 25px;
    border-radius: 4px;
    margin: 5px 0;
    cursor: pointer;
    transition: all .3s;
}

.theme-item:hover {
    transform: scale(1.1);
}

.theme-item.active {
    position: relative;
}

.theme-item.active:after {
    content: '';
    position: absolute;
    inset: -3px;
    border: 2px solid currentColor;
    border-radius: 6px;
    opacity: 0.3;
}

/* 快捷功能模块样式 */
.section-block {
    margin-bottom: 20px;  /* 保持默认间距 */
}

/* 特别为账户余额下方的快捷功能模块添加额外的上边距 */
.balance-section + .section-block {
    margin-top: 30px;  /* 增加与账户余额模块的间距 */
}

/* 快捷功能模块样式 */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 15px 0;
}

/* 快捷功能项样式优化 */
.quick-action-item {
    position: relative;
    display: flex;
    align-items: center;
    padding: 6px;
    background: #fff;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    min-height: 72px;  /* 固定最小高度 */
}

.quick-action-item:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* 图标样式优化 */
.quick-action-item .layui-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    margin-right: 12px;
    flex-shrink: 0;  /* 防止图标缩小 */
}

/* 内容区域样式优化 */
.quick-action-item .content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;  /* 允许内容区域收缩 */
}

.quick-action-item .title {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    margin-bottom: 4px;
    white-space: nowrap;  /* 防止标题换行 */
    overflow: hidden;
    text-overflow: ellipsis;
}

.quick-action-item .description {
    font-size: 12px;
    color: #999;
    white-space: nowrap;  /* 防止描述文字换行 */
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 图标背景色 */
.quick-action-item:nth-child(1) .layui-icon {
    background: linear-gradient(135deg, #ff9800, #ffc107);
}

.quick-action-item:nth-child(2) .layui-icon {
    background: linear-gradient(135deg, var(--primary-color), #4c6ef5);
}

.quick-action-item:nth-child(3) .layui-icon {
    background: linear-gradient(135deg, #4caf50, #8bc34a);
}

.quick-action-item:nth-child(4) .layui-icon {
    background: linear-gradient(135deg, #9c27b0, #e040fb);
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .quick-actions {
        grid-template-columns: 1fr;  /* 移动端单列显示 */
        gap: 12px;
    }
    
    .quick-action-item {
        padding: 14px;
        min-height: 64px;
    }
    
    .quick-action-item .layui-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
        margin-right: 10px;
    }
    
    .quick-action-item .title {
        font-size: 13px;
    }
}

/* 任务模块样式 */
.task-module {
    margin-bottom: 20px;
}

.task-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 0;
    padding: 0;
}

.task-stat-item {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.task-stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.task-stat-item .card-body {
    display: flex;
    align-items: center;
}

.task-stat-item .layui-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-right: 12px;
    color: #fff;
}

.task-stat-item:nth-child(1) .layui-icon { background: linear-gradient(135deg, #3b5de7, #4c6ef5); }
.task-stat-item:nth-child(2) .layui-icon { background: linear-gradient(135deg, #45cb85, #2ab57d); }
.task-stat-item:nth-child(3) .layui-icon { background: linear-gradient(135deg, #eeb902, #f4c22b); }
.task-stat-item:nth-child(4) .layui-icon { background: linear-gradient(135deg, #ff715b, #ff4f3c); }
.task-stat-item:nth-child(5) .layui-icon { background: linear-gradient(135deg, #5b73e8, #4458b8); }
.task-stat-item:nth-child(6) .layui-icon { background: linear-gradient(135deg, #50a5f1, #2d8ac7); }

.stat-content {
    flex: 1;
}

.stat-content h3 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
}

.stat-content p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

@media screen and (max-width: 992px) {
    .task-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media screen and (max-width: 480px) {
    .task-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* 新闻公告模块样式 */
.layui-col-md8 .section-block.news-module {
    height: 320px;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

/* 头部样式 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.section-header h2 {
    font-size: 16px;
    font-weight: 500;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-header .layui-icon {
    color: var(--primary-color);
}

.more-link {
    color: #6b7280;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}

.more-link:hover {
    color: var(--primary-color);
}

/* 新闻列表容器 */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    height: calc(100% - 52px);
    background: #fff;
    overflow: hidden;
}

/* 新闻卡片样式 */
.news-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    transition: all 0.3s;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    min-height: 38px;
}

.news-card:hover {
    background: #f8fafc;
}

/* 标签样式 */
.news-tag {
    padding: 1px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    flex-shrink: 0;
    min-width: 40px;
    text-align: center;
}

.news-tag.notice {
    background: #eff6ff;
    color: #3b82f6;
}

.news-tag.system {
    background: #f0fdf4;
    color: #22c55e;
}

.news-tag.activity {
    background: #fdf4ff;
    color: #d946ef;
}

/* 新闻内容 */
.news-content {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-title {
    flex: 1;
    font-size: 13px;
    line-height: 1.3;
    color: #666;
    margin: 0;
    font-weight: normal;  /* 移除加粗 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 右侧时间和状态 */
.news-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.news-time {
    font-size: 12px;
    color: #999;
}

.news-status {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.news-status.unread {
    background: #ef4444;
}

.news-status.read {
    display: none;  /* 已读状态不显示圆点 */
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .layui-col-md8 .section-block.news-module {
        height: auto;
        min-height: unset;
    }
    
    .news-card {
        padding: 8px 12px;
    }
    
    .news-tag {
        padding: 1px 6px;
        min-width: 36px;
    }
    
    .news-title {
        font-size: 12px;
    }
    
    .news-time {
        font-size: 12px;
    }
}

/* 新闻卡片悬停效果 */
.news-card:hover .news-title {
    color: var(--primary-color);
}

/* 新闻详情弹窗样式 */
.news-detail {
    padding: 24px;
}

.news-detail-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.news-detail-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.news-detail-tag {
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.news-detail-tag.notice {
    background: #eff6ff;
    color: #3b82f6;
}

.news-detail-tag.system {
    background: #f0fdf4;
    color: #22c55e;
}

.news-detail-tag.activity {
    background: #fdf4ff;
    color: #d946ef;
}

.news-detail-title h3 {
    font-size: 18px;
    color: #1f2937;
    margin: 0;
    font-weight: 500;
}

.news-detail-meta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.news-detail-time {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #666;
    font-size: 13px;
}

.news-detail-time .layui-icon {
    font-size: 14px;
}

.news-detail-content {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.8;
}

.news-detail-content p {
    margin-bottom: 12px;
}

/* 弹窗样式优化 */
.layui-layer {
    border-radius: 12px !important;
}

.layui-layer-content {
    overflow: auto !important;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .layui-layer {
        width: 90% !important;
        left: 5% !important;
    }
    
    .news-detail {
        padding: 16px;
    }
    
    .news-detail-title h3 {
        font-size: 16px;
    }
}

.news-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.news-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.5;
    border: 1px solid transparent;
}

.news-tag.top {
    background-color: #ff6b6b;
    color: #fff;
    border-color: #ff6b6b;
}

.news-tag.notice {
    background-color: #e6f7ff;
    color: #1890ff;
    border-color: #91d5ff;
}

.news-tag.system {
    background-color: #f6ffed;
    color: #52c41a;
    border-color: #b7eb8f;
}

.news-tag.activity {
    background-color: #fff7e6;
    color: #fa8c16;
    border-color: #ffd591;
}

/* 新闻列表容器 */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    height: calc(100% - 52px);
    background: #fff;
    overflow: hidden;
}

/* 新闻卡片样式 */
.news-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    transition: all 0.3s;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    min-height: 38px;
}

.news-card:hover {
    background: #f8fafc;
}

/* 标签样式 */
.news-tag {
    padding: 1px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    flex-shrink: 0;
    min-width: 40px;
    text-align: center;
}

.news-tag.notice {
    background: #eff6ff;
    color: #3b82f6;
}

.news-tag.system {
    background: #f0fdf4;
    color: #22c55e;
}

.news-tag.activity {
    background: #fdf4ff;
    color: #d946ef;
}

/* 新闻内容 */
.news-content {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-title {
    flex: 1;
    font-size: 13px;
    line-height: 1.3;
    color: #666;
    margin: 0;
    font-weight: normal;  /* 移除加粗 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 右侧时间和状态 */
.news-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.news-time {
    font-size: 12px;
    color: #999;
}

.news-status {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.news-status.unread {
    background: #ef4444;
}

.news-status.read {
    display: none;  /* 已读状态不显示圆点 */
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .layui-col-md8 .section-block.news-module {
        height: auto;
        min-height: unset;
    }
    
    .news-card {
        padding: 8px 12px;
    }
    
    .news-tag {
        padding: 1px 6px;
        min-width: 36px;
    }
    
    .news-title {
        font-size: 12px;
    }
    
    .news-time {
        font-size: 12px;
    }
}

/* 新闻卡片悬停效果 */
.news-card:hover .news-title {
    color: var(--primary-color);
}

/* 新闻详情弹窗样式 */
.news-detail {
    padding: 24px;
}

.news-detail-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.news-detail-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.news-detail-tag {
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.news-detail-tag.notice {
    background: #eff6ff;
    color: #3b82f6;
}

.news-detail-tag.system {
    background: #f0fdf4;
    color: #22c55e;
}

.news-detail-tag.activity {
    background: #fdf4ff;
    color: #d946ef;
}

.news-detail-title h3 {
    font-size: 18px;
    color: #1f2937;
    margin: 0;
    font-weight: 500;
}

.news-detail-meta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.news-detail-time {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #666;
    font-size: 13px;
}

.news-detail-time .layui-icon {
    font-size: 14px;
}

.news-detail-content {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.8;
}

.news-detail-content p {
    margin-bottom: 12px;
}

/* 弹窗样式优化 */
.layui-layer {
    border-radius: 12px !important;
}

.layui-layer-content {
    overflow: auto !important;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .layui-layer {
        width: 90% !important;
        left: 5% !important;
    }
    
    .news-detail {
        padding: 16px;
    }
    
    .news-detail-title h3 {
        font-size: 16px;
    }
} 