*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-deep: #0a0e1a;
    --bg-section: #0d1225;
    --bg-card: rgba(15, 22, 50, 0.7);
    --text-primary: #e8e6f0;
    --text-secondary: #9b97b0;
    --text-muted: #6b6780;
    --accent: #7c6cf0;
    --accent-light: #a99bf7;
    --accent-glow: rgba(124, 108, 240, 0.3);
    --gold: #e8c872;
    --gold-glow: rgba(232, 200, 114, 0.2);
    --rose: #e87ca0;
    --teal: #5cc4b8;
    --border: rgba(124, 108, 240, 0.15);
    --radius: 16px;
    --radius-sm: 10px;
    --font-serif: 'Noto Serif SC', 'ZCOOL XiaoWei', serif;
    --font-display: 'ZCOOL XiaoWei', 'Noto Serif SC', serif;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-serif);
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.8;
    overflow-x: hidden;
}

#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: linear-gradient(180deg, rgba(10, 14, 26, 0.95) 0%, rgba(10, 14, 26, 0) 100%);
    transition: all 0.3s ease;
}

.nav.scrolled {
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(20px);
    padding: 14px 40px;
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--accent-light);
    letter-spacing: 4px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 2px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-light);
}

.nav-links a:hover::after {
    width: 100%;
}

.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 20px 60px;
}

.hero-content {
    max-width: 700px;
    animation: fadeInUp 1.2s ease;
}

.hero-badge {
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 20px;
    animation: twinkle 3s ease-in-out infinite;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 400;
    letter-spacing: 12px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--gold) 50%, var(--accent-light) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 6s ease-in-out infinite;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: 3px;
}

.hero-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 48px;
    line-height: 2;
}

.hero-btn {
    display: inline-block;
    padding: 16px 48px;
    background: linear-gradient(135deg, var(--accent) 0%, #9b7cf0 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-family: var(--font-serif);
    font-size: 1rem;
    letter-spacing: 3px;
    transition: all 0.4s ease;
    box-shadow: 0 4px 30px var(--accent-glow);
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px var(--accent-glow), 0 0 60px var(--accent-glow);
}

.scroll-hint {
    position: absolute;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 2px;
    animation: fadeInUp 1.5s ease 0.5s both;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 1.5px solid var(--text-muted);
    border-bottom: 1.5px solid var(--text-muted);
    transform: rotate(45deg);
    animation: bounceDown 2s ease-in-out infinite;
}

.section {
    position: relative;
    z-index: 1;
    padding: 120px 20px;
}

.section-inner {
    max-width: 960px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    padding: 6px 20px;
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--accent-light);
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 400;
    letter-spacing: 6px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.oracle-section {
    background: linear-gradient(180deg, transparent 0%, rgba(124, 108, 240, 0.03) 50%, transparent 100%);
}

.oracle-container {
    max-width: 600px;
    margin: 0 auto;
}

.oracle-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    backdrop-filter: blur(10px);
}

.oracle-glow {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    border-radius: 2px;
}

.oracle-input {
    width: 100%;
    background: rgba(10, 14, 26, 0.5);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px;
    color: var(--text-primary);
    font-family: var(--font-serif);
    font-size: 1rem;
    line-height: 1.8;
    resize: none;
    outline: none;
    transition: border-color 0.3s ease;
}

.oracle-input::placeholder {
    color: var(--text-muted);
}

.oracle-input:focus {
    border-color: var(--accent);
}

.oracle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 20px;
    padding: 16px;
    background: linear-gradient(135deg, var(--accent) 0%, #9b7cf0 100%);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-serif);
    font-size: 1rem;
    letter-spacing: 3px;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.oracle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px var(--accent-glow);
}

.oracle-btn:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 1.1rem;
    animation: twinkle 2s ease-in-out infinite;
}

.oracle-answer {
    position: relative;
    margin-top: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.6s ease;
}

.answer-glow {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    border-radius: 2px;
}

.answer-icon {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 20px;
}

