/* ============================================
   解梦阁 - 中式玄幻风格样式
   ============================================ */

/* CSS变量定义 */
:root {
    --primary: #c9a84c;
    --primary-light: #e8d5a3;
    --primary-dark: #9a7b2c;
    --secondary: #8b4513;
    --accent: #ff6b35;
    --bg-dark: #0a0a0f;
    --bg-darker: #050508;
    --bg-card: #12121a;
    --bg-card-hover: #1a1a25;
    --text-primary: #f0e6d3;
    --text-secondary: #b8a88a;
    --text-muted: #7a6b5a;
    --border: #2a2520;
    --border-light: #3a3530;
    --glow: rgba(201, 168, 76, 0.3);
    --shadow: rgba(0, 0, 0, 0.5);
    
    --font-serif: 'Noto Serif SC', 'SimSun', serif;
    --font-art: 'Ma Shan Zheng', cursive;
    --font-mono: 'Courier New', monospace;
}

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-serif);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.8;
    overflow-x: hidden;
    min-height: 100vh;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-dark);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ============================================
   粒子背景
   ============================================ */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0;
    animation: float-particle 8s infinite ease-in-out;
}

@keyframes float-particle {
    0%, 100% {
        opacity: 0;
        transform: translateY(100vh) scale(0);
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        opacity: 0;
        transform: translateY(-10vh) scale(1);
    }
}

/* ============================================
   导航栏
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 3rem;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-icon {
    font-size: 1.8rem;
    color: var(--primary);
    animation: rotate-slow 20s linear infinite;
}

@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.nav-title {
    font-family: var(--font-art);
    font-size: 1.6rem;
    color: var(--primary);
    letter-spacing: 0.2em;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* ============================================
   Hero区域
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 4rem;
    overflow: hidden;
    background: 
        radial-gradient(ellipse at 30% 20%, rgba(201, 168, 76, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(139, 69, 19, 0.1) 0%, transparent 50%),
        var(--bg-dark);
}

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

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid var(--primary-dark);
    border-radius: 20px;
    color: var(--primary);
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    margin-bottom: 2rem;
    animation: fade-in-down 1s ease;
}

@keyframes fade-in-down {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    margin-bottom: 1.5rem;
    animation: fade-in-up 1s ease 0.2s both;
}

.title-main {
    display: block;
    font-family: var(--font-art);
    font-size: 4.5rem;
    color: var(--primary);
    text-shadow: 0 0 30px var(--glow);
    line-height: 1.2;
}

.title-sub {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--text-secondary);
    letter-spacing: 0.5em;
    margin-top: 0.5rem;
}

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

.hero-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 2;
    margin-bottom: 2.5rem;
    animation: fade-in-up 1s ease 0.4s both;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fade-in-up 1s ease 0.6s both;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-family: var(--font-serif);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--bg-dark);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(201, 168, 76, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(201, 168, 76, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-secondary:hover {
    background: rgba(201, 168, 76, 0.1);
    transform: translateY(-2px);
}

.btn-divinate {
    width: 100%;
    justify-content: center;
    background: linear-gradient(135deg, var(--secondary), var(--primary-dark));
    color: var(--text-primary);
    font-size: 1.1rem;
    padding: 1.2rem;
    margin-top: 1rem;
}

.btn-divinate:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(139, 69, 19, 0.4);
}

.btn-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-divinate:hover .btn-glow {
    opacity: 1;
}

/* Hero视觉元素 */
.hero-visual {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}

.moon {
    position: absolute;
    top: 15%;
    right: 20%;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle at 30% 30%, var(--primary-light), var(--primary));
    border-radius: 50%;
    box-shadow: 0 0 60px rgba(201, 168, 76, 0.3);
    animation: moon-glow 4s ease-in-out infinite alternate;
}

@keyframes moon-glow {
    from {
        box-shadow: 0 0 60px rgba(201, 168, 76, 0.3);
    }
    to {
        box-shadow: 0 0 80px rgba(201, 168, 76, 0.5);
    }
}

