/* ============================================
 * 盐城市电力施工行业协会 - 现代化样式
 * ============================================ */

/* ===== 重置 & 基础 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1565C0;
    --primary-dark: #0D47A1;
    --primary-light: #1976D2;
    --primary-lighter: #BBDEFB;
    --primary-bg: #E3F2FD;
    --accent: #FF8F00;
    --accent-light: #FFF3E0;
    --text: #1a1a1a;
    --text-secondary: #555;
    --text-light: #888;
    --border: #e0e0e0;
    --border-light: #eee;
    --bg: #f5f7fa;
    --bg-white: #fff;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 20px rgba(0,0,0,0.10);
    --radius: 8px;
    --radius-sm: 4px;
    --transition: 0.3s ease;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

a {
    color: var(--text);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--primary);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== 顶部信息栏 ===== */
.top-bar {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    padding: 6px 0;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-date {
    opacity: 0.9;
}

.top-bar-item {
    opacity: 0.9;
}

/* ===== Header / Logo 区域 ===== */
.header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 24px 0;
    position: relative;
    overflow: hidden;
}

.header::after {
    content: '';
    position: absolute;
    right: -50px;
    top: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-icon {
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

.logo-icon img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.8);
    background: #fff;
    display: block;
    transition: transform 0.3s ease;
}

.logo-area:hover .logo-icon img {
    transform: scale(1.05);
}

.logo-text h1 {
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.logo-text p {
    color: rgba(255,255,255,0.7);
    font-size: 11px;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.header-search {
    flex-shrink: 0;
}

.search-form {
    display: flex;
    background: rgba(255,255,255,0.15);
    border-radius: 24px;
    padding: 4px;
    backdrop-filter: blur(4px);
}

.search-input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 14px;
    padding: 8px 16px;
    width: 220px;
}

.search-input::placeholder {
    color: rgba(255,255,255,0.6);
}

.search-btn {
    background: #fff;
    border: none;
    border-radius: 20px;
    padding: 6px 14px;
    cursor: pointer;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.search-btn:hover {
    background: var(--accent);
    color: #fff;
}

/* ===== 导航栏 ===== */
.nav {
    background: #fff;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-list {
    list-style: none;
    display: flex;
    justify-content: center;
}

.nav-item {
    position: relative;
}

.nav-item a {
    display: block;
    padding: 16px 28px;
    color: var(--text);
    font-size: 16px;
    font-weight: 500;
    transition: all var(--transition);
    position: relative;
}

.nav-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary);
    transition: all var(--transition);
    transform: translateX(-50%);
}

.nav-item:hover a::after,
.nav-item.active a::after {
    width: 60%;
}

.nav-item:hover a {
    color: var(--primary);
    background: var(--primary-bg);
}

.nav-item.active a {
    color: var(--primary);
    font-weight: 700;
}

/* ===== Hero 轮播图 ===== */
.hero {
    position: relative;
    height: 360px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0D47A1 0%, #1565C0 30%, #1976D2 60%, #42A5F5 100%);
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 30%, rgba(255,143,0,0.15) 0%, transparent 50%);
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.2) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.hero-text {
    max-width: 650px;
}

.hero-title {
    color: #fff;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    margin-bottom: 16px;
}

.hero-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 24px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 500;
    transition: all var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.btn-primary:hover {
    background: #F57C00;
    border-color: #F57C00;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,143,0,0.4);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
    color: #fff;
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    border-radius: var(--radius);
    padding: 20px 32px;
    width: fit-content;
}

.stat-item {
    text-align: center;
    padding: 0 24px;
}

.stat-number {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}

.stat-label {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 32px;
    background: rgba(255,255,255,0.2);
}

/* ===== 快捷入口 ===== */
.quick-access {
    padding: 32px 0;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.quick-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    border: 1px solid var(--border-light);
}

.quick-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-lighter);
}

.quick-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    color: #fff;
    transition: all var(--transition);
}