.answer-text {
    font-size: 1.15rem;
    line-height: 2;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.answer-source {
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 2px;
}

.wisdom-section {
    background: linear-gradient(180deg, transparent 0%, rgba(232, 200, 114, 0.02) 50%, transparent 100%);
}

.wisdom-carousel {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 700px;
    margin: 0 auto;
}

.carousel-btn {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--accent-light);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.carousel-btn:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.wisdom-card {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 48px 40px;
    text-align: center;
    backdrop-filter: blur(10px);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.5s ease;
}

.wisdom-quote-mark {
    font-size: 4rem;
    color: var(--gold);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 8px;
    font-family: Georgia, serif;
}

.wisdom-text {
    font-size: 1.1rem;
    line-height: 2;
    color: var(--text-primary);
    margin-bottom: 20px;
    letter-spacing: 1px;
    transition: opacity 0.4s ease;
}

.wisdom-author {
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 2px;
}

.wisdom-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.wisdom-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    opacity: 0.3;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wisdom-dot.active {
    opacity: 1;
    background: var(--gold);
    box-shadow: 0 0 10px var(--gold-glow);
}

.direction-section {
    background: linear-gradient(180deg, transparent 0%, rgba(92, 196, 184, 0.02) 50%, transparent 100%);
}

.direction-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.direction-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.direction-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 8px 40px var(--accent-glow);
}

.direction-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.direction-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 4px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.direction-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.direction-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.direction-modal.hidden {
    display: none;
}

.modal-content {
    position: relative;
    background: var(--bg-section);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 48px 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    animation: fadeInUp 0.4s ease;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.modal-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.modal-content h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 4px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.modal-text {
    font-size: 1rem;
    line-height: 2;
    color: var(--text-secondary);
    margin-bottom: 28px;
    letter-spacing: 1px;
}

.modal-affirmation {
    padding: 20px;
    background: rgba(124, 108, 240, 0.08);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--accent);
    text-align: left;
    font-size: 0.95rem;
    color: var(--accent-light);
    line-height: 1.8;
    letter-spacing: 1px;
}

.comfort-section {
    background: linear-gradient(180deg, transparent 0%, rgba(232, 124, 160, 0.02) 50%, transparent 100%);
}

.comfort-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.comfort-breath {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.breath-circle {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.breath-inner {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    border: 1px solid var(--border);
    transition: transform 4s ease-in-out;
}

.breath-circle.breathing .breath-inner {
    animation: breathe 8s ease-in-out infinite;
}

.breath-text {
    position: relative;
    z-index: 1;
    font-size: 0.9rem;
    color: var(--accent-light);
    letter-spacing: 3px;
}

.breath-btn {
    padding: 12px 32px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--accent-light);
    font-family: var(--font-serif);
    font-size: 0.9rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.breath-btn:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.breath-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.comfort-affirmations {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
}

.affirmation-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 32px;
    text-align: center;
    backdrop-filter: blur(10px);
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.affirmation-text {
    font-size: 1.1rem;
    line-height: 2;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.affirmation-btn {
    padding: 12px 32px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--rose);
    font-family: var(--font-serif);
    font-size: 0.9rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.affirmation-btn:hover {
    background: var(--rose);
    color: #fff;
    border-color: var(--rose);
}

.footer {
    position: relative;
    z-index: 1;
    padding: 80px 20px;
    text-align: center;
    border-top: 1px solid var(--border);
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--accent-light);
    letter-spacing: 6px;
    margin-bottom: 16px;
}

.footer-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.hidden {
    display: none !important;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes twinkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@keyframes bounceDown {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(45deg) translateY(6px); }
}

@keyframes breathe {
    0%, 100% {
        transform: scale(0.6);
        opacity: 0.4;
    }
    25% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1);
        opacity: 1;
    }
    75% {
        transform: scale(0.6);
        opacity: 0.4;
    }
}

.section.reveal .section-header {
    animation: fadeInUp 0.8s ease;
}

.section.reveal .oracle-container,
.section.reveal .wisdom-carousel,
.section.reveal .direction-grid,
.section.reveal .comfort-container {
    animation: fadeInUp 0.8s ease 0.2s both;
}

@media (max-width: 768px) {
    .nav {
        padding: 16px 20px;
    }

    .nav-links {
        gap: 20px;
    }

    .nav-links a {
        font-size: 0.8rem;
    }

    .section {
        padding: 80px 16px;
    }

    .direction-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .comfort-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .wisdom-carousel {
        flex-direction: column;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .wisdom-card {
        padding: 32px 24px;
    }

    .oracle-card {
        padding: 24px;
    }

    .oracle-answer {
        padding: 24px;
    }

    .modal-content {
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {
    .direction-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        gap: 14px;
    }

    .hero-title {
        letter-spacing: 6px;
    }
}
