:root {
    --primary-color: #8B4513;
    --secondary-color: #D2691E;
    --accent-color: #FFD700;
    --text-color: #333;
    --background-color: #FFF5E6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Microsoft YaHei", "SimSun", sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    overflow-x: hidden; /* 只隐藏水平滚动条 */
    overflow-y: auto; /* 允许垂直滚动 */
}

/* 为冲茶模拟页面设置背景图片 */
body[style*="background-image"] {
    background-color: transparent !important;
}

/* 页面容器 */
.page-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* 容器本身不滚动 */
}

/* 主内容区域 */
.main-content {
    flex: 1;
    height: calc(100vh - 60px); /* 减去底部导航栏高度 */
    overflow-y: auto; /* 允许垂直滚动 */
    position: relative;
    background-color: var(--background-color);
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: #8B4513 #f5f5f5; /* Firefox */
}

/* 为冲茶模拟页面的主内容区域设置透明背景 */
body[style*="background-image"] .main-content {
    background-color: transparent !important;
}

/* Webkit浏览器的滚动条样式 */
.main-content::-webkit-scrollbar {
    width: 8px;
}

.main-content::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 4px;
}

.main-content::-webkit-scrollbar-thumb {
    background: #8B4513;
    border-radius: 4px;
}

.main-content::-webkit-scrollbar-thumb:hover {
    background: #A0522D;
}

/* 底部导航栏 */
.tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 0 5px;
}

.tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5px 0;
    color: var(--text-color);
    text-decoration: none;
    font-size: 11px;
    transition: all 0.3s ease;
    position: relative;
}

.tab-item.active {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.tab-icon {
    font-size: 18px;
    margin-bottom: 2px;
}

/* 隐藏旧的导航和滚动提示 */
.floating-nav,
.scroll-hint {
    display: none;
}

/* 页面切换动画 */
.section {
    display: none;
    width: 100%;
    min-height: 100%;
    padding: 20px;
    background-color: var(--background-color);
    overflow-y: visible; /* 改为visible，让主容器处理滚动 */
    padding-bottom: 70px; /* 为底部导航栏留出空间 */
}

.section.active {
    display: block !important;
    animation: fadeIn 0.3s ease-in-out;
}

/* 添加淡入动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 页面标题样式 */
.section h2 {
    margin: 0 0 20px;
    font-size: 1.8em;
    color: var(--primary-color);
    text-align: left top+right top;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .main-content {
        padding: 15px;
        padding-bottom: 65px;
    }

    .section {
        padding: 15px;
    }

    .tab-bar {
        height: 55px;
    }

    .tab-icon {
        font-size: 16px;
    }

    .tab-item {
        font-size: 10px;
    }
}

/* 导航栏样式 */
.floating-nav {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 15px 5px;
}

.floating-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.floating-nav li {
    margin: 0;
}

.floating-nav a {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
    opacity: 0.5;
    display: block;
    transition: all 0.3s ease;
}

.floating-nav a.active {
    opacity: 1;
    transform: scale(1.2);
}

/* 首页视觉区样式 */
.hero {
    height: 100vh;
    background-image: url('../imgs/大背景图.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero h1, .hero p {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: clamp(2.5em, 5vw, 4em);
    margin-bottom: 20px;
}

.hero p {
    font-size: clamp(1.2em, 2vw, 1.5em);
    line-height: 1.5;
}

/* 内容区域通用样式 */
.section {
    position: relative; /* 改为相对定位 */
    left: auto;
    top: auto;
}

/* 各个板块的初始位置 */
#basic-knowledge,
#masters,
#tea-personality,
#tea-community,
#tea-simulation {
    transform: none;
}

/* 当前活动页面样式 */
.section.active {
    display: block;
}

/* 基础知识区样式 */
.knowledge-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    margin-top: 40px;
}

.tea-card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.tea-card:hover {
    transform: translateY(-10px);
}

/* 非遗传承人区样式 */
.masters-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
}

.master-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.master-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 30px rgba(0,0,0,0.2);
}

.master-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.master-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.master-card:hover .master-image img {
    transform: scale(1.05);
}

.master-info {
    padding: 20px;
}

.master-info h3 {
    color: #333;
    font-size: 1.4em;
    margin-bottom: 5px;
}

.master-title {
    color: #8B4513;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.master-desc {
    color: #666;
    font-size: 0.95em;
    line-height: 1.5;
    margin-bottom: 15px;
}

