/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f5f1;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.logo a {
    text-decoration: none;
    color: #8c6239;
    font-size: 28px;
    font-weight: bold;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: #8c6239;
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* 英雄区域样式 */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero-bg.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin-top: 0;
    padding-top: 80px;
}

.hero-content h1 {
    font-size: 56px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 800px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-primary {
    display: inline-block;
    background-color: #8c6239;
    color: #fff;
    padding: 12px 30px;
    text-decoration: none;
    font-size: 16px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #6b4a2b;
}

/* 简介区域样式 */
.introduction {
    /* padding: 100px 0; */
    padding-top: 100px;
    padding-bottom: 0px;
    background-color: #fff;
}

.introduction h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    color: #8c6239;
}

.intro-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.intro-text {
    /* flex: 1; */
    min-width: 300px;
    margin-right: 0px;
}

.intro-text p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.intro-image {
    flex: 1;
    min-width: 300px;
    position: relative;
    overflow: visible;
    height: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 3D多图轮播样式 */
.image-carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    perspective: 1500px;
    overflow: visible;
}

.image-carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    transform-style: preserve-3d;
    position: relative;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
}

.image-carousel-item {
    position: absolute;
    width: 90%;
    max-width: 450px;
    max-height: 350px;
    height: auto;
    object-fit: contain;
    transition: all 0.5s ease-in-out;
    transform-style: preserve-3d;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.8;
}

.image-carousel-item.active {
    z-index: 10;
    opacity: 1;
    transform: scale(1.05) translateZ(0);
}

.image-carousel-item.prev {
    z-index: 5;
    transform: translateX(-40%) scale(0.9) translateZ(-200px);
}

.image-carousel-item.next {
    z-index: 5;
    transform: translateX(40%) scale(0.9) translateZ(-200px);
}

.image-carousel-item.prev-2 {
    z-index: 3;
    transform: translateX(-70%) scale(0.8) translateZ(-400px);
    opacity: 0.6;
}

.image-carousel-item.next-2 {
    z-index: 3;
    transform: translateX(70%) scale(0.8) translateZ(-400px);
    opacity: 0.6;
}

.image-carousel-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* 轮播控制按钮 */
.image-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(140, 98, 57, 0.8);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 20;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-carousel-btn:hover {
    background-color: rgba(140, 98, 57, 1);
}

.image-carousel-btn.prev-btn {
    left: -25px;
}

.image-carousel-btn.next-btn {
    right: -25px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .image-carousel-item {
        width: 95%;
        max-width: 400px;
    }
    
    .image-carousel-item.active {
        transform: scale(1.03) translateZ(0);
    }
    
    .image-carousel-item.prev,
    .image-carousel-item.next {
        transform: translateX(-35%) scale(0.9) translateZ(-150px);
    }
    
    .image-carousel-item.prev-2,
    .image-carousel-item.next-2 {
        transform: translateX(-60%) scale(0.85) translateZ(-300px);
    }
}

@media (max-width: 768px) {
    .image-carousel-item {
        width: 90%;
        max-width: 300px;
    }
    
    .image-carousel-item.active {
        transform: scale(1) translateZ(0);
    }
    
    .image-carousel-item.prev,
    .image-carousel-item.next {
        transform: translateX(-30%) scale(0.85) translateZ(-100px);
    }
    
    .image-carousel-item.prev-2,
    .image-carousel-item.next-2 {
        transform: translateX(-45%) scale(0.8) translateZ(-200px);
    }
    
    .image-carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .image-carousel-btn.prev-btn {
        left: -20px;
    }
    
    .image-carousel-btn.next-btn {
        right: -20px;
    }
}

/* 特色板块样式 */
.features {
    padding: 100px 0;
    background-color: #f8f5f1;
}

.features h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    color: #8c6239;
}

/* 轮播样式 */
.feature-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-container {
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    flex: 0 0 25%; /* 默认显示4个项目 */
    padding: 0 15px;
    box-sizing: border-box;
}

.feature-item {
    /* background-color: #fff;
    padding: 30px; */
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: #333;
    height: 100%;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    margin-bottom: 20px;
}

.feature-icon img {
    width: 80px;
    height: 80px;
}

.feature-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #8c6239;
}

.feature-item p {
    font-size: 16px;
    line-height: 1.6;
}

