/* 中医节气养生日历样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Serif SC', serif;
    background: linear-gradient(135deg, #f8f3e9 0%, #f5eddc 100%);
    color: #5d4037;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-areas: 
        "header header"
        "main sidebar"
        "footer footer";
    grid-template-columns: 1fr 300px;
    grid-gap: 30px;
}

/* 头部样式 */
.header {
    grid-area: header;
    background: linear-gradient(135deg, #8d6e63 0%, #6d4c41 100%);
    color: white;
    padding: 40px 0;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(141, 110, 99, 0.3);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="yin-yang" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="8" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23yin-yang)"/></svg>');
    opacity: 0.1;
}

.site-title {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 3.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.site-subtitle {
    font-size: 1.3rem;
    margin-bottom: 20px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.current-date {
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 25px;
    display: inline-block;
    position: relative;
    z-index: 1;
}

.current-date span {
    margin: 0 15px;
}

/* 主要内容区域 */
.main-content {
    grid-area: main;
}

/* 节气日历区域 */
.season-calendar {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.season-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 20px;
}

.season-header h2 {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 2.2rem;
    color: #5d4037;
}

.season-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.season-btn {
    background: #8d6e63;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.season-btn:hover {
    background: #6d4c41;
    transform: translateY(-2px);
}

.current-season-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #d84315;
    background: #ffecb3;
    padding: 8px 16px;
    border-radius: 20px;
}

.season-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.season-card {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    border: 2px solid #ffd54f;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.season-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 213, 79, 0.3);
}

.season-card.active {
    background: linear-gradient(135deg, #ffd54f 0%, #ffc107 100%);
    border-color: #f57c00;
    color: #5d4037;
}

.season-card .emoji {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.season-card h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-weight: bold;
}

.season-card .dates {
    font-size: 0.9rem;
    color: #8d6e63;
}

/* 养生建议区域 */
.health-advice {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.advice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 20px;
}

.advice-header h2 {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 2.2rem;
    color: #5d4037;
}

.advice-tabs {
    display: flex;
    gap: 10px;
}

.tab-btn {
    background: #f5f5f5;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.tab-btn.active,
.tab-btn:hover {
    background: #8d6e63;
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.advice-card {
    background: #fafafa;
    border-radius: 12px;
    padding: 25px;
    border-left: 4px solid #8d6e63;
}

.advice-card h3 {
    color: #5d4037;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.advice-card p {
    color: #666;
    line-height: 1.8;
}

/* 中医知识区域 */
.tcm-knowledge {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.tcm-knowledge h2 {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 2.2rem;
    color: #5d4037;
    margin-bottom: 30px;
    text-align: center;
}

.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.knowledge-card {
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    border: 1px solid #a5d6a7;
}

.knowledge-card h3 {
    color: #2e7d32;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.knowledge-card p {
    color: #455a64;
    line-height: 1.7;
}

/* 侧边栏 */
.sidebar {
    grid-area: sidebar;
}

.sidebar-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
}

.sidebar-section h3 {
    color: #5d4037;
    margin-bottom: 20px;
    font-size: 1.3rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.current-season-info {
    text-align: center;
}

.season-icon {
    font-size: 4rem;
    margin-bottom: 15px;
}

.season-details h4 {
    font-size: 1.4rem;
    color: #d84315;
    margin-bottom: 10px;
}

.season-details p {
    color: #666;
    margin-bottom: 5px;
}

.reminders {
    list-style: none;
}

.reminders li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.reminders li:last-child {
    border-bottom: none;
}

.prescription-list {
    margin-bottom: 20px;
}

.prescription-item {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 4px solid #8e24aa;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(142, 36, 170, 0.1);
}

.prescription-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(142, 36, 170, 0.2);
}

.prescription-item.active {
    background: linear-gradient(135deg, #8e24aa 0%, #6a1b9a 100%);
    color: white;
}

.prescription-item.active h4 {
    color: white;
}

.prescription-item.active p {
    color: rgba(255, 255, 255, 0.9);
}

.prescription-item h4 {
    color: #6a1b9a;
    margin-bottom: 8px;
    font-size: 1.1rem;
    font-weight: 600;
}

.prescription-item p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.prescription-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
}

.prescription-tab-btn {
    background: #f5f5f5;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    color: #666;
}

.prescription-tab-btn.active,
.prescription-tab-btn:hover {
    background: #8e24aa;
    color: white;
}

.prescription-details {
    background: #fafafa;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e0e0e0;
}

.prescription-info h4 {
    color: #5d4037;
    margin-bottom: 15px;
    font-size: 1.3rem;
    text-align: center;
    font-weight: 600;
}

.prescription-detail-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.prescription-detail-content.active {
    display: block;
}

.prescription-detail-content h5 {
    color: #8e24aa;
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 600;
}

.prescription-detail-content p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 10px;
}

.prescription-detail-content strong {
    color: #5d4037;
    font-weight: 600;
}

/* 底部 */
.footer {
    grid-area: footer;
    text-align: center;
    padding: 30px 0;
    color: #8d6e63;
    border-top: 1px solid #e0e0e0;
    margin-top: 30px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .container {
        grid-template-areas: 
            "header"
            "main"
            "sidebar"
            "footer";
        grid-template-columns: 1fr;
        padding: 15px;
    }
    
    .site-title {
        font-size: 2.5rem;
    }
    
    .season-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .season-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .site-title {
        font-size: 2rem;
    }
    
    .season-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .advice-tabs {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .knowledge-grid {
        grid-template-columns: 1fr;
    }
}

/* 穴位提示样式 */
.acupoint-tips {
    background: #f8f5f2;
    border-left: 4px solid #8d6e63;
    padding: 15px;
    margin-top: 15px;
    border-radius: 5px;
    font-size: 0.95rem;
}

.acupoint-tips strong {
    color: #5d4037;
    margin-right: 10px;
    font-weight: 600;
}

.acupoint-tips span {
    color: #8d6e63;
    font-weight: 500;
}

/* 穴位提示样式 */
.acupoint-tips {
    background: #f8f5f2;
    border-left: 4px solid #8d6e63;
    padding: 15px;
    margin-top: 15px;
    border-radius: 5px;
    font-size: 0.95rem;
}

.acupoint-tips strong {
    color: #5d4037;
    margin-right: 10px;
    font-weight: 600;
}

.acupoint-tips span {
    color: #8d6e63;
    font-weight: 500;
}