/* ========= 中国传统色系 ========= */
:root {
    --zhu-sha-color: #8B3A3A;      /* 朱砂红 */
    --zhu-sha-light: #B76E6E;       /* 珊瑚粉 */
    --zhu-sha-dark: #5C2E2E;        /* 深檀棕 */
    --song-yan-color: #D4AF37;     /* 琥珀金 */
    --bg-light: #FDF8F0;            /* 牙白 */
    --bg-card: #FFF9F0;             /* 米白 */
    --shui-mo: #3E2A2A;           /* 墨褐 */
    --text-muted: #7A5B5B;          /* 灰褐 */
    --border-color: #E6D5B8;        /* 香槟黄 */
    --success-color: #4A7A6B;       /* 竹青 */
    --warning-color: #C67C3E;       /* 杏黄 */
    --error-color: #B23C3C;         /* 胭脂 */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Noto Sans CJK SC', 'Microsoft YaHei', 'WenQuanYi Micro Hei', sans-serif;
    background: linear-gradient(135deg, #FDF8F0 0%, #F9F0E3 100%);
    color: var(--shui-mo);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* 浮动装饰元素 */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.05);
    animation: float 20s infinite ease-in-out;
}

.floating-element:nth-child(1) {
    width: 300px;
    height: 300px;
    top: 10%;
    left: -100px;
    animation-duration: 25s;
}

.floating-element:nth-child(2) {
    width: 200px;
    height: 200px;
    bottom: 20%;
    right: -50px;
    animation-duration: 18s;
}

.floating-element:nth-child(3) {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 50%;
    animation-duration: 22s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(10deg); }
}

header {
    text-align: center;
    position: relative;
    z-index: 1;
}

header h1 {
    font-size: 2.5rem;
    color: var(--zhu-sha-color);
    letter-spacing: 4px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.05);
}

header .subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    border-top: 2px solid var(--song-yan-color);
    border-bottom: 2px solid var(--song-yan-color);
    display: inline-block;
    padding: 8px 24px;
    letter-spacing: 2px;
}

.main-content {
    display: flex;
    gap: 30px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.disease-selection {
    flex: 1.2;
    min-width: 280px;
    background: var(--bg-card);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border: 1px solid var(--border-color);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--song-yan-color);
    padding-bottom: 12px;
}

.section-title i {
    font-size: 1.5rem;
    color: var(--zhu-sha-color);
}

.section-title h2, .section-title h3 {
    color: var(--zhu-sha-dark);
    font-weight: 600;
}

.disease-categories {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 8px;
}

.disease-category {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-light);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.disease-category:hover {
    border-color: var(--song-yan-color);
    box-shadow: 0 4px 12px rgba(139, 58, 58, 0.1);
    transform: translateX(4px);
}

.disease-category.active {
    background: var(--zhu-sha-color);
    border-color: var(--zhu-sha-dark);
    color: white;
}

.disease-category.active .disease-info h3,
.disease-category.active .disease-info p {
    color: white;
}

.disease-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 175, 55, 0.15);
    border-radius: 50%;
}

.disease-icon i {
    font-size: 1.5rem;
    color: var(--zhu-sha-color);
}

.disease-category.active .disease-icon i {
    color: white;
}

.disease-info h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.disease-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.therapy-player {
    flex: 2;
    min-width: 380px;
    background: var(--bg-card);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border: 1px solid var(--border-color);
}

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.player-header h2 {
    color: var(--zhu-sha-color);
    font-size: 1.4rem;
}

.player-controls {
    display: flex;
    gap: 16px;
}

.player-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--zhu-sha-color);
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.player-btn:hover {
    background: var(--zhu-sha-dark);
    transform: scale(1.05);
}

.guqin-display {
    text-align: center;
    padding: 24px;
    background: var(--bg-light);
    border-radius: 20px;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
}

.guqin-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--border-color), var(--bg-card));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--song-yan-color);
}

.guqin-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--zhu-sha-color);
}

.performer-info {
    text-align: center;
    margin-top: 12px;
    padding: 12px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 12px;
}

.performer-info h4 {
    color: var(--zhu-sha-dark);
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.performer-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.player-info {
    text-align: center;
    margin-bottom: 20px;
}

.player-info h3 {
    font-size: 1.2rem;
    color: var(--zhu-sha-dark);
    margin-bottom: 8px;
}

.player-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.therapy-progress-container {
    background: var(--border-color);
    border-radius: 10px;
    height: 6px;
    overflow: hidden;
    margin: 20px 0;
}

.therapy-progress-bar {
    width: 0%;
    height: 100%;
    background: var(--song-yan-color);
    border-radius: 10px;
    transition: width 0.1s linear;
}

.therapy-timer {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 24px;
}

.recommended-tracks {
    margin: 24px 0;
}

.track-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 300px;
    overflow-y: auto;
}

.track-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: var(--bg-light);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.track-item:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateX(4px);
}

.track-item.active {
    background: var(--zhu-sha-light);
    border-left: 4px solid var(--song-yan-color);
}

.track-item.active .track-info h4,
.track-item.active .track-info p {
    color: white;
}

.track-info h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.track-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.track-duration {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.therapy-settings {
    margin: 24px 0;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 16px;
}

.setting-group {
    margin-bottom: 16px;
}

.setting-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--shui-mo);
    font-weight: 500;
}

.setting-group input,
.setting-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--shui-mo);
}

.therapy-description {
    margin-top: 24px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 16px;
}

.therapy-description h3 {
    color: var(--zhu-sha-color);
    margin-bottom: 12px;
}

.therapy-description p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.therapy-theory {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.therapy-theory h4 {
    color: var(--zhu-sha-dark);
    margin-bottom: 8px;
}

.audio-player {
    display: none;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--border-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: var(--zhu-sha-light);
    border-radius: 3px;
}

/* 响应式 */
@media (max-width: 900px) {
    .main-content {
        flex-direction: column;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    .container {
        padding: 16px;
    }
}

/* 页脚样式 */
.footer-mobile {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 12px 0;
    z-index: 100;
}

.footer-tabs {
    display: flex;
    justify-content: space-around;
}

.footer-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: var(--text-muted);
}

.footer-tab.active {
    color: var(--zhu-sha-color);
}

.footer-desktop {
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-brand h3 {
    color: var(--zhu-sha-color);
    margin-bottom: 12px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--border-color);
    border-radius: 50%;
    text-decoration: none;
    color: var(--zhu-sha-color);
    font-size: 0.8rem;
}

.footer-heading {
    color: var(--zhu-sha-dark);
    margin-bottom: 16px;
    font-size: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: var(--zhu-sha-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-bottom .list ul {
    display: flex;
    justify-content: center;
    gap: 20px;
    list-style: none;
    margin-bottom: 12px;
}

.footer-bottom .list a {
    color: var(--text-muted);
    text-decoration: none;
}

@media (max-width: 768px) {
    .footer-desktop {
        display: none;
    }
    .footer-mobile {
        display: block;
    }
    body {
        padding-bottom: 70px;
    }
}

.performer-info {
    text-align: left;
}

.performer-info p {
    text-align: left;
}