:root {
    --primary: #8B1E24;
    --primary-dark: #681318;
    --primary-light: #FDF2F2;
    --accent: #1E3A8A;
    --accent-bright: #2563EB;
    --accent-light: #EFF6FF;
    --gold: #B45309;
    --gold-bg: #FEF3C7;
    --emerald: #047857;
    --bg-body: #F8FAFC;
    --bg-card: #FFFFFF;
    --text-main: #0F172A;
    --text-secondary: #334155;
    --text-muted: #64748B;
    --border: #E2E8F0;
    --radius-lg: 14px;
    --radius-md: 10px;
    --radius-sm: 6px;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 6px 20px -4px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 12px 32px -6px rgba(15, 23, 42, 0.12);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.68;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

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

img, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Top Utility Bar */
.utility-bar {
    background: #0F172A;
    color: #CBD5E1;
    font-size: 13px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.utility-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.utility-links {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.utility-links a {
    color: #E2E8F0;
}

.utility-links a:hover {
    color: #FCD34D;
}

/* Site Header */
.site-header {
    background: #FFFFFF;
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}

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

.brand-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.brand-logo-box {
    flex-shrink: 0;
    background: #FFFFFF;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    border: 1px solid #F1F5F9;
}

.brand-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.brand-text {
    min-width: 0;
}

.brand-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 0.5px;
    line-height: 1.25;
}

.brand-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 1 340px;
    width: 100%;
}

.header-search input {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    border: 1.5px solid #CBD5E1;
    border-radius: var(--radius-sm);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

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

.header-search button {
    padding: 10px 18px;
    background: var(--primary);
    color: #FFFFFF;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.header-search button:hover {
    background: var(--primary-dark);
}

/* Main Navigation */
.main-nav {
    background: linear-gradient(90deg, var(--primary) 0%, #7C191E 60%, #1E3A8A 100%);
    color: #FFFFFF;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(139, 30, 36, 0.18);
}

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

.nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    flex-wrap: wrap;
}

.nav-list li a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 13px 18px;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 15px;
    border-bottom: 3px solid transparent;
}

.nav-list li a:hover,
.nav-list li a.active {
    background: rgba(255, 255, 255, 0.14);
    border-bottom-color: #FCD34D;
    color: #FFFFFF;
}

.nav-badge {
    font-size: 11px;
    background: #F59E0B;
    color: #0F172A;
    padding: 1px 6px;
    border-radius: 99px;
    font-weight: 700;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.4);
    color: #FFFFFF;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    cursor: pointer;
    margin: 8px 0;
}

/* Top Full-Width Announcement Banner (Navigation 下方一条横幅) */
.announce-banner {
    background: linear-gradient(90deg, #FFFBEB 0%, #FEF3C7 50%, #FFFBEB 100%);
    border-bottom: 1px solid #FDE68A;
    padding: 11px 0;
}

.announce-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.announce-content {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14.5px;
    font-weight: 600;
    color: #92400E;
    min-width: 0;
}

.announce-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--primary);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 99px;
    flex-shrink: 0;
}

.announce-text {
    word-break: break-word;
}

.announce-action {
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
    white-space: nowrap;
}

/* Hero Section */
.hero-section {
    padding: 28px 0 20px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 24px;
}

.hero-main-card {
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 55%, #450A0A 100%);
    color: #FFFFFF;
    border-radius: var(--radius-lg);
    padding: 32px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 5px 14px;
    border-radius: 99px;
    font-size: 13px;
    color: #FDE68A;
    width: fit-content;
    margin-bottom: 16px;
}

.hero-main-card h2 {
    font-size: 28px;
    line-height: 1.35;
    font-weight: 800;
    margin-bottom: 14px;
    color: #FFFFFF;
}

.hero-main-card p {
    color: #CBD5E1;
    font-size: 15px;
    margin-bottom: 22px;
}

.hero-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 22px;
}

.stat-item {
    text-align: center;
}

.stat-num {
    font-size: 21px;
    font-weight: 800;
    color: #FCD34D;
    line-height: 1.2;
}

.stat-label {
    font-size: 12px;
    color: #CBD5E1;
    margin-top: 3px;
}

.hero-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #E11D48;
    color: #FFFFFF;
    padding: 11px 22px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14.5px;
}

.btn-primary:hover {
    background: #BE123C;
    color: #FFFFFF;
}

.btn-outline-light {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    color: #FFFFFF;
    padding: 11px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14.5px;
}

.btn-outline-light:hover {
    background: rgba(255,255,255,0.2);
    color: #FFFFFF;
}

/* Hero Side Stack */
.hero-side-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.side-highlight-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.side-highlight-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.archive-desc-box {
    font-size: 13.5px;
    color: var(--text-secondary);
    background: #FDFBF7;
    border-left: 3.5px solid var(--primary);
    padding: 12px 14px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    line-height: 1.65;
}

.quick-tool-pills {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 12px;
}

.tool-pill {
    display: flex;
    flex-direction: column;
    padding: 11px 12px;
    border-radius: var(--radius-sm);
    background: var(--accent-light);
    border: 1px solid #BFDBFE;
}

.tool-pill strong {
    font-size: 13.5px;
    color: var(--accent);
}

.tool-pill span {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Section Headers */
.section-block {
    padding: 24px 0;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
    gap: 12px;
    flex-wrap: wrap;
}

.section-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-accent-bar {
    width: 6px;
    height: 26px;
    background: var(--primary);
    border-radius: 3px;
}

.section-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-main);
}

.section-subtitle {
    font-size: 13.5px;
    color: var(--text-muted);
}