/* 轮播控制按钮 */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(140, 98, 57, 0.8);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    font-size: 24px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.carousel-btn:hover {
    background-color: rgba(140, 98, 57, 1);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

/* 轮播指示器 */
.carousel-indicators {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    border: none;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.indicator.active {
    background-color: #8c6239;
}

.indicator:hover {
    background-color: #a57a52;
}

/* 引言区域样式 */
.quotes {
    padding: 80px 0;
    background-color: #8c6239;
    color: #fff;
    text-align: center;
}

.quotes blockquote {
    max-width: 800px;
    margin: 0 auto;
}

.quotes p {
    font-size: 28px;
    font-style: italic;
    margin-bottom: 20px;
}

.quotes cite {
    font-size: 18px;
}

/* 页脚样式 */
footer {
    background-color: #333;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-info, .footer-links, .footer-contact {
    flex: 1;
    min-width: 200px;
    margin-bottom: 30px;
}

.footer-info h4, .footer-links h4, .footer-contact h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #8c6239;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    text-decoration: none;
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #8c6239;
}

/* 页脚标题居中样式 */
.footer-info h4,
.footer-links h4,
.footer-contact h4 {
    text-align: center;
    margin-bottom: 20px;
}

/* 关于我们文本样式 */
.footer-info p {
    text-align: center;
    text-indent: 2em;
}

/* 联系信息文本居中样式 */
.footer-contact p {
    text-align: center;
}

.links-container {
    display: flex;
    justify-content: center;
    gap: 80px;
    max-width: 400px;
    margin: 0 auto;
}

.link-column {
    padding: 0;
    margin: 0;
    list-style: none;
}

.link-column li {
    margin-bottom: 12px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background-color: #fff;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
    }
    
    .nav-links.active {
        transform: translateY(0);
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .hero-content h1 {
        font-size: 40px;
    }
    
    .hero-content p {
        font-size: 18px;
    }
    
    .intro-content {
        flex-direction: column;
    }
    
    .intro-text {
        margin-right: 0;
        margin-bottom: 30px;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-info, .footer-links, .footer-contact {
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .introduction h2, .features h2 {
        font-size: 28px;
    }
    
    .quotes p {
        font-size: 20px;
    }
}

/* 现有样式保持不变，添加以下新样式 */

/* 页面标题样式 */
.page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("../images/page-header-bg.jpg") center center / cover no-repeat !important;
    color: #fff;
    text-align: center;
    padding: 100px 0;
    margin-top: 80px;
}

.page-header h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-header p {
    font-size: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* 内容区域通用样式 */
.history-content, .types-content, .art-content, .ceremony-content {
    padding: 80px 0;
}

.intro-section {
    text-align: center;
    margin-bottom: 60px;
}

.intro-section h2 {
    font-size: 36px;
    color: #8c6239;
    margin-bottom: 20px;
}

.intro-section p {
    font-size: 18px;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

/* 茶史页面样式 */
.history-section {
    margin-bottom: 60px;
}

.history-section h2 {
    font-size: 32px;
    color: #8c6239;
    margin-bottom: 30px;
    text-align: center;
}

.history-card {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.history-image {
    flex: 1;
    min-width: 300px;
    margin-bottom: 30px;
}

.history-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.history-text {
    flex: 1;
    min-width: 300px;
    padding: 0 30px;
}

.history-text p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* 时间线样式 */
.history-timeline {
    position: relative;
    margin-bottom: 60px;
}

.history-timeline h2 {
    font-size: 32px;
    color: #8c6239;
    margin-bottom: 40px;
    text-align: center;
}

.timeline-item {
    position: relative;
    padding-left: 50px;
    margin-bottom: 40px;
}

.timeline-dot {
    position: absolute;
    left: 0;
    top: 10px;
    width: 20px;
    height: 20px;
    background-color: #8c6239;
    border-radius: 50%;
}

.timeline-dot::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 20px;
    width: 2px;
    height: calc(100% + 40px);
    background-color: #8c6239;
}

.timeline-item:last-child .timeline-dot::before {
    display: none;
}

.timeline-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.timeline-content h3 {
    font-size: 20px;
    color: #8c6239;
    margin-bottom: 15px;
}

.timeline-content p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* 茶类页面样式 */
.tea-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.tea-type-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.tea-type-card:hover {
    transform: translateY(-10px);
}

.tea-type-image {
    height: 200px;
    overflow: hidden;
}

.tea-type-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tea-type-card:hover .tea-type-image img {
    transform: scale(1.1);
}

.tea-type-info {
    padding: 20px;
}

.tea-type-info h3 {
    font-size: 22px;
    color: #8c6239;
    margin-bottom: 10px;
}

.tea-type-desc {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.tea-type-details p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 8px;
}

.knowledge-section {
    margin-top: 60px;
}

.knowledge-section h2 {
    font-size: 32px;
    color: #8c6239;
    margin-bottom: 30px;
    text-align: center;
}

.knowledge-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.knowledge-item {
    flex: 1;
    min-width: 300px;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.knowledge-item h3 {
    font-size: 20px;
    color: #8c6239;
    margin-bottom: 20px;
}

.knowledge-item p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.knowledge-item ul {
    list-style-position: inside;
}

.knowledge-item li {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 8px;
}

/* 茶艺页面样式 */
.performance-section {
    margin-bottom: 60px;
}

.performance-section h2 {
    font-size: 32px;
    color: #8c6239;
    margin-bottom: 30px;
    text-align: center;
}

.performance-steps {
    position: relative;
    padding-left: 60px;
}

.performance-steps::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 10px;
    width: 2px;
    height: calc(100% - 20px);
    background-color: #8c6239;
}

.step-item {
    position: relative;
    margin-bottom: 40px;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.step-number {
    position: absolute;
    left: -60px;
    top: 20px;
    width: 40px;
    height: 40px;
    background-color: #8c6239;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
}

.step-content h3 {
    font-size: 20px;
    color: #8c6239;
    margin-bottom: 10px;
}

.step-content p {
    font-size: 16px;
    line-height: 1.6;
}

.schools-section {
    margin-bottom: 60px;
}

.schools-section h2 {
    font-size: 32px;
    color: #8c6239;
    margin-bottom: 30px;
    text-align: center;
}

.schools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.school-card {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.school-card h3 {
    font-size: 18px;
    color: #8c6239;
    margin-bottom: 15px;
}

.school-card p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.skills-section h2 {
    font-size: 32px;
    color: #8c6239;
    margin-bottom: 30px;
    text-align: center;
}

.skills-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.skill-item {
    flex: 1;
    min-width: 200px;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.skill-item h3 {
    font-size: 18px;
    color: #8c6239;
    margin-bottom: 15px;
}

.skill-item p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.skill-item ul {
    list-style-position: inside;
}

.skill-item li {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 5px;
}

/* 茶礼页面样式 */
.spirit-section {
    margin-bottom: 60px;
}

.spirit-section h2 {
    font-size: 32px;
    color: #8c6239;
    margin-bottom: 30px;
    text-align: center;
}

.spirit-content p {
    font-size: 18px;
    line-height: 1.8;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.spirit-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.value-item {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.value-item h3 {
    font-size: 24px;
    color: #8c6239;
    margin-bottom: 15px;
}

.value-item p {
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
}

.etiquette-section {
    margin-bottom: 60px;
}

.etiquette-section h2 {
    font-size: 32px;
    color: #8c6239;
    margin-bottom: 30px;
    text-align: center;
}

.etiquette-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.etiquette-category {
    flex: 1;
    min-width: 250px;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.etiquette-category h3 {
    font-size: 20px;
    color: #8c6239;
    margin-bottom: 20px;
    text-align: center;
}

.etiquette-category ul {
    list-style-position: inside;
}

.etiquette-category li {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 10px;
}

.customs-section {
    margin-bottom: 60px;
}

.customs-section h2 {
    font-size: 32px;
    color: #8c6239;
    margin-bottom: 30px;
    text-align: center;
}

.customs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.custom-card {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.custom-card h3 {
    font-size: 18px;
    color: #8c6239;
    margin-bottom: 15px;
}

.custom-card p {
    font-size: 14px;
    line-height: 1.6;
}

.health-section h2 {
    font-size: 32px;
    color: #8c6239;
    margin-bottom: 30px;
    text-align: center;
}

.health-content p {
    font-size: 18px;
    line-height: 1.8;
    text-align: center;
    margin-bottom: 30px;
}

.health-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.benefit-item {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.benefit-item h3 {
    font-size: 18px;
    color: #8c6239;
    margin-bottom: 15px;
}

.benefit-item p {
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
}

.health-notes {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.health-notes h4 {
    font-size: 18px;
    color: #8c6239;
    margin-bottom: 15px;
}

.health-notes ul {
    list-style-position: inside;
}

.health-notes li {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 8px;
}

/* 响应式设计补充 */
@media (max-width: 768px) {
    .history-card {
        flex-direction: column;
    }
    
    .history-text {
        padding: 0;
        margin-top: 20px;
    }
    
    .timeline-item {
        padding-left: 30px;
    }
    
    .timeline-dot {
        width: 15px;
        height: 15px;
    }
    
    .performance-steps {
        padding-left: 50px;
    }
    
    .step-number {
        width: 30px;
        height: 30px;
        left: -50px;
        font-size: 14px;
    }
    
    .spirit-values,
    .etiquette-content,
    .customs-grid,
    .health-benefits {
        grid-template-columns: 1fr;
    }
}