/* ===== v3 应用基础样式（壳层）===== */
/* =========================================================
   Ghost-Design 共享基础样式（v2 重构版）
   —— 全站共用：变量 / 导航 / 自定义光标 / 导航卡片 / 社交按钮 / 页脚
   —— 各页面差异部分保留在各页 <style> 中，按需覆盖本文件
   ========================================================= */

/* ---------- 基础变量 ---------- */
:root {
    /* 主题色（深色为默认） */
    --primary-color: #fff;
    --bg-color: #000;
    --text-color: #aaa;
    --card-bg: #111;
    --card-bg-hover: #161616;
    --border-color: rgba(255,255,255,0.1);
    --border-color-focus: rgba(255,255,255,0.3);
    --border-color-hover: #fff;
    --hover-blob: #fff;
    --hover-blob-text: #000;
    --hover-bg: rgba(255,255,255,0.1);
    --muted-color: rgba(255,255,255,0.5);
    --toast-bg: rgba(0,0,0,0.9);
    --toast-text: #fff;
    --logo-filter: invert(1);
    --logo-filter-hover: invert(0);
    /* 布局变量 */
    --padding-x: 10%;
    --logo-size: 1.5rem;
    --logo-final-width: 240px;
    --logo-final-x: calc(var(--padding-x) + 2.5rem);
    --logo-final-y: 19px;
}

/* 浅色主题（自动跟随系统或手动切换，切换按钮在导航栏右侧） */
html[data-theme="light"] {
    --primary-color: #000;
    --bg-color: #fff;
    --text-color: #555;
    --card-bg: #f2f2f2;
    --card-bg-hover: #e8e8e8;
    --border-color: rgba(0,0,0,0.12);
    --border-color-focus: rgba(0,0,0,0.3);
    --border-color-hover: rgba(0,0,0,0.6);
    --hover-blob: #000;
    --hover-blob-text: #fff;
    --hover-bg: rgba(0,0,0,0.06);
    --muted-color: rgba(0,0,0,0.45);
    --toast-bg: rgba(255,255,255,0.95);
    --toast-text: #000;
    --logo-filter: invert(0);
    --logo-filter-hover: invert(1);
}

/* ---------- 主题切换按钮 ---------- */
.theme-toggle {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--primary-color);
    cursor: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.theme-toggle:hover {
    background: var(--hover-bg);
    border-color: var(--border-color-hover);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

/* 深色主题显示月亮、浅色主题显示太阳 */
.theme-toggle .icon-sun { display: none; }
html[data-theme="light"] .theme-toggle .icon-sun { display: block; }
html[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* 主题切换时主要容器的平滑过渡 */
body, nav, footer, .loading-screen {
    transition: background-color 0.4s ease, color 0.4s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--primary-color);
    background: var(--bg-color);
    overflow-x: hidden;
}

/* ---------- 导航栏 ---------- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0.8rem var(--padding-x);
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
}

.nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Logo */
.nav-logo {
    height: 40px;
    margin-right: auto;
    filter: var(--logo-filter);
}

/* ---------- 统一可点击元素 ---------- */
.clickable {
    position: relative;
    overflow: hidden;
    color: var(--primary-color);
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    padding: 0.5rem 1rem;
}

.clickable:hover {
    border-color: var(--border-color-hover);
    background: var(--hover-bg);
}

/* 导航卡片链接化后的默认样式 */
a.nav-card {
    text-decoration: none;
    color: inherit;
}

/* ---------- 导航卡片 ---------- */
.nav-card {
    position: relative;
    background: var(--card-bg);
    width: 120px;
    height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: none;
    isolation: isolate;
}

.nav-card h3 {
    font-size: 0.9rem;
    position: relative;
    z-index: 3;
    color: var(--primary-color);
    text-align: center;
    padding: 0 0.5rem;
    transition: color 1s ease;
}

.nav-card .hover-effect {
    position: absolute;
    top: var(--mouse-y, 50%);
    left: var(--mouse-x, 50%);
    width: 300px;
    height: 300px;
    background-color: var(--hover-blob);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1), opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    pointer-events: none;
    opacity: 0;
}

.nav-card.animating .hover-effect {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.nav-card.animating h3 {
    color: var(--hover-blob-text);
}

/* ---------- 自定义鼠标光标 ---------- */
.cursor-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 99999;
    mix-blend-mode: difference;
}

.cursor {
    position: fixed;
    pointer-events: none;
    will-change: transform;
    transform: translate(-50%, -50%);
    z-index: 99999;
}

.cursor-main {
    width: 24px;
    height: 24px;
    background: #fff;
    border-radius: 50%;
    position: fixed;
    left: 0;
    top: 0;
    transform: translate(-50%, -50%);
    will-change: transform;
    transition: width 0.3s ease, height 0.3s ease;
}

.cursor-follow {
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    position: fixed;
    left: 0;
    top: 0;
    transform: translate(-50%, -50%);
    will-change: transform;
    transition: width 0.3s ease, height 0.3s ease;
}

/* 点击时缩小 */
.cursor-main.clicked {
    width: 16px;
    height: 16px;
    transition: width 0.2s ease, height 0.2s ease;
}

.cursor-follow.clicked {
    width: 8px;
    height: 8px;
    transition: width 0.2s ease, height 0.2s ease;
}

/* 隐藏默认鼠标 */
html, body, a, button, .clickable {
    cursor: none !important;
}

/* 移动设备保持默认鼠标 */
@media (max-width: 768px) {
    html, body, a, button, .clickable {
        cursor: auto !important;
    }
    .cursor {
        display: none;
    }
}

/* ---------- 社交链接按钮 ---------- */
.social-links a {
    padding: 0.8rem 1.5rem;
    position: relative;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    cursor: none;
    isolation: isolate;
}

.social-links a span {
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.social-links a .hover-effect {
    position: absolute;
    top: var(--mouse-y, 50%);
    left: var(--mouse-x, 50%);
    width: 300px;
    height: 300px;
    background-color: var(--hover-blob);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1), opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    pointer-events: none;
    opacity: 0;
}

.social-links a.animating .hover-effect {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.social-links a.animating span {
    color: var(--hover-blob-text);
}

/* ---------- 页脚（非首页静态版；首页在页面内覆盖为 fixed） ---------- */
footer {
    width: 100%;
    padding: 2rem var(--padding-x);
    margin-top: 80px;
    background: var(--bg-color);
}

.footer-content {
    max-width: 1380px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 1rem;
}

footer p {
    font-size: 0.8rem;
    color: var(--text-color);
    text-align: right;
    padding: 0.5rem 0;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* ---------- 工具类 ---------- */
.no-scroll {
    overflow: hidden !important;
}



/* ===== 视图: home ===== */
[data-view="home"] .content-section {
            position: relative;
            height: calc(100vh - 70px);
            margin: 70px var(--padding-x) 0;
            background: var(--bg-color);
            overflow: hidden;
            padding: 0;
        }

[data-view="home"] .slider-container {
            position: relative;
            width: 100%;
            height: 100%;
            overflow: hidden;
        }

[data-view="home"] .slider-item {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 100%;
            height: calc(100vh - 70px - 1.6rem);
            opacity: 0;
            transition: opacity 1s ease;
            overflow: hidden;
            background: var(--bg-color);
            padding: 2rem;  
        }

[data-view="home"] .slider-item.active {
            opacity: 1;
        }

[data-view="home"] .slider-image {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: contain;  
        }

[data-view="home"] .page-number {
            position: fixed;
            top: 50%;
            right: var(--padding-x);
            transform: translateY(-50%);
            z-index: 1001;
            display: flex;
            flex-direction: column;
            gap: 1rem;
            color: var(--primary-color);
            mix-blend-mode: normal;
            padding: 1rem;
        }

[data-view="home"] .page-number span {
            font-size: 1rem;
            opacity: 0.7;
            color: var(--primary-color);
            font-weight: 500;
            transform: scale(1);
            transform-origin: right;
        }

[data-view="home"] .page-number span.active {
            font-size: 1rem;
            opacity: 1;
            font-weight: 700;
            color: var(--primary-color);
            transform: scale(1.5);
            transition: transform 0.3s ease;
        }

[data-view="home"] .page-number span:not(.active) {
            transition: none;
        }

.loading-screen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--bg-color);
            z-index: 9999;
            display: flex;
            justify-content: center;
            align-items: center;
            opacity: 1;
            transition: opacity 0.8s ease;
        }

