/* ===== 顶部导航容器 ===== */
.logo{
    text-align: center;
}

.logo img{
    width: 75%;
    height: auto;
    display: block;
}

.navbar {
    background: linear-gradient(135deg, #297fb9, #2269ac);
    padding: 0 2rem;
    height: 70px;
    display: flex;
    align-items: center;
    gap: 12px;
    /* 子元素间距 */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* ===== 汉堡按钮（默认隐藏，移动端显示） ===== */
.hamburger {
    display: none;
    /* 桌面隐藏 */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
    flex-shrink: 0;
    z-index: 1001;
    /* 保证在菜单之上 */
    transition: transform 0.3s ease;
}

.hamburger .line {
    display: block;
    width: 100%;
    height: 3px;
    background: #f1f5f9;
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* 汉堡 → 叉号动画 */
.hamburger.active .line:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
}

.hamburger.active .line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active .line:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
}

/* ===== Logo / 品牌 ===== */
.navbar .brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.navbar .brand svg {
    width: 30px;
    height: 30px;
    fill: #38bdf8;
}

.navbar .brand span {
    background: linear-gradient(135deg, #38bdf8, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== 导航菜单（PC 水平排列） ===== */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    flex: 1;
    /* 占据剩余空间，辅助居中 */
    justify-content: center;
    transition: all 0.3s ease;
}

.nav-menu li a {
    display: block;
    padding: 8px 18px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    transition: background 0.25s, color 0.25s;
    position: relative;
    white-space: nowrap;
}

.nav-menu li a:hover {
    background: rgba(56, 189, 248, 0.15);
    color: #fff;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 4px;
    width: 0;
    height: 2px;
    background: #38bdf8;
    transition: width 0.3s, left 0.3s;
    border-radius: 2px;
}

.nav-menu li a:hover::after {
    width: 60%;
    left: 20%;
}

.nav-menu li a.active {
    color: #fff;
    background: rgba(56, 189, 248, 0.2);
}

.nav-menu li a.active::after {
    width: 60%;
    left: 20%;
}

/* ===== 右侧「使用说明」白框 ===== */
.user-img{
    display: inline-block;
    width: 30px;
    height: 30px;
    background-image: url(../images/icon.png);
    background-repeat: no-repeat;
    vertical-align: middle;
    margin-top: -10px;
    margin-right: 5px;
}
.help-box {
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    white-space: nowrap;
    flex-shrink: 0;
    cursor: default;
    z-index: 1000;
    /* 在移动端覆盖在菜单之上 */
    letter-spacing: 0.3px;
    transition: all 0.2s;
}

.help-box a{
    color: white;
}

.help-box:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    background: #f8fafc;
}

/* ===== 移动端遮罩 ===== */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.overlay.show {
    opacity: 1;
}

/* ===== 页面主体内容 ===== */
.main-content {
    flex: 1;
    padding: 2rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.main-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.main-content p {
    color: #334155;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.main-content .zllike{
    font: 14px/20px Helvetica Neue,Helvetica,PingFang SC,\5FAE\8F6F\96C5\9ED1,Tahoma,Arial,sans-serif;
    margin-bottom: 10px;
}

.main-content .zllike a{
    color: #ffffff;
    background-color: #2980b9;
    padding: 5px 10px;
    margin-right: 10px;
}

/* 详细信息列表样式 */
.main-content .info{
    font: 14px/20px Helvetica Neue,Helvetica,PingFang SC,\5FAE\8F6F\96C5\9ED1,Tahoma,Arial,sans-serif;
    color: #666;
}

.main-content .info dl{
    display: flex;
    height: 40px;
    
    border-bottom: 1px solid #d4e6f1;
}


.main-content .info dl:first-child{
    
    border-top: 2px solid #d4e6f1;
}

.main-content .info dt{
    width: 120px;
    line-height: 40px;
    font-weight: 700;
}

.main-content .info dd{
    line-height: 40px;
    white-space: nowrap;      /* 强制不换行 */
    overflow: hidden;         /* 超出部分隐藏 */
    text-overflow: ellipsis;  /* 显示省略号 */
}

/* 摘要样式 */

.main-content .intro{    
    font: 14px/20px Helvetica Neue,Helvetica,PingFang SC,\5FAE\8F6F\96C5\9ED1,Tahoma,Arial,sans-serif;
    color: #666;
}

.main-content .intro dl{
    margin-top: 20px;
    border-top: 1px solid #d4e6f1;
    border-bottom: 2px solid #d4e6f1;
}

.main-content .intro dt{
    float: left;
    font-weight: 700;
}

/* 摘要附图样式 */
.main-content .intro-pic{        
    font: 14px/20px Helvetica Neue,Helvetica,PingFang SC,\5FAE\8F6F\96C5\9ED1,Tahoma,Arial,sans-serif;
    color: #666;
}

.main-content .intro-pic dt{
    font-weight: 700;
    margin-bottom: 10px;
}

.main-content .intro-pic dd{
    width: 100%;
    border: 1px solid #d4e6f1;
    text-align: center;
    background-color: white;
}

/* 版权信息样式 */
.main-content .copyright{
    margin-top: 30px;
    text-align: center;
    font-size: 0.9rem;
}

.main-content .copyright a{
    margin: 0 10px;
    color: #2980b9;
}

.main-content .copyright a:first-child{
    padding-right: 20px;
    border-right: 1px solid #d4e6f1;
}

/* 网站信息样式 */
.main-content .site{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    color: #666;
}

.main-content .site div{
    font-size: 0.8rem;
}

.main-content .card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.main-content .card {
    background: #fff;
    padding: 1.8rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #e9edf4;
    transition: transform 0.2s, box-shadow 0.2s;
}

.main-content .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.main-content .card h3 {
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.main-content .card p {
    color: #475569;
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ============================================================
                   响应式：移动端 (宽度 ≤ 768px)
                   ============================================================ */
@media (max-width: 768px) {
    .navbar {
        padding: 0 1.25rem;
        height: 64px;
        gap: 8px;
    }

    /* 显示汉堡（左侧） */
    .hamburger {
        display: flex;
        order: 1;
    }

    /* 品牌紧随汉堡 */
    .navbar .brand {
        font-size: 1.2rem;
        order: 2;
        margin-right: auto;
        /* 将 help-box 推到右侧 */
        ;
    }

    .navbar .brand svg {
        width: 26px;
        height: 26px;
    }

    /* 使用说明白框（右侧） */
    .help-box {
        order: 3;
        font-size: 0.75rem;
        padding: 4px 14px;
        border-radius: 30px;
    }

    /* 导航菜单 → 侧滑面板（从右侧滑入） */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        /* 隐藏 */
        width: 280px;
        max-width: 75vw;
        height: 100vh;
        background: #1e293b;
        flex-direction: column;
        justify-content: flex-start;
        padding: 80px 1.5rem 2rem;
        gap: 6px;
        box-shadow: -8px 0 30px rgba(0, 0, 0, 0.4);
        transition: right 0.35s cubic-bezier(0.22, 1, 0.36, 1);
        overflow-y: auto;
        z-index: 999;
        border-radius: 0;
        /* 覆盖 PC 的 flex 属性 */
        flex: none;
        /* 取消 flex:1 */
        align-items: stretch;
        /* 让 li 撑满 */
        ;
    }

    .nav-menu.open {
        right: 0;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu li a {
        display: block;
        padding: 12px 16px;
        width: 100%;
        color: #e2e8f0;
        font-size: 1.05rem;
        border-radius: 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
        white-space: normal;
    }

    .nav-menu li a:hover {
        background: rgba(56, 189, 248, 0.12);
        color: #fff;
    }

    .nav-menu li a::after {
        display: none;
        /* 移动端去掉下划线动画 */
        ;
    }

    .nav-menu li a.active {
        background: rgba(56, 189, 248, 0.18);
        color: #fff;
    }

    /* 遮罩显示 */
    .overlay.show {
        display: block;
    }

    /* 禁止 body 滚动 */
    body.no-scroll {
        overflow: hidden;
    }
}

/* ===== 小屏手机优化 (≤ 480px) ===== */
@media (max-width: 480px) {
    .navbar {
        padding: 0 1rem;
        height: 58px;
        gap: 6px;
    }

    .navbar .brand {
        font-size: 1rem;
    }

    .navbar .brand svg {
        width: 22px;
        height: 22px;
    }

    .help-box {
        font-size: 0.7rem;
        padding: 3px 10px;
    }

    .nav-menu {
        width: 260px;
        padding: 70px 1rem 1.5rem;
    }

    .nav-menu li a {
        font-size: 0.95rem;
        padding: 10px 14px;
    }

    .main-content {
        padding: 1.5rem 1rem;
    }

    .main-content h1 {
        font-size: 1.8rem;
    }
}