/* 紧凑分栏系统 */
.dashboard-container {
    display: flex;
    flex-wrap: wrap;
    /* 允许换行 */
    gap: 32px;
    width: 100%;
    max-width: 1240px;
    margin: 2.5rem auto;
    padding: 0 32px;
    justify-content: space-between;
    /* 增加此行，确保左右均等分配空间 */
}

/* 等宽卡片容器 */
.notice-section,
.news-section {
    flex: 1 1 calc(50% - 16px);
    /* 每个宽度为50%减去间隙 */
    box-sizing: border-box;

}

/* 紧凑卡片样式 */
.news-card {
    --primary: #007a8a;
    --accent: #ff6f00;
    --surface: #f7fbfc;
    --border: rgba(0, 122, 138, 0.1);

    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 122, 138, 0.06);
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(0, 122, 138, 0.1);
}

/* 紧凑标题系统 */
.news-title {
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 600;
    padding-bottom: 0.8rem;
    margin-bottom: 1rem;
    position: relative;
}

.news-title::after {
    content: "";
    width: 28px;
    height: 2px;
    background: var(--accent);
    position: absolute;
    bottom: 0;
    left: 0;
}

/* 紧凑列表项 */
.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.6rem;
}

.news-item {
    padding: 0.8rem 1rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.2s ease;
}

.news-item:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateX(3px);
}

/* 紧凑链接样式 */
.news-link {
    display: grid;
    grid-template-columns: 90px 1fr;
    align-items: center;
    gap: 1rem;
    color: #2d3748;
    text-decoration: none;
    font-size: 0.92em;
}

.news-link time {
    color: #64748b;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.85em;
    font-feature-settings: 'tnum';
}

/* 查看更多区域 */
.news-more {
    margin-top: 1.2rem;
    padding-top: 1.2rem;
    border-top: 1px dashed rgba(0, 122, 138, 0.1);
    display: flex;
    justify-content: center;
    /* 居中显示 */
}

/* 查看更多按钮 */
.more-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 24px;
    background: rgba(0, 122, 138, 0.08);
    color: var(--primary);
    text-decoration: none !important;
    transition: all 0.2s ease;
    width: 100%;
    /* 大屏下占满整行 */
    text-align: center;
}

.more-link:hover {
    background: rgba(0, 122, 138, 0.12);
}

.more-link .arrow {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.more-link:hover .arrow {
    transform: translateX(2px);
}

/* 左侧主题色 */
.notice-section {
    --primary: #2d8cf0;
    --accent: #ff6b6b;
    --surface: #f8f9fe;
    --border: rgba(45, 140, 240, 0.1);
}

/* 响应式布局增强 */
@media (max-width: 1024px) {
    .dashboard-container {
        gap: 24px;
        padding: 0 24px;
    }

    .notice-section,
    .news-section {
        width: 100%;
        /* 确保在屏幕较小的情况下两个板块宽度为100% */
    }

    .news-card {
        padding: 1.25rem;
    }

    .news-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 1100px) {
    .dashboard-container {
        flex-direction: column;
        gap: 28px;
        padding: 0 20px;
    }

    .news-card {
        padding: 1.5rem;
        border-radius: 10px;
    }

    .news-link {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .news-link time {
        order: -1;
        font-size: 0.88em;
        color: #94a3b8;
    }

    .news-more {
        margin-top: 1.2rem;
        padding-top: 1.2rem;
    }

    .more-link {
        width: 100%;
        justify-content: center;
        padding: 14px;
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .dashboard-container {
        padding: 0 16px;
    }

    .news-card {
        padding: 1.2rem;
        box-shadow: 0 2px 12px rgba(0, 122, 138, 0.06);
    }

    .news-item {
        padding: 0.8rem;
    }

    .more-link {
        padding: 12px;
        font-size: 0.95em;
    }
}
