/* 全局样式 */
:root {
    /* 棕色作为主色调 */
    --color-primary: #a08052; 
    /* 五行元素配色方案 */
    --color-wood: #4CAF50; /* 木-绿色 */
    --color-fire: #FF5722; /* 火-红色 */
    --color-earth: #FFC107; /* 土-黄色 */
    --color-metal: #9E9E9E; /* 金-灰色 */
    --color-water: #2196F3; /* 水-蓝色 */
    
    --color-secondary: #aaa973; /* 次要色调 */
    --color-accent: #c58770; /* 强调色 */
    --color-light: #e8d5b4;
    --color-highlight: #f0c756;
    --color-text: #333;
    --color-text-light: #666;
    --color-background: #fff;
    --color-background-light: #f9f6f0;
    --font-primary: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
    --font-title: 'KaiTi', 'STKaiti', 'Microsoft YaHei', sans-serif; /* 楷体字体 */
    --transition: all 0.3s ease;
    --shadow-light: 0 8px 32px rgba(160, 128, 82, 0.15);
    --shadow-dark: 0 8px 32px rgba(0, 0, 0, 0.2);
    --glass-background: rgba(255, 255, 255, 0.7);
    --glass-border: 1px solid rgba(255, 255, 255, 0.3);
    --glass-blur: blur(10px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    line-height: 1.6;
    background-color: var(--color-background-light);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: var(--transition);
}

a:hover {
    color: var(--color-accent);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: var(--font-primary);
}

.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    color: var(--color-primary);
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    font-family: var(--font-title); /* 使用楷体字体 */
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--color-accent);
}

.section-header p {
    color: var(--color-text-light);
    font-size: 1.1rem;
}

