/* 隐藏所有元素的滚动条 */
* {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

:root {
    --purple-950: #10051f;
    --purple-900: #1f0b3d;
    --purple-800: #3b0764;
    --purple-700: #720eec;
    --purple-500: #8b5cf6;
    --purple-400: #a987ff;
    --purple-300: #c9b6ff;
    --purple-100: #f3e8ff;
    --blue-700: #315bff;
    --blue-500: #4f8dff;
    --blue-300: #8cc7ff;
    --banner-blue: #5ab8ff;
    --clean-surface: #fbfbfd;
    --ink: #f8f5ff;
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.18);
}

*::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Arial', 'Helvetica', 'Microsoft YaHei', sans-serif;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* 首页全屏滚动样式 */
.home-body {
    overflow-y: hidden;
    scroll-snap-type: y mandatory;
}

/* 隐藏滚动条 */
body::-webkit-scrollbar {
    display: none;
}

body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ========== 通用部分样式 ========== */
.section {
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
    scroll-snap-align: start;
}


/* ========== 第一部分：首页 ========== */
.section-1 {
    background: url('bg.jpg') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 3;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-1.slide-up {
    transform: translateY(-100%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(135deg, rgba(10, 18, 43, 0.72), rgba(59, 130, 246, 0.2), rgba(109, 40, 217, 0.24)),
        url('bg.jpg') center/cover no-repeat;
    z-index: -1;
}

.section-1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 25%;
    background: linear-gradient(180deg, rgba(16, 5, 31, 0) 0%, rgba(16, 5, 31, 0.72) 100%);
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    text-align: center;
    z-index: 2;
    color: #fff;
}

.main-title {
    font-size: 5rem;
    font-weight: bold;
    margin-bottom: 2rem;
    text-shadow: 0 8px 24px rgba(15, 23, 42, 0.62), 0 18px 54px rgba(59, 130, 246, 0.46), 0 0 22px rgba(196, 181, 253, 0.34);
    letter-spacing: 0.28rem;
    animation: fadeInDown 1s ease-out;
}

.typing-text {
    font-size: 1.8rem;
    min-height: 2.5rem;
    text-shadow: 0 6px 18px rgba(15, 23, 42, 0.7), 0 14px 36px rgba(59, 130, 246, 0.5), 0 0 18px rgba(216, 180, 254, 0.3);
    animation: fadeInUp 1s ease-out 0.5s both;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    z-index: 2;
}

.arrow-down {
    width: 30px;
    height: 30px;
    border-right: 3px solid var(--purple-100);
    border-bottom: 3px solid var(--purple-100);
    transform: rotate(45deg);
    box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ========== 全局导航栏 ========== */
.nav-hover-zone {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 15px;
    z-index: 1250;
}

.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(31, 11, 61, 0.74);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 1200;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.4s ease;
}

.top-nav.collapsed {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.nav-hover-zone:hover + .top-nav,
.top-nav:hover {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.nav-left {
    font-size: 1.3rem;
    font-weight: 900;
    font-family: -apple-system, BlinkMacSystemFont, "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    letter-spacing: 3px;
    display: flex;
    gap: 2px;
}

.nav-logo span {
    display: inline-block;
}

.nav-logo .letter-red { color: #f5d0fe; }
.nav-logo .letter-yellow { color: #93c5fd; }
.nav-logo .letter-blue { color: #4f8dff; }
.nav-logo .letter-black { color: #ffffff; }

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

.nav-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.62);
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.nav-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-icon svg {
    stroke: currentColor;
}

.nav-text {
    font-weight: 900;
    font-family: -apple-system, BlinkMacSystemFont, "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

.nav-toggle {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--purple-100);
    transition: transform 0.25s ease;
}

.top-nav.collapsed .nav-toggle {
    transform: rotate(180deg);
}

/* 搜索框 */
.search-box {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    height: 0;
    background: rgba(31, 11, 61, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: height 0.3s ease;
    z-index: 1100;
}

.search-box.active {
    height: 80px;
}

.search-box input {
    width: 60%;
    max-width: 600px;
    padding: 12px 20px;
    font-size: 1.1rem;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: transparent;
    color: #fff;
    outline: none;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-close {
    position: absolute;
    right: 40px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

/* ========== 第二部分：极简紫色入口 ========== */
.section-2 {
    background:
        radial-gradient(circle at 18% 18%, rgba(114, 14, 236, 0.14), transparent 34%),
        radial-gradient(circle at 82% 16%, rgba(79, 141, 255, 0.16), transparent 32%),
        linear-gradient(180deg, #ffffff 0%, var(--clean-surface) 54%, #f4f0ff 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    padding: 72px 6vw;
    color: #101014;
}

.section-2::before {
    content: '';
    position: absolute;
    inset: 12%;
    border: 1px solid rgba(114, 14, 236, 0.08);
    border-radius: 40px;
    pointer-events: none;
}

.feature-shell {
    width: min(1120px, 100%);
    position: relative;
    z-index: 2;
}

.section-kicker {
    color: #720eec;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.24rem;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.section-title {
    max-width: 720px;
    font-size: clamp(2.2rem, 5vw, 5rem);
    line-height: 1.02;
    letter-spacing: 0;
    margin-bottom: 46px;
    color: #121218;
    text-shadow: 0 14px 42px rgba(114, 14, 236, 0.1);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.feature-card {
    --card-accent: #720eec;
    min-height: 320px;
    padding: 26px;
    border: 1px solid rgba(20, 20, 28, 0.08);
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.74)),
        radial-gradient(circle at 74% 0, color-mix(in srgb, var(--card-accent) 14%, transparent), transparent 56%);
    color: #121218;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
    overflow: hidden;
    position: relative;
    box-shadow: 0 24px 70px rgba(24, 18, 48, 0.08);
    transition: transform 0.28s ease, border-color 0.28s ease, background 0.28s ease;
}

.feature-card:nth-child(1) { --card-accent: #720eec; }
.feature-card:nth-child(2) { --card-accent: #4f8dff; }
.feature-card:nth-child(3) { --card-accent: #9a6cff; }
.feature-card:nth-child(4) { --card-accent: #5ab8ff; }

.feature-card::before {
    content: '';
    position: absolute;
    top: 24px;
    right: 24px;
    width: 74px;
    height: 74px;
    clip-path: polygon(50% 0, 88% 22%, 100% 58%, 50% 100%, 0 58%, 12% 22%);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.12)),
        var(--card-accent);
    opacity: 0.2;
    transform: rotate(12deg);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(114, 14, 236, 0.18);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.84)),
        radial-gradient(circle at 74% 0, color-mix(in srgb, var(--card-accent) 18%, transparent), transparent 58%);
    box-shadow: 0 30px 80px rgba(36, 20, 84, 0.12);
}

.feature-index {
    color: var(--card-accent);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.18rem;
}

.feature-name {
    display: block;
    font-size: clamp(2rem, 3vw, 3.4rem);
    font-weight: 800;
    line-height: 0.96;
    margin-top: auto;
}

.feature-note {
    color: rgba(18, 18, 24, 0.58);
    font-size: 0.98rem;
    line-height: 1.7;
    margin-top: 22px;
}

.mondrian-block {
    border: 1px solid rgba(255, 255, 255, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.mondrian-block[data-block] {
    cursor: pointer;
}

.mondrian-block[data-block]:hover {
    box-shadow: 0 24px 60px rgba(76, 29, 149, 0.35);
    transform: translate(-5px, -5px);
    z-index: 5;
}

/* 旧入口类保留为紫色系兼容样式 */
.yellow-block { background-color: #4f8dff; }
.blue-block { background-color: #5ab8ff; }
.red-block { background-color: #720eec; }
.white-block { background-color: rgba(255, 255, 255, 0.12); }
.black-block { background-color: #1f0b3d; }

/* 具体布局 - 按图示 */
.block-art { grid-column: 1 / 3; grid-row: 1 / 4; }
.block-portfolio { grid-column: 1; grid-row: 4 / 6; }
.block-divider-left-top { grid-column: 2; grid-row: 4; border-width: 2px; }
.block-divider-left-bottom { grid-column: 2; grid-row: 5; border-width: 2px; }

.block-center-thin-1 { grid-column: 3; grid-row: 1; border-width: 2px; }
.block-center-thin-2 { grid-column: 3; grid-row: 2; border-width: 2px; }
.block-media { grid-column: 3; grid-row: 3 / 5; }
.block-business { grid-column: 3 / 5; grid-row: 5; }

.block-tech { grid-column: 4 / 7; grid-row: 1 / 5; }
.block-divider-right-2 { grid-column: 5; grid-row: 5; border-width: 2px; }
.block-info { grid-column: 6; grid-row: 5; }

.block-content {
    text-align: center;
    z-index: 2;
}

.mondrian-block h2 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.yellow-block h2,
.white-block h2,
.blue-block h2,
.red-block h2 {
    color: #fff;
}

/* 网站资讯样式优化 */
.info-content {
    padding: 15px;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: #444;
}

.info-item svg {
    color: #888;
}

.info-text {
    font-weight: 500;
}

/* 卡片翻转效果 */
.card-flip-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    background: rgba(248, 248, 252, 0.74);
    backdrop-filter: blur(18px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-flip-container.active {
    display: flex;
    opacity: 1;
}

.flip-card {
    width: min(520px, 88vw);
    height: 380px;
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.card-flip-container.active .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 42px;
    box-shadow: 0 30px 90px rgba(16, 5, 31, 0.46);
    overflow: hidden;
}

.flip-card-front {
    background: #fff;
    border-color: color-mix(in srgb, var(--card-color, #720eec) 28%, transparent);
}

.flip-card-front::after,
.flip-card-back::after {
    content: '';
    position: absolute;
    right: 34px;
    bottom: 34px;
    width: 104px;
    height: 104px;
    clip-path: polygon(50% 0, 88% 22%, 100% 58%, 50% 100%, 0 58%, 12% 22%);
    background: var(--card-color, #720eec);
    opacity: 0.08;
}

.flip-card-front h2 {
    color: var(--card-color, #720eec);
    font-size: clamp(2.4rem, 7vw, 4.4rem);
    line-height: 0.95;
    letter-spacing: 0;
    position: relative;
    z-index: 2;
}

.flip-card-back {
    background: #fff;
    border-color: color-mix(in srgb, var(--card-color, #720eec) 28%, transparent);
    transform: rotateY(180deg);
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 3rem;
    cursor: pointer;
    color: #121218;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    transition: transform 0.2s ease;
    z-index: 10;
}

.close-btn:hover {
    transform: rotate(90deg);
}

.card-detail-text {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 30px;
    color: rgba(18, 18, 24, 0.74);
    text-align: center;
}

.card-detail-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: #fff;
    color: var(--purple-700);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 999px;
}

.card-detail-link:hover {
    background: var(--purple-100);
    color: var(--purple-800);
}

.card-detail-link .arrow {
    transition: transform 0.3s ease;
}

.card-detail-link:hover .arrow {
    transform: translateX(5px);
}

/* 留言气泡输入框 */
.bubble-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2100;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bubble-modal.active {
    display: flex;
    opacity: 1;
}

.bubble-modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    width: 90%;
    max-width: 520px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.bubble-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #333;
}

.bubble-modal h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
    color: #000;
}

.bubble-modal textarea {
    width: 100%;
    min-height: 140px;
    padding: 12px 14px;
    font-size: 1rem;
    border: 2px solid #000;
    border-radius: 8px;
    resize: vertical;
    outline: none;
}

.bubble-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 15px;
}

.bubble-modal-actions button {
    padding: 10px 16px;
    border: 2px solid #000;
    background: #000;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
}

.bubble-modal-actions button:last-child {
    background: #fff;
    color: #000;
}

.bubble-modal-actions button:hover {
    transform: translateY(-2px);
}

/* ========== 第三部分：自我介绍 ========== */
.section-3 {
    background: url('image2.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.about-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('image2.jpg') center/cover no-repeat;
    filter: blur(5px);
    z-index: -1;
}

.about-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-container {
    position: relative;
    z-index: 2;
}

.avatar-circle {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 5px solid #fff;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background: #fff;
    animation: float 3s ease-in-out infinite;
    margin-bottom: 40px;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 联系方式卡片 */
.contact-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 100%;
    margin-top: 20px;
}

.contact-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #000;
    text-align: center;
}

.contact-info {
    text-align: center;
}

.contact-info p {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #333;
}

.contact-card .social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.contact-card .social-link {
    color: #000;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 15px;
    border: 2px solid #000;
    transition: all 0.3s ease;
    display: inline-block;
}

.contact-card .social-link:hover {
    background-color: #000;
    color: #fff;
    transform: translateY(-2px);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* 气泡样式 */
.bubbles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.bubble {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: bold;
    color: #333;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    animation: bubbleFloat 15s infinite ease-in-out;
    padding: 15px;
    white-space: nowrap;
    width: 80px;
    height: 80px;
    text-align: center;
    pointer-events: auto;
}

.bubble.interactive {
    border: 2px dashed #000;
    background: rgba(255, 255, 255, 0.8);
    color: #555;
}

@keyframes bubbleFloat {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) scale(1.2);
        opacity: 0;
    }
}

/* ========== 页面加载动画 ========== */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--purple-950);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.page-loader.active {
    display: flex;
}

.loader-square {
    width: 80px;
    height: 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0;
    animation: jump-rotate 1.2s infinite ease-in-out;
    transform-style: preserve-3d;
}

.loader-inner-square {
    width: 100%;
    height: 100%;
    clip-path: polygon(50% 0, 88% 22%, 100% 58%, 50% 100%, 0 58%, 12% 22%);
}

.loader-inner-square.red { background-color: #720eec; }
.loader-inner-square.yellow { background-color: #4f8dff; }
.loader-inner-square.blue { background-color: #5ab8ff; }
.loader-inner-square.white { background-color: #f5edff; border: 1px solid rgba(255, 255, 255, 0.5); }

@keyframes jump-rotate {
    0% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(90deg); }
    50% { transform: translateY(0) rotate(180deg); }
    75% { transform: translateY(-15px) rotate(270deg); }
    100% { transform: translateY(0) rotate(360deg); }
}

/* ========== 宝石风格页面切换动画 ========== */
.page-transition {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: none;
    overflow: hidden;
    pointer-events: none;
    background: transparent;
}

.page-transition.active {
    display: block;
}

.gem-transition-piece,
.mondrian-block-anim {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.45);
    clip-path: polygon(50% 0, 88% 22%, 100% 58%, 50% 100%, 0 58%, 12% 22%);
    opacity: 0;
    transform: translateY(-100%);
    box-shadow: 0 20px 42px rgba(76, 29, 149, 0.34);
}

@keyframes gemFall {
    0% {
        opacity: 0;
        transform: translateY(-100%) rotate(0deg) scale(0.7);
    }
    5% {
        opacity: 1;
    }
    100% {
        opacity: 1;
        transform: translateY(110vh) rotate(var(--rotate)) scale(1.08);
    }
}

.gem-transition-piece.falling,
.mondrian-block-anim.falling {
    animation: gemFall 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ========== 响应式设计 ========== */
@media (max-width: 1024px) {
    .main-title {
        font-size: 3.5rem;
    }
    
    .typing-text {
        font-size: 1.5rem;
    }
    
    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .feature-card {
        min-height: 240px;
    }
    
    .mondrian-container {
        width: 95%;
        height: 95%;
        gap: 6px;
        grid-template-columns: 2.5fr 1.6fr 2.5fr;
        grid-template-rows: 3fr 1fr 3fr 2fr;
    }
    
    .mondrian-block {
        border-width: 6px;
    }
    
    .mondrian-block h2 {
        font-size: 1.4rem;
    }
    
    .top-nav {
        height: 60px;
    }
    
    .flip-card {
        width: 400px;
        height: 350px;
    }
}

@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
        letter-spacing: 0.3rem;
    }
    
    .typing-text {
        font-size: 1.2rem;
    }
    
    .section-2 {
        padding: 64px 18px 32px;
        overflow-y: auto;
        justify-content: flex-start;
    }

    .section-title {
        font-size: 2.4rem;
        margin-bottom: 26px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .feature-card {
        min-height: 160px;
        border-radius: 18px;
    }
    
    .top-nav {
        height: 52px;
        padding: 0 12px;
    }
    
    .nav-center {
        gap: 14px;
    }
    
    .nav-item {
        padding: 5px 8px;
        font-size: 0.85rem;
    }
    
    .nav-icon {
        font-size: 1rem;
    }
    
    .mondrian-container {
        grid-template-columns: 1.6fr 1.2fr 1.6fr;
        grid-template-rows: 2.5fr 1fr 2.5fr 1.5fr;
        gap: 4px;
        width: 96%;
    }
    
    .mondrian-block {
        border-width: 4px;
    }
    
    .mondrian-block h2 {
        font-size: 1rem;
    }
    
    .flip-card {
        width: 90%;
        max-width: 340px;
        height: 280px;
    }
    
    .avatar-circle {
        width: 200px;
        height: 200px;
    }
    
    .contact-card {
        max-width: 300px;
        padding: 20px 25px;
    }
    
    .bubble {
        font-size: 0.75rem;
        width: 60px;
        height: 60px;
        padding: 10px;
    }
    
    .info-content {
        padding: 15px;
    }
    
    .info-item {
        font-size: 0.8rem;
    }
}