.quick-icon-1 { background: linear-gradient(135deg, #1565C0, #42A5F5); }
.quick-icon-2 { background: linear-gradient(135deg, #00897B, #4DB6AC); }
.quick-icon-3 { background: linear-gradient(135deg, #F57C00, #FFB74D); }
.quick-icon-4 { background: linear-gradient(135deg, #7B1FA2, #BA68C8); }
.quick-icon-5 { background: linear-gradient(135deg, #C62828, #EF5350); }

.quick-card:hover .quick-icon {
    transform: scale(1.1);
}

.quick-label {
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
}

.quick-card:hover .quick-label {
    color: var(--primary);
}

/* ===== 主内容布局 ===== */
.main-content {
    padding: 0 0 40px;
}

.content-layout {
    display: grid;
    grid-template-columns: 260px 1fr 260px;
    gap: 24px;
}

/* ===== 面板通用样式 ===== */
.panel {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--primary-bg) 0%, #f5f9ff 100%);
    border-bottom: 3px solid var(--primary);
}

.panel-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-dark);
    position: relative;
    padding-left: 12px;
}

.panel-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    background: var(--primary);
    border-radius: 2px;
}

.panel-more {
    font-size: 12px;
    color: var(--text-light);
}

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

.panel-body {
    padding: 12px 16px;
}

/* ===== 空状态 ===== */
.empty-hint {
    text-align: center;
    padding: 24px 0;
    color: var(--text-light);
}

.empty-hint p {
    margin-top: 8px;
    font-size: 13px;
}

/* ===== 侧栏新闻列表 ===== */
.news-side-list {
    list-style: none;
}

.news-side-list li {
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.news-side-list li:last-child {
    border-bottom: none;
}

.news-side-list li a {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color var(--transition);
}

.news-side-list li a:hover {
    color: var(--primary);
}

.news-side-date {
    font-size: 11px;
    color: var(--text-light);
}

/* ===== 联系我们 ===== */
.contact-panel {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border: none;
}

.contact-panel .panel-head {
    background: rgba(255,255,255,0.15);
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.contact-panel .panel-title {
    color: #fff;
}

.contact-panel .panel-title::before {
    background: #fff;
}

.contact-body {
    padding: 20px 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    margin-bottom: 12px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item svg {
    flex-shrink: 0;
    opacity: 0.8;
}

/* ===== 中间内容区 ===== */
.content-center {
    min-width: 0;
}

.section {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 2px solid var(--primary-bg);
}

.section-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

.section-bar {
    width: 4px;
    height: 20px;
    background: var(--primary);
    border-radius: 2px;
}

.section-more {
    font-size: 13px;
    color: var(--text-light);
}

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

.section-body {
    padding: 16px 20px;
}

/* ===== 推荐新闻卡片 ===== */
.featured-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.featured-card {
    display: block;
    padding: 20px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #f8fbff 0%, #fff 100%);
    border: 1px solid var(--border-light);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.featured-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform var(--transition);
}

.featured-card:hover {
    border-color: var(--primary-lighter);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.featured-card:hover::before {
    transform: scaleY(1);
}

.featured-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 10px;
}

.tag-blue {
    background: var(--primary-bg);
    color: var(--primary);
}

.tag-green {
    background: #E8F5E9;
    color: #2E7D32;
}

.featured-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.5;
    transition: color var(--transition);
}

.featured-card:hover .featured-title {
    color: var(--primary);
}

.featured-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.featured-date {
    color: var(--text-light);
}

.featured-arrow {
    color: var(--primary);
    font-weight: 500;
    transition: transform var(--transition);
}

.featured-card:hover .featured-arrow {
    transform: translateX(4px);
}

/* ===== 新闻主列表 ===== */
.news-main-list {
    list-style: none;
}

.news-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed var(--border-light);
    transition: all var(--transition);
}

.news-item:last-child {
    border-bottom: none;
}

.news-item:hover {
    padding-left: 8px;
}

.news-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border);
    flex-shrink: 0;
    margin-right: 12px;
    transition: background var(--transition);
}

.news-item:hover .news-dot {
    background: var(--primary);
}

.news-item.is-top .news-dot {
    background: var(--accent);
}

.news-link {
    flex: 1;
    font-size: 14px;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color var(--transition);
}

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

.news-badge {
    flex-shrink: 0;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 3px;
    margin-left: 8px;
}

.news-date {
    flex-shrink: 0;
    font-size: 12px;
    color: var(--text-light);
    margin-left: 16px;
}

/* ===== 侧栏搜索 ===== */
.side-search-form {
    display: flex;
    gap: 8px;
}

.side-search-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    outline: none;
    transition: border-color var(--transition);
}

.side-search-input:focus {
    border-color: var(--primary);
}

.side-search-btn {
    padding: 8px 16px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    transition: background var(--transition);
}

.side-search-btn:hover {
    background: var(--primary-dark);
}

/* ===== 友情链接 ===== */
.link-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    padding: 0;
    margin: 0;
}

.link-list li {
    padding: 0;
}

.link-list li a {
    font-size: 13px;
    color: var(--text-secondary);
    transition: color var(--transition);
    white-space: nowrap;
}

.link-list li a:hover {
    color: var(--primary);
}

.link-list li a::before {
    content: '▸ ';
    color: var(--text-light);
}

/* ===== 页脚 ===== */
.footer {
    background: linear-gradient(135deg, #1a237e 0%, #0D47A1 100%);
    color: rgba(255,255,255,0.8);
    padding: 40px 0 0;
    margin-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    background: #fff;
    display: block;
}

.footer-logo span {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.footer-contact p {
    font-size: 13px;
    line-height: 2;
    color: rgba(255,255,255,0.7);
}

.footer-nav h4 {
    color: #fff;
    font-size: 15px;
    margin-bottom: 16px;
    font-weight: 600;
}

.footer-nav a {
    display: block;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    padding: 4px 0;
    transition: color var(--transition);
}

.footer-nav a:hover {
    color: #fff;
    padding-left: 4px;
}

.footer-qr h4 {
    color: #fff;
    font-size: 15px;
    margin-bottom: 16px;
    font-weight: 600;
}

.qr-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.qr-placeholder span {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

/* ===== Footer Grid (PHP版) ===== */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr;
    gap: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col h4 {
    color: #fff;
    font-size: 15px;
    margin-bottom: 16px;
    font-weight: 600;
}

.footer-desc {
    font-size: 13px;
    line-height: 1.8;
    color: rgba(255,255,255,0.7);
    margin-bottom: 16px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    list-style: none;
}

.footer-links a {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    transition: color var(--transition);
    white-space: nowrap;
}

.footer-links a:hover {
    color: #fff;
}

.admin-link {
    color: rgba(255,255,255,0.4);
    font-size: 11px;
    transition: color var(--transition);
}

.admin-link:hover {
    color: rgba(255,255,255,0.8);
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .content-layout {
        grid-template-columns: 240px 1fr;
    }

    .sidebar-right {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 16px;
    }

    .sidebar-right .panel {
        margin-bottom: 0;
    }

    .featured-list {
        grid-template-columns: 1fr;
    }

    .quick-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .top-bar {
        font-size: 12px;
        padding: 4px 0;
    }

    .top-bar-inner {
        flex-direction: column;
        gap: 2px;
    }

    .header-inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .logo-area {
        flex-direction: column;
        gap: 8px;
    }

    .logo-text h1 {
        font-size: 20px;
    }

    .logo-text p {
        font-size: 10px;
    }

    .search-input {
        width: 160px;
    }

    .nav-list {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .nav-item a {
        padding: 12px 16px;
        font-size: 14px;
    }

    .hero {
        height: auto;
        padding: 40px 0;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .hero-stats {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        padding: 16px;
    }

    .stat-divider {
        display: none;
    }

    .stat-item {
        padding: 8px 16px;
    }

    .content-layout {
        grid-template-columns: 1fr;
    }

    .sidebar-left,
    .sidebar-right {
        grid-column: 1;
    }

    .sidebar-right {
        display: flex;
        flex-direction: column;
    }

    .quick-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .section-name {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .quick-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .btn {
        text-align: center;
    }
}

/* ===== 动画 ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quick-card,
.section,
.panel {
    animation: fadeInUp 0.5s ease forwards;
}

.quick-card:nth-child(1) { animation-delay: 0.05s; }
.quick-card:nth-child(2) { animation-delay: 0.1s; }
.quick-card:nth-child(3) { animation-delay: 0.15s; }
.quick-card:nth-child(4) { animation-delay: 0.2s; }
.quick-card:nth-child(5) { animation-delay: 0.25s; }

/* ===== 面包屑 ===== */
.breadcrumb {
    background: linear-gradient(90deg, #f0f4f8 0%, #e8eef5 100%);
    border-bottom: 1px solid #e1e8ed;
    padding: 12px 0;
    font-size: 13px;
    color: #5a6c7d;
}

.breadcrumb a {
    color: #1a5fb4;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .sep {
    margin: 0 8px;
    color: #adb5bd;
}

/* ===== 页面布局 ===== */
.page-content {
    padding-top: 24px;
}

/* 两栏布局（栏目页/文章页/单页/下载/搜索） */
.page-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.page-layout .main-content {
    flex: 1;
    min-width: 0;
}

.page-layout .sidebar-right {
    width: 280px;
    flex-shrink: 0;
}

/* 三栏布局（首页） */
.three-col-layout {
    display: grid;
    grid-template-columns: 280px 1fr 280px;
    gap: 24px;
    align-items: flex-start;
}

.three-col-layout .sidebar-left,
.three-col-layout .sidebar-right {
    min-width: 0;
}

/* ===== 栏目菜单 ===== */
.category-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-menu li {
    border-bottom: 1px solid #eef2f7;
}

.category-menu li:last-child {
    border-bottom: none;
}

.category-menu a {
    display: block;
    padding: 12px 16px;
    color: #334155;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    position: relative;
    padding-left: 28px;
}

.category-menu a::before {
    content: '›';
    position: absolute;
    left: 12px;
    color: #94a3b8;
}

.category-menu a:hover,
.category-menu li.active a {
    background: #f1f5f9;
    color: #1a5fb4;
    padding-left: 32px;
}

.category-menu li.active a::before {
    color: #1a5fb4;
}

/* ===== 文章列表（栏目页） ===== */
.news-list-page .news-item {
    padding: 16px 0;
    border-bottom: 1px dashed #e2e8f0;
    align-items: flex-start;
}

.news-list-page .news-item:last-child {
    border-bottom: none;
}

.news-item-body {
    flex: 1;
    min-width: 0;
}

.news-summary {
    margin: 6px 0 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
}

/* ===== 文章详情页 ===== */
.article-detail {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.article-header {
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 20px;
    margin-bottom: 24px;
}

.article-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.4;
    margin-bottom: 16px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    color: #64748b;
    font-size: 13px;
}

.article-body {
    font-size: 15px;
    line-height: 1.9;
    color: #334155;
}

.article-body p {
    margin-bottom: 16px;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.article-body table td,
.article-body table th {
    border: 1px solid #e2e8f0;
    padding: 10px;
}

.article-footer {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 13px;
}

/* ===== 下载列表 ===== */
.download-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.download-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    border-bottom: 1px solid #eef2f7;
    transition: background 0.2s;
}

.download-item:hover {
    background: #f8fafc;
}

.download-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg, #1a5fb4 0%, #0d3b7a 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.download-info {
    flex: 1;
    min-width: 0;
}

.download-info h4 {
    margin: 0 0 6px 0;
    font-size: 15px;
    color: #1e293b;
}

.download-info p {
    margin: 0;
    font-size: 12px;
    color: #64748b;
}

/* ===== 空状态 ===== */
.empty-item {
    color: #94a3b8;
    text-align: center;
    padding: 24px 0;
    font-size: 14px;
}

/* ===== 管理入口 ===== */
.admin-link {
    color: rgba(255,255,255,0.6);
    font-size: 12px;
}

/* ===== 移动端菜单 ===== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ===== 搜索结果页 ===== */
#searchResults:empty + .empty-hint,
#searchEmpty {
    display: block;
}

#searchResults:not(:empty) ~ #searchEmpty {
    display: none;
}

.empty-hint {
    text-align: center;
    padding: 40px 0;
    color: #94a3b8;
    font-size: 14px;
}

/* ===== 响应式补充 ===== */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: #fff;
        box-shadow: 0 4px 16px rgba(0,0,0,0.12);
        z-index: 100;
    }

    .nav-list.open {
        display: flex;
    }

    .nav-list .nav-item {
        width: 100%;
        border-bottom: 1px solid #eef2f7;
    }

    .nav-list .nav-item a {
        padding: 14px 20px;
        justify-content: flex-start;
    }

    .header-inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .header-search {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-links {
        gap: 8px 16px;
    }

    .page-layout {
        flex-direction: column;
    }

    .sidebar-left,
    .sidebar-right {
        width: 100%;
    }

    .main-content {
        order: -1;
    }

    .three-col-layout {
        grid-template-columns: 1fr;
    }

    .article-detail {
        padding: 20px 16px;
    }

    .download-item {
        flex-wrap: wrap;
    }
}

