/* =====================================================
   杨茜茜作品集 v2 — 编辑式极简风格
   ===================================================== */

:root {
    --bg: #F7F5F0;
    --bg-dark: #11100E;
    --bg-soft: #EDE9E1;
    --text: #12100E;
    --text-muted: #6B6B6B;
    --text-inverse: #F7F5F0;
    --accent: #C84A32;
    --accent-light: #E0684F;
    --line: rgba(18,16,14,0.12);
    --line-inverse: rgba(247,245,240,0.15);
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --font-display: 'Bodoni Moda', 'Noto Serif SC', serif;
    --font-serif: 'Noto Serif SC', serif;
    --font-sans: 'Noto Sans SC', sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

::selection {
    background: var(--accent);
    color: #fff;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
}

/* 加载层 */
.loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s var(--ease), visibility 0.8s;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-inner {
    text-align: center;
}

.loader-line {
    display: block;
    width: 1px;
    height: 80px;
    background: var(--line);
    margin: 0 auto 24px;
    position: relative;
    overflow: hidden;
}

.loader-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent);
    transform: translateY(-100%);
    animation: loaderSlide 1.6s var(--ease) infinite;
}

.loader-text {
    font-family: var(--font-display);
    font-size: 12px;
    letter-spacing: 0.35em;
    color: var(--text-muted);
    margin: 0;
}

@keyframes loaderSlide {
    0% { transform: translateY(-100%); }
    50% { transform: translateY(0); }
    100% { transform: translateY(100%); }
}

/* 纹理 */
.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9000;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* 光标 */
.cursor,
.cursor-follower {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10001;
    transform: translate(-50%, -50%);
    transition: width 0.25s var(--ease), height 0.25s var(--ease), background 0.25s, opacity 0.25s;
}

.cursor {
    width: 8px;
    height: 8px;
    background: var(--accent);
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent);
    opacity: 0.35;
}

body.hovering .cursor {
    width: 48px;
    height: 48px;
    background: rgba(200, 74, 50, 0.12);
    mix-blend-mode: difference;
}

body.hovering .cursor-follower {
    opacity: 0;
}

@media (pointer: coarse) {
    .cursor, .cursor-follower { display: none; }
}

/* 导航 */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 24px 5vw;
    mix-blend-mode: difference;
    transition: padding 0.4s var(--ease);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
}

.nav-logo-mark {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 18px;
    border-radius: 50%;
}

.nav-logo-text {
    font-family: var(--font-serif);
    font-size: 16px;
    letter-spacing: 0.1em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-link {
    font-size: 13px;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.8);
    position: relative;
    padding: 4px 0;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #fff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-light);
    transition: width 0.4s var(--ease);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-num {
    font-family: var(--font-display);
    margin-right: 6px;
    opacity: 0.5;
}

.nav-link--cta {
    border: 1px solid rgba(255,255,255,0.35);
    padding: 8px 18px;
    border-radius: 100px;
}

.nav-link--cta::after { display: none; }

.nav-link--cta:hover {
    border-color: var(--accent-light);
    background: var(--accent-light);
    color: #fff;
}

.nav-toggle {
    display: none;
    width: 32px;
    height: 24px;
    background: none;
    border: none;
    position: relative;
    z-index: 1002;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 1px;
    background: #fff;
    position: absolute;
    left: 0;
    transition: transform 0.4s var(--ease), opacity 0.3s;
}

.nav-toggle span:nth-child(1) { top: 4px; }
.nav-toggle span:nth-child(2) { bottom: 4px; }

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
    .nav-toggle { display: block; }
    .nav-menu {
        position: fixed;
        inset: 0;
        flex-direction: column;
        justify-content: center;
        gap: 24px;
        background: rgba(17,16,14,0.96);
        backdrop-filter: blur(12px);
        transform: translateY(-100%);
        opacity: 0;
        transition: transform 0.6s var(--ease), opacity 0.4s;
    }
    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
    }
    .nav-link {
        font-size: 20px;
        color: #fff;
    }
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 120px 5vw 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.5;
    mask-image: radial-gradient(circle at center, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(circle at center, black 0%, transparent 70%);
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
    animation: blobMove 12s ease-in-out infinite alternate;
}

.hero-blob--1 {
    width: 500px;
    height: 500px;
    background: #E8D5C4;
    top: 10%;
    left: -5%;
}

.hero-blob--2 {
    width: 420px;
    height: 420px;
    background: #D6CFC7;
    bottom: 5%;
    right: -5%;
    animation-delay: -6s;
}

@keyframes blobMove {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, -30px) scale(1.08); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
}

