:root {
    --bg-glacier: #f0f6ff;
    --bg-fog: #e0ebfa;
    --bg-deep: #0b1b36;
    --blue-primary: #1e5ebb;
    --blue-light: #4a90e2;
    --blue-glow: rgba(74, 144, 226, 0.2);
    --white: #ffffff;
    --text-main: #1a2b4c;
    --text-muted: #5a7397;
    --yellow: #e5ff33;
    --glass: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.8);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-glacier);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(74,144,226,0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(30,94,187,0.08) 0%, transparent 40%);
    background-attachment: fixed;
}

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

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

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 64px;
    background: rgba(240, 246, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.5);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    color: var(--blue-primary);
    letter-spacing: 1px;
}

.brand img {
    height: 32px;
    width: auto;
    border-radius: 6px;
}

.nav-links {
    display: none;
    gap: 24px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-main);
}

.nav-links a:hover {
    color: var(--blue-primary);
}

.btn-download {
    background-color: var(--yellow);
    color: var(--text-main);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(229, 255, 51, 0.4);
    display: inline-block;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(229, 255, 51, 0.6);
}

/* Main Layout */
main {
    padding-top: 64px;
}

section {
    padding: 60px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--blue-primary);
    text-align: center;
}

.section-desc {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-size: 16px;
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: 80px;
    padding-bottom: 80px;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--blue-glow) 0%, transparent 70%);
    z-index: -1;
    border-radius: 50%;
}

.hero h1 {
    font-size: 36px;
    line-height: 1.3;
    margin-bottom: 16px;
    font-weight: 900;
    color: var(--text-main);
}

.hero h1 span {
    color: var(--blue-primary);
}

.hero p {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 32px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 60px;
}

.btn-primary {
    background-color: var(--blue-primary);
    color: var(--white);
    padding: 14px 32px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-primary:hover {
    background-color: var(--blue-light);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--blue-primary);
    padding: 14px 32px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 600;
    border: 1px solid var(--blue-primary);
    transition: background 0.2s;
}

.btn-secondary:hover {
    background-color: var(--bg-fog);
}

/* Floating Doors (Hero) */
.hero-doors {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.hero-doors::-webkit-scrollbar {
    display: none;
}

.door-card {
    flex: 0 0 240px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 12px;
    box-shadow: 0 10px 30px rgba(30, 94, 187, 0.08);
    scroll-snap-align: center;
    transition: transform 0.3s;
    position: relative;
}

.door-card:hover {
    transform: translateY(-5px);
}

.door-card img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 12px;
}

.door-card p {
    font-size: 14px;
    color: var(--text-main);
    text-align: left;
    font-weight: 500;
}

/* Mood Selector */
.mood-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 32px;
}

.mood-btn {
    background: var(--white);
    border: 1px solid var(--bg-fog);
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 15px;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.mood-btn.active {
    background: var(--blue-primary);
    color: var(--white);
    border-color: var(--blue-primary);
    box-shadow: 0 4px 12px rgba(30, 94, 187, 0.3);
}

.mood-result {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    gap: 20px;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.mood-result img {
    width: 100px;
    aspect-ratio: 2/3;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.mood-info h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.mood-info p {
    font-size: 14px;
    color: var(--text-muted);
}

/* Branching Path */
.branch-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.branch-paths {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
}

.branch-paths::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: var(--bg-fog);
    transform: translateX(-50%);
    z-index: 0;
}

.branch-btn {
    background: var(--white);
    border: 2px solid var(--bg-fog);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    position: relative;
    z-index: 1;
    transition: all 0.3s;
    text-align: center;
}

.branch-btn.active {
    border-color: var(--blue-primary);
    background: var(--bg-glacier);
}

.branch-display {
    display: none;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    gap: 20px;
    align-items: center;
}

.branch-display.active {
    display: flex;
}

.branch-display img {
    width: 120px;
    aspect-ratio: 2/3;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.branch-text h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.branch-text p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.btn-small {
    display: inline-block;
    background: var(--blue-primary);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
}

/* Intensity Slider */
.intensity-section {
    background: linear-gradient(to bottom, var(--bg-glacier), var(--bg-fog));
    border-radius: var(--radius-lg);
    padding: 40px 24px;
    transition: background 0.5s ease;
}

.intensity-control {
    max-width: 500px;
    margin: 0 auto 32px;
}

.intensity-control input[type="range"] {
    width: 100%;
    accent-color: var(--blue-primary);
    height: 8px;
    border-radius: 4px;
    background: var(--white);
    outline: none;
    -webkit-appearance: none;
}

.intensity-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--yellow);
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.intensity-labels {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
}

.intensity-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    gap: 20px;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.intensity-card img {
    width: 100px;
    aspect-ratio: 2/3;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.intensity-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.intensity-card p {
    font-size: 14px;
    color: var(--text-muted);
}

/* First Person Perspective */
.perspective-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 10px 40px rgba(30, 94, 187, 0.08);
    border: 1px solid var(--bg-fog);
}

.perspective-text {
    font-size: 16px;
    margin-bottom: 24px;
    line-height: 1.8;
}

.perspective-actions {
    display: flex;
    gap: 12px;
    flex-direction: column;
}

.perspective-btn {
    background: var(--bg-glacier);
    border: 1px solid var(--bg-fog);
    padding: 14px;
    border-radius: var(--radius-md);
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.perspective-btn:hover {
    background: var(--bg-fog);
}

.perspective-result {
    display: none;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px dashed var(--bg-fog);
    gap: 16px;
    align-items: center;
}

.perspective-result.active {
    display: flex;
}

.perspective-result img {
    width: 80px;
    aspect-ratio: 2/3;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

/* Duration Grid */
.duration-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 20px;
    scroll-snap-type: x mandatory;
}

.duration-card {
    flex: 0 0 160px;
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    scroll-snap-align: start;
}

.duration-card img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
}

.duration-card-info {
    padding: 12px;
}

.duration-card-info h4 {
    font-size: 14px;
    margin-bottom: 4px;
}

.duration-card-info p {
    font-size: 12px;
    color: var(--text-muted);
}

/* Continuous Route */
.route-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.route-item {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    gap: 12px;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.route-item img {
    width: 60px;
    aspect-ratio: 2/3;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.route-item h4 {
    font-size: 15px;
    margin-bottom: 4px;
}

.route-item p {
    font-size: 12px;
    color: var(--text-muted);
}

/* Echoes */
.echo-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 40px;
}

.echo-tag {
    background: var(--white);
    border: 1px solid var(--bg-fog);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    color: var(--text-main);
}

.echo-tag.active {
    background: var(--blue-light);
    color: var(--white);
    border-color: var(--blue-light);
}

.echo-notes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}

.note {
    background: rgba(255,255,255,0.8);
    border-left: 4px solid var(--yellow);
    padding: 16px;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    font-size: 14px;
}

.note span {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

/* Unexplored Grid */
.unexplored-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
}

.unexplored-item {
    background: var(--glass);
    border-radius: var(--radius-md);
    padding: 8px;
    border: 1px solid var(--glass-border);
}

.unexplored-item img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}

.unexplored-item h4 {
    font-size: 14px;
    text-align: center;
}

/* App Features */
.app-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.feature-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid var(--bg-fog);
}

