/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #9333ea;
    --secondary: #a855f7;
    --accent: #fbbf24;
    --success: #10b981;
    --background: #0a0118;
    --surface: #1a0b2e;
    --surface-light: #2d1b4e;
    --text: #f3e8ff;
    --text-secondary: #c4b5fd;
    --gradient-mystic: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-cosmic: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-celestial: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-golden: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    --shadow-glow: 0 0 30px rgba(147, 51, 234, 0.3);
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.5);
}

body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* 星空背景 */
.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.stars, .stars2, .stars3 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

.stars {
    background-image: 
        radial-gradient(3px 3px at 20px 30px, #fff, rgba(255,255,255,0)),
        radial-gradient(3px 3px at 60px 70px, #fff, rgba(255,255,255,0)),
        radial-gradient(2px 2px at 50px 50px, #fff, rgba(255,255,255,0)),
        radial-gradient(2px 2px at 130px 80px, #fff, rgba(255,255,255,0)),
        radial-gradient(3px 3px at 90px 10px, #fff, rgba(255,255,255,0)),
        radial-gradient(2px 2px at 40px 100px, #fef3c7, rgba(255,255,255,0)),
        radial-gradient(2px 2px at 180px 140px, #fef3c7, rgba(255,255,255,0));
    background-size: 200px 200px;
    animation: twinkle 2s ease-in-out infinite, moveStars 80s linear infinite;
}

.stars2 {
    background-image: 
        radial-gradient(2px 2px at 100px 120px, #e9d5ff, rgba(233,213,255,0)),
        radial-gradient(3px 3px at 150px 160px, #c084fc, rgba(192,132,252,0)),
        radial-gradient(2px 2px at 180px 50px, #ddd6fe, rgba(221,214,254,0)),
        radial-gradient(2px 2px at 80px 180px, #e9d5ff, rgba(233,213,255,0)),
        radial-gradient(2px 2px at 30px 90px, #c084fc, rgba(192,132,252,0));
    background-size: 250px 250px;
    animation: twinkle 3s ease-in-out infinite 0.5s, moveStars 100s linear infinite reverse;
}

.stars3 {
    background-image: 
        radial-gradient(2px 2px at 220px 90px, #fde047, rgba(253,224,71,0)),
        radial-gradient(3px 3px at 170px 120px, #fbbf24, rgba(251,191,36,0)),
        radial-gradient(2px 2px at 60px 160px, #fef3c7, rgba(254,243,199,0)),
        radial-gradient(3px 3px at 130px 40px, #fde047, rgba(253,224,71,0));
    background-size: 300px 300px;
    animation: twinkle 4s ease-in-out infinite 1s, moveStars 120s linear infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

@keyframes moveStars {
    from {
        transform: translateY(0) translateX(0);
    }
    to {
        transform: translateY(-50px) translateX(30px);
    }
}

/* 粒子画布 */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* 导航栏 */
.navbar {
    background: rgba(10, 1, 24, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(168, 85, 247, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}

.logo svg {
    width: 2rem;
    height: 2rem;
    color: var(--accent);
    filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.5));
    animation: logoSpin 10s linear infinite, logoPulse 2s ease-in-out infinite;
}

@keyframes logoSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes logoPulse {
    0%, 100% { 
        filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.5));
    }
    50% { 
        filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.8));
        transform: scale(1.1);
    }
}

.logo:hover svg {
    animation: logoSpin 2s linear infinite, logoPulse 1s ease-in-out infinite;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-golden);
    transition: width 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* 容器 */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* 标题区域 */
.hero {
    text-align: center;
    padding: 4rem 0 2rem;
    position: relative;
}

.mystical-symbol {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    position: relative;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.circle-outer,
.circle-middle,
.circle-inner {
    position: absolute;
    border-radius: 50%;
    border: 2px solid;
}

.circle-outer {
    width: 120px;
    height: 120px;
    border-color: rgba(251, 191, 36, 0.3);
    animation: rotate 20s linear infinite;
}

.circle-middle {
    width: 80px;
    height: 80px;
    top: 20px;
    left: 20px;
    border-color: rgba(168, 85, 247, 0.4);
    animation: rotate 15s linear infinite reverse;
}

.circle-inner {
    width: 40px;
    height: 40px;
    top: 40px;
    left: 40px;
    border-color: rgba(147, 51, 234, 0.5);
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.symbol-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    top: 35px;
    left: 35px;
    color: var(--accent);
    filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.8));
    animation: symbolRotate 8s linear infinite, symbolPulse 2s ease-in-out infinite;
}

@keyframes symbolRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes symbolPulse {
    0%, 100% { 
        filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.8));
        opacity: 1; 
    }
    50% { 
        filter: drop-shadow(0 0 40px rgba(251, 191, 36, 1));
        opacity: 0.9; 
    }
}

.title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.mystical-text {
    background: var(--gradient-mystic);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text {
    background: var(--gradient-golden);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 30px rgba(251, 191, 36, 0.3));
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* 问答区域 */
.question-section {
    margin: 3rem 0 8rem 0;
    display: flex;
    justify-content: center;
    min-height: 700px;
    padding-bottom: 3rem;
}

.book-container {
    position: relative;
    perspective: 2000px;
    width: 100%;
    max-width: 800px;
    min-height: 650px;
}

/* 书本封面 */
.book-cover {
    width: 100%;
    cursor: pointer;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.book-cover.opened {
    transform: rotateY(-180deg);
    opacity: 0;
    pointer-events: none;
}

.book-front {
    background: linear-gradient(135deg, #2d1b4e 0%, #1a0b2e 100%);
    border: 2px solid rgba(251, 191, 36, 0.3);
    border-radius: 24px;
    padding: 4rem 3rem;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-glow), var(--shadow-soft);
    transition: all 0.3s;
}

.book-front:hover {
    border-color: rgba(251, 191, 36, 0.6);
    box-shadow: 0 0 50px rgba(251, 191, 36, 0.4), var(--shadow-soft);
    transform: translateY(-5px);
}

.book-title {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-golden);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.book-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 2rem;
}

.book-decoration {
    width: 100px;
    height: 100px;
    margin: 2rem auto;
    color: var(--accent);
    filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.5));
    animation: pulse 3s ease-in-out infinite;
}

.book-decoration svg {
    width: 100%;
    height: 100%;
}

.book-hint {
    color: var(--text-secondary);
    font-size: 1.1rem;
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* 答案卡片 */
.answer-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s;
    pointer-events: none;
    z-index: 10;
}

.answer-card.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: all;
}

.card-content {
    background: linear-gradient(135deg, #2d1b4e 0%, #1a0b2e 100%);
    border: 2px solid rgba(168, 85, 247, 0.3);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: var(--shadow-glow), var(--shadow-soft);
    margin-bottom: 3rem;
    max-height: 600px;
    overflow-y: auto;
}

.card-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    background: var(--gradient-mystic);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-desc {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* 输入区域 */
.input-container {
    position: relative;
    margin-bottom: 2rem;
}

#questionInput {
    width: 100%;
    background: rgba(168, 85, 247, 0.1);
    border: 2px solid rgba(168, 85, 247, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    color: var(--text);
    font-size: 1.1rem;
    font-family: inherit;
    resize: none;
    transition: all 0.3s;
}

#questionInput:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(168, 85, 247, 0.15);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.2);
}

#questionInput::placeholder {
    color: var(--text-secondary);
}

.char-count {
    position: absolute;
    bottom: -25px;
    right: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* 按钮 */
.btn-ask {
    width: 100%;
    background: var(--gradient-golden);
    color: var(--background);
    border: none;
    padding: 1.25rem 2rem;
    border-radius: 16px;
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(251, 191, 36, 0.3);
    margin-top: 2rem;
}

.btn-ask:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(251, 191, 36, 0.5);
}

.btn-ask svg {
    width: 24px;
    height: 24px;
}

/* 快速问题 */
.quick-questions {
    margin-top: 2rem;
    text-align: center;
}

.quick-questions p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.quick-btns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
}

.quick-btn {
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: var(--text);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
}

.quick-btn:hover {
    background: rgba(168, 85, 247, 0.3);
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* 加载界面 */
.loading-interface {
    text-align: center;
    padding: 3rem 0;
}

.crystal-ball {
    width: 150px;
    height: 150px;
    margin: 0 auto 2rem;
    position: relative;
}

.ball-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.4) 0%, transparent 70%);
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; }
}

.ball-inner {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.8) 0%, rgba(168, 85, 247, 0.8) 100%);
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5), 0 0 50px rgba(147, 51, 234, 0.5);
    animation: rotate 10s linear infinite;
}

.ball-shine {
    position: absolute;
    width: 40%;
    height: 40%;
    top: 15%;
    left: 15%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), transparent);
}