.clouds {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.cloud {
    position: absolute;
    background: rgba(201, 168, 76, 0.05);
    border-radius: 100px;
    animation: float-cloud 20s infinite ease-in-out;
}

.cloud:nth-child(1) {
    width: 200px;
    height: 60px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.cloud:nth-child(2) {
    width: 150px;
    height: 50px;
    top: 40%;
    right: 15%;
    animation-delay: -7s;
}

.cloud:nth-child(3) {
    width: 180px;
    height: 55px;
    top: 60%;
    left: 30%;
    animation-delay: -14s;
}

@keyframes float-cloud {
    0%, 100% {
        transform: translateX(0) translateY(0);
    }
    25% {
        transform: translateX(30px) translateY(-10px);
    }
    50% {
        transform: translateX(-20px) translateY(5px);
    }
    75% {
        transform: translateX(15px) translateY(-5px);
    }
}

.mountains {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
}

.mountain {
    position: absolute;
    bottom: 0;
    width: 0;
    height: 0;
    border-style: solid;
}

.mountain:nth-child(1) {
    left: 0;
    border-width: 0 150px 150px 150px;
    border-color: transparent transparent rgba(201, 168, 76, 0.1) transparent;
}

.mountain:nth-child(2) {
    left: 20%;
    border-width: 0 200px 200px 200px;
    border-color: transparent transparent rgba(201, 168, 76, 0.08) transparent;
}

.mountain:nth-child(3) {
    right: 0;
    border-width: 0 180px 180px 180px;
    border-color: transparent transparent rgba(201, 168, 76, 0.06) transparent;
}

/* ============================================
   通用区域样式
   ============================================ */
section {
    position: relative;
    z-index: 1;
    padding: 5rem 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-badge {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--primary);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-art);
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ============================================
   梦境测算区域
   ============================================ */
.divination {
    background: 
        radial-gradient(ellipse at 50% 0%, rgba(201, 168, 76, 0.05) 0%, transparent 50%),
        var(--bg-darker);
}

.divination-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* 输入面板 */
.input-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 40px var(--shadow);
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.label-icon {
    font-size: 1.2rem;
}

.dream-textarea,
.dream-input,
.dream-select {
    width: 100%;
    padding: 1rem;
    background: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-serif);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    resize: vertical;
}

.dream-textarea:focus,
.dream-input:focus,
.dream-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--glow);
}

.dream-textarea::placeholder {
    color: var(--text-muted);
}

.input-hint {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* 情绪标签 */
.emotion-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.emotion-tag {
    padding: 0.5rem 1rem;
    background: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-secondary);
    font-family: var(--font-serif);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.emotion-tag:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.emotion-tag.active {
    background: rgba(201, 168, 76, 0.2);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 10px var(--glow);
}

/* 结果面板 */
.result-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 40px var(--shadow);
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

.result-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
    animation: float 3s ease-in-out infinite;
}

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

.result-content {
    animation: fade-in 0.5s ease;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.result-hexagram {
    font-family: var(--font-mono);
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    letter-spacing: 0.3em;
}

.result-title {
    font-family: var(--font-art);
    font-size: 1.8rem;
    color: var(--primary);
}

.result-sections {
    flex: 1;
}

.result-section {
    margin-bottom: 1.5rem;
}

.result-section h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.section-icon {
    font-size: 1.2rem;
}

.result-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    padding-left: 1.7rem;
}

.result-footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.fortune-meter {
    text-align: center;
}

.meter-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.meter-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-darker);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.meter-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    border-radius: 4px;
    transition: width 1s ease;
    width: 0;
}

.meter-value {
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 600;
}

/* ============================================
   梦象分类区域
   ============================================ */
.dream-types {
    background: var(--bg-dark);
}

.dream-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.dream-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dream-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary), var(--primary-dark));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.dream-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-dark);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.dream-card:hover::before {
    transform: scaleX(1);
}

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

.card-title {
    font-family: var(--font-art);
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.card-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
}