.loading-screen.fade-out {
            opacity: 0;
            pointer-events: none;
        }

.loading-logo {
            width: 33.33vw;  
            opacity: 0;
            filter: var(--logo-filter);  
            animation: logoFadeIn 0.8s ease forwards;
        }

@keyframes logoFadeIn {
            0% {
                opacity: 0;
            }
            100% {
                opacity: 1;
            }
        }

.content-fade-in {
            opacity: 0;
            animation: contentFadeIn 0.8s ease forwards;
            animation-delay: 1.7s;  
        }

@keyframes contentFadeIn {
            0% {
                opacity: 0;
            }
            100% {
                opacity: 1;
            }
        }

@media (max-width: 768px) { :root {
                --padding-x: 5%;
            }
[data-view="home"] .nav-links {
                gap: 1rem;
            }
[data-view="home"] .project-card {
                flex-direction: column;
                height: auto;
            }
[data-view="home"] .project-image {
                width: 100%;
                height: 240px;
            }
[data-view="home"] .project-info {
                width: 100%;
            } }


/* ===== 视图: about ===== */
[data-view="about"] .content-section {
            padding: 120px 0;
            width: 100%;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            align-items: center;
            overflow-y: auto;
            min-height: calc(100vh - 70px);
        }

[data-view="about"] .card-grid {
            width: 1380px;
            display: grid;
            grid-template-columns: 1fr;
            gap: 80px;
            padding: 0;
            max-width: 100%;
            margin: 0 auto;
        }

[data-view="about"] .project-card {
            width: 100%;
            max-width: 1380px;
            height: 400px;
            display: grid;
            grid-template-columns: 400px 1fr;
            background: var(--card-bg);
            border-radius: 12px;
            overflow: hidden;
            border: 1px solid var(--border-color);
            position: relative;
            isolation: isolate;
            padding: 20px;
            gap: 20px;
            transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            transform-origin: center;
            z-index: 1;
            margin: 0 auto;
        }

[data-view="about"] .project-image {
            width: 100%;
            height: 100%;
            overflow: hidden;
            position: relative;
            border-radius: 8px;
            z-index: 3;
            will-change: transform;
            background: transparent;
            aspect-ratio: 1;
        }

[data-view="about"] .project-image img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            transition: transform 0.5s ease, filter 1s cubic-bezier(0.4, 0, 0.2, 1);
            filter: var(--logo-filter);
            image-rendering: -webkit-optimize-contrast;
            image-rendering: crisp-edges;
        }

[data-view="about"] .project-info {
            padding: 18px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            background: var(--card-bg);
            position: relative;
        }

[data-view="about"] .project-info .date {
            font-size: 0.85rem;
            margin-bottom: 0.9rem;
            color: var(--text-color);
        }

[data-view="about"] .project-info h3 {
            font-size: 1.7rem;
            margin-bottom: 0.9rem;
            color: var(--primary-color);
        }

[data-view="about"] .project-info .client {
            font-size: 0.95rem;
            color: var(--text-color);
            margin-bottom: 0.9rem;
        }

[data-view="about"] .project-info p {
            font-size: 1rem;
            color: var(--text-color);
            line-height: 1.5;
        }

[data-view="about"] .project-card .hover-effect {
            position: absolute;
            top: var(--mouse-y, 50%);
            left: var(--mouse-x, 50%);
            width: 4000px;
            height: 4000px;
            background-color: var(--hover-blob);
            border-radius: 50%;
            transform: translate(-50%, -50%) scale(0);
            transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1), opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 1;
            pointer-events: none;
            opacity: 0;
        }

[data-view="about"] .project-card.animating .hover-effect {
            transform: translate(-50%, -50%) scale(1);
            opacity: 1;
        }

[data-view="about"] .project-info * {
            position: relative;
            z-index: 2;
            transition: color 1s ease;
        }

[data-view="about"] .project-card.animating .project-info * {
            color: var(--hover-blob-text);
        }

[data-view="about"] .project-card.animating .project-image img {
            filter: var(--logo-filter-hover);
        }

@keyframes logoFadeIn {
            0% { opacity: 0; }
            100% { opacity: 1; }
        }

@keyframes contentFadeIn {
            0% { opacity: 0; }
            100% { opacity: 1; }
        }

@media (max-width: 768px) { :root {
                --padding-x: 5%;
            }
[data-view="about"] .nav-links {
                gap: 1rem;
            }
[data-view="about"] .project-card {
                flex-direction: column;
                height: auto;
            }
[data-view="about"] .project-image {
                width: 100%;
                height: 240px;
            }
[data-view="about"] .project-info {
                width: 100%;
            } }

@media (max-width: 768px) { [data-view="about"] .project-card {
                grid-template-columns: 1fr;
                height: auto;
                width: 100%;
            }
[data-view="about"] .project-image {
                height: 240px;
            } }


/* ===== 视图: news ===== */
[data-view="news"] .content-section {
            padding: 120px 0;
            width: 100%;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            align-items: center;
            overflow-y: auto;
            min-height: calc(100vh - 70px);
        }

[data-view="news"] .card-grid {
            width: 1380px;
            display: grid;
            grid-template-columns: 1fr;
            gap: 80px;
            padding: 0;
            max-width: 100%;
            margin: 0 auto;
        }

[data-view="news"] .project-card {
            width: 100%;
            max-width: 1380px;
            height: 400px;
            display: grid;
            grid-template-columns: 400px 1fr;
            background: var(--card-bg);
            border-radius: 12px;
            overflow: hidden;
            border: 1px solid var(--border-color);
            position: relative;
            isolation: isolate;
            padding: 20px;
            gap: 20px;
            transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            transform-origin: center;
            z-index: 1;
            margin: 0 auto;
        }

[data-view="news"] .project-image {
            width: 100%;
            height: 100%;
            overflow: hidden;
            position: relative;
            border-radius: 8px;
            z-index: 3;
        }

[data-view="news"] .project-image img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            transition: transform 0.5s ease, filter 1s cubic-bezier(0.4, 0, 0.2, 1);
            filter: var(--logo-filter);
        }

[data-view="news"] .project-card.animating .project-image img {
            filter: var(--logo-filter-hover);
        }

[data-view="news"] .project-info {
            padding: 18px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            background: var(--card-bg);
            position: relative;
        }

[data-view="news"] .project-info .date {
            font-size: 0.85rem;
            margin-bottom: 0.9rem;
            color: var(--text-color);
        }

[data-view="news"] .project-info h3 {
            font-size: 1.7rem;
            margin-bottom: 0.9rem;
            color: var(--primary-color);
        }

[data-view="news"] .project-info .client {
            font-size: 0.95rem;
            color: var(--text-color);
            margin-bottom: 0.9rem;
        }

[data-view="news"] .project-info p {
            font-size: 1rem;
            color: var(--text-color);
            line-height: 1.5;
        }

[data-view="news"] .project-card .hover-effect {
            position: absolute;
            top: var(--mouse-y, 50%);
            left: var(--mouse-x, 50%);
            width: 4000px;
            height: 4000px;
            background-color: var(--hover-blob);
            border-radius: 50%;
            transform: translate(-50%, -50%) scale(0);
            transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1), opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 1;
            pointer-events: none;
            opacity: 0;
        }

[data-view="news"] .project-card.animating .hover-effect {
            transform: translate(-50%, -50%) scale(1);
            opacity: 1;
        }