.loading-text {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.mystical-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.mystical-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    animation: bounce 1.4s ease-in-out infinite;
}

.mystical-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.mystical-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* 答案展示界面 */
.answer-interface {
    padding: 2rem 0 3rem 0;
}

.answer-decoration {
    text-align: center;
    color: var(--accent);
    margin-bottom: 2rem;
    opacity: 0.5;
}

.answer-decoration svg {
    width: 200px;
    height: 50px;
}

.your-question {
    text-align: center;
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: rgba(168, 85, 247, 0.1);
    border-radius: 16px;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.question-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.your-question p {
    font-size: 1.25rem;
    color: var(--text);
    font-weight: 500;
}

.answer-reveal {
    text-align: center;
    margin-bottom: 2rem;
}

.answer-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    color: var(--accent);
    filter: drop-shadow(0 0 30px rgba(251, 191, 36, 0.6));
    animation: revealIcon 0.8s ease-out;
}

@keyframes revealIcon {
    from {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    to {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.answer-icon svg {
    width: 100%;
    height: 100%;
}

.answer-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-golden);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.answer-text {
    font-size: 1.5rem;
    line-height: 1.8;
    color: var(--text);
    font-weight: 500;
    padding: 2rem;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 16px;
    border: 2px solid rgba(251, 191, 36, 0.3);
    animation: revealAnswer 0.8s ease-out 0.3s both;
}

@keyframes revealAnswer {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.answer-decoration.bottom {
    margin-top: 2rem;
    margin-bottom: 0;
}

/* 操作按钮 */
.action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.btn-again,
.btn-share {
    flex: 1;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.btn-again {
    background: var(--gradient-mystic);
    color: white;
    border: none;
}

.btn-again:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(147, 51, 234, 0.4);
}

.btn-share {
    background: rgba(168, 85, 247, 0.2);
    color: var(--text);
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.btn-share:hover {
    background: rgba(168, 85, 247, 0.3);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.btn-again svg,
.btn-share svg {
    width: 20px;
    height: 20px;
}

/* 使用指南 */
.guide-section {
    padding: 8rem 0 5rem 0;
    clear: both;
    margin-top: 5rem;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 4rem;
    background: var(--gradient-mystic);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.guide-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.step-card {
    background: rgba(45, 27, 78, 0.5);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 20px;
    padding: 3rem 1.5rem 2rem;
    text-align: center;
    position: relative;
    transition: all 0.3s;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.step-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 15px 40px rgba(147, 51, 234, 0.3);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 45px;
    height: 45px;
    background: var(--gradient-golden);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--background);
    box-shadow: 0 5px 15px rgba(251, 191, 36, 0.4);
    z-index: 1;
}

.step-icon {
    font-size: 3rem;
    margin: 1rem 0 1rem;
}

.step-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.step-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 热门问题 */
.popular-section {
    padding: 5rem 0;
    clear: both;
}

.popular-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.popular-card {
    background: rgba(45, 27, 78, 0.5);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s;
    min-height: 280px;
    display: flex;
    flex-direction: column;
}

.popular-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.popular-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.popular-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.popular-card ul {
    list-style: none;
    flex: 1;
}

.popular-card li {
    color: var(--text-secondary);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.6;
}

.popular-card li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--accent);
}


/* 页脚 */
.footer {
    background: rgba(26, 11, 46, 0.8);
    border-top: 1px solid rgba(168, 85, 247, 0.2);
    padding: 3rem 2rem 1rem;
    margin-top: 5rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-logo svg {
    width: 2rem;
    height: 2rem;
    color: var(--accent);
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.4));
    animation: footerLogoGlow 3s ease-in-out infinite;
}

@keyframes footerLogoGlow {
    0%, 100% { 
        filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.4));
    }
    50% { 
        filter: drop-shadow(0 0 15px rgba(251, 191, 36, 0.7));
    }
}