/* 导航栏样式 */
header {
    background-color: var(--color-background);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

.logo img {
    height: 120px;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li:first-child {
    margin-left: 0;
}

nav ul li a {
    color: var(--color-text);
    font-weight: 500;
    padding: 10px 0;
    position: relative;
    display: flex;
    align-items: center;
}

nav ul li a i {
    margin-right: 5px;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

nav ul li a.active {
    color: var(--color-primary);
}

/* 语言切换器样式 */
.lang-switcher {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.lang-switcher a {
    padding: 5px 8px;
    border-radius: 4px;
    font-weight: bold;
    transition: var(--transition);
}

.lang-switcher a.active {
    color: var(--color-primary);
    background-color: rgba(30, 58, 138, 0.1);
}

/* 轮播图样式 */
.banner {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.slider {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 5px;
    width: 80%;
    max-width: 600px;
}

.slide-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-family: var(--font-title); /* 使用楷体字体 */
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
}

.slider-controls button {
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.slider-controls button:hover {
    background-color: var(--color-primary);
    color: white;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--color-primary);
}

/* 标签页样式 */
.tabs {
    background-color: var(--color-background);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.tab-header {
    display: flex;
    background-color: var(--color-light);
}

.tab-btn {
    padding: 15px 20px;
    cursor: pointer;
    flex: 1;
    text-align: center;
    font-weight: 500;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.tab-btn:hover {
    background-color: rgba(160, 128, 82, 0.1);
}

.tab-btn.active {
    background-color: var(--color-background);
    border-bottom-color: var(--color-primary);
    color: var(--color-primary);
}

.tab-content {
    padding: 30px;
}

.tab-pane {
    display: none;
}

.tab-pane h3 {
    margin-bottom: 20px;
    font-family: var(--font-title); /* 使用楷体字体 */
}

.tab-pane.active {
    display: block;
}

/* 中医发展史样式 */
.content-with-image {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
}

.text-content {
    flex: 1;
    min-width: 300px;
}

.text-content h4 {
    color: var(--color-accent);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.image {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.video-container {
    margin-top: 20px;
}

.video-placeholder {
    background-color: var(--color-light);
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.video-placeholder:hover {
    background-color: var(--color-secondary);
}

.video-placeholder i {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 10px;
}

/* 时间线样式 */
.timeline {
    position: relative;
    margin: 30px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: var(--color-light);
}

.timeline-item {
    display: flex;
    justify-content: center;
    position: relative;
    margin-bottom: 30px;
}

.timeline-icon {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background-color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    z-index: 1;
}

.timeline-content {
    width: 45%;
    background-color: var(--color-light);
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 5%;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 5%;
}

.timeline-content h4 {
    color: var(--color-primary);
    margin-bottom: 10px;
}

/* 文化内涵样式 */
.culture-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.culture-item {
    display: flex;
    background-color: var(--color-light);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
}

.culture-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.culture-icon {
    background-color: var(--color-primary);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
}

.culture-text {
    padding: 20px;
}

.culture-text h4 {
    color: var(--color-primary);
    margin-bottom: 10px;
    font-family: var(--font-title); /* 使用楷体字体 */
}

/* 中药材库样式 */
.medicine-cabinet {
    background-color: var(--color-primary);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.cabinet-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.cabinet-row:last-child {
    margin-bottom: 0;
}

.cabinet-drawer {
    width: 22%;
    height: 100px;
    background-color: var(--color-light);
    border-radius: 5px;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
}

.cabinet-drawer:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), inset 0 0 10px rgba(0, 0, 0, 0.2);
}

.drawer-front {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--color-highlight);
    border-radius: 5px;
    font-weight: 500;
    color: var(--color-text);
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
}

/* 药材详情弹出层样式 */
.herb-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1100;
    overflow-y: auto;
}

.herb-modal-content {
    background-color: var(--color-background);
    width: 80%;
    max-width: 800px;
    margin: 50px auto;
    border-radius: 10px;
    padding: 30px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--color-accent);
}

.herb-info h3 {
    color: var(--color-primary);
    margin-bottom: 20px;
    font-size: 1.8rem;
    text-align: center;
    font-family: var(--font-title); /* 使用楷体字体 */
}

.herb-details {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.herb-image {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
}

.herb-image img {
    width: 100%;
    border-radius: 5px;
}

.herb-properties {
    flex: 2;
    min-width: 250px;
}

.herb-properties p {
    margin-bottom: 10px;
}

.herb-description, .herb-usage {
    margin-bottom: 20px;
}

.herb-description h4, .herb-usage h4 {
    color: var(--color-primary);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

/* 经络穴位样式 */
.meridian-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start;
}

.meridian-image {
    flex: 0 0 200px;
    position: relative;
    width: 200px;
    height: 300px;
}

.meridian-image img {
    width: 200px;
    height: 300px;
    border-radius: 10px;
    object-fit: cover;
}

.hotspot {
    position: absolute;
    width: 15px;
    height: 15px;
    background-color: var(--color-accent);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    transform: translate(-50%, -50%);
    z-index: 10;
}

.hotspot:hover {
    transform: translate(-50%, -50%) scale(1.3);
    box-shadow: 0 0 10px var(--color-accent);
}

.meridian-info {
    flex: 1;
    min-width: 300px;
}

.meridian-info h3 {
    color: var(--color-primary);
    margin-bottom: 15px;
    font-family: var(--font-title); /* 使用楷体字体 */
}

.organ-info {
    background-color: var(--color-light);
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    min-height: 200px;
}

.organ-placeholder {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 160px;
    color: var(--color-text-light);
}

.organ-placeholder i {
    font-size: 3rem;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .meridian-container {
        flex-direction: column;
        align-items: center;
    }
    
    .meridian-image {
        margin-bottom: 20px;
    }
}

.five-elements {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.element {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 18%;
}

.element-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: white;
}

.element.wood .element-icon {
    background-color: var(--color-wood);
}

.element.fire .element-icon {
    background-color: var(--color-fire);
}

.element.earth .element-icon {
    background-color: var(--color-earth);
}

.element.metal .element-icon {
    background-color: var(--color-metal);
}

.element.water .element-icon {
    background-color: var(--color-water);
}

/* 诊疗方法样式 */
.diagnosis-methods {
    margin-bottom: 50px;
}

.diagnosis-methods h3, .treatment-methods h3 {
    color: var(--color-primary);
    margin-bottom: 20px;
    text-align: center;
    font-family: var(--font-title); /* 使用楷体字体 */
}

.method-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.method-card {
    background-color: var(--color-background);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.method-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.method-icon {
    width: 60px;
    height: 60px;
    background-color: var(--color-light);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--color-primary);
}

.method-card h4 {
    color: var(--color-primary);
    margin-bottom: 10px;
    font-family: var(--font-title); /* 使用楷体字体 */
}

.method-details {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--color-light);
    display: none;
}

.method-card:hover .method-details {
    display: block;
}

.treatment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.treatment-item {
    background-color: var(--color-background);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.treatment-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.treatment-icon {
    width: 60px;
    height: 60px;
    background-color: var(--color-light);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--color-primary);
}

.treatment-item h4 {
    color: var(--color-primary);
    margin-bottom: 10px;
}

/* 名医名篇样式 */
.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.doctor-card {
    background-color: var(--color-background);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.doctor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.doctor-image {
    height: 200px;
    overflow: hidden;
}

.doctor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.doctor-card:hover .doctor-image img {
    transform: scale(1.1);
}

.doctor-info {
    padding: 20px;
}

.doctor-info h3 {
    color: var(--color-primary);
    margin-bottom: 5px;
    font-family: var(--font-title); /* 使用楷体字体 */
}

.doctor-title {
    color: var(--color-accent);
    font-style: italic;
    margin-bottom: 10px;
}

.btn-more {
    display: inline-block;
    background-color: var(--color-primary);
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    margin-top: 15px;
    transition: var(--transition);
}

.btn-more:hover {
    color: #333;
    background-color: var(--color-accent);
}

/* 医生详情弹出层样式 */
.doctor-modal, .book-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1100;
    overflow-y: auto;
}

.doctor-modal-content, .book-modal-content {
    background-color: var(--color-background);
    width: 80%;
    max-width: 800px;
    margin: 50px auto;
    border-radius: 10px;
    padding: 30px;
    position: relative;
}

.doctor-detail-header, .book-detail-header {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.doctor-detail-image, .book-detail-image {
    flex: 1;
    min-width: 200px;
    max-width: 250px;
}

.doctor-detail-image img, .book-detail-image img {
    width: 100%;
    border-radius: 5px;
}

.doctor-detail-info, .book-detail-info {
    flex: 2;
    min-width: 250px;
}

.doctor-detail-info h3, .book-detail-info h3 {
    color: var(--color-primary);
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.doctor-detail-content h4, .book-detail-content h4 {
    color: var(--color-primary);
    margin: 20px 0 10px;
    font-size: 1.2rem;
}

/* 名篇列表样式 */
.books-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.book-item {
    display: flex;
    background-color: var(--color-background);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.book-item:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.book-image {
    flex: 0 0 150px;
    padding: 20px;
    background-color: var(--color-light);
    display: flex;
    justify-content: center;
    align-items: center;
}

.book-image img {
    max-height: 200px;
    border-radius: 5px;
}

.book-info {
    flex: 1;
    padding: 20px;
}

.book-info h3 {
    color: var(--color-primary);
    margin-bottom: 5px;
}

.book-author, .book-period {
    color: var(--color-text-light);
    margin-bottom: 10px;
}

/* 联系我们样式 */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.contact-form {
    flex: 1;
    min-width: 300px;
    background-color: var(--color-background);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--color-text);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-primary);
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 5px rgba(160, 128, 82, 0.3);
}

.btn-submit {
    background-color: var(--color-primary);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    transition: var(--transition);
    border: 2px solid var(--color-primary);
}

.btn-submit:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
}

.contact-info {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-item {
    display: flex;
    background-color: var(--color-background);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.info-icon {
    width: 50px;
    height: 50px;
    background-color: var(--color-light);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    margin-right: 15px;
    color: var(--color-primary);
}

.info-text h4 {
    color: var(--color-primary);
    margin-bottom: 5px;
}

/* 页脚样式 */
footer {
    background-color: var(--color-primary);
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo {
    flex: 1;
    min-width: 250px;
}

.footer-logo img {
    margin-bottom: 15px;
}

.footer-links {
    flex: 1;
    min-width: 150px;
}

.footer-links h4, .footer-newsletter h4 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: white;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    opacity: 1;
    padding-left: 5px;
}

.footer-newsletter {
    flex: 1;
    min-width: 250px;
}

.footer-newsletter p {
    margin-bottom: 15px;
    opacity: 0.8;
}

.footer-newsletter form {
    display: flex;
}

.footer-newsletter input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 5px 0 0 5px;
    font-family: var(--font-primary);
}

.footer-newsletter button {
    background-color: var(--color-accent);
    color: white;
    padding: 10px 15px;
    border-radius: 0 5px 5px 0;
    transition: var(--transition);
}

.footer-newsletter button:hover {
    background-color: var(--color-highlight);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom p {
    opacity: 0.8;
}

.social-links {
    display: flex;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-left: 10px;
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--color-highlight);
    transform: translateY(-5px);
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 15px;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
    
    .banner {
        height: 400px;
    }
    
    .slide-content h2 {
        font-size: 2rem;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-icon {
        left: 30px;
    }
    
    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 80px !important;
    }
    
    .cabinet-row {
        flex-wrap: wrap;
    }
    
    .cabinet-drawer {
        width: 48%;
        margin-bottom: 15px;
    }
    
    .doctor-modal-content, .book-modal-content, .herb-modal-content {
        width: 95%;
        padding: 20px;
    }
}

@media screen and (max-width: 480px) {
    .section {
        padding: 50px 0;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .tab-btn {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .tab-content {
        padding: 20px;
    }
    
    .cabinet-drawer {
        width: 100%;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }
}
/* 知识科普样式 */
.knowledge-section {
    margin-bottom: 40px;
}

.knowledge-section h4 {
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-light);
}

.subtitle {
    color: var(--color-text-light);
    font-style: italic;
    margin-bottom: 20px;
}

/* 五行元素卡片样式 */
.five-elements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.element-card {
    background-color: var(--color-background);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border-top: 4px solid;
}

.element-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.element-card.wood {
    border-color: #4CAF50;
}

.element-card.fire {
    border-color: #FF5722;
}

.element-card.earth {
    border-color: #FFC107;
}

.element-card.metal {
    border-color: #9E9E9E;
}

.element-card.water {
    border-color: #2196F3;
}

.element-card h5 {
    font-size: 1.2rem;
    margin: 15px 0 10px;
    color: var(--color-primary);
}

.element-card .element-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    color: white;
    margin: 0 auto;
}

.element-card.wood .element-icon {
    background-color: #4CAF50;
}

.element-card.fire .element-icon {
    background-color: #FF5722;
}

.element-card.earth .element-icon {
    background-color: #FFC107;
}

.element-card.metal .element-icon {
    background-color: #9E9E9E;
}

.element-card.water .element-icon {
    background-color: #2196F3;
}

/* 五行生克关系样式 */
.five-cycles {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 25px 0;
}

.cycle-container {
    flex: 1;
    min-width: 300px;
    background-color: var(--color-background);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.cycle-container h5 {
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.cycle-image {
    text-align: center;
    margin-bottom: 20px;
}

.cycle-image img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.cycle-list {
    list-style: none;
}

.cycle-list li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.cycle-list li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-primary);
}

.wood-text {
    color: #4CAF50;
    font-weight: bold;
}

.fire-text {
    color: #FF5722;
    font-weight: bold;
}

.earth-text {
    color: #FFC107;
    font-weight: bold;
}

.metal-text {
    color: #9E9E9E;
    font-weight: bold;
}

.water-text {
    color: #2196F3;
    font-weight: bold;
}

.balance-theory {
    background-color: var(--color-light);
    padding: 20px;
    border-radius: 10px;
    margin-top: 25px;
}

.balance-theory h5 {
    color: var(--color-primary);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

/* 五音疗法样式 */
.music-therapy-table {
    margin: 25px 0;
    overflow-x: auto;
}

.music-therapy-table table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--color-background);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.music-therapy-table th, .music-therapy-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--color-light);
}

.music-therapy-table th {
    background-color: var(--color-primary);
    color: white;
}

/* .music-therapy-table tr:last-child td {
    border-bottom: none;
} */

.music-therapy-table tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.wood-bg {
    background-color: rgba(76, 175, 80, 0.2);
}

.fire-bg {
    background-color: rgba(255, 87, 34, 0.2);
}

.earth-bg {
    background-color: rgba(255, 193, 7, 0.2);
}

.metal-bg {
    background-color: rgba(158, 158, 158, 0.2);
}

.water-bg {
    background-color: rgba(33, 150, 243, 0.2);
}

.science-tip {
    background-color: #E3F2FD;
    border-left: 4px solid #2196F3;
    padding: 15px;
    border-radius: 0 5px 5px 0;
    margin: 25px 0;
}

.science-tip h5 {
    color: #0D47A1;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.science-tip h5 i {
    margin-right: 10px;
}

.music-therapy-player {
    margin-top: 30px;
}

.music-therapy-player h5 {
    color: var(--color-primary);
    margin-bottom: 20px;
    text-align: center;
}

.music-players {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.music-player {
    text-align: center;
    width: 120px;
}

.player-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: white;
    margin: 0 auto 10px;
    cursor: pointer;
    transition: var(--transition);
}

.player-icon:hover {
    transform: scale(1.1);
}

.player-icon.wood {
    background-color: #4CAF50;
}

.player-icon.fire {
    background-color: #FF5722;
}

.player-icon.earth {
    background-color: #FFC107;
}

.player-icon.metal {
    background-color: #9E9E9E;
}

.player-icon.water {
    background-color: #2196F3;
}

/* 五味学说样式 */
.classic-quotes {
    background-color: var(--color-light);
    padding: 20px;
    border-radius: 10px;
    margin: 25px 0;
}

.classic-quotes h5 {
    color: var(--color-primary);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.classic-quotes blockquote {
    border-left: 3px solid var(--color-primary);
    padding-left: 15px;
    margin-bottom: 15px;
    font-style: italic;
    color: var(--color-text-light);
}

.classic-quotes blockquote:last-child {
    margin-bottom: 0;
}

.tastes-table {
    margin: 25px 0;
    overflow-x: auto;
}

.tastes-table h5 {
    color: var(--color-primary);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.tastes-table table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--color-background);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.tastes-table th, .tastes-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--color-light);
}

.tastes-table th {
    background-color: var(--color-primary);
    color: white;
}

/* .tastes-table tr:last-child td {
    border-bottom: none;
} */

.tastes-mechanism {
    margin: 25px 0;
    overflow-x: auto;
}

.mechanism-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.taste-mechanism h5 {
    color: var(--color-primary);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.mechanism-card {
    background-color: var(--color-background);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.mechanism-card h6 {
    color: var(--color-primary);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.mechanism-card ul {
    padding-left: 20px;
}

.mechanism-card li {
    margin-bottom: 8px;
}

.fun-facts {
    margin-top: 30px;
}

.fun-facts h5 {
    color: var(--color-primary);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.fact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    background-color: var(--color-light);
    padding: 15px;
    border-radius: 10px;
}

.fact-item i {
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-right: 15px;
    margin-top: 3px;
}

/* 五行人格样式 */
.personality-table {
    margin: 25px 0;
    overflow-x: auto;
}

.personality-table table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--color-background);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.personality-table th, .personality-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--color-light);
}

.personality-table th {
    background-color: var(--color-primary);
    color: white;
}

.table-notes {
    margin-top: 15px;
    padding: 15px;
    background-color: var(--color-light);
    border-radius: 10px;
}

.table-notes ul {
    padding-left: 20px;
}

.table-notes li {
    margin-bottom: 8px;
}

.calculation-method {
    margin: 25px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.method-step {
    background-color: var(--color-background);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.method-step h5 {
    color: var(--color-primary);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.method-step ul, .method-step ol {
    padding-left: 20px;
}

.method-step li {
    margin-bottom: 8px;
}

.method-example {
    background-color: var(--color-light);
    border-radius: 10px;
    padding: 20px;
    grid-column: 1 / -1;
}

.method-example h5 {
    color: var(--color-primary);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.personality-comparison {
    margin: 30px 0;
}

.personality-comparison h5 {
    color: var(--color-primary);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.personality-comparison table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--color-background);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.personality-comparison th, .personality-comparison td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--color-light);
}

.personality-comparison th {
    background-color: var(--color-primary);
    color: white;
}

.fun-knowledge {
    background-color: var(--color-background);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-top: 25px;
}

.fun-knowledge h5 {
    color: var(--color-primary);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.fun-knowledge p {
    margin-bottom: 10px;
}

.fun-knowledge p:last-child {
    margin-bottom: 0;
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    .five-elements-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .five-cycles {
        flex-direction: column;
    }
    
    .music-therapy-table, .tastes-table, .personality-table, .personality-comparison {
        overflow-x: auto;
    }
    
    .music-therapy-table table, .tastes-table table, .personality-table table, .personality-comparison table {
        min-width: 600px;
    }
}

@media screen and (max-width: 480px) {
    .element-card {
        padding: 15px;
    }
    
    .cycle-container {
        padding: 15px;
    }
    
    .method-step, .method-example {
        padding: 15px;
    }
}


/* 微课和游戏 */
/* 微课和互动游戏通用样式 */
.course-grid, .game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.ai-talk {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));

}

/* 微课卡片样式 */
.course-card {
    background-color: var(--color-background);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.course-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.course-card:hover .course-image img {
    transform: scale(1.1);
}

.course-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
}

.course-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-info h3 {
    color: var(--color-primary);
    margin-bottom: 10px;
}

.course-info p {
    margin-bottom: 15px;
    flex: 1;
}

/* 游戏卡片样式 */
.game-card {
    background-color: var(--color-background);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.game-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.game-card:hover .game-image img {
    transform: scale(1.1);
}

.game-difficulty {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
}

.game-difficulty .fas {
    color: var(--color-highlight);
}

.game-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.game-info h3 {
    color: var(--color-primary);
    margin-bottom: 10px;
}

.game-info p {
    margin-bottom: 15px;
    flex: 1;
}

/* 课程详情页样式 */
.course-detail, .game-detail {
    background-color: var(--color-background);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.course-header, .game-header {
    margin-bottom: 20px;
    position: relative;
}

.back-link {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--color-primary);
    transition: var(--transition);
}

.back-link:hover {
    color: var(--color-accent);
}

.course-header h2, .game-header h2 {
    color: var(--color-primary);
    margin-bottom: 10px;
}

.course-video-container, .game-container {
    margin-bottom: 30px;
}

.course-video, .game-frame {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 宽高比 */
    position: relative;
    background-color: #000;
    border-radius: 10px;
    overflow: hidden;
}

.video-placeholder, .game-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.5rem;
}

.video-placeholder i, .game-loading i {
    font-size: 4rem;
    margin-bottom: 20px;
}

.course-content, .game-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.course-info-box, .game-info-box, .course-chapters, .game-instructions, .course-resources, .game-learning {
    background-color: var(--color-light);
    border-radius: 10px;
    padding: 20px;
}

.course-info-box h3, .game-info-box h3, .course-chapters h3, .game-instructions h3, .course-resources h3, .game-learning h3 {
    color: var(--color-primary);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.chapter-list, .resource-list {
    list-style: none;
}

.chapter-list li, .resource-list li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.chapter-list li:last-child, .resource-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.related-courses-section, .related-games-section {
    background-color: var(--color-background-light);
    padding-top: 40px;
    padding-bottom: 40px;
}

.related-courses-section h3, .related-games-section h3 {
    color: var(--color-primary);
    margin-bottom: 20px;
}

.related-courses, .related-games {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

/* 添加在文件末尾的响应式调整之前 */
.course-video video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #000;
    border-radius: 10px;
}


/* 响应式调整 */
@media screen and (max-width: 768px) {
    .course-grid, .game-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .course-content, .game-content {
        grid-template-columns: 1fr;
    }
    
    .related-courses, .related-games {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media screen and (max-width: 480px) {
    .course-detail, .game-detail {
        padding: 20px;
    }
    
    .course-grid, .game-grid {
        grid-template-columns: 1fr;
    }
}

/* 添加视频容器固定比例 */