[data-view="news"] .project-info * {
            position: relative;
            z-index: 2;
            transition: color 1s ease;
        }

[data-view="news"] .project-card.animating .project-info * {
            color: var(--hover-blob-text);
        }

@keyframes logoFadeIn {
            0% { opacity: 0; }
            100% { opacity: 1; }
        }

@keyframes contentFadeIn {
            0% { opacity: 0; }
            100% { opacity: 1; }
        }

@media (max-width: 768px) { :root {
                --padding-x: 5%;
            }
[data-view="news"] .nav-links {
                gap: 1rem;
            }
[data-view="news"] .project-card {
                flex-direction: column;
                height: auto;
            }
[data-view="news"] .project-image {
                width: 100%;
                height: 240px;
            }
[data-view="news"] .project-info {
                width: 100%;
            }
[data-view="news"] .footer-content {
                flex-direction: column;
                gap: 1rem;
                text-align: center;
            } }

@media (max-width: 768px) { [data-view="news"] .project-card {
                grid-template-columns: 1fr;
                height: auto;
                width: 100%;
            }
[data-view="news"] .project-image {
                height: 240px;
            } }


/* ===== 视图: projects ===== */
[data-view="projects"] .content-section {
            padding: 120px 0;
            width: 100%;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            align-items: center;
            overflow-y: auto;
            min-height: calc(100vh - 70px);
        }

[data-view="projects"] .card-grid {
            width: 1380px;
            display: grid;
            grid-template-columns: 1fr;
            gap: 80px;
            padding: 0;
            max-width: 100%;
            margin: 0 auto;
        }

[data-view="projects"] .project-card {
            width: 100%;
            max-width: 1380px;
            height: 400px;
            display: grid;
            grid-template-columns: 400px 1fr;
            background: var(--card-bg);
            border-radius: 12px;
            overflow: hidden;
            border: 1px solid var(--border-color);
            position: relative;
            isolation: isolate;
            padding: 20px;
            gap: 20px;
            transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            transform-origin: center;
            z-index: 1;
            margin: 0 auto;
            aspect-ratio: 16/9;  
        }

[data-view="projects"] .project-image {
            width: 100%;
            height: 100%;
            overflow: hidden;
            position: relative;
            border-radius: 8px;
            z-index: 3;
            will-change: transform;
            background: var(--card-bg);
            aspect-ratio: 1;     
        }

[data-view="projects"] .project-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
            image-rendering: -webkit-optimize-contrast;
            image-rendering: crisp-edges;
            opacity: 0;          
            animation: fadeIn 0.5s ease forwards;  
        }

@keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

[data-view="projects"] .project-info {
            padding: 18px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            background: var(--card-bg);
            position: relative;
        }

[data-view="projects"] .project-info .date {
            font-size: 0.85rem;
            margin-bottom: 0.9rem;
            color: var(--text-color);
        }

[data-view="projects"] .project-info h3 {
            font-size: 1.7rem;
            margin-bottom: 0.9rem;
            color: var(--primary-color);
        }

[data-view="projects"] .project-info .client {
            font-size: 0.95rem;
            color: var(--text-color);
            margin-bottom: 0.9rem;
        }

[data-view="projects"] .project-info p {
            font-size: 1rem;
            color: var(--text-color);
            line-height: 1.5;
        }

[data-view="projects"] .project-card .hover-effect {
            position: absolute;
            top: var(--mouse-y, 50%);
            left: var(--mouse-x, 50%);
            width: 4000px;
            height: 4000px;
            background-color: var(--hover-blob);
            border-radius: 50%;
            transform: translate(-50%, -50%) scale(0);
            transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1), opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 1;
            pointer-events: none;
            opacity: 0;
        }

[data-view="projects"] .project-card.animating .hover-effect {
            transform: translate(-50%, -50%) scale(1);
            opacity: 1;
        }

[data-view="projects"] .project-info * {
            position: relative;
            z-index: 2;
            transition: color 1s ease;
        }

[data-view="projects"] .project-card.animating .project-info * {
            color: var(--hover-blob-text);
        }

@keyframes logoFadeIn {
            0% { opacity: 0; }
            100% { opacity: 1; }
        }

@keyframes contentFadeIn {
            0% { opacity: 0; }
            100% { opacity: 1; }
        }

@media (max-width: 768px) { :root {
                --padding-x: 5%;
            }
[data-view="projects"] .nav-links {
                gap: 1rem;
            }
[data-view="projects"] .project-card {
                flex-direction: column;
                height: auto;
            }
[data-view="projects"] .project-image {
                width: 100%;
                height: 240px;
            }
[data-view="projects"] .project-info {
                width: 100%;
            } }

@media (max-width: 768px) { [data-view="projects"] .project-card {
                grid-template-columns: 1fr;
                height: auto;
                width: 100%;
            }
[data-view="projects"] .project-image {
                height: 240px;
            } }


/* ===== 视图: contact ===== */
[data-view="contact"] nav {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            padding: 0.8rem var(--padding-x);
            height: 70px;
            display: flex;
            justify-content: flex-end;
            align-items: center;
            z-index: 1000;
            background-color: var(--bg-color);
            border-bottom: 1px solid var(--border-color);
        }

[data-view="contact"] .nav-links {
            display: flex;
            gap: 1rem;
            margin-left: auto;
        }

[data-view="contact"] .content-section {
            padding: 120px var(--padding-x);
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            min-height: calc(100vh - 140px);
        }

[data-view="contact"] .contact-section {
            margin-bottom: 80px;
        }

[data-view="contact"] .section-title {
            display: flex;
            align-items: baseline;
            margin-bottom: 40px;
        }

[data-view="contact"] .section-title h2 {
            font-size: 2rem;
            margin-right: 15px;
            color: var(--primary-color);
        }

[data-view="contact"] .section-title span {
            font-size: 1.2rem;
            color: var(--primary-color);
        }

[data-view="contact"] .contact-text {
            color: var(--text-color);
            font-size: 1rem;
            line-height: 1.8;
            margin-bottom: 40px;
        }

[data-view="contact"] .contact-form {
            margin: 60px 0;
            max-width: 800px;
        }

[data-view="contact"] .form-group {
            position: relative;
            margin-bottom: 35px;
        }

[data-view="contact"] .form-group input, [data-view="contact"] .form-group textarea {
            width: 100%;
            padding: 20px;
            font-size: 16px;
            color: var(--primary-color);
            background: var(--card-bg) !important;
            border: 1px solid var(--border-color);
            border-radius: 12px;
            transition: all 0.3s ease;
            -webkit-appearance: none;
            -moz-appearance: none;
            appearance: none;
        }

[data-view="contact"] .form-label {
            position: absolute;
            top: -25px;
            left: 0;
            font-size: 16px;
            color: var(--primary-color);
            pointer-events: none;
        }

[data-view="contact"] .form-label span {
            margin-left: 8px;
            color: var(--muted-color);
            font-size: 14px;
        }

[data-view="contact"] .form-group input:focus, [data-view="contact"] .form-group textarea:focus {
            border-color: var(--border-color-focus);
            outline: none;
            background: var(--card-bg-hover) !important;
        }

[data-view="contact"] .form-group textarea {
            min-height: 240px;
            resize: none;
            overflow-y: hidden;
        }

[data-view="contact"] .submit-btn {
            padding: 15px 40px;
            font-size: 14px;
            letter-spacing: 2px;
            color: var(--primary-color);
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            transition: all 0.3s ease;
            cursor: pointer;
        }

[data-view="contact"] .submit-btn:hover {
            background: var(--card-bg-hover);
            border-color: var(--border-color-focus);
        }

[data-view="contact"] .office-address {
            margin-bottom: 40px;
        }

[data-view="contact"] .address-details {
            color: var(--text-color);
            line-height: 1.8;
        }

[data-view="contact"] .map-container {
            margin-top: 20px;
            width: 100%;
            height: 400px;
            border-radius: 12px;
            overflow: hidden;
        }