.tag {
    padding: 0.3rem 0.8rem;
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ============================================
   关于区域
   ============================================ */
.about {
    background: 
        radial-gradient(ellipse at 80% 50%, rgba(201, 168, 76, 0.05) 0%, transparent 50%),
        var(--bg-darker);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
    align-items: center;
}

.about-text {
    max-width: 500px;
}

.about-text .section-title {
    text-align: left;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.about-features {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

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

.feature-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* 梦境宝珠 */
.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.dream-orb {
    width: 220px;
    height: 220px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.orb-core {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, var(--primary-light), var(--primary));
    box-shadow:
        0 0 30px rgba(201, 168, 76, 0.4),
        0 0 60px rgba(201, 168, 76, 0.2),
        inset 0 0 20px rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 3;
    animation: orb-pulse 3s ease-in-out infinite;
}

@keyframes orb-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow:
            0 0 30px rgba(201, 168, 76, 0.4),
            0 0 60px rgba(201, 168, 76, 0.2),
            inset 0 0 20px rgba(255, 255, 255, 0.2);
    }
    50% {
        transform: scale(1.1);
        box-shadow:
            0 0 50px rgba(201, 168, 76, 0.6),
            0 0 100px rgba(201, 168, 76, 0.3),
            inset 0 0 30px rgba(255, 255, 255, 0.3);
    }
}

.orb-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(201, 168, 76, 0.15);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.orb-ring-1 {
    width: 100px;
    height: 100px;
    animation: orb-spin 12s linear infinite;
    border-top-color: rgba(201, 168, 76, 0.4);
    border-right-color: transparent;
    border-bottom-color: rgba(201, 168, 76, 0.2);
    border-left-color: transparent;
}

.orb-ring-2 {
    width: 150px;
    height: 150px;
    animation: orb-spin-reverse 18s linear infinite;
    border-top-color: transparent;
    border-right-color: rgba(201, 168, 76, 0.3);
    border-bottom-color: transparent;
    border-left-color: rgba(201, 168, 76, 0.15);
}

.orb-ring-3 {
    width: 200px;
    height: 200px;
    animation: orb-spin 24s linear infinite;
    border: 1px dashed rgba(201, 168, 76, 0.1);
}

@keyframes orb-spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes orb-spin-reverse {
    from { transform: translate(-50%, -50%) rotate(360deg); }
    to { transform: translate(-50%, -50%) rotate(0deg); }
}

.orb-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    animation: orb-spin 30s linear infinite;
}

.orb-particles span {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.6;
    box-shadow: 0 0 6px var(--primary);
}

.orb-particles span:nth-child(1) { top: 10%; left: 50%; transform: translateX(-50%); animation: particle-float 4s ease-in-out infinite; }
.orb-particles span:nth-child(2) { top: 20%; right: 15%; animation: particle-float 5s ease-in-out infinite 0.5s; }
.orb-particles span:nth-child(3) { top: 50%; right: 5%; transform: translateY(-50%); animation: particle-float 4.5s ease-in-out infinite 1s; }
.orb-particles span:nth-child(4) { bottom: 20%; right: 15%; animation: particle-float 5.5s ease-in-out infinite 1.5s; }
.orb-particles span:nth-child(5) { bottom: 10%; left: 50%; transform: translateX(-50%); animation: particle-float 4s ease-in-out infinite 2s; }
.orb-particles span:nth-child(6) { bottom: 20%; left: 15%; animation: particle-float 5s ease-in-out infinite 2.5s; }
.orb-particles span:nth-child(7) { top: 50%; left: 5%; transform: translateY(-50%); animation: particle-float 4.5s ease-in-out infinite 3s; }
.orb-particles span:nth-child(8) { top: 20%; left: 15%; animation: particle-float 5.5s ease-in-out infinite 3.5s; }
.orb-particles span:nth-child(9) { top: 5%; left: 30%; animation: particle-float 6s ease-in-out infinite 0.3s; }
.orb-particles span:nth-child(10) { top: 5%; right: 30%; animation: particle-float 6s ease-in-out infinite 0.8s; }
.orb-particles span:nth-child(11) { bottom: 5%; left: 30%; animation: particle-float 6s ease-in-out infinite 1.3s; }
.orb-particles span:nth-child(12) { bottom: 5%; right: 30%; animation: particle-float 6s ease-in-out infinite 1.8s; }

@keyframes particle-float {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.3);
    }
}

.orb-glow {
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.08) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: glow-breathe 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes glow-breathe {
    0%, 100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.15);
    }
}

/* ============================================
   页脚
   ============================================ */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border);
    padding: 3rem 2rem;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-icon {
    font-size: 1.5rem;
    color: var(--primary);
}

