
/* ===== 全局基调 ===== */
*,
::before,
::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #f5f9fe;       /* 柔和底色 */
    color: #1a344d;
    line-height: 1.5;
}

a {
    text-decoration: none;
}

/* ===== 头部标题 ===== */
header h1 {
    max-width: 960px;
    margin: 0.8rem auto 0.5rem;
    font-weight: 340;
    font-size: 2.5rem;
    color: #0a3852;
    letter-spacing: -0.02em;
    padding: 0 1rem;
}

/* ===== 导航栏全新风格 · 统一卡片式细腻感 ===== */
header nav {
    display: block;
    background: linear-gradient(145deg, #006199, #004b7c); /* 微渐变增加层次 */
    box-shadow: 0 6px 14px rgba(0, 60, 100, 0.2), inset 0 1px 0 rgba(255,255,255,0.1); /* 柔和外阴影+内高光 */
    position: relative;
}

.navul {
    max-width: 960px;
    margin: 0 auto;
    padding: 1rem 0.5rem;        /* 上下留白增加呼吸感 */
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.6rem;          /* 间距现代 */
    align-items: center;
    justify-content: flex-start;   /* 保持左对齐 */
}

.navul li {
    display: inline-block;
}

.navul a {
    color: white;
    font-weight: 500;
    font-size: 1.1rem;             /* 略微放大，与卡片标题呼应 */
    padding: 0.6rem 1.2rem;         /* 增大点击区域，变为胶囊基础 */
    border-radius: 40px;             /* 圆角与卡片呼应 */
    background-color: transparent;
    transition: all 0.2s ease;
    letter-spacing: 0.2px;
    border: none;                    /* 去除下划线 */
    display: inline-block;
    line-height: 1.2;
}

/* 悬浮效果：半透明白色浮层 + 轻微放大 */
.navul a:hover {
    background-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    transform: scale(1.02);          /* 极轻微放大 */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* 激活/当前页效果可扩展（此处仅演示） */
.navul a:active {
    background-color: rgba(255, 255, 255, 0.2);
}

/* ===== 公用卡片样式 (与之前一致，微调边距) ===== */
.desc {
    max-width: 960px;
    margin: 2.2rem auto;
    border: 1px solid #dfe8f2;
    background-color: #ffffff;
    border-radius: 1.5rem;
    padding: 2rem 2.2rem;
    box-shadow: 0 15px 30px -12px rgba(0, 70, 120, 0.12);
    transition: box-shadow 0.2s, transform 0.2s;
}

.desc:hover {
    box-shadow: 0 22px 38px -14px rgba(0, 80, 130, 0.2);
}

.desc h2 {
    font-size: 1.9rem;
    font-weight: 380;
    margin: 0 0 1.4rem 0;
    border-bottom: 3px solid rgba(0, 107, 164, 0.18);
    padding-bottom: 0.6rem;
    color: #0a4b70;
    letter-spacing: -0.3px;
}

/* 实操手册双按钮 */
.subcontent {
    display: flex;
    flex-wrap: wrap;
    gap: 1.4rem;
    margin-top: 0.5rem;
}

.subcontent a {
    background: #f2f7fc;
    border: 1.8px solid rgb(0, 107, 164);
    color: rgb(0, 107, 164);
    padding: 1rem 2.4rem;
    border-radius: 60px;
    font-weight: 550;
    font-size: 1.15rem;
    transition: all 0.2s ease;
    flex: 1 1 auto;
    text-align: center;
    box-shadow: 0 6px 12px rgba(0,70,120,0.08);
}

.subcontent a:hover {
    background: rgb(0, 107, 164);
    color: white;
    border-color: rgb(0, 107, 164);
    box-shadow: 0 14px 22px -8px rgba(0,107,164,0.4);
    transform: translateY(-3px);
}

/* 拓展实例列表 */
.desc ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.desc li {
    padding: 0.7rem 1rem;
    border-radius: 14px;
    transition: background 0.2s;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    border-bottom: 1px solid #eef3f8;
}

.desc li:last-child {
    border-bottom: none;
}

.desc li:hover {
    background-color: rgba(0, 107, 164, 0.04);
}

.desc li a {
    color: #1e3a5f;
    font-weight: 460;
    padding: 0.25rem 0.5rem;
    margin-right: 1.2rem;
    border-bottom: 1px solid transparent;
    transition: color 0.15s, border-color 0.15s;
    font-size: 1.02rem;
}

.desc li a:hover {
    color: rgb(0, 107, 164);
    border-bottom: 1px solid rgb(0, 107, 164);
}

/* 保留空格视觉效果 */
.desc li a + a {
    margin-left: 0.2rem;
}

/* ===== 页脚 ===== */
footer {
    max-width: 960px;
    margin: 3.2rem auto 1.8rem;
    padding-top: 1.3rem;
    text-align: center;
    border-top: 2px solid #d0ddee;
    color: #42658b;
    font-size: 1rem;
    font-weight: 380;
}

/* 响应式优化 */
@media (max-width: 700px) {
    header h1 { font-size: 2.1rem; margin-left: 1rem; }
    .navul a { padding: 0.5rem 1rem; font-size: 1rem; }
    .desc { padding: 1.5rem; }
    .subcontent a { padding: 0.8rem 1.2rem; }
}

@media (max-width: 500px) {
    .navul { gap: 0.5rem; }
    .navul a { padding: 0.5rem 0.9rem; font-size: 0.95rem; }
}

/* 保留原始 .main 定义（未使用，仅为完整性） */
.main {
    display: flex;
    flex: 2;
    max-width: 960px;
    margin: 1em auto;
    border: rgb(0, 107, 164) solid 3px;
    border-radius: .6em;
    padding: 1em;
}
.main div { flex: 1; }
.main h2 { font-size: 1em; }
.main ul { list-style: none; padding-left: 0; }
.main li { padding: .6em; }
.main li:hover { background-color: rgba(203, 203, 204, .5); }
