/* ==========================================
   SoulForge Tech - 全局样式
   ========================================== */

:root {
    /* 主题色 */
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --accent: #f472b6;
    --accent-light: #f9a8d4;

    /* 中性色 */
    --bg-dark: #0f0f1a;
    --bg-darker: #080810;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);

    /* 玻璃效果 */
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);

    /* 像素主题色 */
    --pixel-green: #7ec850;
    --pixel-brown: #8b4513;
    --pixel-blue: #4a9bd9;
    --pixel-pink: #ff6b9d;
    --pixel-yellow: #ffd93d;

    /* 科技主题色 */
    --tech-cyan: #00f5ff;
    --tech-purple: #bf00ff;
    --tech-blue: #0066ff;
    --tech-glow: rgba(0, 245, 255, 0.5);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ==========================================
   液态玻璃导航栏
   ========================================== */

.glass-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    padding: 8px 12px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 100%
    );
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-nav:hover {
    box-shadow:
        0 12px 48px rgba(99, 102, 241, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 -1px 0 rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
}

.logo-icon {
    font-size: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

.logo-text {
    font-weight: 700;
    font-size: 1.1rem;
    background: linear-gradient(135deg, var(--text-primary), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
}

.nav-buttons {
    display: flex;
    gap: 6px;
}

.nav-btn {
    position: relative;
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-radius: 30px;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.nav-btn .btn-glow {
    position: absolute;
    inset: 0;
    border-radius: 30px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-btn .btn-text {
    position: relative;
    z-index: 1;
}

.nav-btn:hover {
    color: var(--text-primary);
    transform: translateY(-2px);
}

.nav-btn:hover .btn-glow {
    opacity: 0.15;
}

.nav-btn.active {
    color: var(--text-primary);
    background: linear-gradient(
        135deg,
        rgba(99, 102, 241, 0.3) 0%,
        rgba(244, 114, 182, 0.2) 100%
    );
    box-shadow:
        0 4px 16px rgba(99, 102, 241, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.nav-btn.active .btn-glow {
    opacity: 0.25;
}

/* ==========================================
   页面容器
   ========================================== */

.page-container {
    position: relative;
    min-height: 100vh;
}

.page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.page.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ==========================================
   主页样式
   ========================================== */

.home-page {
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
}

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 60px;
    overflow: hidden;
}

.floating-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: float 8s ease-in-out infinite;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: rgba(99, 102, 241, 0.3);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: rgba(244, 114, 182, 0.25);
    top: 60%;
    right: 15%;
    animation-delay: -2s;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: rgba(0, 245, 255, 0.2);
    bottom: 20%;
    left: 30%;
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(5deg);
    }
}

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

.hero-title {
    margin-bottom: 24px;
}

.title-line {
    display: block;
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.title-line.highlight {
    background: linear-gradient(135deg, var(--primary-light), var(--accent), var(--tech-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradient-shift 5s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.intro-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px 32px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.intro-card:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.2);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.intro-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.intro-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.9rem;
    animation: bounce 2s ease-in-out infinite;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
}

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

.mission-section {
    padding: 100px 20px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.mission-section h2 {
    font-size: 2.5rem;
    margin-bottom: 32px;
    background: linear-gradient(135deg, var(--text-primary), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mission-text {
    font-size: 1.2rem;
    line-height: 2;
    color: var(--text-secondary);
}

.mission-text strong {
    color: var(--primary-light);
}

/* ==========================================
   星露谷物语页面 - 像素二次元风格
   ========================================== */

.stardew-page {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    position: relative;
    overflow: hidden;
}

.pixel-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.pixel-stars {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(2px 2px at 20px 30px, #fff, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(2px 2px at 160px 120px, rgba(255,255,255,0.9), transparent),
        radial-gradient(1px 1px at 230px 80px, #fff, transparent),
        radial-gradient(2px 2px at 300px 150px, rgba(255,255,255,0.7), transparent),
        radial-gradient(1px 1px at 350px 50px, #fff, transparent);
    background-size: 400px 200px;
    animation: twinkle 4s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.pixel-clouds {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, rgba(126, 200, 80, 0.1), transparent);
}

.stardew-content {
    position: relative;
    z-index: 1;
    padding: 120px 20px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.pixel-title-box {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px;
    background: linear-gradient(135deg, rgba(126, 200, 80, 0.15), rgba(255, 107, 157, 0.1));
    border: 4px solid var(--pixel-green);
    border-radius: 0;
    box-shadow:
        8px 8px 0 rgba(0, 0, 0, 0.3),
        inset 0 0 20px rgba(126, 200, 80, 0.1);
    image-rendering: pixelated;
}

.pixel-title {
    font-family: 'Press Start 2P', cursive;
    font-size: clamp(1.2rem, 4vw, 2rem);
    color: var(--pixel-yellow);
    text-shadow:
        4px 4px 0 var(--pixel-brown),
        -1px -1px 0 var(--pixel-green);
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.pixel-subtitle {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7rem;
    color: var(--pixel-pink);
    letter-spacing: 1px;
}

.mod-showcase {
    display: grid;
    gap: 40px;
    margin-bottom: 60px;
}

.mod-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 32px;
    background: rgba(0, 0, 0, 0.4);
    border: 4px solid var(--pixel-blue);
    padding: 32px;
    transition: all 0.3s ease;
    position: relative;
}

.mod-card::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: -8px;
    bottom: -8px;
    background: rgba(74, 155, 217, 0.2);
    z-index: -1;
}

.mod-card:hover {
    transform: translate(-4px, -4px);
    border-color: var(--pixel-pink);
}

.mod-card:hover::before {
    background: rgba(255, 107, 157, 0.2);
}

.mod-preview {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pixel-character {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(126, 200, 80, 0.2), rgba(74, 155, 217, 0.2));
    border: 4px solid var(--pixel-green);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.character-sprite {
    width: 80px;
    height: 80px;
    background: var(--pixel-pink);
    animation: sprite-bounce 0.5s steps(2) infinite;
}

.npc-sprite {
    clip-path: polygon(50% 0%, 80% 20%, 100% 60%, 80% 100%, 20% 100%, 0% 60%, 20% 20%);
    background: linear-gradient(135deg, var(--pixel-pink), var(--pixel-yellow));
}

.farm-sprite {
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    background: linear-gradient(135deg, var(--pixel-green), var(--pixel-blue));
}

@keyframes sprite-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.mod-info h3 {
    font-family: 'Press Start 2P', cursive;
    font-size: 1rem;
    color: var(--pixel-yellow);
    margin-bottom: 16px;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
}

.mod-info p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.pixel-tag {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.6rem;
    padding: 8px 16px;
    background: var(--pixel-green);
    color: var(--bg-darker);
    border: 2px solid var(--pixel-yellow);
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.3);
}

.pixel-cta {
    text-align: center;
}

.cta-box {
    display: inline-block;
    padding: 32px 48px;
    background: linear-gradient(135deg, rgba(255, 217, 61, 0.2), rgba(255, 107, 157, 0.2));
    border: 4px solid var(--pixel-yellow);
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.3);
}

.cta-box .pixel-text {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.2rem;
    color: var(--pixel-yellow);
    margin-bottom: 12px;
    animation: pixel-pulse 1s ease-in-out infinite;
}

@keyframes pixel-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.cta-box p:last-child {
    color: var(--text-secondary);
}

/* ==========================================
   AI陪伴页面 - 科技感
   ========================================== */

.ai-page {
    background: var(--bg-darker);
    position: relative;
    overflow: hidden;
}

.tech-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 245, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 245, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(50px); }
}

.floating-particles {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(2px 2px at 100px 100px, var(--tech-cyan), transparent),
        radial-gradient(2px 2px at 300px 200px, var(--tech-purple), transparent),
        radial-gradient(1px 1px at 500px 150px, var(--tech-cyan), transparent),
        radial-gradient(2px 2px at 700px 300px, var(--tech-purple), transparent);
    background-size: 800px 400px;
    animation: particles-float 15s linear infinite;
}

@keyframes particles-float {
    0% { transform: translateY(0); }
    100% { transform: translateY(-400px); }
}

.circuit-lines {
    position: absolute;
    inset: 0;
    opacity: 0.1;
}

.circuit-svg {
    width: 100%;
    height: 100%;
}

.circuit-path {
    fill: none;
    stroke: var(--tech-cyan);
    stroke-width: 0.5;
    stroke-dasharray: 10 5;
    animation: circuit-flow 3s linear infinite;
}

@keyframes circuit-flow {
    0% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -30; }
}

.ai-content {
    position: relative;
    z-index: 1;
    padding: 120px 20px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.ai-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 80px;
}

.hologram-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin-bottom: 40px;
}

.hologram-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid var(--tech-cyan);
    animation: ring-rotate 4s linear infinite;
}

.ring-1 {
    inset: 0;
    border-color: var(--tech-cyan);
    animation-duration: 4s;
}

.ring-2 {
    inset: 20px;
    border-color: var(--tech-purple);
    animation-duration: 3s;
    animation-direction: reverse;
}

.ring-3 {
    inset: 40px;
    border-color: var(--tech-blue);
    animation-duration: 5s;
}

@keyframes ring-rotate {
    0% { transform: rotateX(60deg) rotateZ(0deg); }
    100% { transform: rotateX(60deg) rotateZ(360deg); }
}

.ai-avatar {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--tech-cyan), var(--tech-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 0 40px var(--tech-glow),
        0 0 80px rgba(191, 0, 255, 0.3);
    animation: avatar-pulse 2s ease-in-out infinite;
}

.ai-icon {
    font-size: 2.5rem;
}

@keyframes avatar-pulse {
    0%, 100% {
        box-shadow:
            0 0 40px var(--tech-glow),
            0 0 80px rgba(191, 0, 255, 0.3);
    }
    50% {
        box-shadow:
            0 0 60px var(--tech-glow),
            0 0 120px rgba(191, 0, 255, 0.5);
    }
}

.ai-title-section {
    text-align: center;
}

.tech-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 900;
    margin-bottom: 16px;
}

.glitch {
    position: relative;
    color: var(--text-primary);
    text-shadow:
        0 0 10px var(--tech-cyan),
        0 0 20px var(--tech-cyan),
        0 0 40px var(--tech-cyan);
    animation: glitch 3s infinite;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    color: var(--tech-cyan);
    animation: glitch-1 2s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}

.glitch::after {
    color: var(--tech-purple);
    animation: glitch-2 2s infinite;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}

@keyframes glitch {
    0%, 90%, 100% { transform: translate(0); }
    92% { transform: translate(-2px, 2px); }
    94% { transform: translate(2px, -2px); }
    96% { transform: translate(-2px, -2px); }
    98% { transform: translate(2px, 2px); }
}

@keyframes glitch-1 {
    0%, 90%, 100% { transform: translate(0); }
    92% { transform: translate(3px, 0); }
    94% { transform: translate(-3px, 0); }
}

@keyframes glitch-2 {
    0%, 90%, 100% { transform: translate(0); }
    92% { transform: translate(-3px, 0); }
    94% { transform: translate(3px, 0); }
}

.tech-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 80px;
}

.feature-card.tech-card {
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.05), rgba(191, 0, 255, 0.05));
    border: 1px solid rgba(0, 245, 255, 0.2);
    border-radius: 16px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.feature-card.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--tech-cyan), transparent);
    animation: scan-line 3s linear infinite;
}