.hero-tag {
    font-size: 13px;
    letter-spacing: 0.35em;
    color: var(--text-muted);
    margin: 0 0 24px;
    text-transform: uppercase;
}

.hero-name {
    font-family: var(--font-serif);
    font-size: clamp(80px, 18vw, 220px);
    font-weight: 900;
    line-height: 1;
    margin: 0;
    letter-spacing: -0.04em;
}

.hero-char {
    display: inline-block;
    opacity: 0;
    transform: translateY(60px);
    animation: charReveal 1s var(--ease) forwards;
}

@keyframes charReveal {
    to { opacity: 1; transform: translateY(0); }
}

.hero-slogan {
    font-family: var(--font-serif);
    font-size: clamp(18px, 2.5vw, 28px);
    color: var(--text-muted);
    margin: 32px 0 48px;
    letter-spacing: 0.12em;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    font-size: 13px;
    letter-spacing: 0.15em;
    border-radius: 100px;
    transition: transform 0.3s var(--ease), box-shadow 0.3s, background 0.3s, color 0.3s;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--text);
    color: var(--bg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(18,16,14,0.18);
}

.btn-ghost {
    border-color: var(--line);
    color: var(--text);
}

.btn-ghost:hover {
    border-color: var(--text);
    background: var(--text);
    color: var(--bg);
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-size: 10px;
    letter-spacing: 0.25em;
    color: var(--text-muted);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: var(--line);
    overflow: hidden;
}

.scroll-line div {
    width: 100%;
    height: 100%;
    background: var(--accent);
    animation: scrollLine 2s var(--ease) infinite;
}

@keyframes scrollLine {
    0% { transform: translateY(-100%); }
    60%, 100% { transform: translateY(100%); }
}

/* 通用区域 */
.section {
    position: relative;
    padding: 140px 5vw;
}

.section--dark {
    background: var(--bg-dark);
    color: var(--text-inverse);
}

.section--soft {
    background: var(--bg-soft);
}

.section-header {
    max-width: 1600px;
    margin: 0 auto 100px;
    position: relative;
}

.section-meta {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

.section-num {
    font-family: var(--font-display);
    font-size: clamp(120px, 18vw, 280px);
    line-height: 0.78;
    color: var(--text);
    opacity: 0.06;
    font-weight: 700;
    user-select: none;
    position: absolute;
    top: -0.16em;
    left: -0.08em;
    z-index: 0;
    pointer-events: none;
}

.section--dark .section-num {
    color: var(--text-inverse);
    opacity: 0.08;
}

.section-title-wrap {
    position: relative;
    z-index: 1;
    padding-top: 40px;
}

.section-label {
    font-family: var(--font-display);
    font-size: 12px;
    letter-spacing: 0.35em;
    color: var(--accent);
    margin: 0 0 16px;
}

.section--dark .section-label {
    color: var(--accent-light);
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 700;
    margin: 0 0 20px;
    line-height: 1.1;
}

.section-desc {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0;
}

.section--dark .section-desc {
    color: rgba(247,245,240,0.55);
}

/* 项目块 */
.project {
    max-width: 1400px;
    margin: 0 auto 140px;
}

.project:last-child {
    margin-bottom: 0;
}

.project-intro {
    max-width: 760px;
    margin: 0 0 48px;
}

.project-intro--center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.project-intro--left {
    margin-left: 0;
    margin-right: 0;
    text-align: left;
    max-width: 920px;
}

.project-desc--large {
    font-size: 18px;
    line-height: 1.85;
}

.ai-video-intro {
    max-width: 1400px;
    margin: 0 auto 64px;
}

.ai-video-intro__lead {
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.7;
    color: var(--text-primary);
    font-weight: 500;
    margin: 0 0 40px;
    max-width: 860px;
}

.ai-video-intro__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 48px;
}

.ai-video-intro__item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 28px 32px;
    background: rgba(18, 16, 14, 0.025);
    border: 1px solid rgba(18, 16, 14, 0.08);
    border-radius: 8px;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.section--dark .ai-video-intro__item {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

.ai-video-intro__item:hover {
    background: rgba(18, 16, 14, 0.05);
    border-color: rgba(18, 16, 14, 0.14);
}

.section--dark .ai-video-intro__item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
}

.ai-video-intro__num {
    flex-shrink: 0;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--accent);
    line-height: 1.6;
    padding-top: 2px;
}

.ai-video-intro__title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px;
    line-height: 1.4;
    color: var(--text-primary);
}

.ai-video-intro__text {
    font-size: 15px;
    line-height: 1.75;
    color: var(--text-muted);
    margin: 0;
}

@media (max-width: 768px) {
    .ai-video-intro__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .ai-video-intro__item {
        padding: 22px 24px;
        gap: 16px;
    }

    .ai-video-intro__lead {
        margin-bottom: 28px;
    }
}

