@charset "UTF-8";

/* ==========================================================================
   1. 基础重置与背景图层树（GPU渲染提速）
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #080808;
    color: white;
    overflow: hidden;
}

body::before {
    content: '';
    position: fixed;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, #7b3cff55 0%, transparent 70%);
    top: -300px;
    right: -200px;
    z-index: -1;
}

body::after {
    content: '';
    position: fixed;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, #9c4dff33 0%, transparent 70%);
    bottom: -300px;
    left: -200px;
    z-index: -1;
}

/* 全屏过渡主容器：硬件加速位移，消灭延迟 */
.main-container {
    width: 100%;
    height: 100vh;
    position: relative;
    will-change: transform;
    transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-page {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 100px 8% 40px 8%;
}

.section-title {
    font-size: 50px;
    margin-bottom: 30px;
    text-align: center;
}

/* ==========================================================================
   2. 顶部导航与全屏联动圆点
   ========================================================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    padding: 0 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(20px);
    background: rgba(0, 0, 0, .3);
    border-bottom: 1px solid rgba(255, 255, 255, .05);
    z-index: 999;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
}

.menu {
    display: flex;
    gap: 30px;
}

.menu a {
    text-decoration: none;
    color: white;
    opacity: .8;
    transition: .3s;
    cursor: pointer;
}

.menu a:hover, .menu a.active {
    color: #9d5cff;
    opacity: 1;
}

.fullscreen-dots {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 999;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover, .dot.active {
    background: #9d5cff;
    transform: scale(1.3);
    box-shadow: 0 0 15px #9d5cff;
}

/* ==========================================================================
   3. 首页 Hero 首屏区域
   ========================================================================== */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-top {
    font-size: 14px;
    letter-spacing: 8px;
    color: #8b72d9;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 120px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 30px;
    background: linear-gradient(90deg, #6ea8ff, #9d5cff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-tag-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 25px;
}

.tag-left-column {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-job-title {
    font-size: 24px;
    color: #c9c9c9;
    letter-spacing: 1px;
    line-height: 1.2;
}

.hero-team-leader {
    font-size: 15px;
    color: #8b72d9;
    opacity: 0.85;
    margin-top: 8px;
    letter-spacing: 1.5px;
    font-weight: 500;
}

.tag-right-skills {
    font-size: 24px;
    color: #c9c9c9;
    letter-spacing: 1px;
    line-height: 1.2;
    white-space: nowrap;
}

.hero-year {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
    letter-spacing: 3px;
}

.hero-btn {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 18px 35px;
    border: 1px solid rgba(157, 92, 255, .4);
    border-radius: 999px;
    text-decoration: none;
    color: white;
    transition: .4s;
    backdrop-filter: blur(20px);
    cursor: pointer;
}

.hero-btn:hover {
    transform: translateY(-5px);
    background: rgba(157, 92, 255, .1);
    box-shadow: 0 0 40px rgba(157, 92, 255, .3);
}

.hero-btn div:first-child {
    line-height: 1.6;
    font-size: 14px;
    text-align: left;
}

.arrow {
    font-size: 48px;
    font-weight: 300;
}

/* ==========================================================================
   4. 主页作品展示区域（严格横向顺序 Grid 瀑布流）
   ========================================================================== */
#works {
    justify-content: flex-start;
}

.works-scroll-wrapper {
    width: 100%;
    height: calc(100vh - 200px);
    overflow-y: auto;
    padding-right: 10px;
    scroll-behavior: smooth;
}

.works-scroll-wrapper::-webkit-scrollbar {
    width: 6px;
}

.works-scroll-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.01);
}

.works-scroll-wrapper::-webkit-scrollbar-thumb {
    background: rgba(157, 92, 255, 0.3);
    border-radius: 10px;
}

.works-scroll-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(157, 92, 255, 0.6);
}

.works-layout {
    display: block;
    width: 100%;
    position: relative;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 35px;
    justify-content: center;
}

.filter-btn {
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 500;
    min-width: 150px;
    height: 52px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .08);
    backdrop-filter: blur(20px);
    border-radius: 999px;
    cursor: pointer;
    transition: .35s;
    color: #fff;
}