[data-view="contact"] .map-container iframe {
            width: 100%;
            height: 100%;
            border: none;
        }

[data-view="contact"] footer p {
            font-size: 0.8rem;
            color: var(--text-color);
        }

[data-view="contact"] .cursor-main {
            width: 24px;
            height: 24px;
            background: #fff;
            border-radius: 50%;
            transition: width 0.3s ease, height 0.3s ease;
        }

[data-view="contact"] .cursor-follow {
            width: 12px;
            height: 12px;
            background: #fff;
            border-radius: 50%;
            transition: width 0.3s ease, height 0.3s ease;
        }

.cursor-main.clicked {
            width: 16px;
            height: 16px;
        }

.cursor-follow.clicked {
            width: 8px;
            height: 8px;
        }

html, 
        body, 
        a, 
        button, 
        .clickable,
        .nav-card,
        .form-input,
        .submit-btn {
            cursor: none !important;
        }

[data-view="contact"] .toast-message {
            position: fixed;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            background: var(--toast-bg);
            color: var(--toast-text);
            padding: 15px 30px;
            border-radius: 8px;
            z-index: 10000;
            opacity: 0;
            min-width: 200px;
            text-align: center;
            transition: opacity 0.3s ease;
        }

[data-view="contact"] .toast-message.show {
            opacity: 1;
        }

[data-view="contact"] input:-webkit-autofill, [data-view="contact"] input:-webkit-autofill:hover, [data-view="contact"] input:-webkit-autofill:focus, [data-view="contact"] input:-webkit-autofill:active, [data-view="contact"] textarea:-webkit-autofill, [data-view="contact"] textarea:-webkit-autofill:hover, [data-view="contact"] textarea:-webkit-autofill:focus, [data-view="contact"] textarea:-webkit-autofill:active {
            -webkit-text-fill-color: var(--primary-color) !important;
            -webkit-box-shadow: 0 0 0 1000px var(--card-bg) inset !important;
            box-shadow: 0 0 0 1000px var(--card-bg) inset !important;
            transition: background-color 5000s ease-in-out 0s;
        }

@media (max-width: 768px) { :root {
                --padding-x: 5%;
            }
[data-view="contact"] .nav-links {
                gap: 2rem;
            }
[data-view="contact"] .content-section {
                padding: 100px var(--padding-x);
            }
[data-view="contact"] .footer-content {
                flex-direction: column;
                gap: 1rem;
                text-align: center;
            } }

@media (max-width: 768px) { html, 
            body, 
            a, 
            button, 
            .clickable,
            .nav-card,
            .form-input,
            .submit-btn {
                cursor: auto !important;
            }
[data-view="contact"] .cursor-container {
                display: none;
            } }


/* ===== 视图: news-1 ===== */
[data-view="news-1"] .content-section {
            margin-top: 70px; 
            min-height: calc(100vh - 70px - 200px); 
            padding: 2rem var(--padding-x);
        }

[data-view="news-1"] .card-grid {
            width: 1380px;
            display: grid;
            grid-template-columns: 1fr;
            gap: 80px;
            padding: 0;
            max-width: 100%;
            margin: 0 auto;
        }

[data-view="news-1"] .project-card {
            width: 100%;
            max-width: 1380px;
            height: 400px;
            display: grid;
            grid-template-columns: 400px 1fr;
            background: var(--card-bg);
            border-radius: 12px;
            overflow: hidden;
            border: 1px solid var(--border-color);
            position: relative;
            isolation: isolate;
            padding: 20px;
            gap: 20px;
            transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            transform-origin: center;
            z-index: 1;
            margin: 0 auto;
        }

[data-view="news-1"] .project-image {
            width: 100%;
            height: 100%;
            overflow: hidden;
            position: relative;
            border-radius: 8px;
            z-index: 3;
        }

[data-view="news-1"] .project-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }

[data-view="news-1"] .project-info {
            padding: 18px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            background: var(--card-bg);
            position: relative;
        }

[data-view="news-1"] .project-info .date {
            font-size: 0.85rem;
            margin-bottom: 0.9rem;
            color: var(--text-color);
        }

[data-view="news-1"] .project-info h3 {
            font-size: 1.7rem;
            margin-bottom: 0.9rem;
            color: var(--primary-color);
        }

[data-view="news-1"] .project-info .client {
            font-size: 0.95rem;
            color: var(--text-color);
            margin-bottom: 0.9rem;
        }

[data-view="news-1"] .project-info p {
            font-size: 1rem;
            color: var(--text-color);
            line-height: 1.5;
        }

[data-view="news-1"] .project-card .hover-effect {
            position: absolute;
            top: var(--mouse-y, 50%);
            left: var(--mouse-x, 50%);
            width: 4000px;
            height: 4000px;
            background-color: var(--hover-blob);
            border-radius: 50%;
            transform: translate(-50%, -50%) scale(0);
            transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1), opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 1;
            pointer-events: none;
            opacity: 0;
        }

[data-view="news-1"] .project-card.animating .hover-effect {
            transform: translate(-50%, -50%) scale(1);
            opacity: 1;
        }

[data-view="news-1"] .project-info * {
            position: relative;
            z-index: 2;
            transition: color 1s ease;
        }

[data-view="news-1"] .project-card.animating .project-info * {
            color: var(--hover-blob-text);
        }

[data-view="news-1"] .news-images {
            display: flex;
            flex-direction: column;
            gap: 2rem;
            width: 100%;
            padding: 2rem 0;
        }

[data-view="news-1"] .news-images img {
            width: 100%;
            height: auto;
            border-radius: 12px;
            object-fit: cover;
        }

[data-view="news-1"] .news-header {
            text-align: center;
            margin: 4rem 0 6rem;
        }

[data-view="news-1"] .news-header h1 {
            font-size: 3rem;
            margin-bottom: 1.5rem;
            font-weight: 500;
            letter-spacing: -0.02em;
        }

[data-view="news-1"] .news-meta {
            color: var(--text-color);
            font-size: 1rem;
        }

[data-view="news-1"] .news-content {
            max-width: 1380px;
            margin: 0 auto;
            padding: 0 2rem;
        }

[data-view="news-1"] .hero-image {
            width: 100%;
            margin-bottom: 4rem;
        }

[data-view="news-1"] .hero-image img {
            width: 100%;
            height: auto;
            border-radius: 12px;
        }

[data-view="news-1"] .article-sections {
            padding: 0 var(--padding-x);
            max-width: 1380px;
            margin: 0 auto;
        }

[data-view="news-1"] .section-left, [data-view="news-1"] .section-right {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
            margin-bottom: 6rem;
            align-items: center;
        }

[data-view="news-1"] .section-right {
            direction: rtl;
        }

[data-view="news-1"] .section-right > * {
            direction: ltr;
        }

[data-view="news-1"] .text-content {
            padding: 2rem;
        }

[data-view="news-1"] .text-content p {
            font-size: 1.2rem;
            line-height: 1.8;
            color: var(--text-color);
        }

[data-view="news-1"] .image-content {
            position: relative;
            width: 100%;
            aspect-ratio: 4/3;
            overflow: hidden;
        }

[data-view="news-1"] .image-content img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 4px;
        }

[data-view="news-1"] .section-center {
            max-width: 800px;
            margin: 0 auto 6rem;
            text-align: center;
            padding: 0 2rem;
        }

[data-view="news-1"] .section-center p {
            font-size: 1.2rem;
            line-height: 1.8;
            color: var(--text-color);
        }

[data-view="news-1"] .article-intro {
            font-size: 1.5rem;
            line-height: 1.6;
            color: var(--primary-color);
            max-width: 800px;
            margin: 0 auto 6rem;
            text-align: center;
            font-weight: 300;
        }

[data-view="news-1"] .image-text-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 4rem;
            margin-bottom: 6rem;
        }

