/**
 * MOSP 强国青年 · 统一设计规范
 * 主参考：about.html
 * 后续新页面请引入本文件：<link rel="stylesheet" href="css/mosp-design.css">
 */

/* ── 设计令牌 ── */
:root {
    /* 品牌色 */
    --mosp-green: #0A5C36;
    --mosp-green-light: #f2f8f5;
    --academic-blue: #0f2537;
    --accent-blue: #1e3d59;

    /* 背景 */
    --bg-body: #f7f9fa;
    --white: #ffffff;

    /* 文字 */
    --text-main: #333333;
    --text-body: #2d3748;
    --text-muted: #666666;
    --text-nav: #4a5568;

    /* 边框与分割 */
    --border-color: #e2e8f0;
    --border-light: #edf2f7;

    /* 页脚 */
    --footer-text: #a0aec0;
    --footer-divider: #2d3748;
    --footer-muted: #718096;

    /* 提示徽章 */
    --badge-bg: #fffaf0;
    --badge-border: #feebc8;
    --badge-text: #dd6b20;

    /* 布局 */
    --container-max: 1200px;
    --sidebar-width: 260px;
    --radius: 2px;
}

/* ── 全局重置 ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.7;
}

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

/* ── 布局容器 ── */
.inner-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* ── 顶部导航 ── */
header {
    background-color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    box-shadow:
        inset 0 -1px 0 rgba(10, 92, 54, 0.18),
        0 1px 5px rgba(0, 0, 0, 0.05);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.header-wrap {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 15px 20px;
    display: table;
    width: 100%;
}

.logo-area {
    display: table-cell;
    vertical-align: middle;
}

.logo-title {
    font-size: 22px;
    font-weight: bold;
    color: var(--mosp-green);
    letter-spacing: 1px;
}

.logo-subtitle {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links {
    display: table-cell;
    vertical-align: middle;
    text-align: right;
}

.nav-links a {
    display: inline-block;
    margin-left: 25px;
    font-size: 15px;
    color: var(--academic-blue);
    font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--mosp-green);
}

/* ── 面包屑 ── */
.breadcrumb-bar {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
    font-size: 14px;
    color: var(--text-muted);
}

.breadcrumb-bar a:hover {
    color: var(--mosp-green);
}

/* ── 两栏内页布局 ── */
.main-layout {
    max-width: var(--container-max);
    margin: 30px auto;
    padding: 0 20px;
    display: table;
    width: 100%;
    table-layout: fixed;
}

.sidebar {
    display: table-cell;
    width: var(--sidebar-width);
    vertical-align: top;
    padding-right: 30px;
}

.sidebar-box {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--mosp-green);
    border-radius: var(--radius);
    margin-bottom: 20px;
    padding: 15px 0;
}

.sidebar-title {
    font-size: 16px;
    font-weight: bold;
    color: var(--academic-blue);
    padding: 5px 20px 12px 20px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 8px;
}

.sidebar-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    color: var(--text-nav);
    border-left: 3px solid transparent;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background-color: var(--mosp-green-light);
    color: var(--mosp-green);
    border-left-color: var(--mosp-green);
    font-weight: bold;
}

.content-area {
    display: table-cell;
    vertical-align: top;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 40px;
}

.page-main-title {
    font-size: 26px;
    font-weight: bold;
    color: var(--academic-blue);
    margin-bottom: 8px;
    text-align: center;
}

.page-url-info {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 35px;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 15px;
}

/* ── 内容区块（内页） ── */
.section-block {
    margin-bottom: 35px;
}

.section-heading {
    font-size: 18px;
    font-weight: bold;
    color: var(--white);
    background-color: var(--mosp-green);
    display: inline-block;
    padding: 6px 24px;
    border-radius: var(--radius);
    margin-bottom: 18px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.05);
}

.section-text {
    font-size: 15px;
    color: var(--text-body);
    text-indent: 2em;
    text-align: justify;
    margin-bottom: 15px;
}

.quote-box {
    background-color: #fafbfc;
    border-left: 4px solid var(--mosp-green);
    padding: 15px 20px;
    margin: 20px 0;
    font-style: italic;
}

.quote-cn {
    font-size: 16px;
    color: var(--academic-blue);
    font-weight: bold;
    margin-bottom: 5px;
    font-family: Georgia, "Times New Roman", serif;
}

.quote-en {
    font-size: 13px;
    color: var(--text-muted);
}

.resource-list {
    list-style: none;
    padding-left: 10px;
    margin-top: 10px;
}

.resource-list li {
    font-size: 14px;
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
    color: var(--text-nav);
}

.resource-list li::before {
    content: "•";
    color: var(--mosp-green);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.resource-link {
    color: var(--mosp-green);
    font-weight: 500;
}

.resource-link:hover {
    text-decoration: underline;
}

.badge-info {
    display: inline-block;
    background-color: var(--badge-bg);
    border: 1px solid var(--badge-border);
    color: var(--badge-text);
    font-size: 12px;
    padding: 3px 10px;
    border-radius: var(--radius);
    margin-top: 10px;
}

/* ── 列表页板块标题（首页等） ── */
.section-header {
    border-left: 5px solid var(--mosp-green);
    padding-left: 15px;
    margin-bottom: 30px;
}

.section-title {
    font-size: 24px;
    color: var(--academic-blue);
    font-weight: 700;
}

.section-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 2px;
    letter-spacing: 1px;
}

/* ── 通用按钮 ── */
.btn-outline {
    display: inline-block;
    background-color: transparent;
    color: var(--mosp-green);
    border: 1px solid var(--mosp-green);
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-outline:hover {
    background-color: var(--mosp-green);
    color: var(--white);
}

/* ── 页脚 ── */
footer {
    background-color: var(--academic-blue);
    color: var(--footer-text);
    padding: 40px 0;
    font-size: 13px;
    border-top: 4px solid var(--mosp-green);
    margin-top: 60px;
}

footer a:hover {
    color: var(--white);
}

.footer-grid {
    display: table;
    width: 100%;
    table-layout: fixed;
}

.footer-col {
    display: table-cell;
    vertical-align: top;
    padding: 0 20px;
}

.footer-title {
    color: var(--white);
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--footer-divider);
    padding-bottom: 8px;
}

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

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

.footer-bottom {
    max-width: var(--container-max);
    margin: 30px auto 0 auto;
    padding: 20px 20px 0 20px;
    border-top: 1px solid var(--footer-divider);
    text-align: center;
    font-size: 12px;
}

.footer-muted {
    margin-top: 5px;
    color: var(--footer-muted);
    font-size: 11px;
}

/* ── 响应式 ── */
@media (max-width: 768px) {
    .header-wrap,
    .main-layout,
    .footer-grid {
        display: block !important;
        width: 100% !important;
    }

    .nav-links {
        display: block !important;
        text-align: left !important;
        margin-top: 10px;
    }

    .nav-links a {
        margin-left: 0;
        margin-right: 15px;
    }

    .sidebar {
        display: block !important;
        width: 100% !important;
        padding-right: 0;
        margin-bottom: 20px;
    }

    .content-area {
        display: block !important;
        padding: 20px !important;
    }

    .footer-col {
        display: block !important;
        width: 100% !important;
        margin-bottom: 25px;
        padding: 0;
    }
}