.project-index {
    display: block;
    font-family: var(--font-display);
    font-size: 12px;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: 14px;
}

.section--dark .project-index {
    color: var(--accent-light);
}

.project-title {
    font-family: var(--font-serif);
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 700;
    margin: 0 0 18px;
    line-height: 1.2;
}

.project-desc {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.9;
    margin: 0;
}

.section--dark .project-desc {
    color: rgba(247,245,240,0.6);
}

.project-cover {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 48px;
    cursor: pointer;
    background: rgba(18,16,14,0.03);
    min-height: 240px;
}

.project-cover img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 1.2s var(--ease);
}

.project-cover:hover img {
    transform: scale(1.02);
}

/* 画廊 */
.gallery {
    max-width: 1400px;
    margin: 0 auto 80px;
}

.gallery-header {
    margin-bottom: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid var(--line);
    padding-bottom: 16px;
}

.section--dark .gallery-header {
    border-color: var(--line-inverse);
}

.gallery-title {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.gallery-desc {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0;
    line-height: 1.8;
}

.section--dark .gallery-desc {
    color: rgba(247,245,240,0.5);
}

.gallery-grid {
    display: grid;
    gap: 16px;
}

.gallery-grid--1 { grid-template-columns: 1fr; }
.gallery-grid--2 { grid-template-columns: repeat(2, 1fr); }
.gallery-grid--3 { grid-template-columns: repeat(3, 1fr); }
.gallery-grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
    .gallery-grid--3,
    .gallery-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .gallery-grid--2,
    .gallery-grid--3,
    .gallery-grid--4 { grid-template-columns: 1fr; }
}

.media {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    margin: 0;
    cursor: pointer;
    background: rgba(18,16,14,0.03);
    min-height: 200px;
}

.media img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.9s var(--ease);
}

.media:hover img {
    transform: scale(1.03);
}

.media-overlay {
    position: absolute;
    inset: 0;
    background: rgba(18,16,14,0.35);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s;
}

.media:hover .media-overlay {
    opacity: 1;
}

.media-overlay span {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: var(--font-display);
    font-size: 20px;
    transform: translateY(12px);
    transition: transform 0.4s var(--ease);
}

.media:hover .media-overlay span {
    transform: translateY(0);
}

.project-cover .media-overlay span {
    width: auto;
    border-radius: 100px;
    padding: 10px 24px;
    font-size: 12px;
    letter-spacing: 0.15em;
    font-family: var(--font-sans);
}

/* 视频 */
.video-wrap {
    max-width: 1200px;
    margin: 0 auto 80px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 760px) {
    .video-grid { grid-template-columns: 1fr; }
}

.video-card {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    background: #000;
}

.video-card img {
    width: 100%;
    height: auto;
    object-fit: contain;
    opacity: 0.9;
    transition: opacity 0.4s, transform 0.8s var(--ease);
    display: block;
    min-height: 160px;
}

.video-card:hover img {
    opacity: 0.75;
    transform: scale(1.04);
}

.video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s var(--ease), background 0.3s;
}

.video-play:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(255,255,255,0.18);
}

.video-play span {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 16px;
    border-color: transparent transparent transparent #fff;
    margin-left: 4px;
}

.video-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    margin: 0;
    font-size: 13px;
    letter-spacing: 0.08em;
    color: #fff;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    pointer-events: none;
}

/* 灯箱 */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(17,16,14,0.96);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-stage {
    max-width: 92vw;
    max-height: 88vh;
}

.lightbox-stage img {
    max-width: 100%;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 2px;
}

.lightbox-close,
.lightbox-nav {
    position: absolute;
    background: none;
    border: none;
    color: #fff;
    font-size: 40px;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.lightbox-close:hover,
.lightbox-nav:hover {
    opacity: 1;
}

.lightbox-close {
    top: 24px;
    right: 32px;
}

.lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
    padding: 20px;
}

.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }

@media (max-width: 700px) {
    .lightbox-prev { left: 0; }
    .lightbox-next { right: 0; }
    .lightbox-nav { font-size: 30px; }
}

/* 视频模态 */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(17,16,14,0.96);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s;
}

.video-modal.active {
    opacity: 1;
    visibility: visible;
}

.video-modal-inner {
    width: 90vw;
    max-width: 1200px;
}

.video-modal video {
    width: 100%;
    border-radius: 4px;
    display: block;
}