[data-view="news-1"] .text-block {
            display: flex;
            align-items: center;
        }

[data-view="news-1"] .text-block p {
            color: var(--text-color);
            font-size: 1.1rem;
            line-height: 1.8;
        }

[data-view="news-1"] .image-block img {
            width: 100%;
            height: auto;
            border-radius: 12px;
            object-fit: cover;
        }

@media (max-width: 768px) { :root {
                --padding-x: 5%;
            }
[data-view="news-1"] .nav-links {
                gap: 1rem;
            }
[data-view="news-1"] .project-card {
                flex-direction: column;
                height: auto;
            }
[data-view="news-1"] .project-image {
                width: 100%;
                height: 240px;
            }
[data-view="news-1"] .project-info {
                width: 100%;
            }
[data-view="news-1"] .footer-content {
                flex-direction: column;
                gap: 1rem;
                text-align: center;
            } }

@media (max-width: 768px) { [data-view="news-1"] .project-card {
                grid-template-columns: 1fr;
                height: auto;
                width: 100%;
            }
[data-view="news-1"] .project-image {
                height: 240px;
            } }

@media (max-width: 768px) { [data-view="news-1"] .news-header h1 {
                font-size: 2.5rem;
            }
[data-view="news-1"] .hero-image {
                height: 50vh;
                margin-bottom: 4rem;
            }
[data-view="news-1"] .section-left, [data-view="news-1"] .section-right {
                grid-template-columns: 1fr;
                gap: 2rem;
                margin-bottom: 4rem;
            }
[data-view="news-1"] .section-right {
                direction: ltr;
            }
[data-view="news-1"] .text-content {
                padding: 1rem 0;
            } }

@media (max-width: 768px) { [data-view="news-1"] .image-text-grid {
                grid-template-columns: 1fr;
                gap: 2rem;
            }
[data-view="news-1"] .news-header h1 {
                font-size: 2rem;
            }
[data-view="news-1"] .article-intro {
                font-size: 1.2rem;
                margin-bottom: 4rem;
            } }


/* ===== 视图: news-2 ===== */
[data-view="news-2"] .content-section {
            margin-top: 70px; 
            min-height: calc(100vh - 70px - 200px); 
            padding: 2rem var(--padding-x);
        }

[data-view="news-2"] .card-grid {
            width: 1380px;
            display: grid;
            grid-template-columns: 1fr;
            gap: 80px;
            padding: 0;
            max-width: 100%;
            margin: 0 auto;
        }

[data-view="news-2"] .project-card {
            width: 100%;
            max-width: 1380px;
            height: 400px;
            display: grid;
            grid-template-columns: 400px 1fr;
            background: var(--card-bg);
            border-radius: 12px;
            overflow: hidden;
            border: 1px solid var(--border-color);
            position: relative;
            isolation: isolate;
            padding: 20px;
            gap: 20px;
            transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            transform-origin: center;
            z-index: 1;
            margin: 0 auto;
        }

[data-view="news-2"] .project-image {
            width: 100%;
            height: 100%;
            overflow: hidden;
            position: relative;
            border-radius: 8px;
            z-index: 3;
        }

[data-view="news-2"] .project-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }

[data-view="news-2"] .project-info {
            padding: 18px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            background: var(--card-bg);
            position: relative;
        }

[data-view="news-2"] .project-info .date {
            font-size: 0.85rem;
            margin-bottom: 0.9rem;
            color: var(--text-color);
        }

[data-view="news-2"] .project-info h3 {
            font-size: 1.7rem;
            margin-bottom: 0.9rem;
            color: var(--primary-color);
        }

[data-view="news-2"] .project-info .client {
            font-size: 0.95rem;
            color: var(--text-color);
            margin-bottom: 0.9rem;
        }

[data-view="news-2"] .project-info p {
            font-size: 1rem;
            color: var(--text-color);
            line-height: 1.5;
        }

[data-view="news-2"] .project-card .hover-effect {
            position: absolute;
            top: var(--mouse-y, 50%);
            left: var(--mouse-x, 50%);
            width: 4000px;
            height: 4000px;
            background-color: var(--hover-blob);
            border-radius: 50%;
            transform: translate(-50%, -50%) scale(0);
            transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1), opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 1;
            pointer-events: none;
            opacity: 0;
        }

[data-view="news-2"] .project-card.animating .hover-effect {
            transform: translate(-50%, -50%) scale(1);
            opacity: 1;
        }

[data-view="news-2"] .project-info * {
            position: relative;
            z-index: 2;
            transition: color 1s ease;
        }

[data-view="news-2"] .project-card.animating .project-info * {
            color: var(--hover-blob-text);
        }

[data-view="news-2"] .news-images {
            display: flex;
            flex-direction: column;
            gap: 2rem;
            width: 100%;
            padding: 2rem 0;
        }

[data-view="news-2"] .news-images img {
            width: 100%;
            height: auto;
            border-radius: 12px;
            object-fit: cover;
        }

[data-view="news-2"] .news-header {
            text-align: center;
            margin: 4rem 0 6rem;
        }

[data-view="news-2"] .news-header h1 {
            font-size: 3rem;
            margin-bottom: 1.5rem;
            font-weight: 500;
            letter-spacing: -0.02em;
        }

[data-view="news-2"] .news-meta {
            color: var(--text-color);
            font-size: 1rem;
        }

[data-view="news-2"] .news-content {
            max-width: 1380px;
            margin: 0 auto;
            padding: 0 2rem;
        }

[data-view="news-2"] .hero-image {
            width: 100%;
            margin-bottom: 4rem;
        }

[data-view="news-2"] .hero-image img {
            width: 100%;
            height: auto;
            border-radius: 12px;
        }

[data-view="news-2"] .article-sections {
            padding: 0 var(--padding-x);
            max-width: 1380px;
            margin: 0 auto;
        }

[data-view="news-2"] .section-left, [data-view="news-2"] .section-right {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
            margin-bottom: 6rem;
            align-items: center;
        }

[data-view="news-2"] .section-right {
            direction: rtl;
        }

[data-view="news-2"] .section-right > * {
            direction: ltr;
        }

[data-view="news-2"] .text-content {
            padding: 2rem;
        }

[data-view="news-2"] .text-content p {
            font-size: 1.2rem;
            line-height: 1.8;
            color: var(--text-color);
        }

[data-view="news-2"] .image-content {
            position: relative;
            width: 100%;
            aspect-ratio: 4/3;
            overflow: hidden;
        }

[data-view="news-2"] .image-content img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 4px;
        }

[data-view="news-2"] .section-center {
            max-width: 800px;
            margin: 0 auto 6rem;
            text-align: center;
            padding: 0 2rem;
        }

[data-view="news-2"] .section-center p {
            font-size: 1.2rem;
            line-height: 1.8;
            color: var(--text-color);
        }

[data-view="news-2"] .article-intro {
            font-size: 1.5rem;
            line-height: 1.6;
            color: var(--primary-color);
            max-width: 800px;
            margin: 0 auto 6rem;
            text-align: center;
            font-weight: 300;
        }

[data-view="news-2"] .image-text-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 4rem;
            margin-bottom: 6rem;
            max-width: 2560px;
            margin-left: auto;
            margin-right: auto;
        }

[data-view="news-2"] .text-block {
            display: flex;
            align-items: center;
        }

[data-view="news-2"] .text-block p {
            color: var(--text-color);
            font-size: 1.1rem;
            line-height: 1.8;
        }

[data-view="news-2"] .image-block {
            position: relative;
            overflow: hidden;
            aspect-ratio: 1/1;  
        }

[data-view="news-2"] .image-block img {
            width: 100%;
            height: 100%;
            border-radius: 12px;
            display: block;
            object-fit: cover;  
        }