.section-more {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

/* Featured 3-Column News Grid */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 22px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.card-meta-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

.cat-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 700;
    color: #FFFFFF;
    background: var(--primary);
}

.card-date {
    font-size: 12.5px;
    color: var(--text-muted);
}

.article-card h3 {
    font-size: 17.5px;
    font-weight: 700;
    line-height: 1.45;
    margin-bottom: 10px;
    color: var(--text-main);
}

.article-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px dashed var(--border);
    font-size: 12.5px;
    color: var(--text-muted);
}

/* AI Smart Education Workbench */
.workbench-box {
    background: linear-gradient(180deg, #EFF6FF 0%, #FFFFFF 100%);
    border: 1.5px solid #BFDBFE;
    border-radius: var(--radius-lg);
    padding: 26px;
    box-shadow: var(--shadow-md);
}

.workbench-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.wb-tab-btn {
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid #93C5FD;
    background: #FFFFFF;
    color: var(--accent);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

.wb-tab-btn.active {
    background: var(--accent);
    color: #FFFFFF;
    border-color: var(--accent);
}

.prompt-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.prompt-card {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.prompt-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.role-tag {
    font-size: 12px;
    font-weight: 700;
    background: #DBEAFE;
    color: #1E40AF;
    padding: 2px 9px;
    border-radius: 4px;
}

.prompt-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
}

.prompt-scenario {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.prompt-code {
    background: #0F172A;
    color: #E2E8F0;
    font-size: 13px;
    padding: 12px;
    border-radius: var(--radius-sm);
    line-height: 1.55;
    margin-bottom: 12px;
    word-break: break-word;
}

.prompt-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.copy-btn {
    background: var(--accent-bright);
    color: #FFFFFF;
    border: none;
    padding: 7px 14px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.copy-btn:hover {
    background: var(--accent);
}

/* Category Dual-Column Matrix */
.cat-matrix-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.cat-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 22px;
    box-shadow: var(--shadow-sm);
}

.cat-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 2px solid #F1F5F9;
}

.cat-panel-title {
    font-size: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cat-list {
    list-style: none;
}

.cat-list li {
    padding: 10px 0;
    border-bottom: 1px dashed var(--border);
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

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

.cat-list li a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-main);
    flex: 1;
    min-width: 0;
}

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

.cat-list-date {
    font-size: 12.5px;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* Schools Showcase Grid */
.schools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.school-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-top: 4px solid var(--primary);
    border-radius: var(--radius-md);
    padding: 22px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.school-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-light);
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
    width: fit-content;
}

.school-card h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 8px;
}

.school-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.school-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

/* Responsive Table Wrapper */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 16px 0;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #FFFFFF;
    font-size: 14px;
}

th, td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    background: #F1F5F9;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
}

tr:hover td {
    background: #F8FAFC;
}

/* Inner Page Layout (2 Columns with Sidebar) */
.page-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 26px;
    padding: 28px 0;
}

.main-column {
    min-width: 0;
}

.sidebar-column {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.breadcrumb {
    font-size: 13.5px;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.article-detail-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.article-header h1 {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 14px;
    color: var(--text-main);
}

.article-meta-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13.5px;
    color: var(--text-muted);
    padding-bottom: 18px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--border);
}

.article-lead {
    background: #F8FAFC;
    border-left: 4px solid var(--primary);
    padding: 14px 18px;
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.article-body {
    font-size: 16.5px;
    line-height: 1.85;
    color: #1E293B;
}

.article-body h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    margin: 26px 0 12px;
    padding-left: 12px;
    border-left: 4px solid var(--primary);
}

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

.article-body ul, .article-body ol {
    margin: 0 0 18px 22px;
}

.article-body li {
    margin-bottom: 8px;
}

.article-callout {
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    border-left: 4px solid #D97706;
    padding: 16px;
    border-radius: var(--radius-sm);
    margin: 20px 0;
    font-size: 15px;
}

.article-body table {
    display: block;
    width: 100%;
    overflow-x: auto;
    margin: 18px 0;
}

/* Footer */
.site-footer {
    background: #0F172A;
    color: #94A3B8;
    padding: 44px 0 28px;
    margin-top: 40px;
    border-top: 4px solid var(--primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col h4 {
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 14px;
}

.footer-col p {
    font-size: 13.5px;
    line-height: 1.7;
}

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

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    font-size: 13.5px;
    color: #CBD5E1;
}

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

.footer-bottom {
    padding-top: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13.5px;
}

.beian-link {
    color: #F8FAFC;
    font-weight: 600;
    padding: 4px 10px;
    background: rgba(255,255,255,0.08);
    border-radius: 4px;
}

.beian-link:hover {
    color: #FCD34D;
}

/* Responsive Breakpoints (375px Mobile Safe) */
@media (max-width: 1024px) {
    .hero-grid,
    .page-layout {
        grid-template-columns: 1fr;
    }
    .featured-grid,
    .schools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: inline-flex;
    }
    .nav-inner {
        flex-direction: column;
        align-items: stretch;
    }
    .nav-top-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }
    .nav-list {
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        padding-bottom: 10px;
    }
    .nav-list.open {
        display: flex;
    }
    .nav-list li a {
        width: 100%;
        padding: 11px 14px;
    }
    .hero-main-card {
        padding: 20px;
    }
    .hero-main-card h2 {
        font-size: 21px;
    }
    .hero-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .featured-grid,
    .prompt-grid,
    .cat-matrix-grid,
    .schools-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .article-detail-box {
        padding: 18px;
    }
    .article-header h1 {
        font-size: 21px;
    }
    .brand-title {
        font-size: 20px;
    }
    .brand-logo {
        height: 48px;
    }
    .header-search {
        flex: 1 1 100%;
    }
}