.filter-btn:hover, .filter-btn.active {
    background: #7b3cff;
    border-color: #7b3cff;
    box-shadow: 0 10px 30px rgba(123, 60, 255, .4);
}

.gallery-wrapper {
    position: relative;
    width: 100%;
    transition: all 0.4s ease;
}

.gallery-wrapper--limit {
    height: 680px;
    overflow: hidden;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 16px;
    row-gap: 16px;
    align-items: start;
    width: 100%;
}

.card {
    grid-column-end: span 1;
    overflow: hidden;
    border-radius: 24px;
    transition: .4s;
    cursor: pointer;
    background: rgba(255, 255, 255, .03);
    backdrop-filter: blur(20px);
    position: relative;
    margin-bottom: 0px;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(123, 60, 255, .3);
}

.card--hidden {
    display: none !important;
}

.card img {
    width: 100%;
    height: auto;
    object-fit: unset;
    border-radius: 24px;
    display: block;
}

@supports (grid-template-rows: masonry) {
    .gallery {
        grid-template-rows: masonry;
    }
}

@supports not (grid-template-rows: masonry) {
    .gallery {
        display: flex;
        flex-wrap: wrap;
    }
    .card {
        width: calc(25% - 12px);
        margin-bottom: 16px;
    }
}

.load-more-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 260px;
    background: linear-gradient(to top, #080808 30%, rgba(8, 8, 8, 0.95) 60%, transparent 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 35px;
    pointer-events: none;
    z-index: 15;
}

.load-more-btn {
    position: relative;
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 45px;
    font-size: 15px;
    font-weight: 500;
    color: #ffffff;
    background: rgba(157, 92, 255, 0.15);
    border: 1px solid rgba(157, 92, 255, 0.4);
    border-radius: 999px;
    cursor: pointer;
    transition: .3s all ease;
    backdrop-filter: blur(10px);
}

.load-more-btn:hover {
    background: #7b3cff;
    border-color: #7b3cff;
    box-shadow: 0 10px 30px rgba(123, 60, 255, 0.5);
    transform: translateY(-3px);
}

/* ==========================================================================
   5. 无损超清大图预览灯箱（Lightbox）
   ========================================================================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 4, 4, 0.99);
    backdrop-filter: blur(30px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: grab;
    user-select: none;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
}

.lightbox-wrapper:active {
    cursor: grabbing;
}

.lightbox-img {
    position: absolute;
    max-width: none !important;
    max-height: none !important;
    border-radius: 0px !important;
    box-shadow: 0 30px 150px rgba(0, 0, 0, 1);
    transform: translate3d(0px, 0px, 0px) scale(1);
    will-change: transform;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 44px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: 0.3s;
    user-select: none;
    z-index: 10006;
}

.lightbox-close:hover {
    color: #9d5cff;
    transform: rotate(90deg);
}

.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    font-size: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 10005;
    user-select: none;
}

.lightbox-nav-btn:hover {
    background: #7b3cff;
    border-color: #7b3cff;
    color: #ffffff;
    box-shadow: 0 0 35px rgba(123, 60, 255, 0.7);
}

.lightbox-prev {
    left: 40px;
}

.lightbox-next {
    right: 40px;
}

.lightbox-top-info {
    position: fixed;
    top: 30px;
    left: 40px;
    z-index: 10006;
    pointer-events: none;
}

.lightbox-top-info-inner {
    display: inline-flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 22px 18px 20px;
    background: rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
}

.lightbox-category-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    line-height: 1;
}

.lightbox-category-tag::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 15px;
    background: linear-gradient(180deg, #9d5cff, #6ea8ff);
    border-radius: 2px;
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(157, 92, 255, 0.9);
}

.lightbox-status-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10006;
    pointer-events: none;
}

.lightbox-scale-badge {
    background: rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-bottom: none;
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 26px 10px 26px;
    border-radius: 12px 12px 0 0;
    font-family: monospace;
    letter-spacing: 2.5px;
    white-space: nowrap;
}

.lightbox-counter-bar {
    position: fixed;
    bottom: 30px;
    right: 40px;
    z-index: 10006;
    pointer-events: none;
}

.lightbox-counter {
    background: rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: 10px;
    font-family: monospace;
    letter-spacing: 2px;
}

.lightbox-tip {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.6);
    padding: 6px 18px;
    border-radius: 99px;
    z-index: 10003;
}

/* ==========================================================================
   6. 关于我、工作经历、联系方式等内容 Section
   ========================================================================== */