@media (max-width: 768px) { :root {
                --padding-x: 5%;
            }
[data-view="news-2"] .nav-links {
                gap: 1rem;
            }
[data-view="news-2"] .project-card {
                flex-direction: column;
                height: auto;
            }
[data-view="news-2"] .project-image {
                width: 100%;
                height: 240px;
            }
[data-view="news-2"] .project-info {
                width: 100%;
            }
[data-view="news-2"] .footer-content {
                flex-direction: column;
                gap: 1rem;
                text-align: center;
            } }

@media (max-width: 768px) { [data-view="news-2"] .project-card {
                grid-template-columns: 1fr;
                height: auto;
                width: 100%;
            }
[data-view="news-2"] .project-image {
                height: 240px;
            } }

@media (max-width: 768px) { [data-view="news-2"] .news-header h1 {
                font-size: 2.5rem;
            }
[data-view="news-2"] .hero-image {
                height: 50vh;
                margin-bottom: 4rem;
            }
[data-view="news-2"] .section-left, [data-view="news-2"] .section-right {
                grid-template-columns: 1fr;
                gap: 2rem;
                margin-bottom: 4rem;
            }
[data-view="news-2"] .section-right {
                direction: ltr;
            }
[data-view="news-2"] .text-content {
                padding: 1rem 0;
            } }

@media (max-width: 768px) { [data-view="news-2"] .image-text-grid {
                grid-template-columns: 1fr;
                gap: 2rem;
            }
[data-view="news-2"] .news-header h1 {
                font-size: 2rem;
            }
[data-view="news-2"] .article-intro {
                font-size: 1.2rem;
                margin-bottom: 4rem;
            } }


/* ===== 视图: project-1 ===== */
[data-view="project-1"] .content-section {
            margin-top: 70px; 
            min-height: calc(100vh - 70px - 200px); 
            padding: 2rem var(--padding-x);
        }

[data-view="project-1"] .card-grid {
            width: 1380px;
            display: grid;
            grid-template-columns: 1fr;
            gap: 80px;
            padding: 0;
            max-width: 100%;
            margin: 0 auto;
        }

[data-view="project-1"] .project-card {
            width: 100%;
            max-width: 1380px;
            height: 400px;
            display: grid;
            grid-template-columns: 400px 1fr;
            background: var(--card-bg);
            border-radius: 12px;
            overflow: hidden;
            border: 1px solid var(--border-color);
            position: relative;
            isolation: isolate;
            padding: 20px;
            gap: 20px;
            transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            transform-origin: center;
            z-index: 1;
            margin: 0 auto;
        }

[data-view="project-1"] .project-image {
            width: 100%;
            height: 100%;
            overflow: hidden;
            position: relative;
            border-radius: 8px;
            z-index: 3;
        }

[data-view="project-1"] .project-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }

[data-view="project-1"] .project-info {
            padding: 18px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            background: var(--card-bg);
            position: relative;
        }

[data-view="project-1"] .project-info .date {
            font-size: 0.85rem;
            margin-bottom: 0.9rem;
            color: var(--text-color);
        }

[data-view="project-1"] .project-info h3 {
            font-size: 1.7rem;
            margin-bottom: 0.9rem;
            color: var(--primary-color);
        }

[data-view="project-1"] .project-info .client {
            font-size: 0.95rem;
            color: var(--text-color);
            margin-bottom: 0.9rem;
        }

[data-view="project-1"] .project-info p {
            font-size: 1rem;
            color: var(--text-color);
            line-height: 1.5;
        }

[data-view="project-1"] .project-card .hover-effect {
            position: absolute;
            top: var(--mouse-y, 50%);
            left: var(--mouse-x, 50%);
            width: 4000px;
            height: 4000px;
            background-color: var(--hover-blob);
            border-radius: 50%;
            transform: translate(-50%, -50%) scale(0);
            transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1), opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 1;
            pointer-events: none;
            opacity: 0;
        }

[data-view="project-1"] .project-card.animating .hover-effect {
            transform: translate(-50%, -50%) scale(1);
            opacity: 1;
        }

[data-view="project-1"] .project-info * {
            position: relative;
            z-index: 2;
            transition: color 1s ease;
        }

[data-view="project-1"] .project-card.animating .project-info * {
            color: var(--hover-blob-text);
        }

[data-view="project-1"] .news-images {
            display: flex;
            flex-direction: column;
            gap: 2rem;
            width: 100%;
            padding: 2rem 0;
        }

[data-view="project-1"] .news-images img {
            width: 100%;
            height: auto;
            border-radius: 12px;
            object-fit: cover;
        }

[data-view="project-1"] .news-header {
            text-align: center;
            margin: 4rem 0 6rem;
        }

[data-view="project-1"] .news-header h1 {
            font-size: 3rem;
            margin-bottom: 1.5rem;
            font-weight: 500;
            letter-spacing: -0.02em;
        }

[data-view="project-1"] .news-meta {
            color: var(--text-color);
            font-size: 1rem;
        }

[data-view="project-1"] .news-content {
            max-width: 1380px;
            margin: 0 auto;
            padding: 0 2rem;
        }

[data-view="project-1"] .hero-image {
            width: 100%;
            margin-bottom: 80px;
        }

[data-view="project-1"] .hero-image img {
            width: 100%;
            height: auto;
            display: block;
        }

[data-view="project-1"] .article-sections {
            padding: 0 var(--padding-x);
            max-width: 1380px;
            margin: 0 auto;
        }

[data-view="project-1"] .section-left, [data-view="project-1"] .section-right {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
            margin-bottom: 6rem;
            align-items: center;
        }

[data-view="project-1"] .section-right {
            direction: rtl;
        }

[data-view="project-1"] .section-right > * {
            direction: ltr;
        }

[data-view="project-1"] .text-content {
            padding: 2rem;
        }

[data-view="project-1"] .text-content p {
            font-size: 1.2rem;
            line-height: 1.8;
            color: var(--text-color);
        }

[data-view="project-1"] .image-content {
            position: relative;
            width: 100%;
            aspect-ratio: 4/3;
            overflow: hidden;
        }

[data-view="project-1"] .image-content img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 4px;
        }

[data-view="project-1"] .section-center {
            max-width: 800px;
            margin: 0 auto 6rem;
            text-align: center;
            padding: 0 2rem;
        }

[data-view="project-1"] .section-center p {
            font-size: 1.2rem;
            line-height: 1.8;
            color: var(--text-color);
        }

[data-view="project-1"] .article-intro {
            font-size: 1.5rem;
            line-height: 1.6;
            color: var(--primary-color);
            max-width: 800px;
            margin: 0 auto 6rem;
            text-align: center;
            font-weight: 300;
        }

[data-view="project-1"] .image-text-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 4rem;
            margin-bottom: 6rem;
            max-width: 2560px;
            margin-left: auto;
            margin-right: auto;
        }

[data-view="project-1"] .text-block {
            display: flex;
            align-items: center;
        }

[data-view="project-1"] .text-block p {
            color: var(--text-color);
            font-size: 1.1rem;
            line-height: 1.8;
        }

[data-view="project-1"] .image-block {
            position: relative;
            overflow: hidden;
            aspect-ratio: 1/1;  
        }

[data-view="project-1"] .image-block img {
            width: 100%;
            height: 100%;
            border-radius: 12px;
            display: block;
            object-fit: cover;  
        }

[data-view="project-1"] .project-container {
            margin-top: -70px;  
        }

[data-view="project-1"] .project-header {
            margin: 120px 0 60px;
            text-align: center;
        }

[data-view="project-1"] .project-header h1 {
            font-size: 4rem;
            font-weight: 500;
            margin-bottom: 1rem;
            letter-spacing: -0.02em;
        }

[data-view="project-1"] .project-meta {
            color: var(--text-color);
            font-size: 1.2rem;
        }

[data-view="project-1"] .project-intro {
            max-width: 800px;
            margin: 0 auto 80px;
            text-align: center;
        }

[data-view="project-1"] .project-intro p {
            font-size: 1.5rem;
            line-height: 1.6;
            color: var(--text-color);
        }

