/* 基础样式 */
:root {
    --primary-color: #d4a574; /* 暖木色 */
    --secondary-color: #8b4513; /* 深棕色 */
    --accent-color: #e63946; /* 强调色 */
    --background-color: #fef9f3; /* 浅米色背景 */
    --text-color: #333333; /* 深灰色文字 */
    --text-light: #666666;
    --white: #ffffff;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --transition: all 0.3s ease;
    --font-heading: 'Ma Shan Zheng', 'Noto Serif SC', serif;
    --font-body: 'Noto Serif SC', serif;
    --base-font-size: 18px; /* 默认大字体 */
    --large-font-size: 1.3rem;
    --xlarge-font-size: 1.6rem;
}

/* 高对比度模式 */
.high-contrast {
    --primary-color: #ffcc00;
    --secondary-color: #000000;
    --accent-color: #ff0000;
    --background-color: #000000;
    --text-color: #ffffff;
    --text-light: #cccccc;
    --white: #000000;
    --shadow: 0 0 10px #ffcc00;
}

/* 简化模式 */
.simplified * {
    border-radius: 0 !important;
    box-shadow: none !important;
    background-image: none !important;
}

/* 重置与全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: var(--base-font-size);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.8;
    transition: var(--transition);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 排版 */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* 按钮 */
button {
    cursor: pointer;
    font-family: var(--font-body);
    border: none;
    outline: none;
    transition: var(--transition);
}

.btn-hero, .btn-video, .btn-download, .btn-accessibility, .btn-font-size, .btn-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: var(--radius);
    font-weight: bold;
    font-size: 1.2rem;
    gap: 0.5rem;
}

.btn-hero {
    background-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow);
}

.btn-hero:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.btn-video, .btn-download {
    background-color: var(--secondary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
}

.btn-video:hover, .btn-download:hover {
    background-color: var(--accent-color);
    transform: scale(1.05);
}

.btn-accessibility, .btn-font-size {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    padding: 0.5rem;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    font-size: 1.2rem;
}

.btn-accessibility:hover, .btn-font-size:hover {
    background-color: var(--secondary-color);
    color: white;
}

.btn-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--accent-color);
    color: white;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    z-index: 1000;
    opacity: 0.8;
    display: none;
}

.btn-top:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* 导航栏 */
.navbar {
    position: sticky;
    top: 0;
    background-color: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--secondary-color);
}