.feature-box h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--blue-primary);
}

.feature-box p {
    font-size: 15px;
    color: var(--text-muted);
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    border: 1px solid var(--bg-fog);
    overflow: hidden;
}

.faq-q {
    padding: 20px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
}

.faq-q::-webkit-details-marker {
    display: none;
}

.faq-q::after {
    content: '+';
    font-size: 20px;
    color: var(--blue-primary);
}

.faq-item[open] .faq-q::after {
    content: '−';
}

.faq-a {
    padding: 0 20px 20px;
    font-size: 15px;
    color: var(--text-muted);
}

/* Download Section */
.download-section {
    background: var(--bg-deep);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 60px 24px;
    text-align: center;
    margin-bottom: 40px;
}

.download-section h2 {
    font-size: 32px;
    margin-bottom: 16px;
}

.download-section p {
    color: #a0b8d8;
    margin-bottom: 32px;
    font-size: 16px;
}

.download-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-direction: column;
    max-width: 300px;
    margin: 0 auto;
}

.download-btn {
    padding: 16px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    transition: opacity 0.2s;
}

.download-btn.android {
    background: var(--yellow);
    color: var(--text-main);
}

.download-btn.ios {
    background: var(--white);
    color: var(--blue-primary);
}

.download-btn:hover {
    opacity: 0.9;
}

/* Footer */
.site-footer {
    background: var(--bg-deep);
    color: #6a86ad;
    padding: 40px 24px;
    font-size: 13px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.footer-links a {
    color: #a0b8d8;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.site-footer a.beian {
    color: #6a86ad;
}

/* Responsive */
@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
    
    .hero h1 {
        font-size: 48px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .hero-doors {
        justify-content: center;
    }
    
    .route-list {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .app-features {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .download-buttons {
        flex-direction: row;
        max-width: 500px;
    }
    
    .download-btn {
        flex: 1;
    }
    
    .footer-bottom {
        flex-direction: row;
        justify-content: center;
        gap: 24px;
    }
}

@media (min-width: 1024px) {
    .hero {
        display: flex;
        text-align: left;
        align-items: center;
        justify-content: space-between;
        padding: 100px 24px;
    }
    
    .hero-content {
        flex: 0 0 45%;
    }
    
    .hero h1 {
        font-size: 56px;
    }
    
    .hero-actions {
        justify-content: flex-start;
    }
    
    .hero-doors {
        flex: 0 0 50%;
        justify-content: flex-end;
        perspective: 1000px;
    }
    
    .door-card:nth-child(1) {
        transform: rotateY(10deg) translateZ(0);
    }
    
    .door-card:nth-child(2) {
        transform: translateY(-20px);
    }
    
    .door-card:nth-child(3) {
        transform: rotateY(-10deg) translateZ(0);
    }
    
    .door-card:hover {
        transform: translateY(-10px) scale(1.02) rotateY(0);
        z-index: 10;
    }

    .branch-paths {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .branch-paths::before {
        top: 50%;
        left: 0;
        width: 100%;
        height: 2px;
        transform: translateY(-50%);
    }
    
    .branch-btn {
        flex: 1;
        max-width: 45%;
    }
}