@keyframes scan-line {
    0% { left: -100%; }
    100% { left: 100%; }
}

.feature-card.tech-card:hover {
    transform: translateY(-8px);
    border-color: var(--tech-cyan);
    box-shadow:
        0 20px 60px rgba(0, 245, 255, 0.2),
        inset 0 0 30px rgba(0, 245, 255, 0.05);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.icon-wrapper {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--tech-cyan), var(--tech-purple));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon {
    font-size: 1.5rem;
}

.card-header h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.tech-indicator {
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.indicator-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--tech-cyan), var(--tech-purple));
    border-radius: 2px;
    animation: indicator-fill 2s ease-out forwards;
}

@keyframes indicator-fill {
    to { width: 100%; }
}

.app-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.phone-mockup {
    width: 280px;
    height: 560px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 40px;
    padding: 12px;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(0, 245, 255, 0.1),
        inset 0 0 0 2px rgba(255, 255, 255, 0.1);
    position: relative;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--bg-darker);
    border-radius: 30px;
    overflow: hidden;
    padding: 60px 16px 20px;
}

.chat-preview {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-bubble {
    max-width: 85%;
    padding: 14px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
    line-height: 1.5;
    animation: bubble-appear 0.5s ease-out forwards;
    opacity: 0;
}

.chat-bubble:nth-child(1) { animation-delay: 0.3s; }
.chat-bubble:nth-child(2) { animation-delay: 0.8s; }
.chat-bubble:nth-child(3) { animation-delay: 1.3s; }

@keyframes bubble-appear {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ai-bubble {
    background: linear-gradient(135deg, var(--tech-cyan), var(--tech-purple));
    color: white;
    align-self: flex-start;
    border-bottom-left-radius: 6px;
}

.user-bubble {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    align-self: flex-end;
    border-bottom-right-radius: 6px;
}

.cta-section {
    text-align: center;
}

.coming-soon {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: var(--tech-cyan);
    margin-bottom: 8px;
    text-shadow: 0 0 20px var(--tech-glow);
}

.cta-text {
    color: var(--text-secondary);
}

/* ==========================================
   联系我们页面
   ========================================== */

.contact-page {
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    position: relative;
    overflow: hidden;
}

.contact-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: rgba(99, 102, 241, 0.2);
    top: -100px;
    right: -100px;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: rgba(244, 114, 182, 0.15);
    bottom: -100px;
    left: -100px;
}

.contact-content {
    position: relative;
    z-index: 1;
    padding: 120px 20px 60px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-title {
    text-align: center;
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text-primary), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 60px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.contact-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 32px;
    text-align: center;
    transition: all 0.4s ease;
}

.contact-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.2);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.contact-card h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.contact-card p {
    color: var(--text-secondary);
}