[data-view="project-1"] .project-content {
            max-width: 800px;
            margin: 0 auto 80px;
        }

[data-view="project-1"] .project-content p {
            font-size: 1.2rem;
            line-height: 1.8;
            color: var(--text-color);
        }

[data-view="project-1"] .image-grid {
            width: 100vw;
            margin-left: calc(-50vw + 50%);
            margin-right: calc(-50vw + 50%);
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 0;
            margin-bottom: 0;
            height: 25vw;  
        }

[data-view="project-1"] .grid-item {
            width: 25vw;  
            height: 25vw;  
            overflow: hidden;  
        }

[data-view="project-1"] .grid-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;  
            display: block;
        }

[data-view="project-1"] .project-summary {
            max-width: 800px;
            margin: 0 auto 120px;
        }

[data-view="project-1"] .project-summary p {
            font-size: 1.2rem;
            line-height: 1.8;
            color: var(--text-color);
            margin-bottom: 2rem;
        }

[data-view="project-1"] .project-awards {
            margin-top: 40px;
            padding-top: 40px;
            border-top: 1px solid var(--border-color);
        }

[data-view="project-1"] .project-awards p {
            font-size: 1rem;
            margin-bottom: 1rem;
        }

[data-view="project-1"] .project-awards a {
            color: var(--primary-color);
            text-decoration: none;
            border-bottom: 1px solid var(--border-color);
        }

[data-view="project-1"] .full-screen-image {
            width: 100vw;
            height: 100vh;
            margin: 0;  
            padding: 0;  
            position: relative;  
            top: -70px;  
            overflow: hidden;
        }

[data-view="project-1"] .full-screen-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

@media (max-width: 768px) { :root {
                --padding-x: 5%;
            }
[data-view="project-1"] .nav-links {
                gap: 1rem;
            }
[data-view="project-1"] .project-card {
                flex-direction: column;
                height: auto;
            }
[data-view="project-1"] .project-image {
                width: 100%;
                height: 240px;
            }
[data-view="project-1"] .project-info {
                width: 100%;
            }
[data-view="project-1"] .footer-content {
                flex-direction: column;
                gap: 1rem;
                text-align: center;
            } }

@media (max-width: 768px) { [data-view="project-1"] .project-card {
                grid-template-columns: 1fr;
                height: auto;
                width: 100%;
            }
[data-view="project-1"] .project-image {
                height: 240px;
            } }

@media (max-width: 768px) { [data-view="project-1"] .news-header h1 {
                font-size: 2.5rem;
            }
[data-view="project-1"] .hero-image {
                height: 50vh;
                margin-bottom: 4rem;
            }
[data-view="project-1"] .section-left, [data-view="project-1"] .section-right {
                grid-template-columns: 1fr;
                gap: 2rem;
                margin-bottom: 4rem;
            }
[data-view="project-1"] .section-right {
                direction: ltr;
            }
[data-view="project-1"] .text-content {
                padding: 1rem 0;
            } }

@media (max-width: 768px) { [data-view="project-1"] .image-text-grid {
                grid-template-columns: 1fr;
                gap: 2rem;
            }
[data-view="project-1"] .news-header h1 {
                font-size: 2rem;
            }
[data-view="project-1"] .article-intro {
                font-size: 1.2rem;
                margin-bottom: 4rem;
            } }

@media (max-width: 768px) { [data-view="project-1"] .project-header {
                margin: 80px 0 40px;
            }
[data-view="project-1"] .project-header h1 {
                font-size: 2.5rem;
            }
[data-view="project-1"] .project-intro p {
                font-size: 1.2rem;
            }
[data-view="project-1"] .image-grid {
                grid-template-columns: 1fr;
                gap: 20px;
            } }

/* =========================================================
   v5 移动端适配（新增）
   —— 全部规则仅 ≤1024px 生效，PC（≥1025px）渲染与 v4 完全一致
   —— 汉堡按钮桌面默认隐藏；nav-links 在 ≤768px 变为全屏抽屉
   ========================================================= */

/* 汉堡按钮：桌面默认隐藏（PC 渲染不变） */
.menu-toggle {
    display: none;
}

/* ---------- ≤1024px：iPad 横屏 / 窄窗口（保留桌面横向风格，仅优化拥挤） ---------- */
@media (max-width: 1024px) and (min-width: 769px) {
    /* 卡片图列 400px → 300px，给文字区留空间 */
    [data-view="about"] .project-card,
    [data-view="news"] .project-card,
    [data-view="projects"] .project-card,
    [data-view="news-1"] .project-card,
    [data-view="news-2"] .project-card,
    [data-view="project-1"] .project-card {
        grid-template-columns: 300px 1fr;
    }
    /* 详情页双栏图文间距收紧 */
    [data-view="news-1"] .image-text-grid,
    [data-view="news-2"] .image-text-grid,
    [data-view="project-1"] .image-text-grid {
        gap: 2.5rem;
    }
    [data-view="news-1"] .news-content,
    [data-view="news-2"] .news-content,
    [data-view="project-1"] .news-content {
        padding: 0 1rem;
    }
    [data-view="news-1"] .news-header h1,
    [data-view="news-2"] .news-header h1,
    [data-view="project-1"] .news-header h1 {
        font-size: 2.5rem;
    }
    [data-view="project-1"] .project-header h1 {
        font-size: 3rem;
    }
}