.about-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.about-out-title {
    font-size: 50px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 35px;
    background: linear-gradient(180deg, #ffffff 0%, #b3b3b3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-container-box {
    width: 100%;
    max-width: 1140px;
    background: rgba(255, 255, 255, .02);
    padding: 60px 80px;
    border-radius: 30px;
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, .04);
    display: flex;
    gap: 80px;
    align-items: center;
    text-align: left;
}

.about-avatar-box {
    flex-shrink: 0;
    width: 320px;
    height: 320px;
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.6) 0%, rgba(15, 15, 15, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.6);
}

.about-avatar-placeholder {
    font-size: 72px;
    font-weight: 800;
    letter-spacing: -2px;
    color: rgba(157, 92, 255, 0.15);
    user-select: none;
}

.about-content {
    flex-grow: 1;
}

.about-header-group {
    position: relative;
    margin-bottom: 28px;
}

.about-main-title {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 2px;
    line-height: 1.2;
}

.about-sub-title {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-top: 6px;
}

.about-title-line {
    width: 60px;
    height: 3px;
    background: #9d5cff;
    margin-top: 14px;
    border-radius: 2px;
}

.about-core-text {
    font-size: 19px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 30px;
    font-weight: 400;
}

.about-core-text strong {
    font-weight: 700;
    color: #ffffff;
    border-bottom: 2px solid #9d5cff;
    padding-bottom: 2px;
    margin: 0 2px;
}

.about-points-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    list-style: none;
}

.about-point-item {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
}

.about-point-dot {
    width: 7px;
    height: 7px;
    background-color: #9d5cff;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 10px #9d5cff;
}

.experience-list {
    width: 100%;
    max-width: 1140px;
    margin: auto;
    display: flex;
    gap: 35px;
    justify-content: center;
    align-items: stretch;
}

.experience-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 50px 45px;
    background: rgba(255, 255, 255, .04);
    border-radius: 30px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, .05);
    transition: .3s;
}

.experience-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(123, 60, 255, .25);
}

.exp-header-center {
    text-align: center;
    width: 100%;
    margin-bottom: 30px;
}

.company-name {
    font-size: 16px;
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.year {
    font-size: 24px;
    font-weight: 700;
    color: #9d5cff;
    letter-spacing: 2px;
    margin-bottom: 14px;
}

.job h3 {
    font-size: 26px;
    color: #ffffff;
    font-weight: 700;
}

.exp-sub-title {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    margin-left: 6px;
    font-weight: 400;
}

.biz-summary {
    font-size: 14px;
    line-height: 1.6;
    color: #8b72d9;
    background: rgba(139, 114, 217, 0.08);
    padding: 14px 20px;
    border-radius: 12px;
    margin-bottom: 28px;
    border: 1px solid rgba(139, 114, 217, 0.15);
    text-align: left;
}

.duty-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
}

.duty-list li {
    font-size: 14px;
    line-height: 1.75;
    color: #bbb;
    position: relative;
    padding-left: 20px;
}

.duty-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #9d5cff;
    font-weight: bold;
    font-size: 16px;
    top: -1px;
}

.contact-container {
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.contact-card {
    width: 100%;
    padding: 50px 60px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 30px;
    backdrop-filter: blur(20px);
    text-align: center;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 100px;
    flex-wrap: nowrap;
    margin-bottom: 40px;
}

.contact-item span {
    display: block;
    font-size: 14px;
    color: #888;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
}

.contact-item p {
    font-size: 22px;
    color: #ffffff;
    font-weight: 500;
    text-align: center;
}

.back-to-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 35px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    color: #ffffff;
    text-decoration: none;
    border: 1px solid rgba(157, 92, 255, 0.4);
    border-radius: 999px;
    background: rgba(157, 92, 255, 0.15);
    cursor: pointer;
    transition: .4s ease;
    backdrop-filter: blur(10px);
}