.footer-info p {
    color: var(--text-secondary);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    margin-bottom: 1rem;
    color: var(--text);
}

.footer-column a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(168, 85, 247, 0.1);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Toast提示 */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(45, 27, 78, 0.95);
    border: 1px solid rgba(168, 85, 247, 0.5);
    color: var(--text);
    padding: 1rem 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .guide-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem 2rem;
    }
    
    .popular-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .title {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .card-content {
        padding: 2rem 1.5rem;
        margin-bottom: 3rem;
    }

    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .action-buttons {
        flex-direction: column;
    }

    .quick-btns {
        grid-template-columns: 1fr;
    }

    .guide-steps {
        grid-template-columns: 1fr;
        gap: 3rem 1rem;
    }
    
    .popular-grid {
        grid-template-columns: 1fr;
    }

    .answer-text {
        font-size: 1.25rem;
    }
    
    .step-card {
        min-height: auto;
    }
    
    .popular-card {
        min-height: auto;
    }
    
    .question-section {
        margin: 2rem 0 6rem 0;
        min-height: 550px;
        padding-bottom: 2rem;
    }
    
    .book-container {
        min-height: 500px;
    }
    
    .guide-section {
        padding: 6rem 0 3rem 0;
        margin-top: 4rem;
    }
    
    .card-content {
        max-height: 500px;
    }
}

/* 自定义滚动条 */
.card-content::-webkit-scrollbar {
    width: 8px;
}

.card-content::-webkit-scrollbar-track {
    background: rgba(168, 85, 247, 0.1);
    border-radius: 4px;
}

.card-content::-webkit-scrollbar-thumb {
    background: rgba(168, 85, 247, 0.5);
    border-radius: 4px;
}

.card-content::-webkit-scrollbar-thumb:hover {
    background: rgba(168, 85, 247, 0.7);
}

/* 错误状态 */
.input-error {
    border-color: #ef4444 !important;
}

.error-text {
    color: #f87171;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