.footer-title {
    font-family: var(--font-art);
    font-size: 1.4rem;
    color: var(--primary);
}

.footer-desc {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.footer-divider {
    width: 60px;
    height: 1px;
    background: var(--primary-dark);
    margin: 0 auto 1rem;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ============================================
   模态框
   ============================================ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 1;
    animation: modal-in 0.3s ease;
}

@keyframes modal-in {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--primary);
}

.modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.modal-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.modal-title {
    font-family: var(--font-art);
    font-size: 1.6rem;
    color: var(--primary);
}

.modal-body {
    color: var(--text-secondary);
    line-height: 1.8;
}

.modal-body h4 {
    color: var(--primary);
    margin: 1rem 0 0.5rem;
}

.modal-body ul {
    list-style: none;
    padding-left: 0;
}

.modal-body li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.modal-body li:last-child {
    border-bottom: none;
}

/* ============================================
   响应式设计
   ============================================ */
@media (max-width: 968px) {
    .divination-container {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-text .section-title {
        text-align: center;
    }
    
    .about-features {
        justify-content: center;
    }
    
    .dream-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .title-main {
        font-size: 3rem;
    }
    
    .nav {
        padding: 1rem 1.5rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
}

@media (max-width: 640px) {
    .dream-grid {
        grid-template-columns: 1fr;
    }
    
    .input-row {
        grid-template-columns: 1fr;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .title-main {
        font-size: 2.5rem;
    }
    
    .nav-links {
        display: none;
    }
    
    section {
        padding: 3rem 1rem;
    }
}

/* ============================================
   底部滚轮选择器
   ============================================ */
.picker-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-serif);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.picker-trigger:hover {
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--glow);
}

.picker-trigger.active {
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--glow);
}

.picker-value {
    flex: 1;
    color: var(--text-muted);
}

.picker-value.selected {
    color: var(--text-primary);
}

.picker-arrow {
    color: var(--text-muted);
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.picker-trigger.active .picker-arrow {
    transform: rotate(180deg);
}

/* 底部面板 */
.picker-sheet {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3000;
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.picker-sheet.active {
    display: flex;
}

.picker-sheet-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.picker-sheet.active .picker-sheet-overlay {
    opacity: 1;
}

.picker-sheet-content {
    position: relative;
    width: 100%;
    max-width: 600px;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 1;
}

.picker-sheet.active .picker-sheet-content {
    transform: translateY(0);
}

.picker-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.picker-sheet-cancel {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-serif);
    font-size: 0.95rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s;
}

.picker-sheet-cancel:hover {
    color: var(--text-secondary);
}

.picker-sheet-title {
    color: var(--primary);
    font-family: var(--font-art);
    font-size: 1.2rem;
}

.picker-sheet-confirm {
    background: none;
    border: none;
    color: var(--primary);
    font-family: var(--font-serif);
    font-size: 0.95rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s;
    font-weight: 600;
}

.picker-sheet-confirm:hover {
    color: var(--primary-light);
}

.picker-sheet-body {
    padding: 1rem 0;
    height: 240px;
    overflow: hidden;
}

.picker-wheel-container {
    position: relative;
    height: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to bottom, transparent 0%, black 30%, black 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 30%, black 70%, transparent 100%);
}

.picker-wheel-highlight {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 48px;
    transform: translateY(-50%);
    background: rgba(201, 168, 76, 0.08);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    pointer-events: none;
    z-index: 1;
}

.picker-wheel {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 96px 0;
}

.picker-wheel::-webkit-scrollbar {
    display: none;
}

.picker-wheel-item {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
    user-select: none;
}

.picker-wheel-item:hover {
    color: var(--text-secondary);
}

.picker-wheel-item.active {
    color: var(--primary);
    font-size: 1.15rem;
    font-weight: 600;
}

/* ============================================
   加载动画
   ============================================ */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 结果出现动画 */
.result-section {
    opacity: 0;
    animation: slide-in 0.5s ease forwards;
}

.result-section:nth-child(1) {
    animation-delay: 0.1s;
}

.result-section:nth-child(2) {
    animation-delay: 0.2s;
}

.result-section:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes slide-in {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