.video-modal-close {
    position: absolute;
    top: 24px;
    right: 32px;
    background: none;
    border: none;
    color: #fff;
    font-size: 40px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

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

/* 联系 */
.section--contact {
    background: var(--bg-dark);
    color: var(--text-inverse);
    padding: 160px 5vw;
}

.contact-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.contact-eyebrow {
    font-family: var(--font-display);
    font-size: 12px;
    letter-spacing: 0.35em;
    color: var(--accent-light);
}

.contact-title {
    font-family: var(--font-serif);
    font-size: clamp(42px, 6vw, 80px);
    font-weight: 700;
    margin: 16px 0 24px;
}

.contact-desc {
    color: rgba(247,245,240,0.55);
    margin: 0 auto 60px;
    max-width: 500px;
}

.contact-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: left;
}

@media (max-width: 900px) {
    .contact-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
    .contact-list { grid-template-columns: 1fr; }
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 28px;
    border: 1px solid var(--line-inverse);
    border-radius: 4px;
    transition: border-color 0.3s, transform 0.3s var(--ease);
}

.contact-item:hover {
    border-color: var(--accent-light);
    transform: translateY(-4px);
}

.contact-label {
    font-size: 11px;
    letter-spacing: 0.2em;
    color: rgba(247,245,240,0.45);
    text-transform: uppercase;
}

.contact-value {
    font-size: 16px;
    color: var(--text-inverse);
    word-break: break-all;
}

.contact-item--qr {
    align-items: center;
    text-align: center;
}

.contact-item--qr img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 4px;
}

/* 页脚 */
.footer {
    padding: 40px 5vw;
    text-align: center;
    font-size: 12px;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    border-top: 1px solid var(--line);
}

/* 滚动显示动画 */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 元素进入动画 */
.observed {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.observed.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 导航滚动缩小 */
.nav.scrolled {
    padding-top: 16px;
    padding-bottom: 16px;
}

/* =====================================================
   移动端适配（Android & iOS）
   ===================================================== */

/* 基础触控优化 */
html {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

a, button, .media, .video-card, .project-cover {
    touch-action: manipulation;
}

/* 平板及以下 */
@media (max-width: 1024px) {
    .hero-name {
        font-size: clamp(64px, 14vw, 160px);
    }

    .section {
        padding: 100px 5vw;
    }

    .section-header {
        margin-bottom: 64px;
    }

    .project {
        margin-bottom: 100px;
    }

    .project-cover {
        margin-bottom: 36px;
    }
}

/* 手机 */
@media (max-width: 768px) {
    body {
        font-size: 15px;
        line-height: 1.65;
    }

    .hero {
        min-height: auto;
        padding: 140px 5vw 100px;
    }

    .hero-name {
        font-size: clamp(52px, 16vw, 120px);
    }

    .hero-slogan {
        font-size: 16px;
        margin: 24px 0 36px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 14px;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        padding: 13px 28px;
    }

    .section {
        padding: 80px 5vw;
    }

    .section-header {
        margin-bottom: 48px;
    }

    .section-num {
        font-size: clamp(80px, 22vw, 180px);
    }

    .section-title {
        font-size: clamp(28px, 7vw, 40px);
    }

    .section-title-wrap {
        padding-top: 24px;
    }

    .project {
        margin-bottom: 80px;
    }

    .project-intro {
        margin-bottom: 32px;
    }

    .project-title {
        font-size: clamp(24px, 6vw, 32px);
    }

    .project-desc {
        font-size: 15px;
        line-height: 1.75;
    }

    .project-cover {
        margin-bottom: 28px;
    }

    .project-cover img {
        max-height: 60vh;
    }

    .gallery {
        margin-bottom: 48px;
    }

    .gallery-header {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 20px;
    }

    .gallery-grid {
        gap: 12px;
    }

    .video-wrap {
        margin-bottom: 48px;
    }

    .video-grid {
        gap: 16px;
    }

    .video-play {
        width: 56px;
        height: 56px;
    }

    .video-play span {
        border-width: 8px 0 8px 13px;
    }

    .video-title {
        padding: 14px;
        font-size: 12px;
    }

    .contact-content {
        padding: 0;
    }

    .contact-title {
        font-size: clamp(32px, 9vw, 48px);
    }

    .section--contact {
        padding: 100px 5vw;
    }

    .contact-item {
        padding: 22px;
    }
}

/* 小屏手机 */
@media (max-width: 375px) {
    .hero-name {
        font-size: 48px;
    }

    .section-title {
        font-size: 26px;
    }

    .project-title {
        font-size: 22px;
    }

    .gallery-grid {
        gap: 8px;
    }
}

/* 横屏手机 */
@media (max-width: 896px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 120px 5vw 80px;
    }

    .hero-name {
        font-size: 64px;
    }

    .hero-actions {
        flex-direction: row;
    }
}
