/* =========================================
   ZenSpace Specific Pages Styles
   ========================================= */

/* --- Index Page --- */
.hero-section {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 2rem;
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.3s, background 0.3s;
    border: 1px solid var(--glass-border);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.info-item i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    display: inline-block;
}

.testimonial-carousel {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.testimonial-card {
    background: rgba(255,255,255,0.05);
    padding: 1.5rem;
    border-left: 3px solid var(--accent-color);
    border-radius: 0 10px 10px 0;
    flex: 1;
}

.testimonial-card .quote {
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-card .author {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: right;
}

/* --- Audio Healing Page --- */
.audio-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
}

.scene-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    transition: opacity 0.3s;
}

/* 简单的音波效果 CSS 模拟 */
.audio-visualizer {
    display: flex;
    gap: 5px;
    height: 40px;
    align-items: center;
    justify-content: center;
    margin: 1rem 0;
}

.bar {
    width: 6px;
    height: 10px;
    background: var(--accent-color);
    border-radius: 3px;
    transition: height 0.2s ease;
}

.bar.animating {
    animation: bounce 1s infinite ease-in-out alternate;
}

.bar:nth-child(1) { animation-delay: 0s; }
.bar:nth-child(2) { animation-delay: 0.2s; }
.bar:nth-child(3) { animation-delay: 0.4s; }
.bar:nth-child(4) { animation-delay: 0.1s; }
.bar:nth-child(5) { animation-delay: 0.5s; }

@keyframes bounce {
    0% { height: 10px; }
    100% { height: 40px; }
}

.controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
}

.control-btn {
    background: var(--text-primary);
    color: var(--primary-color);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.control-btn:hover {
    transform: scale(1.05);
}

.volume-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 60%;
}

.volume-wrapper input[type="range"] {
    flex-grow: 1;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.3);
    height: 4px;
    border-radius: 2px;
}

.volume-wrapper input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
}

.scene-selector {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.scene-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid transparent;
    color: var(--text-secondary);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
}

.scene-btn.active, .scene-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

/* --- Breathing Page --- */
.breathing-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 400px;
}

.breath-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(91, 124, 114, 0.8) 0%, rgba(91, 124, 114, 0.2) 80%, transparent 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 1s ease-in-out;
    box-shadow: 0 0 50px rgba(91, 124, 114, 0.4);
}

.breath-text {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 2px;
}

.primary-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.primary-btn:hover {
    background: #46635a;
}

/* --- Journal Page --- */
.journal-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.journal-input-area {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.emoji-selector {
    display: flex;
    gap: 1rem;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.emoji-btn {
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.5;
    transition: transform 0.2s, opacity 0.2s;
}

.emoji-btn.selected, .emoji-btn:hover {
    opacity: 1;
    transform: scale(1.2);
}

.journal-input-area textarea {
    width: 100%;
    height: 150px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 1rem;
    color: white;
    font-family: var(--font-body);
    resize: none;
    outline: none;
}

.journal-list {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 1rem;
}

.journal-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--accent-color);
    animation: fadeIn 0.5s ease;
}

.journal-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.journal-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* --- About & FAQ Pages --- */
.text-content-panel {
    line-height: 1.8;
}

.text-content-panel p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* Timeline */
.timeline {
    border-left: 2px solid var(--glass-border);
    padding-left: 1.5rem;
    margin-top: 2rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.8rem;
    top: 5px;
    width: 12px;
    height: 12px;
    background: var(--accent-color);
    border-radius: 50%;
}

.timeline-date {
    font-size: 0.8rem;
    color: var(--accent-color);
    font-weight: bold;
}

/* FAQ Accordion */
.accordion-item {
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 1rem;
}

.accordion-title {
    padding: 1rem 0;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-title:hover {
    color: var(--accent-color);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-content p {
    padding-bottom: 1rem;
}

/* Quotes Page */
.quote-container {
    text-align: center;
    padding: 4rem 2rem;
}

.quote-text {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    line-height: 1.5;
    margin-bottom: 2rem;
    font-style: italic;
    min-height: 120px;
}

.quote-author {
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

/* Color Therapy */
.color-swatches {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.swatch {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.2s;
}

.swatch:hover, .swatch.active {
    transform: scale(1.1);
    border-color: white;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .info-grid, .journal-layout {
        grid-template-columns: 1fr;
    }
    .testimonial-carousel {
        flex-direction: column;
    }
}
