:root {
    --bg: #F5F5F7;
    --text: #111;
    --grey: #555;
    --main-font: 'Montserrat', 'MiSans VF', 'PingFang SC', sans-serif;
}

/* 修改右键选中色 */
::selection {
    background: #40E0D0;
    color: #000;
}

::-moz-selection {
    background: #40E0D0;
    color: #000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    background-color: #F5F5F7;
    scrollbar-gutter: stable;
}

body {
    background-color: transparent;
    color: var(--text);
    font-family: var(--main-font);
    overflow-x: hidden;
    cursor: none;
}


/* 加载页 */
body.loaded {
    overflow-y: auto;
}

/* 光标 */
.cursor-dot,
.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999999;
    transform: translate(-50%, -50%);
    background-color: #fff;
    mix-blend-mode: difference;
    will-change: transform;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    will-change: transform;
}

.cursor-ring {
    width: 50px;
    height: 50px;
    border: 2px solid #fff;
    background: transparent;
    transition: width 0.2s ease, height 0.2s ease;
    will-change: transform;
}

body.hovering .cursor-ring {
    width: 90px;
    height: 90px;
    background: #fff;
}

body.hovering .cursor-dot {
    opacity: 0;
}

/* 导航栏 */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 16px 60px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    z-index: 1000;
    background: rgba(245, 245, 245, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    transform: translateY(-100%);
}

@keyframes navSlideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

body.loaded nav {
    animation: navSlideDown 0.8s 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transform: translateY(0);
}

.nav-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    color: #000;
}

.logo-prefix {
    font-weight: 400;
    color: rgba(0, 0, 0, 0.56);
    margin-right: 5px;
}

/* 导航链接容器 */
.nav-links-desktop {
    display: flex;
    position: relative;
}