.back-to-top:hover {
    transform: translateY(-5px);
    background: rgba(157, 92, 255, 0.25);
    border-color: rgba(157, 92, 255, 0.8);
    box-shadow: 0 0 40px rgba(157, 92, 255, 0.4);
}

.footer {
    text-align: center;
    color: #666;
}

/* ==========================================================================
   7. 分类大画册弹窗核心样式（高性能按需解码与GPU图层提速）
   ========================================================================== */
.category-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    pointer-events: none;
    transition: background 0.3s cubic-bezier(0.16, 1, 0.3, 1), backdrop-filter 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-modal.active {
    background: rgba(3, 3, 4, 0.93);
    backdrop-filter: blur(35px);
    -webkit-backdrop-filter: blur(35px);
    pointer-events: auto;
}

.cm-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0 60px;
}

.cm-panel {
    width: 100%;
    max-width: 1600px;
    height: 90vh;
    background: rgba(13, 11, 22, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.97) translateY(10px);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.95), 0 0 60px rgba(123, 60, 255, 0.2);
}

.category-modal.active .cm-panel {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.cm-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 36px;
    display: none;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10002;
    user-select: none;
}

.category-modal.active .cm-nav-btn {
    display: flex;
}

.cm-nav-btn:hover {
    background: #7b3cff;
    border-color: #7b3cff;
    color: #ffffff;
    box-shadow: 0 0 35px rgba(123, 60, 255, 0.7);
    transform: translateY(-50%) scale(1.08);
}

.cm-prev {
    left: 15px;
}

.cm-next {
    right: 15px;
}

.cm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 26px 45px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.35);
    flex-shrink: 0;
}

.cm-title-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cm-title-bar {
    display: inline-block;
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, #9d5cff, #6ea8ff);
    border-radius: 2px;
    box-shadow: 0 0 12px rgba(157, 92, 255, 0.8);
    flex-shrink: 0;
}

.cm-title {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
}

.cm-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 2px;
    font-weight: 400;
    margin-left: 6px;
}

.cm-close {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s;
    line-height: 1;
    user-select: none;
}

.cm-close:hover {
    color: #fff;
    background: #7b3cff;
    border-color: #7b3cff;
    transform: rotate(90deg);
    box-shadow: 0 0 15px rgba(123, 60, 255, 0.5);
}

.cm-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 28px;
    row-gap: 28px;
    align-items: start;
    padding: 40px 45px;
    overflow-y: auto;
}

.cm-grid::-webkit-scrollbar {
    width: 6px;
}

.cm-grid::-webkit-scrollbar-track {
    background: transparent;
}

.cm-grid::-webkit-scrollbar-thumb {
    background: rgba(157, 92, 255, 0.3);
    border-radius: 10px;
}

.cm-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(157, 92, 255, 0.6);
}

.cm-thumb {
    grid-column-end: span 1;
    display: block;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s;
    position: relative;
    margin-bottom: 0px;
    content-visibility: auto;
}

.cm-thumb:hover {
    transform: translateY(-6px);
    border-color: rgba(157, 92, 255, 0.5);
    box-shadow: 0 20px 45px rgba(123, 60, 255, 0.4);
}

.cm-thumb img {
    width: 100%;
    height: auto;
    object-fit: unset;
    display: block;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateZ(0);
}

.cm-thumb:hover img {
    transform: scale(1.03);
}

@media (min-resolution: 2dppx) {
    .cm-thumb img {
        backface-visibility: hidden;
    }
}

/* ==========================================================================
   8. 核心差异化处理（普通品类3列居中对齐 vs 详情品类4列全吸顶流动）
   ========================================================================== */
@supports (grid-template-rows: masonry) {
    .cm-grid {
        grid-template-rows: masonry;
    }
}

