/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f5f0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

a {
    color: #8b4513;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #d2691e;
}

/* 标题样式 */
h1, h2, h3 {
    font-weight: 700;
    color: #5a3b2c;
    margin-bottom: 20px;
}

h1 {
    font-size: 2.5rem;
    text-align: center;
}

h2 {
    font-size: 2rem;
    position: relative;
    padding-bottom: 10px;
    text-align: center;
}

h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, #d2691e, #8b4513);
}

h3 {
    font-size: 1.5rem;
    color: #8b4513;
}

/* 头部样式 */
header {
    background: linear-gradient(to right, #5a3b2c, #8b4513);
    color: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    text-align: center;
    margin-bottom: 20px;
}

.logo h1 {
    color: #fff;
    margin-bottom: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

#main-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    flex-wrap: wrap;
}

#main-nav li {
    margin: 0 15px;
}

#main-nav a {
    color: #fff;
    font-weight: 600;
    padding: 10px 0;
    position: relative;
    display: inline-block;
}

#main-nav a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #fff;
    transition: width 0.3s ease;
}

#main-nav a:hover:after {
    width: 100%;
}

/* 横幅样式 */
#banner {
    padding: 80px 0;
    background: url('') center/cover no-repeat;
    position: relative;
    color: #fff;
    text-align: center;
}

#banner:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

#banner .container {
    position: relative;
    z-index: 2;
}

.banner-content {
    max-width: 800px;
    margin: 0 auto 40px;
}

.banner-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #fff;
}

.banner-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.banner-image {
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
}

/* 章节样式 */
.section {
    padding: 80px 0;
    position: relative;
}

.section:nth-child(even) {
    background-color: #f0e6da;
}

.content-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 40px;
    gap: 40px;
}

.text-content {
    flex: 1;
    min-width: 300px;
}

.image-content {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.image-content img {
    margin: 0 auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.image-content img:hover {
    transform: scale(1.03);
}

/* 卡片样式 */
.cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.card {
    flex: 1;
    min-width: 300px;
    max-width: 350px;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

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

.card h3 {
    padding: 20px 20px 10px;
}

.card p {
    padding: 0 20px 20px;
    color: #666;
}

/* 技法列表样式 */
.techniques-list {
    margin-top: 60px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
}

.technique-item {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.technique-item h3 {
    text-align: center;
    margin-bottom: 15px;
}

.technique-item img {
    margin: 0 auto 20px;
    border-radius: 8px;
}

/* 益处网格样式 */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.benefit-item {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-10px);
}

.benefit-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.benefit-item h3 {
    padding: 15px 15px 5px;
    text-align: center;
}

.benefit-item p {
    padding: 0 15px 15px;
    color: #666;
}

/* 名师卡片样式 */
.masters-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.master-card {
    flex: 1;
    min-width: 300px;
    max-width: 350px;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.master-card img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    margin: 30px auto 20px;
    border: 5px solid #f0e6da;
}

.master-card h3 {
    text-align: center;
    padding: 0 20px 10px;
}

.master-card p {
    padding: 0 20px 30px;
    color: #666;
}

/* 文章样式 */
.articles-container {
    margin-top: 40px;
}

.article-item {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.article-item h3 {
    margin-bottom: 15px;
    color: #5a3b2c;
}

.article-item p {
    color: #555;
    text-align: justify;
}

/* 页脚样式 */
#footer {
    background: linear-gradient(to right, #5a3b2c, #8b4513);
    color: #fff;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-logo {
    flex: 1;
    min-width: 200px;
    margin-bottom: 30px;
}

.footer-logo p {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.footer-nav {
    flex: 1;
    min-width: 200px;
    margin-bottom: 30px;
}

.footer-nav ul {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 10px;
}

.footer-nav a {
    color: #f0e6da;
}

.footer-info {
    flex: 2;
    min-width: 300px;
    text-align: right;
}

.footer-info p {
    margin-bottom: 10px;
}

.footer-info a {
    color: #f0e6da;
    border-bottom: 1px dotted #f0e6da;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
    }
    
    .text-content, .image-content {
        width: 100%;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-info {
        text-align: center;
    }
    
    #main-nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    #main-nav li {
        margin: 5px 0;
    }
    
    .banner-content h2 {
        font-size: 2rem;
    }
    
    .banner-content p {
        font-size: 1.2rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
}