.menu-item {
    text-decoration: none;
    color: rgba(0, 0, 0, 0.56);
    margin-left: 40px;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 1px;
    display: inline-block;
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.menu-item:hover {
    color: #000;
}

/* 激活状态：文字变黑 */
.menu-item.active {
    color: #000;
}

/* 滑动的黑色光标 */
.nav-marker {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background-color: #000;
    width: 0;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 彻底隔离 PC 和移动端菜单控制 */
.hamburger {
    display: none !important;
    cursor: pointer;
    z-index: 1002;
    color: #000;
    width: 30px;
    height: 20px;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.hamburger div {
    width: 100%;
    height: 2px;
    background: #000;
    position: absolute;
    left: 0;
    transition: 0.3s;
}

.hamburger div:nth-child(1) {
    top: 0;
}

.hamburger div:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger div:nth-child(3) {
    bottom: 0;
}

.hamburger.active {
    transform: rotate(90deg);
}

.hamburger.active div:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.hamburger.active div:nth-child(2) {
    opacity: 0;
}

.hamburger.active div:nth-child(3) {
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
}

/* 下拉菜单容器：全局默认隐藏 */
.mobile-nav-dropdown {
    display: flex !important;
    visibility: hidden;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 下拉菜单激活：由 JS 控制类名切换 */
.mobile-nav-dropdown.active {
    visibility: visible;
    opacity: 1;
    max-height: 300px;
    padding: 40px 0;
}

.mobile-nav-btn {
    font-size: 1.2rem;
    font-weight: 500;
    color: #000;
    text-decoration: none;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    width: 100%;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.4s;
}

.mobile-nav-dropdown.active .mobile-nav-btn {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav-dropdown.active .mobile-nav-btn:nth-child(1) {
    transition-delay: 0.1s;
}

.mobile-nav-dropdown.active .mobile-nav-btn:nth-child(2) {
    transition-delay: 0.2s;
}


/* 背景 */
.aurora-bg {
    position: fixed;
    top: -30vh;
    left: 0;
    width: 100%;
    height: 160vh;
    z-index: -1;
    overflow: hidden;
    background: transparent;
    filter: saturate(110%);
    will-change: transform;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px) saturate(126%);
    opacity: 0.8;
    mix-blend-mode: multiply;
    will-change: transform;
}

.orb-1 {
    width: 70vw;
    height: 50vw;
    /* 深蓝渐变，模拟大海 */
    background: radial-gradient(circle, rgba(60, 100, 220, 0.48), rgba(60, 100, 220, 0) 70%);
    top: 60vh;
    /* 初始位置在下方 */
    left: -10%;
    /* 模拟海浪的缓慢涌动 */
    animation: ocean-flow 25s infinite alternate ease-in-out;
    mix-blend-mode: multiply;
    /* 保持与背景融合 */
}

/* 2. 旭日 (主角) */
.orb-2 {
    width: 40vw;
    height: 40vw;
    /* 暖橙色，模拟初升太阳 */
    background: radial-gradient(circle, rgba(255, 140, 60, 0.5), rgba(255, 100, 50, 0) 70%);
    top: 80vh;
    /* 初始位置藏在深海之下 */
    right: 10%;
    /* 核心动画：日出 */
    animation: sunrise 30s infinite alternate ease-in-out;
    z-index: 2;
    /* 太阳升起时要稍微靠前 */
}

/* 3. 晨雾 (氛围) */
.orb-3 {
    width: 50vw;
    height: 40vw;
    /* 蓝紫调，模拟清晨的冷暖交替 */
    background: radial-gradient(circle, rgba(120, 100, 240, 0.4), rgba(200, 200, 255, 0) 70%);
    top: 30vh;
    /* 初始在中上部 */
    left: 30%;
    animation: morning-mist 35s infinite alternate ease-in-out;
}

@keyframes ocean-flow {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
    }

    100% {
        transform: translate3d(10vw, -5vh, 0) rotate(10deg) scale(1.1);
    }
}

/* 2. 日出：从右下深处 -> 左上高空 (向阳而生) */
@keyframes sunrise {
    0% {
        /* 沉在海底，光芒收敛 */
        transform: translate3d(0, 20vh, 0) scale(0.8);
    }

    40% {
        /* 升至海面，开始扩散 */
        transform: translate3d(-15vw, -30vh, 0) scale(1.2);
    }

    100% {
        /* 升至高空，光芒万丈 (位置对角线移动) */
        transform: translate3d(-40vw, -70vh, 0) scale(1.5);
    }
}

/* 3. 晨雾：在空隙中缓慢流动，连接海与日 */
@keyframes morning-mist {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform: translate3d(20vw, 10vh, 0) scale(1.2);
    }

    100% {
        transform: translate3d(-10vw, 20vh, 0) scale(0.9);
    }
}

/* 布局 */
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 5vw;
}

header {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.hero-sub {
    display: block;
    color: rgba(0, 0, 0, 0.56);
    margin-bottom: 10px;
    margin-left: 8px;
    letter-spacing: 2px;
    font-size: 0.9rem;
    text-transform: uppercase;
}

h1 {
    font-weight: 500;
    font-size: clamp(3.8rem, 9vw, 8.5rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 40px;
    color: rgba(0, 0, 0, 0.88);
}

.transparent-text {
    color: rgba(0, 0, 0, 0.56);
    mix-blend-mode: multiply;
}

.hero-text {
    font-weight: 300;
    font-size: 1.3rem;
    max-width: 62%;
    color: rgba(0, 0, 0, 0.56);
    line-height: 1.8;
    text-align: justify;
}

/* 作品列表 */
.work-section {
    position: relative;
    z-index: 2;
    margin-top: 30vh;
    padding: 10vh 0;
}

.project-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25vh;
    opacity: 1;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-section>.project-item:nth-child(even) {
    flex-direction: row-reverse;
}

.p-visual {
    width: 61.8%;
    aspect-ratio: 16 / 10;
    height: auto;
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #e0e0e0;
    transform-style: preserve-3d;
    perspective: 1000px;
    cursor: pointer;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    will-change: transform;
}

.p-visual:hover {
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.2);
}

.p-visual-inner {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.1s ease-out;
}

.p-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.1s linear;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

.p-info {
    width: 30.2%;
    padding: 0 20px;
}

.p-index {
    font-size: 0.85rem;
    color: rgba(0, 0, 0, 0.56);
    margin-bottom: 16px;
    display: block;
    letter-spacing: 1px;
    font-weight: 600;
}

.p-title {
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 16px;
    font-weight: 500;
    letter-spacing: -1px;
    color: rgba(0, 0, 0, 0.88);
}

.p-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.tag {
    padding: 4px 12px;
    border: 1px solid #ccc;
    border-radius: 50px;
    font-size: 0.75rem;
    color: rgba(0, 0, 0, 0.56);
    font-weight: 500;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
}

.p-desc {
    font-weight: 400;
    font-size: 1rem;
    color: rgba(0, 0, 0, 0.56);
    margin-bottom: 30px;
    line-height: 1.6;
    text-align: justify;
}

.view-btn {
    text-decoration: none;
    color: #000;
    font-size: 1.1rem;
    border-bottom: 1px solid #000;
    padding-bottom: 6px;
    transition: 0.3s;
    display: inline-block;
    cursor: pointer;
}

/* 作品列表 (网格并列布局) */
.project-grid-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    width: 92%;
    margin: 0 auto 25vh auto;
}

.project-card {
    background-color: rgba(245, 245, 245, 0.6);
    backdrop-filter: blur(60px) saturate(200%);
    -webkit-backdrop-filter: blur(60px) saturate(200%);
    border-radius: 24px;
    padding: 30px 28px 28px 28px;
    display: flex;
    flex-direction: column;

    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.02),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);

    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, background-color 0.3s;
    cursor: pointer;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
}