@supports not (grid-template-rows: masonry) {
    .cm-grid {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }

    .cm-thumb {
        width: calc(33.33% - 19px);
        margin-bottom: 24px;
    }

    .cm-grid[data-current="detail"] {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-auto-flow: row dense;
        align-items: start;
    }

    .cm-grid[data-current="detail"] .cm-thumb {
        width: 100%;
        margin-bottom: 0px;
    }
}

/* ==========================================================================
   9. 高级响应式媒体查询适配与断点同步（100%向下兼容）
   ========================================================================== */
@media(max-width:1500px) {
    .cm-grid {
        column-gap: 20px;
        row-gap: 20px;
        padding: 30px;
    }
    .cm-panel {
        max-width: 92%;
    }
    @supports not (grid-template-rows: masonry) {
        .cm-thumb {
            width: calc(33.33% - 14px);
        }
        .cm-grid[data-current="detail"] {
            grid-template-columns: repeat(4, 1fr);
        }
    }
}

@media(max-width:1400px) {
    .gallery {
        grid-template-columns: repeat(3, 1fr);
    }
    @supports not (grid-template-rows: masonry) {
        .card {
            width: calc(33.33% - 11px);
        }
    }
}

@media(max-width:1200px) {
    .about-container-box {
        padding: 45px;
        gap: 40px;
    }
    .about-avatar-box {
        width: 260px;
        height: 260px;
    }
    .experience-list {
        gap: 20px;
        padding: 0 20px;
    }
}

@media(max-width:1100px) {
    .cm-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    @supports not (grid-template-rows: masonry) {
        .cm-thumb {
            width: calc(50% - 10px);
        }
        .cm-grid[data-current="detail"] {
            grid-template-columns: repeat(3, 1fr);
        }
    }
}

@media(max-width:900px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    @supports not (grid-template-rows: masonry) {
        .card {
            width: calc(50% - 8px);
        }
    }
    .about-container-box {
        flex-direction: column;
        text-align: center;
        padding: 40px 30px;
    }
    .about-avatar-box {
        width: 200px;
        height: 200px;
        border-radius: 30px;
    }
    .about-avatar-placeholder {
        font-size: 52px;
    }
    .about-title-line {
        margin: 14px auto 0 auto;
    }
    .about-point-item {
        justify-content: center;
    }
    .experience-list {
        flex-direction: column;
        align-items: center;
    }
    .experience-card {
        width: 100%;
        max-width: 600px;
    }
    .cm-stage {
        padding: 0 15px;
    }
    .cm-nav-btn {
        width: 48px;
        height: 48px;
        font-size: 26px;
        background: rgba(0, 0, 0, 0.7);
    }
    .cm-prev {
        left: 0px;
    }
    .cm-next {
        right: 0px;
    }
    .cm-grid {
        column-gap: 16px;
        row-gap: 16px;
        padding: 20px;
    }
    @supports not (grid-template-rows: masonry) {
        .cm-grid[data-current="detail"] {
            grid-template-columns: repeat(2, 1fr);
        }
    }
}

@media(max-width:768px) {
    body {
        overflow-y: auto;
    }
    .main-container {
        height: auto;
        transform: none !important;
    }
    .section-page {
        height: auto;
        padding: 100px 20px 40px 20px;
    }
    .works-scroll-wrapper {
        height: auto;
        overflow-y: visible;
    }
    .nav {
        padding: 0 30px;
    }
    .menu {
        display: none;
    }
    .fullscreen-dots {
        display: none;
    }
    .hero h1 {
        font-size: 52px;
    }
    .hero-tag-container {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .contact-info {
        gap: 40px;
        flex-direction: column;
        align-items: center;
    }
    .cm-panel {
        width: 100%;
        height: 88vh;
    }
    .cm-header {
        padding: 18px 20px;
    }
    .cm-title {
        font-size: 21px;
    }
    .cm-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    @supports not (grid-template-rows: masonry) {
        .cm-thumb {
            width: 100%;
        }
        .cm-grid[data-current="detail"] {
            grid-template-columns: repeat(1, 1fr);
        }
    }
}