/* ===============================
   全局变量
================================ */
:root {
    --primary: #003366;
    --accent: #C0A062;
    --bg-light: #F8FAFC;
    --text-dark: #1E293B;
    --text-gray: #64748B;
    --white: #FFFFFF;
}

/* ===============================
   基础重置
================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    color: var(--text-dark);
    line-height: 1.8;
    overflow-x: hidden;
}

/* ===============================
   顶部通知栏
================================ */
.top-bar {
    background: var(--primary);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.85rem;
    text-align: center;
}

/* ===============================
   导航栏
================================ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

 
.logo img {
    max-height: 50px;
    max-width: 50px;
    object-fit: contain;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;   /* 关键：两行左边严格对齐 */
    justify-content: center;
    line-height: 1.2;
}

.cn-name,
.en-name {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-dark);
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.cn-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
}

.en-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* 导航菜单 */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
}

.nav-link.active {
    color: var(--primary);
}

/* ===============================
   通用布局
================================ */
section {
    padding: 100px 0;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===============================
   ✅ Footer（已合并优化版）
================================ */

footer {
    background: #0a2b3e;  /* 保留你原来的高级深蓝 */
    color: #e0edf5;
    padding: 48px 0 24px;
    font-size: 14px;
}

/* 网格 */
.footer-grid {
    display: grid;
     grid-template-columns: 1.25fr 1fr 1fr 1fr; 
    gap: 40px;
    margin-bottom: 48px;
}

/* logo区 */
.footer-logo {
	white-space: nowrap;      /* 👈 不换行 */ 
    text-overflow: ellipsis;  /* 超出显示 ... */
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
}

/* 标题 */
.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #fff;
}

/* 文本 */
.footer-col p {
    color: #bcd0df;
    font-size: 0.85rem;
}

/* 链接 */
.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #cbdde9;
    text-decoration: none;
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: #f5b042;
}

/* ===============================
   🔥 备案区（重点优化）
================================ */

.copyright {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 24px;
    text-align: center;
    font-size: 0.8rem;
    color: #9bb7cc;
}

.copyright p {
    display: inline-flex;
    justify-content: center;
    align-items: center;

    /* PC一行 */
    flex-wrap: nowrap;
    white-space: nowrap;

    gap: 16px;
}

/* 备案链接 */
.icp-link,
.gongan-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: #cbdde9;
    text-decoration: none;

    /* 🔥 对齐修复 */
    vertical-align: middle;
    position: relative;
    top: -1px;
}

.icp-link:hover,
.gongan-link:hover {
    color: #f5b042;
}

/* 图标对齐 */
.icp-link img,
.gongan-link img {
    display: inline-block;
    vertical-align: middle;
}

.copyright-text {
    display: inline-flex;
    align-items: center;

    /* 和备案保持一致 */
    position: relative;
    top: -1px;   /* 可微调：-0.5px / -2px */
}

/* ===============================
   📱 响应式
================================ */

@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: white;
        flex-direction: column;
        align-items: center;
        padding-top: 60px;
        transition: 0.3s;
    }

    .nav-menu.active {
        left: 0;
    }
}

@media (max-width: 680px) {

    .footer-grid {
        gap: 32px;
    }

    .copyright p {
        flex-wrap: wrap;
        white-space: normal;
        gap: 8px 12px;
    }
}