.card-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.card-title-area {
    flex: 1;
    padding-right: 20px;
}

.card-index {
    font-size: 0.75rem;
    color: rgba(0, 0, 0, 0.56);
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.card-title {
    font-size: 1.8rem;
    line-height: 1.2;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.88);
    letter-spacing: -0.5px;
    margin: 0;
}

.card-tags {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
    flex-shrink: 0;
    padding-top: 4px;
}

.card-tag {
    padding: 3px 10px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.4);
    border-radius: 100px;
    font-size: 0.7rem;
    color: rgba(0, 0, 0, 0.56);
    font-weight: 500;
    white-space: nowrap;
}

.card-desc {
    font-size: 0.95rem;
    color: rgba(0, 0, 0, 0.56);
    line-height: 1.6;
    margin-bottom: 28px;
    max-width: 100%;
    text-align: justify;
}

.card-visual-box {
    width: 100%;
    aspect-ratio: 3 / 3.5;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 12px;
    overflow: hidden;
    margin-top: auto;
    position: relative;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 取消悬浮时的图片放大效果 */
.project-card:hover .card-img {
    transform: none !important;
}


/* Footer */
footer {
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(20px) saturate(200%);
    -webkit-backdrop-filter: blur(60px) saturate(200%);
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 100px 5vw 50px 5vw;
    margin-top: 10vh;
    position: relative;
    z-index: 10;
}

.footer-content {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 60px;
}

.footer-slogan {
    flex: 1;
    min-width: 300px;
}

.footer-cta {
    font-weight: 700;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.2;
    margin-bottom: 20px;
    display: block;
    color: #fff;
    text-decoration: none;
}

.footer-contact {
    flex: 1;
    min-width: 250px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.contact-item {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-value {
    font-size: 1.5rem;
    color: #fff;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 4px;
    display: inline-block;
    width: fit-content;
}

.contact-value:hover {
    color: #ccc;
    border-bottom-color: #fff;
    transform: translateX(5px);
}

.contact-value-text {
    font-size: 1.5rem;
    color: #fff;
    font-weight: 400;
    user-select: text;
    cursor: text;
}

.footer-btm {
    width: 100%;
    max-width: 1600px;
    margin: 80px auto 0 auto;
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background: rgba(221, 216, 216, 0.6);
    backdrop-filter: blur(60px) saturate(200%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s ease;
    z-index: 999 !important;
    color: #000;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}


/* 案例详情弹窗 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 5, 0.5);
    backdrop-filter: blur(8px);
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    width: 85%;
    max-width: 900px;
    height: 80vh;
    background: #fff;
    border-radius: 24px;
    position: relative;
    display: flex;
    flex-direction: column;
    transform: scale(0.95) translateY(30px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    will-change: transform, opacity;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.2);
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: #000;
    transition: 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 110;
    mix-blend-mode: normal;
}

.modal-close-btn::before {
    content: '×';
    display: block;
    color: inherit;
    font-weight: 300;
}

.modal-close-btn:hover {
    background: #fff;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-scroll-area {
    padding: 50px 6%;
    overflow-y: auto;
    height: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.modal-scroll-area::-webkit-scrollbar {
    display: none;
}

.modal-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
}

.modal-subtitle-en {
    font-size: 0.9rem;
    color: #999;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.modal-title {
    font-weight: 600;
    font-size: 2.5rem;
    margin-bottom: 15px;
    line-height: 1.1;
}

.modal-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.modal-tag {
    padding: 4px 12px;
    background: #F5F5F7;
    border-radius: 4px;
    font-size: 0.75rem;
    color: #555;
    font-weight: 500;
}

.modal-hero-desc {
    font-weight: 300;
    font-size: 1.1rem;
    color: #333;
    line-height: 1.6;
    text-align: justify;
    margin-bottom: 0;
}

.modal-section {
    margin-bottom: 60px;
}

.modal-section-title {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 4px solid #000;
    line-height: 1;
}

.modal-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 30px;
    text-align: justify;
}

.modal-text p {
    margin-bottom: 15px;
}

.modal-img-full {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
    display: block;
    background: transparent;
}

.modal-img-caption {
    font-size: 0.85rem;
    color: #999;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 30px;
}

.modal-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.modal-grid-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
}

.modal-caption {
    font-size: 0.85rem;
    color: #888;
    text-align: center;
    line-height: 1.5;
}


/* Mobile */
@media (max-width: 768px) {
    .work-section {
        margin-top: 20vh;
    }

    .hamburger {
        display: block !important;
        margin-right: -8px !important;
    }

    .cursor-dot,
    .cursor-ring {
        display: none !important;
    }

    body {
        cursor: auto;
    }

    nav {
        padding: 16px 24px;
    }

    .nav-links-desktop {
        display: none;
    }

    .container {
        padding: 0 8vw;
    }

    header {
        height: 80vh;
    }

    h1 {
        font-size: 2.8rem;
        margin-bottom: 24px;
    }

    .hero-text {
        max-width: 100%;
        font-size: 1rem;
        text-align: left;
    }

    .hero-sub {
        margin-left: 0;
    }

    /* 修改通用项目移动端样式 */
    .work-section>.project-item {
        flex-direction: column !important;
        margin-bottom: 80px;
        align-items: flex-start;
        transition: none;
    }

    /* Grid 布局在移动端回退到单列 */
    .project-grid-row {
        grid-template-columns: 1fr;
        gap: 60px;
        margin-bottom: 120px;
        width: 100%;
    }

    .project-card {
        padding: 24px;
    }

    .card-title {
        font-size: 1.6rem;
    }

    .card-desc {
        font-size: 0.9rem;
    }

    .card-tags {
        display: none;
    }

    .card-visual-box {
        aspect-ratio: auto !important;
        height: 0 !important;
        padding-bottom: 133.33% !important;
        position: relative !important;
        overflow: hidden;
    }

    /* 手机端图片样式更新 */
    .p-visual {
        width: 100%;
        height: auto !important;
        aspect-ratio: 16 / 10 !important;
        margin-bottom: 24px;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
        border-radius: 16px;
        transform: none !important;
    }

    .p-visual-inner {
        transform: none !important;
        position: static;
    }

    .p-img {
        position: relative !important;
        height: auto !important;
        display: block;
    }

    /* 单独将卡片图片恢复为100%高度填充 */
    .card-img {
        position: absolute !important;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    .p-visual:hover .p-img {
        opacity: 1;
    }

    .p-info {
        width: 100% !important;
        padding: 0 !important;
    }

    .p-title {
        font-size: 2rem;
        margin-bottom: 16px;
        line-height: 1.3;
    }

    .p-tags {
        margin-bottom: 20px;
    }

    .modal-container {
        width: 90%;
        height: 80vh;
        border-radius: 16px;
    }

    .modal-scroll-area {
        padding: 80px 24px 40px 24px;
    }

    .modal-title {
        font-size: 2rem;
    }

    .modal-grid-2 {
        grid-template-columns: 1fr;
    }

    .modal-close-btn {
        top: 20px;
        right: 20px;
        background: rgba(255, 255, 255, 0.9);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
        border: 1px solid rgba(0, 0, 0, 0.1);
    }

    .modal-close-btn::before {
        color: #000;
        font-weight: 600;
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
    }

    .footer-cta {
        font-size: 3rem;
        margin-bottom: 10px;
    }

    .contact-value {
        font-size: 1.2rem;
    }
}

.fade-in-desktop {
    opacity: 0;
    transform: translateY(50px);
    transition: 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-desktop.visible {
    opacity: 1;
    transform: translateY(0);
    transform-origin: center center;
    will-change: transform, opacity, filter;
}

/* 图片放大预览层 */
.image-zoom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 20000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    cursor: zoom-out;
}

.image-zoom-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.zoomed-image {
    max-width: 95%;
    max-height: 95%;
    border-radius: 4px;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-zoom-overlay.active .zoomed-image {
    transform: scale(1);
}

/* 简介下方的四列信息栏 */
.modal-info-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 30px 0 10px 0;
    padding-top: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-size: 0.85rem;
    color: #999;
    font-weight: 400;
}

.info-value {
    font-size: 0.95rem;
    color: #111;
    font-weight: 500;
}

/* 手机端适配：两行两列 */
@media (max-width: 768px) {
    .modal-info-bar {
        grid-template-columns: 1fr 1fr;
        margin: 20px 0;
    }
}

/* 视频容器修正 */
.video-wrapper {
    width: 100%;
    height: auto;
    border-radius: 8px;
    overflow: hidden;
    transform: translateZ(0);
    position: relative;
    z-index: 1;
    background: #ffffff;
    margin-bottom: 10px;
}

.video-wrapper video {
    width: 100%;
    display: block;
    object-fit: cover;
}

/* 1. 初始状态：应用了此类的元素默认不可见，并向下偏移 */
.scroll-item {
    opacity: 0;
    transform: translateY(90px);
    /* 向下偏移 60px，制造上升感 */
    /* 使用贝塞尔曲线模仿苹果的丝滑缓动效果，持续 0.8 秒 */
    transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 2. 激活状态：当 JS 检测到元素进入视野后，添加此标记，元素复位并显示 */
.scroll-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}


.project-item,
.project-card {
    /* 确保缩放是从中心开始的 */
    transform-origin: center center;
    /* 开启硬件加速 */
    will-change: transform;
}

.p-visual,
.card-visual-box {
    position: relative;
    /* 必须有定位属性 z-index 才生效 */
    z-index: 1;
    /* 默认层级 */
}

@media (hover: none) and (pointer: coarse) {

    .cursor-dot,
    .cursor-ring {
        display: none !important;
        /* 强制隐藏自定义光标 */
    }

    body {
        cursor: auto !important;
        /* 恢复系统默认光标交互，防止外接鼠标的iPad看不到光标 */
    }

    /* 修复平板上的 hover 状态可能卡住的问题 */
    .menu-item:hover,
    .contact-value:hover,
    .project-card:hover {
        transform: none !important;
    }
}

/* --- 手机端光球增强补丁 --- */
/* --- 手机端适配：垂直破晓 --- */
@media (max-width: 768px) {

    /* 调整光球大小，适配手机屏 */
    .orb-1 {
        width: 105vw;
        height: 88vw;
        opacity: 0.78;
        top: 80vh;
    }

    .orb-2 {
        width: 95vw;
        height: 85vw;
        opacity: 0.8;
        top: 85vh;
    }

    /* 太阳起点放低 */
    .orb-3 {
        width: 80vw;
        height: 80vw;
        opacity: 0.6;
        top: 30vh;
    }

    /* 1. 手机版海浪：底部托举 */
    @keyframes ocean-flow {
        0% {
            transform: translate3d(-10vw, 5vh, 0) scale(1);
        }

        100% {
            transform: translate3d(10vw, -5vh, 0) scale(1.1);
        }
    }

    /* 2. 手机版日出：纯粹的垂直上升 */
    @keyframes sunrise {
        0% {
            /* 极低点 */
            transform: translate3d(10vw, 10vh, 0) scale(0.8);
        }

        50% {
            /* 升至屏幕中部 */
            transform: translate3d(-10vw, -30vh, 0) scale(1.1);
        }

        100% {
            /* 升至顶部 (标题文字后方) */
            transform: translate3d(5vw, -65vh, 0) scale(1.3);
        }
    }

    /* 3. 手机版晨雾：柔化背景 */
    @keyframes morning-mist {
        0% {
            transform: translate3d(-5vw, 0, 0) scale(1);
        }

        100% {
            transform: translate3d(10vw, 15vh, 0) scale(1.2);
        }
    }

    /* 强制应用新动画名 */
    .orb-1 {
        animation-name: ocean-flow;
    }

    .orb-2 {
        animation-name: sunrise;
    }

    .orb-3 {
        animation-name: morning-mist;
    }
}

/* --- 视频海报与文字按钮 --- */
.video-poster-container {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    cursor: pointer;
}

.play-demo-text-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: #0066cc;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.01);
    padding: 10px 15px;
    margin: -10px -15px;
    z-index: 100 !important;
    pointer-events: auto !important;
    transition: all 0.3s ease;
}

.play-demo-text-btn * {
    pointer-events: none;
}

.play-demo-text-btn svg {
    width: 18px;
    height: 18px;
    stroke: #0066cc;
}

.play-demo-text-btn:hover {
    background: transparent;
    transform: scale(1.05) translateX(-2px);
    text-decoration: underline;
}

/* --- 核心修复：全屏剧场播放器强制样式 --- */
.video-theater {
    display: none !important;
    /* 强制彻底隐藏 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #111111;
    z-index: 30000 !important;
    /* 必须高于弹窗的 10000 */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.video-theater.active {
    display: flex !important;
    opacity: 1;
    cursor: auto !important;
}

.theater-content {
    width: 90%;
    max-width: 1000px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-theater.active .theater-content {
    transform: scale(1);
}

.theater-content video {
    width: 100%;
    display: block;
    outline: none;
}

.theater-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 30001;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50%;
    transition: 0.3s;
    color: #fff;
    font-size: 24px;
    font-weight: 300;
}

.theater-close::before {
    content: '×';
}

/* ========================================= */
/* 移动端特定适配 (放在文件的最底部)             */
/* ========================================= */
@media (max-width: 768px) {
    .play-demo-text-btn {
        font-size: 0.85rem !important;
        gap: 5px !important;
        top: 15px !important;
        right: 15px !important;
    }

    .play-demo-text-btn svg {
        width: 14px !important;
        height: 14px !important;
    }

    .theater-content {
        width: 100%;
        border-radius: 0;
    }

    .theater-close {
        top: 20px;
        right: 20px;
    }
}