/* 校园环境 v2（2026-12-06）：排版优化 + 灯箱层级修复 + 吸顶偏移 */
.cp-hero {
    position: relative;
    height: 360px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: #fff; text-align: center;
    background: linear-gradient(180deg, rgba(10,12,20,.62) 0%, rgba(10,12,20,.42) 45%, rgba(10,12,20,.68) 100%),
                url('https://028.sevenit.cn/lxhs/skin/img/campus/qingyang/f-02.jpg') center/cover no-repeat;
}
.cp-hero h1 { font-size: 44px; letter-spacing: 10px; margin: 0 0 16px; font-weight: 600; }
.cp-hero p { margin: 0; font-size: 12px; letter-spacing: 6px; text-transform: uppercase; opacity: .82; }
.cp-hero__meta {
    margin-top: 16px !important;
    font-size: 13px !important; letter-spacing: 2px !important; opacity: .75 !important;
    padding-top: 16px; border-top: 1px solid rgba(255,255,255,.25);
}

/* 吸顶导航：避开 80px 固定头部 */
.cp-nav {
    position: sticky; top: 80px; z-index: 60;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid #eee;
    backdrop-filter: saturate(180%) blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,.03);
}
.cp-nav__inner { max-width: 1280px; margin: 0 auto; padding: 0 20px; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.cp-nav__inner::-webkit-scrollbar { display: none; }
.cp-nav a {
    flex: 0 0 auto; padding: 17px 15px 14px; font-size: 14px; color: #555;
    text-decoration: none; border-bottom: 3px solid transparent; white-space: nowrap; transition: .2s;
}
.cp-nav a:hover { color: #C00000; }
.cp-nav a.active { color: #C00000; border-bottom-color: #C00000; font-weight: 600; }
.cp-nav__back { color: #C00000 !important; font-weight: 600; }

.cp-wrap { max-width: 1280px; margin: 0 auto; padding: 0 20px 56px; }
.cp-sec { padding-top: 72px; scroll-margin-top: 150px; }
.cp-sec:first-child { padding-top: 56px; }
.cp-sec__head {
    display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 18px;
    padding-bottom: 18px; margin-bottom: 18px;
    border-bottom: 1px solid #ececec;
}
.cp-sec__no { font-family: Georgia, "Times New Roman", serif; font-size: 44px; line-height: .9; color: #C00000; opacity: .92; }
.cp-sec__name { font-size: 27px; font-weight: 600; color: #16181d; margin: 0; letter-spacing: .5px; }
.cp-sec__addr { font-size: 13px; color: #8a8a86; display: inline-flex; align-items: center; gap: 6px; }
.cp-sec__count { margin-left: auto; font-size: 12px; color: #b0ada6; letter-spacing: 1px; }
.cp-sec__desc { font-size: 14px; line-height: 1.95; color: #6b6862; margin: 0 0 26px; max-width: 880px; }

.cp-grid { columns: 3; column-gap: 18px; }
.cp-item {
    break-inside: avoid; margin: 0 0 18px; border-radius: 12px; overflow: hidden;
    background: #f3f3f1; position: relative; cursor: zoom-in;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.cp-item img { display: block; width: 100%; height: auto; transition: transform .55s cubic-bezier(.2,.7,.3,1); }
.cp-item:hover img { transform: scale(1.035); }
.cp-item::after {
    content: attr(data-name);
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 26px 14px 12px;
    font-size: 12px; letter-spacing: 1px; color: #fff;
    background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.55));
    opacity: 0; transition: .3s;
}
.cp-item:hover::after { opacity: 1; }

.cp-grid--strip { columns: auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.cp-grid--strip .cp-item { margin: 0; height: 320px; }
.cp-grid--strip .cp-item img { height: 100%; object-fit: cover; }

.cp-more { text-align: center; margin: 22px 0 0; }
.cp-more button {
    border: 1px solid #ddd; background: #fff; color: #555; border-radius: 22px;
    padding: 11px 28px; font-size: 14px; cursor: pointer; transition: .2s;
}
.cp-more button:hover { border-color: #C00000; color: #C00000; }

.cp-foot { background: #faf9f7; border-top: 1px solid #eee; padding: 60px 20px; text-align: center; }
.cp-foot h3 { font-size: 22px; margin: 0 0 10px; color: #16181d; }
.cp-foot p { color: #8a8a86; font-size: 14px; margin: 0 0 22px; }
.cp-foot a.btn { display: inline-block; background: #C00000; color: #fff; text-decoration: none; padding: 12px 36px; border-radius: 26px; font-size: 14px; }

/* 灯箱：必须高于固定头部（header z-index 1000） */
.cp-lb { position: fixed; inset: 0; z-index: 99999; background: rgba(8,8,12,.95); display: none; align-items: center; justify-content: center; }
.cp-lb.open { display: flex; }
.cp-lb img { max-width: 92vw; max-height: 84vh; object-fit: contain; border-radius: 4px; box-shadow: 0 20px 60px rgba(0,0,0,.55); }
.cp-lb__bar { position: absolute; left: 0; right: 0; bottom: 26px; text-align: center; color: #ddd; font-size: 13px; letter-spacing: 1px; }
.cp-lb__btn {
    position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px;
    border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 22px;
    cursor: pointer; display: flex; align-items: center; justify-content: center; transition: .2s; z-index: 2;
}
.cp-lb__btn:hover { background: rgba(255,255,255,.28); }
.cp-lb__prev { left: 26px; }
.cp-lb__next { right: 26px; }
.cp-lb__close { position: absolute; top: 24px; right: 28px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 20px; cursor: pointer; z-index: 2; }
.cp-lb__close:hover { background: rgba(255,255,255,.28); }

@media (max-width: 1100px) { .cp-grid { columns: 2; } }
@media (max-width: 640px) {
    .cp-hero { height: 240px; } .cp-hero h1 { font-size: 27px; letter-spacing: 4px; }
    .cp-grid { columns: 1; } .cp-sec { padding-top: 48px; } .cp-sec__no { font-size: 32px; }
    .cp-sec__name { font-size: 20px; } .cp-lb__prev { left: 8px; } .cp-lb__next { right: 8px; }
    .cp-nav { top: 64px; }
}