.logo i {
    color: var(--accent-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover, .nav-link.active {
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
}

.menu-toggle {
    display: none;
    background: none;
    font-size: 1.8rem;
    color: var(--secondary-color);
}

.nav-extra {
    display: flex;
    gap: 0.5rem;
}

/* 辅助功能面板 */
.accessibility-panel {
    position: fixed;
    top: 50%;
    right: -300px;
    transform: translateY(-50%);
    background-color: var(--white);
    box-shadow: var(--shadow);
    border-radius: var(--radius) 0 0 var(--radius);
    padding: 1.5rem;
    width: 280px;
    z-index: 999;
    transition: right 0.5s ease;
}

.accessibility-panel.open {
    right: 0;
}

.accessibility-option {
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accessibility-option label {
    font-size: 1.1rem;
}

.btn-close-panel {
    background-color: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    width: 100%;
}

/* 页面区域 */
.page-section {
    display: none;
    padding: 4rem 0;
    min-height: 80vh;
}

.page-section.active {
    display: block;
    animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 首页 */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--secondary-color);
}

.hero-subtitle {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.3rem;
    max-width: 600px;
    margin-bottom: 2rem;
}

.hero-image .image-placeholder {
    width: 400px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background-color: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* 适老诗选 */
.filter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
    align-items: center;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    background-color: var(--white);
    border: 2px solid var(--primary-color);
    border-radius: var(--radius);
    font-size: 1.1rem;
    color: var(--primary-color);
}

.filter-btn.active, .filter-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.search-box {
    position: relative;
    flex-grow: 1;
    max-width: 400px;
}

.search-box input {
    width: 100%;
    padding: 0.8rem 1.5rem 0.8rem 3rem;
    border: 2px solid var(--primary-color);
    border-radius: var(--radius);
    font-size: 1.1rem;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
}

.poetry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.poetry-card {
    background-color: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.poetry-card:hover {
    transform: scale(1.03);
}

.poetry-card h4 {
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.poetry-card .author {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 1rem;
}

.poetry-card .preview {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.poetry-card .audio-btn, .poetry-card .elder-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    margin-right: 0.5rem;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.poetry-card .audio-btn:hover, .poetry-card .elder-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 模态框 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    background: none;
    color: var(--text-color);
}

.modal-close:hover {
    color: var(--accent-color);
}

.modal-body h3 {
    color: var(--secondary-color);
}

.modal-author {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.modal-poetry-text {
    font-size: 1.4rem;
    line-height: 2;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #f9f5f0;
    border-radius: var(--radius);
}

.modal-audio, .modal-elder {
    margin-bottom: 2rem;
}

.modal-audio h4, .modal-elder h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

audio {
    width: 100%;
    margin-top: 0.5rem;
}

.modal-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background-color: var(--primary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* 银发主讲人 */
.speakers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.speaker-card {
    background-color: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.speaker-card:hover {
    transform: translateY(-10px);
}

.speaker-image {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.speaker-age {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 1rem;
}

.video-modal .video-placeholder {
    width: 100%;
    height: 300px;
    background-color: #333;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

/* 活动指南 */
.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.guide-card {
    background-color: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.guide-card:hover {
    transform: translateY(-10px);
}

.guide-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.guide-extra {
    margin-top: 4rem;
    padding: 2rem;
    background-color: #f9f5f0;
    border-radius: var(--radius);
}

/* 关于我们 */
.about-content {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.about-text {
    flex: 2;
    min-width: 300px;
}

.about-image {
    flex: 1;
    min-width: 300px;
}

.about-image .image-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.team-member {
    background-color: var(--white);
    padding: 1rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.partners-list {
    list-style: none;
    margin-top: 1rem;
}

.partners-list li {
    padding: 0.5rem 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 页脚 */
.footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 3rem 0;
    margin-top: 4rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-logo i {
    color: var(--primary-color);
}

.footer-description {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.footer-contact {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links a {
    color: white;
    font-size: 1.1rem;
}

.footer-links a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-image .image-placeholder {
        width: 100%;
        max-width: 400px;
    }
    
    .about-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 16px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.8rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        padding: 2rem;
        box-shadow: var(--shadow);
        transition: left 0.5s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-extra {
        margin-top: 1rem;
        width: 100%;
        justify-content: center;
    }
    
    .filter-controls {
        justify-content: center;
    }
    
    .search-box {
        max-width: 100%;
    }
}

/* 诗歌卡片标签样式 */
.poetry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.poetry-tag {
    background-color: #f0f0f0;
    color: var(--text-color);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.9rem;
    border: 1px solid #ddd;
}

.poetry-subtype {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 0.5rem;
    display: inline-block;
    padding: 0.2rem 0.8rem;
    background-color: rgba(212, 165, 116, 0.1);
    border-radius: 12px;
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .features-grid, .poetry-grid, .speakers-grid, .guides-grid {
        grid-template-columns: 1fr;
    }
    
    .btn-hero, .btn-video, .btn-download {
        width: 100%;
        justify-content: center;
    }
}
/* 子类筛选器样式 */
.subtype-filters {
    margin: 15px 0;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.subtype-label {
    font-weight: 600;
    margin-right: 10px;
    color: var(--text-color);
}

.subtype-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.subtype-btn {
    padding: 6px 12px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: var(--text-color);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.subtype-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.subtype-btn.active {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.main-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.filter-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