.contact-form-section {
    margin-bottom: 80px;
}

.contact-form-section h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 32px;
    color: var(--text-primary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.form-group label {
    position: absolute;
    top: -10px;
    left: 16px;
    padding: 0 8px;
    background: var(--bg-dark);
    color: var(--text-muted);
    font-size: 0.85rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
    opacity: 1;
}

.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 48px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    border-radius: 50px;
    color: white;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease;
    align-self: center;
}

.submit-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.4);
}

.btn-arrow {
    transition: transform 0.3s ease;
}

.submit-btn:hover .btn-arrow {
    transform: translateX(8px);
}

.site-footer {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--glass-border);
}

.site-footer p {
    color: var(--text-muted);
    margin-bottom: 8px;
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--primary-light);
}

/* ==========================================
   页面转场动画
   ========================================== */

.page-transition {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
}

.transition-layer {
    position: absolute;
    inset: 0;
    transform: scaleY(0);
    transform-origin: bottom;
}

.layer-1 {
    background: var(--primary);
    z-index: 3;
}

.layer-2 {
    background: var(--accent);
    z-index: 2;
}

.layer-3 {
    background: var(--bg-darker);
    z-index: 1;
}

.page-transition.active .layer-1 {
    animation: layer-up 0.5s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}

.page-transition.active .layer-2 {
    animation: layer-up 0.5s 0.1s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}

.page-transition.active .layer-3 {
    animation: layer-up 0.5s 0.2s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}

@keyframes layer-up {
    0% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
    50% {
        transform: scaleY(1);
        transform-origin: bottom;
    }
    50.1% {
        transform-origin: top;
    }
    100% {
        transform: scaleY(0);
        transform-origin: top;
    }
}

/* ==========================================
   响应式设计
   ========================================== */

@media (max-width: 900px) {
    .glass-nav {
        top: 10px;
        left: 10px;
        right: 10px;
        transform: none;
        border-radius: 20px;
    }

    .nav-container {
        flex-direction: column;
        gap: 12px;
    }

    .nav-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }

    .mod-card {
        grid-template-columns: 1fr;
    }

    .mod-preview {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .hero-cards {
        grid-template-columns: 1fr;
    }

    .pixel-title {
        font-size: 1rem;
    }

    .tech-title {
        font-size: 1.8rem;
    }

    .phone-mockup {
        width: 240px;
        height: 480px;
    }
}