.master-stats {
    display: flex;
    justify-content: space-around;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.stat {
    text-align: center;
}

.stat span {
    display: block;
    font-size: 1.4em;
    color: #8B4513;
    font-weight: bold;
}

.stat label {
    font-size: 0.9em;
    color: #666;
}

/* 茶人格测试区样式 */
.personality-test {
    text-align: center;
    padding: 40px;
}

.start-test {
    padding: 15px 30px;
    font-size: 1.2em;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.start-test:hover {
    background-color: var(--secondary-color);
}

/* 茶友空间区样式 */
.community-wall {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    margin-top: 40px;
}

/* 冲茶模拟区样式 */
.simulation-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.simulation-header {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.simulation-banner {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.simulation-banner:hover {
    transform: scale(1.02);
}

.simulation-controls {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    padding: 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.control-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.temperature-control {
    display: flex;
    align-items: center;
    gap: 15px;
}

.temperature-slider {
    flex: 1;
    height: 8px;
    -webkit-appearance: none;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    outline: none;
}

.temperature-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.temperature-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.timer-control {
    text-align: center;
}

.timer-display {
    font-size: 2em;
    font-family: monospace;
    color: var(--primary-color);
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.action-btn {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 10px;
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.action-btn.active {
    background: var(--accent-color);
    color: var(--primary-color);
}

.brewing-tips {
    padding: 20px;
    background: var(--background-color);
    border-radius: 15px;
}

.brewing-tips h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.brewing-tips ul {
    list-style: none;
    padding: 0;
}

.brewing-tips li {
    margin: 10px 0;
    padding-left: 20px;
    position: relative;
}

.brewing-tips li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .simulation-controls {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
}

/* 页脚样式 */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    text-align: center;
    padding: 20px;
    background-color: var(--primary-color);
    color: white;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .floating-nav {
        right: 10px;
    }

    .section {
        padding: 40px 15px;
    }

    .hero h1 {
        font-size: 2.5em;
    }
}

/* 茶人格测试样式补充 */
.options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.option {
    padding: 15px 30px;
    background-color: white;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 茶具展示样式 */
.teaware-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.teaware-item {
    text-align: center;
}

.teaware-item img {
    width: 100%;
    max-width: 200px;
    border-radius: 10px;
    margin-bottom: 10px;
}

/* 模拟控制面板样式 */
.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
}

.controls button {
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.controls button:hover {
    background-color: var(--secondary-color);
}

.temperature, .timer {
    padding: 10px;
    background-color: #f0f0f0;
    border-radius: 5px;
}

/* 社区帖子样式 */
.post-card {
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.post-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.author {
    font-weight: bold;
    color: var(--primary-color);
}

.post-card img {
    width: 100%;
    border-radius: 8px;
    margin: 10px 0;
}

.post-footer {
    margin-top: 15px;
    display: flex;
    justify-content: flex-end;
}

.like-button {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.like-button:hover {
    color: var(--secondary-color);
}

/* 更新茶人格测试结果样式 */
.test-results {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.personality-traits {
    margin: 20px 0;
    padding: 20px;
    background: var(--background-color);
    border-radius: 10px;
}

.main-trait {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.recommended-teas {
    margin-top: 20px;
}

.recommended-teas ul {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.recommended-teas li {
    padding: 10px;
    background: #f5f5f5;
    margin: 5px 0;
    border-radius: 5px;
}

.restart-test {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.restart-test:hover {
    background-color: var(--secondary-color);
}

/* 添加问题容器样式 */
.question-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.question-number {
    color: var(--primary-color);
    font-size: 1.2em;
    margin-bottom: 15px;
}

.question-text {
    font-size: 1.4em;
    margin-bottom: 30px;
    line-height: 1.5;
}

/* 更新选项按钮样式 */
.option {
    width: 100%;
    text-align: left;
    padding: 20px;
    margin-bottom: 15px;
    font-size: 1.1em;
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.option:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.option:active {
    transform: translateY(0);
}

/* 更新结果页样式 */
.test-results {
    animation: fadeIn 0.5s ease;
}

.tea-name {
    font-weight: bold;
    color: var(--primary-color);
    margin-right: 10px;
}

.tea-desc {
    font-size: 0.9em;
    color: #666;
}

.share-result {
    margin-left: 15px;
    background-color: var(--accent-color);
}



/* 添加动画相关样式 */
.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.fade-out {
    animation: fadeOut 0.3s ease forwards;
}

/* 优化测试结果样式 */
.test-results {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.traits-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

.strengths, .weaknesses {
    padding: 20px;
    border-radius: 15px;
    background: var(--background-color);
}

.strengths h4, .weaknesses h4,
.suggestions h4, .career-path h4 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1.2em;
}

.career-path {
    margin-top: 30px;
    padding: 20px;
    background: var(--background-color);
    border-radius: 15px;
    text-align: center;
}

.career-path p {
    font-size: 1.1em;
    color: var(--secondary-color);
}

/* 添加提示消息样式 */
.toast-message {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    z-index: 1000;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .traits-details {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .test-results {
        padding: 20px;
        margin: 10px;
    }
}

/* 传承人卡片样式 */
.master-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.master-card:hover {
    transform: translateY(-10px);
}

.master-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.master-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.master-card:hover .master-image img {
    transform: scale(1.05);
}

.master-info {
    padding: 20px;
}

.master-info h3 {
    color: var(--primary-color);
    font-size: 1.4em;
    margin-bottom: 5px;
}

.master-info h4 {
    color: var(--secondary-color);
    font-size: 1.1em;
    margin-bottom: 15px;
}

.contact-master {
    margin-top: 15px;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-master:hover {
    background-color: var(--secondary-color);
}

/* 社区帖子图片样式 */
.post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin: 10px 0;
}

/* 优化图片加载效果 */
img {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img.loaded {
    opacity: 1;
}

/* 添加茶友空间banner样式 */
.community-header {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.community-banner {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.community-banner:hover {
    transform: scale(1.02);
}

/* 更新社区帖子样式 */
.community-posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

/* 添加测试引导页样式 */
.test-intro {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 20px;
}

.test-intro-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.test-intro-content {
    padding: 20px;
}

.test-intro-content h3 {
    font-size: 2em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.test-intro-content p {
    font-size: 1.2em;
    color: var(--text-color);
    margin-bottom: 30px;
}

.test-intro .start-test {
    font-size: 1.3em;
    padding: 15px 40px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.2);
}

.test-intro .start-test:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.3);
}

.test-intro .start-test:active {
    transform: translateY(0);
}

/* 优化测试问题容器样式 */
.question-container {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}



/* 更新非遗传承人区域样式 */
.masters-intro {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.masters-banner {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.masters-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.masters-intro:hover .masters-content {
    transform: translateY(0);
}

.masters-intro:hover .masters-banner {
    transform: scale(1.05);
}

.masters-content h3 {
    font-size: 2em;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.masters-content p {
    font-size: 1.2em;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.contact-btn {
    padding: 15px 30px;
    font-size: 1.1em;
    background: var(--accent-color);
    color: var(--primary-color);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: white;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .masters-content {
        position: relative;
        transform: none;
        background: var(--primary-color);
        padding: 20px;
    }

    .masters-content h3 {
        font-size: 1.5em;
    }

    .masters-content p {
        font-size: 1em;
    }
}

/* 添加全屏翻页布局样式 */
.page-container {
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

/* 添加翻页提示 */
.scroll-hint {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--primary-color);
    font-size: 24px;
    animation: bounce 2s infinite;
    z-index: 1000;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* 确保内容不会溢出 */
.section > * {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

/* 个人中心样式 */
.profile-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.profile-avatar {
    position: relative;
    width: 100px;
    height: 100px;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.edit-avatar {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 15px;
    padding: 5px 10px;
    font-size: 12px;
    cursor: pointer;
}

.profile-info {
    flex: 1;
}

.profile-info h3 {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.tea-level {
    color: var(--secondary-color);
    font-size: 0.9em;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
    text-align: center;
}

.stat-item {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.stat-number {
    display: block;
    font-size: 1.5em;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    color: var(--text-color);
    font-size: 0.9em;
}

.profile-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.profile-actions .action-btn {
    background: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    color: var(--primary-color);
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.profile-actions .action-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* 移动端优化 */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .profile-actions {
        grid-template-columns: 1fr;
    }
}

/* 茶友空间聊天窗口样式 */
.community-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.chat-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    height: calc(100vh - 180px);
}

.chat-sidebar {
    width: 250px;
    border-right: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.online-users, .chat-rooms {
    padding: 20px;
    flex: 1;
}

.online-users h3, .chat-rooms h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.1em;
}

.users-list, .rooms-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.user-item, .room-item {
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-item:hover, .room-item:hover {
    background: var(--background-color);
}

.user-item img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 10px;
}

.user-item .online-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4CAF50;
    margin-left: auto;
}

.room-item {
    justify-content: space-between;
}

.room-item.active {
    background: var(--background-color);
    color: var(--primary-color);
    font-weight: bold;
}

.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    color: var(--primary-color);
}

.chat-actions {
    display: flex;
    gap: 10px;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message-item {
    display: flex;
    gap: 10px;
    max-width: 80%;
}

.message-item.received {
    align-self: flex-start;
}

.message-item.sent {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.message-content {
    background: var(--background-color);
    padding: 10px 15px;
    border-radius: 15px;
    position: relative;
}

.message-item.sent .message-content {
    background: var(--primary-color);
    color: white;
}

.message-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    font-size: 0.9em;
}

.message-sender {
    font-weight: bold;
}

.message-time {
    color: #666;
    font-size: 0.8em;
}

.message-item.sent .message-time {
    color: rgba(255, 255, 255, 0.8);
}

.chat-input {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    align-items: center;
}

.input-actions {
    display: flex;
    gap: 5px;
}

.action-btn {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    transform: translateY(-2px);
}

.message-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 20px;
    outline: none;
    transition: all 0.3s ease;
}

.message-input:focus {
    border-color: var(--primary-color);
}

.send-btn {
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.send-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .community-container {
        grid-template-columns: 1fr;
    }

    .chat-container {
        height: calc(100vh - 150px);
    }

    .chat-sidebar {
        width: 200px;
    }

    .message-item {
        max-width: 90%;
    }
}

/* AI助手样式 */
.ai-assistant {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    position: relative;
    overflow: hidden;
}

.ai-assistant::before {
    content: '🤖';
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
}

.ai-status {
    background: #4CAF50;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8em;
    color: white;
}

.ai-message {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 15px;
    border-radius: 15px;
    margin: 10px 0;
    position: relative;
    animation: fadeIn 0.3s ease;
}

.ai-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), transparent);
    border-radius: 15px;
}

.ai-typing {
    display: flex;
    gap: 5px;
    padding: 10px;
    color: var(--text-color);
    font-style: italic;
}

.ai-typing span {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: typing 1s infinite;
}

.ai-typing span:nth-child(2) { animation-delay: 0.2s; }
.ai-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.ai-suggestions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.suggestion-chip {
    background: rgba(255,255,255,0.1);
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.2);
}

.suggestion-chip:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* AI助手聊天界面特殊样式 */
.chat-main.ai-mode .chat-header {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.chat-main.ai-mode .chat-header h3 {
    color: white;
}

.chat-main.ai-mode .message-input {
    border-color: var(--primary-color);
}

.chat-main.ai-mode .send-btn {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
}

.home-banner {
    width: 100%;
    height: 30vh;
    background-image: url('imgs/首页背景图.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    width: 100%;
    padding: 0 20px;
}

.banner-content h1 {
    font-size: 3em;
    margin-bottom: 0.5em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.banner-content p {
    font-size: 1.5em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.home-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

/* 确保容器不会产生滚动条 */
#home {
    margin: 0;
    padding: 0;
    overflow: hidden;
    width: 100%;
}

/* 确保main-content没有额外的边距和滚动 */
.main-content {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
}

/* 基础知识菜单样式 */
.tab-item {
    position: relative;
}

.knowledge-menu {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 -2px 20px rgba(0,0,0,0.1);
    padding: 10px 0;
    margin-bottom: 10px;
}

.tab-item:hover .knowledge-menu {
    display: block;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s;
}

.menu-item:hover {
    background-color: rgba(139, 69, 19, 0.1);
}

.menu-item i {
    font-size: 20px;
    color: #8B4513;
    margin-right: 10px;
}

/* 添加小箭头 */
.knowledge-menu::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #fff;
}

/* 调整基础知识入口样式 */
.entries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 修改历史卡片样式 */
.history-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

/* 卡片链接样式 */
.card-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    cursor: pointer;
}

/* 内容样式 */
.card-content {
    position: relative;
    z-index: 2;
    pointer-events: none; /* 确保内容不会阻挡链接点击 */
}

/* 悬停内容样式 */
.history-details {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(0);
    z-index: 2;
    pointer-events: none;
}

.history-card:hover .history-details {
    opacity: 1;
    visibility: visible;
    transform: translateY(-100%);
}

.history-section {
    margin-bottom: 15px;
}

.history-section h4 {
    color: #8B4513;
    margin-bottom: 8px;
}

.history-section ul {
    list-style: none;
    padding: 0;
}

.history-section li {
    color: #666;
    margin-bottom: 5px;
    padding-left: 15px;
    position: relative;
}

.history-section li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #8B4513;
}

/* 确保卡片悬停效果 */
.history-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 30px rgba(0,0,0,0.15);
}

/* 基础知识页面样式 */
.knowledge-header {
    position: relative;
    z-index: 2;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.knowledge-header h1 {
    font-size: 1.8em;
    color: #333;
    margin-bottom: 15px;
}

.search-bar {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 10px 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.search-bar i {
    color: #666;
    margin-right: 10px;
}

.search-bar input {
    border: none;
    background: none;
    width: 100%;
    font-size: 1em;
    outline: none;
}

.knowledge-categories {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(5px);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.category-scroll {
    display: flex;
    overflow-x: auto;
    padding: 0 15px;
    scrollbar-width: none;
}

.category-scroll::-webkit-scrollbar {
    display: none;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 20px;
    min-width: 80px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-item.active {
    color: #8B4513;
}

.category-item i {
    font-size: 24px;
    margin-bottom: 5px;
}

.knowledge-content {
    position: relative;
    z-index: 2;
}

.featured-section {
    margin-bottom: 30px;
}

.featured-scroll {
    overflow-x: auto;
    white-space: nowrap;
    padding: 10px 0;
    scrollbar-width: none;
}

.featured-card {
    display: inline-block;
    width: 280px;
    height: 180px;
    margin-right: 15px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.featured-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
}

.latest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.content-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: flex-start;
    gap: 15px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.content-card:hover {
    transform: translateY(-5px);
}

.card-icon {
    width: 50px;
    height: 50px;
    background: rgba(139, 69, 19, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon i {
    font-size: 24px;
    color: #8B4513;
}

.card-info {
    flex: 1;
}

.card-info h3 {
    margin: 0 0 8px 0;
    color: #333;
}

.card-info p {
    color: #666;
    font-size: 0.9em;
    margin: 0 0 10px 0;
}

.card-meta {
    display: flex;
    gap: 15px;
    color: #999;
    font-size: 0.8em;
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 非遗传承人成就列表样式 */
.master-achievements {
    padding: 15px 20px;
    background: rgba(139, 69, 19, 0.05);
    border-radius: 0 0 15px 15px;
}

.master-achievements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.master-achievements li {
    color: #666;
    font-size: 0.9em;
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
}

.master-achievements li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #8B4513;
}

/* 优化卡片布局 */
.masters-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.master-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.master-image {
    width: 100%;
    height: 300px;
    position: relative;
    overflow: hidden;
}

.master-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .masters-gallery {
        grid-template-columns: 1fr;
        padding: 15px;
    }

    .master-image {
        height: 250px;
    }

    .master-achievements {
        padding: 10px 15px;
    }
}

/* 冲泡技艺模态框样式 */
.brewing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.brewing-section {
    margin-bottom: 40px;
}

.step-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.step-item {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: relative;
    transition: transform 0.3s ease;
}

.step-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

.step-item h3 {
    color: #8B4513;
    margin-bottom: 15px;
    font-size: 1.3em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.step-item h3::before {
    content: "";
    width: 4px;
    height: 20px;
    background: #8B4513;
    border-radius: 2px;
}

.step-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.step-item li {
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    line-height: 1.6;
    color: #444;
}

.step-item li::before {
    content: "•";
    position: absolute;
    left: 8px;
    color: #8B4513;
    font-size: 1.2em;
}

.step-item p {
    color: #444;
    line-height: 1.6;
    margin: 0;
}

/* 步骤编号样式 */
.step-number {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 30px;
    height: 30px;
    background: #8B4513;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .brewing-container {
        padding: 15px;
    }

    .step-item {
        padding: 20px;
    }

    .step-item h3 {
        font-size: 1.2em;
    }

    .step-item li {
        padding-left: 20px;
    }
}

/* 滚动条样式 */
.modal-content {
    max-height: 90vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #8B4513 #f5f5f5;
}

.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #8B4513;
    border-radius: 4px;
}

/* 动画效果 */
.step-item {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 为每个步骤添加延迟动画 */
.step-item:nth-child(1) { animation-delay: 0.1s; }
.step-item:nth-child(2) { animation-delay: 0.2s; }
.step-item:nth-child(3) { animation-delay: 0.3s; }
/* ... 依此类推 */

/* 修改基础知识部分的背景样式 */
#basic-knowledge{ 
    position: relative;
    background: none;
    min-height: 100vh;
    padding: 20px;
    overflow: hidden;
}
#basic-knowledge::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 250, 240, 0.9);
    z-index: -1;
    pointer-events: none;
}

/* 内容层样式调整 */
.knowledge-header {
    position: relative;
    z-index: 2;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.knowledge-header h1 {
    font-size: 1.8em;
    color: #333;
    margin-bottom: 15px;
}

.search-bar {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 10px 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.search-bar i {
    color: #666;
    margin-right: 10px;
}

.search-bar input {
    border: none;
    background: none;
    width: 100%;
    font-size: 1em;
    outline: none;
}

.knowledge-categories {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.category-scroll {
    display: flex;
    overflow-x: auto;
    padding: 0 15px;
    scrollbar-width: none;
}

.category-scroll::-webkit-scrollbar {
    display: none;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 20px;
    min-width: 80px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-item.active {
    color: #8B4513;
}

.category-item i {
    font-size: 24px;
    margin-bottom: 5px;
}

.knowledge-content {
    position: relative;
    z-index: 2;
}

.featured-section {
    margin-bottom: 30px;
}

.featured-scroll {
    overflow-x: auto;
    white-space: nowrap;
    padding: 10px 0;
    scrollbar-width: none;
}

.featured-card {
    display: inline-block;
    width: 280px;
    height: 180px;
    margin-right: 15px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.featured-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
}

.latest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.content-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: flex-start;
    gap: 15px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.content-card:hover {
    transform: translateY(-5px);
}

.card-icon {
    width: 50px;
    height: 50px;
    background: rgba(139, 69, 19, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon i {
    font-size: 24px;
    color: #8B4513;
}

.card-info {
    flex: 1;
}

.card-info h3 {
    margin: 0 0 8px 0;
    color: #333;
}

.card-info p {
    color: #666;
    font-size: 0.9em;
    margin: 0 0 10px 0;
}

.card-meta {
    display: flex;
    gap: 15px;
    color: #999;
    font-size: 0.8em;
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 非遗传承人成就列表样式 */
.master-achievements {
    padding: 15px 20px;
    background: rgba(139, 69, 19, 0.05);
    border-radius: 0 0 15px 15px;
}

.master-achievements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.master-achievements li {
    color: #666;
    font-size: 0.9em;
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
}

.master-achievements li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #8B4513;
}

/* 优化卡片布局 */
.masters-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.master-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.master-image {
    width: 100%;
    height: 300px;
    position: relative;
    overflow: hidden;
}

.master-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .masters-gallery {
        grid-template-columns: 1fr;
        padding: 15px;
    }

    .master-image {
        height: 250px;
    }

    .master-achievements {
        padding: 10px 15px;
    }
}

/* 冲泡技艺模态框样式 */
.brewing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.brewing-section {
    margin-bottom: 40px;
}

.step-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.step-item {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: relative;
    transition: transform 0.3s ease;
}

.step-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

.step-item h3 {
    color: #8B4513;
    margin-bottom: 15px;
    font-size: 1.3em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.step-item h3::before {
    content: "";
    width: 4px;
    height: 20px;
    background: #8B4513;
    border-radius: 2px;
}

.step-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.step-item li {
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    line-height: 1.6;
    color: #444;
}

.step-item li::before {
    content: "•";
    position: absolute;
    left: 8px;
    color: #8B4513;
    font-size: 1.2em;
}

.step-item p {
    color: #444;
    line-height: 1.6;
    margin: 0;
}

/* 步骤编号样式 */
.step-number {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 30px;
    height: 30px;
    background: #8B4513;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .brewing-container {
        padding: 15px;
    }

    .step-item {
        padding: 20px;
    }

    .step-item h3 {
        font-size: 1.2em;
    }

    .step-item li {
        padding-left: 20px;
    }
}

/* 滚动条样式 */
.modal-content {
    max-height: 90vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #8B4513 #f5f5f5;
}

.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #8B4513;
    border-radius: 4px;
}

/* 动画效果 */
.step-item {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 为每个步骤添加延迟动画 */
.step-item:nth-child(1) { animation-delay: 0.1s; }
.step-item:nth-child(2) { animation-delay: 0.2s; }
.step-item:nth-child(3) { animation-delay: 0.3s; }
/* ... 依此类推 */

/* 健康价值模态框样式 */
.health-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.health-section {
    margin-bottom: 40px;
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.health-section h2 {
    color: #8B4513;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(139, 69, 19, 0.2);
}

/* 营养成分表格样式 */
.nutrition-table table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.nutrition-table th,
.nutrition-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(139, 69, 19, 0.1);
}

.nutrition-table th {
    background: rgba(139, 69, 19, 0.1);
    color: #8B4513;
    font-weight: bold;
}

.nutrition-table tr:hover {
    background: rgba(139, 69, 19, 0.05);
}

/* 陈年茶内容样式 */
.aged-tea-content {
    display: grid;
    gap: 25px;
}

.aged-tea-item {
    background: rgba(255, 245, 230, 0.5);
    border-radius: 8px;
    padding: 20px;
}

.aged-tea-item h3 {
    color: #8B4513;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.process-chain {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.process-chain span {
    background: #8B4513;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
}

.process-chain i {
    color: #8B4513;
}

.process-result {
    color: #666;
    font-style: italic;
    margin-top: 5px;
}

.aged-tea-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.aged-tea-item li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.aged-tea-item li i {
    color: #8B4513;
    font-size: 1.2em;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .health-section {
        padding: 15px;
    }

    .nutrition-table {
        overflow-x: auto;
    }

    .nutrition-table table {
        min-width: 600px;
    }

    .process-chain {
        font-size: 0.9em;
    }
}

/* 茶友空间新样式 */
.community-hero {
    margin-bottom: 30px;
}

.community-banner {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    color: white;
    text-align: center;
    box-shadow: 0 10px 30px rgba(139, 69, 19, 0.3);
}

.banner-content h3 {
    font-size: 2.2em;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-content p {
    font-size: 1.1em;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.banner-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.tea-leaf {
    position: absolute;
    font-size: 2em;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.tea-leaf-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.tea-leaf-2 {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.tea-leaf-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

/* 平台网格 */
.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.platform-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.platform-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.platform-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--background-color);
}

.platform-card:hover::before {
    transform: scaleX(1);
}

.platform-card.wechat::before {
    background: linear-gradient(90deg, #07C160, #00D4AA);
}

.platform-card.qq::before {
    background: linear-gradient(90deg, #12B7F5, #1E90FF);
}

.platform-card.weibo::before {
    background: linear-gradient(90deg, #E6162D, #FF6B6B);
}

.platform-card.douyin::before {
    background: linear-gradient(90deg, #000000, #FF0050);
}

.platform-card.xiaohongshu::before {
    background: linear-gradient(90deg, #FF2442, #FF6B9D);
}

.platform-card.bilibili::before {
    background: linear-gradient(90deg, #00A1D6, #23ADE5);
}

.platform-card {
    display: flex;
    align-items: center;
    gap: 20px;
}

.platform-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    background: var(--background-color);
    flex-shrink: 0;
}

.platform-info {
    flex: 1;
}

.platform-info h4 {
    font-size: 1.3em;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-weight: 600;
}

.platform-info p {
    color: #666;
    margin-bottom: 12px;
    line-height: 1.5;
}

.platform-stats {
    display: flex;
    gap: 15px;
}

.platform-stats .stat {
    background: var(--background-color);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    color: var(--primary-color);
    font-weight: 500;
}

.platform-action {
    flex-shrink: 0;
}

.join-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

.join-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.4);
}

.join-btn .arrow {
    transition: transform 0.3s ease;
}

.join-btn:hover .arrow {
    transform: translateX(3px);
}

/* 社区特色 */
.community-features {
    margin-bottom: 40px;
}

.community-features h3 {
    text-align: center;
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 30px;
    position: relative;
}

.community-features h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.feature-item {
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.feature-item:hover::before {
    left: 100%;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 3em;
    margin-bottom: 15px;
    display: block;
}

.feature-item h4 {
    color: var(--primary-color);
    font-size: 1.2em;
    margin-bottom: 10px;
    font-weight: 600;
}

.feature-item p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95em;
}

/* 社区统计 */
.community-stats {
    background: linear-gradient(135deg, var(--background-color), #fff);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.stat-card {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

.stat-number {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 8px;
    display: block;
}

.stat-label {
    color: #666;
    font-size: 1em;
    font-weight: 500;
}

/* 商品展示区域样式 */
.product-showcase {
    margin-bottom: 40px;
}

.product-showcase h3 {
    text-align: center;
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 30px;
    position: relative;
}

.product-showcase h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.product-showcase p {
    color: #666;
    font-size: 1.1em;
    margin-bottom: 30px;
    text-align: center;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.view-detail-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-detail-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.product-info {
    padding: 20px;
}

.product-info h4 {
    font-size: 1.3em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.product-description {
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
    font-size: 0.95em;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.current-price {
    font-size: 1.4em;
    font-weight: bold;
    color: #e74c3c;
}

.original-price {
    font-size: 1em;
    color: #999;
    text-decoration: line-through;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
}

.stars {
    color: #ffd700;
}

.rating-count {
    color: #666;
}

/* 即将上架商品样式 */
.product-card.coming-soon {
    opacity: 0.7;
    cursor: default;
}

.product-card.coming-soon:hover {
    transform: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.coming-soon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.coming-soon-text {
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .community-banner {
        padding: 30px 20px;
    }
    
    .banner-content h3 {
        font-size: 1.8em;
    }
    
    .banner-content p {
        font-size: 1em;
    }
    
    .platform-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .platform-card {
        padding: 20px;
        flex-direction: column;
        text-align: center;
    }
    
    .platform-stats {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-number {
        font-size: 2em;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-image {
        height: 200px;
    }
    
    .product-showcase h3 {
        font-size: 1.6em;
    }
}

/* 茶友空间模态框样式 */
.platform-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    position: relative;
    z-index: 1;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.modal-header {
    padding: 25px 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: var(--primary-color);
    font-size: 1.5em;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2em;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #f5f5f5;
    color: var(--primary-color);
}

.modal-body {
    padding: 20px 30px 30px;
}

.platform-info-card {
    background: var(--background-color);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.info-icon {
    font-size: 3em;
    flex-shrink: 0;
}

.info-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.platform-code {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    padding: 12px 15px;
    border-radius: 10px;
    border: 2px solid #eee;
}

.code-label {
    color: var(--primary-color);
    font-weight: 500;
    flex: 1;
}

.copy-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.modal-actions {
    text-align: center;
}

.primary-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.4);
}



@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header {
        padding: 20px 20px 0;
    }
    
    .modal-body {
        padding: 15px 20px 25px;
    }
    
    .platform-info-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .platform-code {
        flex-direction: column;
        gap: 10px;
    }
}

/* 漫画茶史样式 */
.comic-container {
    padding: 20px;
}

.comic-books {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.book-item {
    background: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.book-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(139, 69, 19, 0.2);
    border-color: var(--primary-color);
}

.book-item.coming-soon {
    opacity: 0.6;
    cursor: not-allowed;
}

.book-item.coming-soon:hover {
    transform: none;
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.1);
    border-color: transparent;
}

.book-cover {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.book-cover i {
    font-size: 40px;
    color: white;
}

.book-item h3 {
    color: var(--primary-color);
    font-size: 1.5em;
    margin-bottom: 10px;
}

.book-item p {
    color: #666;
    line-height: 1.6;
}

.book-chapters {
    margin-top: 30px;
}

.chapters-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.back-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: var(--secondary-color);
    transform: translateX(-5px);
}

.chapters-header h2 {
    color: var(--primary-color);
    font-size: 2em;
    margin: 0;
}

.chapters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.chapter-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.chapter-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(139, 69, 19, 0.2);
}

.chapter-preview {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.chapter-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    opacity: 0;
}

.chapter-preview img.loaded {
    opacity: 1;
}

.chapter-item:hover .chapter-preview img {
    transform: scale(1.05);
}

.chapter-item h3 {
    color: var(--primary-color);
    font-size: 1.3em;
    margin: 15px 20px 10px;
}

.chapter-item p {
    color: #666;
    margin: 0 20px 20px;
    line-height: 1.5;
}

.chapter-content {
    margin-top: 30px;
}

.chapter-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.chapter-header h2 {
    color: var(--primary-color);
    font-size: 2em;
    margin: 0;
}

.comic-viewer {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.1);
}

.comic-pages {
    text-align: center;
    margin-bottom: 30px;
}

.comic-pages img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    opacity: 1 !important; /* 强制显示漫画图片 */
    transition: none; /* 移除透明度过渡效果 */
}

.comic-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.comic-navigation button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comic-navigation button:hover:not(:disabled) {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.comic-navigation button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

#page-info {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 1.1em;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .comic-books {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .chapters-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .chapters-header,
    .chapter-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .comic-navigation {
        flex-direction: column;
        gap: 15px;
    }
}