/* ---------- ≤768px：手机 / iPad 竖屏 ---------- */
@media (max-width: 768px) {
    /* 汉堡按钮显示 */
    .menu-toggle {
        display: flex;
        width: 44px;
        height: 44px;
        flex-shrink: 0;
        align-items: center;
        justify-content: center;
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        border-radius: 12px;
        color: var(--primary-color);
        cursor: pointer;
    }
    .menu-toggle svg {
        width: 22px;
        height: 22px;
    }

    /* 导航抽屉：nav-links 变为全屏右滑菜单 */
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        height: calc(100dvh - 70px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        gap: 1.25rem;
        padding: 2rem 5% 3rem;
        background: var(--bg-color);
        z-index: 999;
        transform: translateX(100%);
        transition: transform 0.35s ease;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    body.menu-open .nav-links {
        transform: translateX(0);
    }
    /* 抽屉内导航卡片全宽、字号放大便于点按 */
    .nav-card {
        width: 100%;
    }
    .nav-card h3 {
        font-size: 1.05rem;
    }
    /* 主题按钮沉到抽屉底部并水平居中 */
    body.menu-open .nav-links .theme-toggle {
        margin-top: auto;
        align-self: center;
    }
    /* 菜单打开时隐藏首页页码，避免层级遮挡 */
    body.menu-open .page-number {
        display: none;
    }

    /* ---------- 首页轮播：全宽 + 页码移到底部 + dvh 防地址栏跳动 ---------- */
    [data-view="home"] .content-section {
        height: calc(100vh - 70px);
        height: calc(100dvh - 70px);
        margin: 70px 0 0;
    }
    [data-view="home"] .slider-item {
        height: calc(100vh - 70px - 1.6rem);
        height: calc(100dvh - 70px - 1.6rem);
        padding: 0.8rem;
    }
    [data-view="home"] .page-number {
        top: auto;
        bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
        left: var(--padding-x);
        right: auto;
        transform: none;
        flex-direction: row;
        gap: 1rem;
        padding: 0.5rem;
    }
    [data-view="home"] .page-number span {
        font-size: 0.9rem;
    }
    [data-view="home"] .page-number span.active {
        font-size: 0.9rem;
        transform: scale(1.4);
    }

    /* ---------- 列表卡片：移动端改为「左图右文」缩略图列表，一屏可放 5-6 张 ---------- */
    [data-view="about"] .content-section,
    [data-view="news"] .content-section,
    [data-view="projects"] .content-section {
        padding: 80px 0 60px;
    }
    [data-view="about"] .card-grid,
    [data-view="news"] .card-grid,
    [data-view="projects"] .card-grid {
        gap: 24px;
    }
    /* 卡片：图片缩略图在左、文字在右（与桌面横版布局呼应） */
    [data-view="about"] .card-grid > *,
    [data-view="news"] .card-grid > *,
    [data-view="projects"] .card-grid > * {
        min-width: 0;
    }
    [data-view="about"] .project-card,
    [data-view="news"] .project-card,
    [data-view="projects"] .project-card {
        display: grid;
        grid-template-columns: 92px 1fr;
        grid-template-rows: 1fr;
        align-items: center;
        gap: 14px;
        padding: 12px;
        height: auto;
        aspect-ratio: auto;
        /* 统一卡片厚度（部分卡片缺少"分类"行，内容较短，靠最小高度对齐） */
        min-height: 145px;
    }
    [data-view="about"] .project-image,
    [data-view="news"] .project-image,
    [data-view="projects"] .project-image {
        width: 92px;
        height: 92px;
    }
    [data-view="about"] .project-info,
    [data-view="news"] .project-info,
    [data-view="projects"] .project-info {
        padding: 0;
        justify-content: center;
        /* 允许文字列收缩，长标题靠省略号收住，防止撑宽卡片 */
        min-width: 0;
    }
    [data-view="about"] .project-info .date,
    [data-view="news"] .project-info .date,
    [data-view="projects"] .project-info .date {
        margin-bottom: 4px;
        font-size: 0.78rem;
    }
    [data-view="about"] .project-info h3,
    [data-view="news"] .project-info h3,
    [data-view="projects"] .project-info h3 {
        margin-bottom: 4px;
        font-size: 1.05rem;
        /* 标题单行省略，保证各卡片高度一致 */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    [data-view="about"] .project-info .client,
    [data-view="news"] .project-info .client,
    [data-view="projects"] .project-info .client {
        margin-bottom: 0;
        font-size: 0.8rem;
    }
    /* 正文：最多 2 行，超出省略；固定预留两行高度，保证卡片厚度一致 */
    [data-view="about"] .project-info p,
    [data-view="news"] .project-info p,
    [data-view="projects"] .project-info p {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        overflow: hidden;
        margin-top: 4px;
        font-size: 0.85rem;
        line-height: 1.4;
        min-height: 38px;
    }

    /* ---------- 新闻/项目详情页 ---------- */
    [data-view="news-1"] .news-content,
    [data-view="news-2"] .news-content,
    [data-view="project-1"] .news-content {
        padding: 0 0.5rem;
    }
    [data-view="news-1"] .news-header,
    [data-view="news-2"] .news-header,
    [data-view="project-1"] .news-header {
        margin: 3rem 0 4rem;
    }
    [data-view="news-1"] .news-header h1,
    [data-view="news-2"] .news-header h1,
    [data-view="project-1"] .news-header h1 {
        font-size: 1.8rem;
    }
    [data-view="news-1"] .hero-image,
    [data-view="news-2"] .hero-image {
        margin-bottom: 3rem;
    }
    [data-view="news-1"] .article-intro,
    [data-view="news-2"] .article-intro,
    [data-view="project-1"] .article-intro {
        font-size: 1.1rem;
        margin-bottom: 4rem;
    }
    [data-view="news-1"] .image-text-grid,
    [data-view="news-2"] .image-text-grid,
    [data-view="project-1"] .image-text-grid {
        gap: 2.5rem;
    }

    /* ---------- 项目详情页：修复 image-grid 残留 25vw 的 bug ---------- */
    [data-view="project-1"] .image-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        height: auto;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    [data-view="project-1"] .grid-item {
        width: 100%;
        height: auto;
        aspect-ratio: 4/3;
    }
    /* 修复：全屏大图 width:100vw 被内容区 padding 顶偏 19px，造成横向溢出。
       改为内容区去横向 padding + 大图 width:100%，各文字块自补 padding */
    [data-view="project-1"] .content-section {
        padding: 2rem 0;
    }
    [data-view="project-1"] .full-screen-image {
        width: 100%;
        height: 100vh;
        height: 100svh;
    }
    [data-view="project-1"] .project-header,
    [data-view="project-1"] .project-content,
    [data-view="project-1"] .project-intro {
        padding-left: var(--padding-x);
        padding-right: var(--padding-x);
    }
    [data-view="project-1"] .project-content,
    [data-view="project-1"] .project-intro {
        margin-bottom: 50px;
    }

    /* ---------- 联系页 ---------- */
    [data-view="contact"] nav {
        justify-content: space-between;
    }
    [data-view="contact"] .content-section {
        padding: 90px var(--padding-x) 60px;
    }
    [data-view="contact"] .contact-section {
        margin-bottom: 50px;
    }
    [data-view="contact"] .section-title {
        margin-bottom: 24px;
    }
    [data-view="contact"] .section-title h2 {
        font-size: 1.6rem;
    }
    [data-view="contact"] .section-title span {
        font-size: 1rem;
    }
    [data-view="contact"] .contact-form {
        margin: 40px 0;
    }
    [data-view="contact"] .form-group {
        margin-bottom: 30px;
    }

    /* ---------- 页脚 ---------- */
    footer {
        padding: 2rem 5% 3rem;
    }
    .social-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
    }
    .social-links a {
        padding: 0.7rem 1.2rem;
    }

    /* ---------- 触屏通用 ---------- */
    html, body, a, button {
        -webkit-tap-highlight-color: transparent;
    }
}

/* ---------- ≤480px：小屏手机进一步缩放 ---------- */
@media (max-width: 480px) {
    /* 小屏手机：缩略图略缩小 */
    [data-view="about"] .project-image,
    [data-view="news"] .project-image,
    [data-view="projects"] .project-image {
        width: 80px;
        height: 80px;
    }
    [data-view="about"] .project-card,
    [data-view="news"] .project-card,
    [data-view="projects"] .project-card {
        grid-template-columns: 80px 1fr;
    }
    [data-view="home"] .page-number {
        gap: 0.75rem;
    }
    [data-view="home"] .page-number span {
        font-size: 0.8rem;
    }
    [data-view="news-1"] .news-header h1,
    [data-view="news-2"] .news-header h1,
    [data-view="project-1"] .news-header h1 {
        font-size: 1.6rem;
    }
    [data-view="project-1"] .project-header h1 {
        font-size: 2rem;
    }
    [data-view="project-1"] .project-meta {
        font-size: 1rem;
    }
    [data-view="contact"] .section-title h2 {
        font-size: 1.4rem;
    }
    [data-view="contact"] .form-group input,
    [data-view="contact"] .form-group textarea {
        padding: 16px;
    }
    .social-links a {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    footer p {
        font-size: 0.75rem;
    }
}

/* =========================================================
   微信二维码弹窗（全站常驻，点击页脚 WeChat 弹出）
   ========================================================= */
.qr-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.qr-modal.open {
    display: flex;
}

.qr-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(2px);
}

.qr-modal-box {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px 28px 22px;
    max-width: 88vw;
    text-align: center;
    z-index: 1;
    animation: qrModalIn 0.25s ease;
}

@keyframes qrModalIn {
    from { opacity: 0; transform: scale(0.94); }
    to { opacity: 1; transform: scale(1); }
}

.qr-modal-img {
    display: block;
    width: 240px;
    height: 240px;
    max-width: 70vw;
    max-height: 55vh;
    object-fit: contain;
    border-radius: 10px;
    margin: 0 auto;
    background: #fff;
}

.qr-modal-title {
    margin-top: 14px;
    font-size: 0.95rem;
    color: var(--primary-color);
}

.qr-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    line-height: 1;
    color: var(--primary-color);
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.qr-modal-close:hover {
    opacity: 1;
}

@media (max-width: 480px) {
    .qr-modal-box {
        padding: 20px 16px 16px;
    }
    .qr-modal-img {
        width: 210px;
        height: 210px;
    }
    .qr-modal-title {
        font-size: 0.85rem;
    }
}