/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: #333;
}

/* 导航栏基础样式 */
header {
    background: #8B0000;
    padding: 1.5rem;
    position: relative;
    min-height: 70px;
    display: flex;
    align-items: center;
}

nav {
    position: relative;
    z-index: 1000;
    width: 100%;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

nav li {
    margin: 0;
}

nav a {
    color: #fff;
    text-decoration: none;
    padding: 0.8rem 1.2rem;
    display: block;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

nav a:hover {
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
}

/* 汉堡菜单样式 */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: absolute;
    right: 1rem;
    top: 1rem;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* 移动端导航样式 */
@media (max-width: 768px) {
    header {
        position: sticky;
        top: 0;
        z-index: 1000;
        padding: 1rem;
        min-height: 60px;
    }

    .menu-toggle {
        display: flex;
    }

    nav ul {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(139, 0, 0, 0.95);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin: 0;
        padding: 2rem;
        gap: 0;
    }

    nav ul.active {
        display: flex;
    }

    nav li {
        margin: 1rem 0;
        opacity: 0;
        transform: translateY(20px);
        animation: slideIn 0.3s forwards;
    }

    nav a {
        font-size: 1.2rem;
        padding: 1rem 2rem;
        color: #fff;
    }

    nav a:hover {
        background: rgba(255,255,255,0.1);
    }

    /* 动画效果 */
    @keyframes slideIn {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* 为每个菜单项添加延迟动画 */
    nav.active li:nth-child(1) { animation-delay: 0.1s; }
    nav.active li:nth-child(2) { animation-delay: 0.2s; }
    nav.active li:nth-child(3) { animation-delay: 0.3s; }
    nav.active li:nth-child(4) { animation-delay: 0.4s; }
    nav.active li:nth-child(5) { animation-delay: 0.5s; }
    nav.active li:nth-child(6) { animation-delay: 0.6s; }
    nav.active li:nth-child(7) { animation-delay: 0.7s; }
    nav.active li:nth-child(8) { animation-delay: 0.8s; }
}

/* 防止菜单打开时页面滚动 */
body.menu-open {
    overflow: hidden;
}

/* 主要内容 */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.banner {
    text-align: center;
    padding: 4rem 0;
    background: #f5f5f5;
    margin-bottom: 2rem;
}

.banner h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.item {
    text-align: center;
}

.item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.item h3 {
    margin-top: 1rem;
}

/* 页脚 */
footer {
    text-align: center;
    padding: 2rem;
    background: #f5f5f5;
    margin-top: 2rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        text-align: center;
    }
    
    nav li {
        margin: 0.5rem 0;
    }
    
    .banner {
        padding: 2rem 0;
    }
    
    .banner h1 {
        font-size: 2rem;
    }
} 

/* 添加分类页面样式 */
.category-intro {
    text-align: center;
    padding: 3rem 0;
    background: url('../images/pattern.png') repeat;
    color: #8B0000;
}

.categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.category-card {
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card img {
    max-width: 200px;
    height: auto;
    margin-bottom: 1rem;
}

.category-card h2 {
    color: #8B0000;
    margin-bottom: 1rem;
} 

/* 添加详情页样式 */
.detail-page {
    background: #f9f9f9;
}

.instrument-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.instrument-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.instrument-info h1 {
    color: #8B0000;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.info-item {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.info-item h3 {
    color: #8B0000;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .instrument-detail {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
} 

/* 添加文化页面样式 */
.culture-page {
    background: #fafafa;
}

.culture-banner {
    text-align: center;
    padding: 4rem 0;
    background: url('../images/culture_banner.png') no-repeat center;
    background-size: cover;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.culture-banner h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* 时间轴样式 */
.timeline {
    padding: 4rem 2rem;
}

.timeline h2 {
    text-align: center;
    color: #8B0000;
    margin-bottom: 3rem;
}

.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    width: 2px;
    height: 100%;
    background: #8B0000;
}

.timeline-item {
    margin: 2rem 0;
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 50%;
    padding-left: 2rem;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: 50%;
    padding-right: 2rem;
    text-align: right;
}

.timeline-content {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.timeline-content img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1rem 0;
}

/* 地域音乐样式 */
.regional-music {
    padding: 4rem 2rem;
    background: #fff;
}

.regional-music h2 {
    text-align: center;
    color: #8B0000;
    margin-bottom: 3rem;
}

.region-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.region-card {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.region-card:hover {
    transform: translateY(-5px);
}

.region-card img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.region-card h3 {
    color: #8B0000;
    margin-bottom: 1rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .timeline-container::before {
        left: 0;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin: 0 0 0 2rem;
        text-align: left;
    }
    
    .culture-banner h1 {
        font-size: 2rem;
    }
} 

/* 添加技巧页面样式 */
.skills-page {
    background: #fafafa;
}

.skills-banner {
    text-align: center;
    padding: 4rem 0;
    background: url('../images/skills_banner.png') no-repeat center;
    background-size: cover;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.skills-banner h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* 基础知识部分 */
.basic-knowledge {
    padding: 4rem 2rem;
}

.basic-knowledge h2 {
    text-align: center;
    color: #8B0000;
    margin-bottom: 3rem;
}

.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.knowledge-card {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.knowledge-card img {
    width: 100%;
    max-width: 200px;
    height: auto;
    margin-bottom: 1.5rem;
}

.knowledge-card h3 {
    color: #8B0000;
    margin-bottom: 1rem;
}

/* 分级技巧部分 */
.skill-levels {
    padding: 4rem 2rem;
    background: #fff;
}

.skill-levels h2 {
    text-align: center;
    color: #8B0000;
    margin-bottom: 3rem;
}

.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
}

.accordion-header {
    background: #8B0000;
    color: #fff;
    padding: 1rem 2rem;
    cursor: pointer;
    position: relative;
}

.accordion-content {
    background: #fff;
    padding: 2rem;
    border: 1px solid #ddd;
}

.accordion-content img {
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.accordion-content ul {
    list-style: none;
    padding-left: 1rem;
}

.accordion-content li {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.accordion-content li::before {
    content: '•';
    color: #8B0000;
    position: absolute;
    left: 0;
}

/* FAQ部分 */
.faq {
    padding: 4rem 2rem;
}

.faq h2 {
    text-align: center;
    color: #8B0000;
    margin-bottom: 3rem;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    padding: 2rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.faq-item h3 {
    color: #8B0000;
    margin-bottom: 1rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .skills-banner h1 {
        font-size: 2rem;
    }
    
    .knowledge-grid {
        grid-template-columns: 1fr;
    }
    
    .accordion-header {
        padding: 1rem;
    }
    
    .accordion-content {
        padding: 1rem;
    }
} 

/* 添加名家介绍页面样式 */
.masters-page {
    background: #fafafa;
}

.masters-banner {
    text-align: center;
    padding: 4rem 0;
    background: url('../images/masters_banner.png') no-repeat center;
    background-size: cover;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.masters-banner h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.masters-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.master-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    overflow: hidden;
}

.master-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.master-info {
    padding: 2rem;
}

.master-info h2 {
    color: #8B0000;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.master-info h3 {
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.achievements {
    margin-top: 2rem;
}

.achievements h4 {
    color: #8B0000;
    margin-bottom: 1rem;
}

.achievements ul {
    list-style: none;
    padding-left: 1rem;
}

.achievements li {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.achievements li::before {
    content: '•';
    color: #8B0000;
    position: absolute;
    left: 0;
}

.master-events {
    background: #fff;
    padding: 4rem 2rem;
}

.master-events h2 {
    text-align: center;
    color: #8B0000;
    margin-bottom: 3rem;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.event-card {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.event-card h3 {
    color: #8B0000;
    margin-bottom: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: #8B0000;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 1rem;
    transition: background 0.3s;
}

.btn:hover {
    background: #a00000;
}

@media (max-width: 768px) {
    .masters-banner h1 {
        font-size: 2rem;
    }
    
    .master-card {
        grid-template-columns: 1fr;
    }
    
    .master-image {
        height: 300px;
    }
    
    .master-info {
        padding: 1.5rem;
    }
} 

/* 添加关于我们页面样式 */
.about-page {
    background: #fafafa;
}

.about-banner {
    text-align: center;
    padding: 4rem 0;
    background: url('../images/about_banner.png') no-repeat center;
    background-size: cover;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.about-banner h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.about-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.about-intro h2 {
    color: #8B0000;
    margin-bottom: 2rem;
}

.about-intro p {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* 使命部分样式 */
.about-mission {
    margin-bottom: 4rem;
}

.about-mission h2 {
    text-align: center;
    color: #8B0000;
    margin-bottom: 2rem;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.mission-item {
    background: #fff;
    padding: 2rem;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.mission-item h3 {
    color: #8B0000;
    margin-bottom: 1rem;
}

/* 团队部分样式 */
.about-team {
    margin-bottom: 4rem;
}

.about-team h2 {
    text-align: center;
    color: #8B0000;
    margin-bottom: 2rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.team-member {
    text-align: center;
}

.team-member img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin-bottom: 1rem;
    object-fit: cover;
}

.team-member h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.team-member p {
    color: #666;
}

/* 联系部分样式 */
.contact-section {
    background: #fff;
    padding: 4rem 2rem;
}

.contact-section h2 {
    text-align: center;
    color: #8B0000;
    margin-bottom: 3rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info h3,
.contact-form h3 {
    color: #8B0000;
    margin-bottom: 1.5rem;
}

.contact-info ul {
    list-style: none;
    padding: 0;
}

.contact-info li {
    margin: 1rem 0;
    color: #666;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #666;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
}

.submit-btn {
    background: #8B0000;
    color: #fff;
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #a00000;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .about-banner h1 {
        font-size: 2rem;
    }
    
    .about-content {
        padding: 2rem 1rem;
    }
    
    .team-member img {
        width: 150px;
        height: 150px;
    }
    
    .contact-grid {
        gap: 2rem;
    }
} 

/* 添加商城页面样式 */
.shop-page {
    background: #fafafa;
}

.shop-banner {
    text-align: center;
    padding: 4rem 0;
    background: url('../images/shop_banner.png') no-repeat center;
    background-size: cover;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 2rem;
}

.shop-banner h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.shop-banner p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 筛选器样式 */
.shop-filters {
    background: #fff;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 1200px;
    display: flex;
    justify-content: center;
    gap: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 200px;
}

.filter-group label {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

.filter-group select {
    padding: 0.8rem 2rem 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    font-size: 1rem;
    color: #333;
    cursor: pointer;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.filter-group select:hover {
    border-color: #8B0000;
}

.filter-group select:focus {
    outline: none;
    border-color: #8B0000;
    box-shadow: 0 0 0 2px rgba(139,0,0,0.1);
}

/* 商品网格样式 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 4px 25px rgba(0,0,0,0.15);
}

.product-image {
    position: relative;
    height: 300px;
    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.05);
}

.product-tags {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 1;
}

.tag {
    background: #8B0000;
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.product-info {
    padding: 1.5rem;
}

.product-info h2 {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
    line-height: 1.5;
}

.price {
    color: #8B0000;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price::before {
    content: '价格:';
    font-size: 0.9rem;
    color: #666;
    font-weight: normal;
}

.add-to-cart {
    width: 100%;
    padding: 1rem;
    background: #8B0000;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.add-to-cart:hover {
    background: #a00000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139,0,0,0.2);
}

.add-to-cart:active {
    transform: translateY(0);
}

/* 商城特色样式 */
.shop-features {
    background: #fff;
    padding: 4rem 2rem;
    margin-top: 4rem;
    border-top: 1px solid #eee;
}

.shop-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature {
    text-align: center;
    padding: 2rem;
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature h3 {
    color: #8B0000;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.feature p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .shop-banner h1 {
        font-size: 2rem;
    }
    
    .shop-banner p {
        font-size: 1rem;
    }
    
    .shop-filters {
        flex-direction: column;
        padding: 1.5rem;
    }
    
    .filter-group {
        min-width: auto;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1.5rem;
    }
    
    .product-card {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .shop-features {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1rem;
    }
    
    .feature {
        padding: 1.5rem;
    }
} 

/* 全局响应式调整 */
@media (max-width: 768px) {
    /* 导航栏调整 */
    header {
        position: sticky;
        top: 0;
        z-index: 1000;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    nav ul {
        flex-direction: column;
        text-align: center;
        padding: 0.5rem 0;
    }
    
    nav li {
        margin: 0.5rem 0;
    }

    nav a {
        display: block;
        padding: 0.8rem;
        border-radius: 4px;
    }

    /* 主要内容区域调整 */
    main {
        padding: 1rem;
    }

    .banner {
        padding: 2rem 1rem;
    }
    
    .banner h1 {
        font-size: 1.8rem;
    }

    /* 网格布局调整 */
    .grid,
    .categories,
    .product-grid,
    .masters-grid,
    .team-grid,
    .mission-grid,
    .events-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
    }

    /* 商城页面移动端优化 */
    .shop-banner {
        padding: 3rem 1rem;
    }

    .shop-banner h1 {
        font-size: 1.8rem;
    }
    
    .shop-banner p {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .shop-filters {
        flex-direction: column;
        padding: 1rem;
        margin: 1rem;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-group select {
        width: 100%;
        padding: 1rem;
    }
    
    .product-card {
        max-width: 100%;
        margin: 0;
    }
    
    .product-image {
        height: 250px;
    }
    
    .product-info {
        padding: 1rem;
    }
    
    .price {
        font-size: 1.5rem;
    }
    
    .add-to-cart {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    /* 名家介绍页面移动端优化 */
    .master-card {
        grid-template-columns: 1fr;
    }
    
    .master-image {
        height: 250px;
    }
    
    .master-info {
        padding: 1rem;
    }

    /* 关于我们页面移动端优化 */
    .about-content {
        padding: 1rem;
    }
    
    .about-intro p {
        padding: 0 1rem;
    }
    
    .team-member img {
        width: 120px;
        height: 120px;
    }
    
    .contact-grid {
        gap: 1.5rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    /* 页脚调整 */
    footer {
        padding: 1.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* 超小屏幕设备的额外优化 */
@media (max-width: 480px) {
    .banner h1,
    .shop-banner h1,
    .masters-banner h1,
    .about-banner h1 {
        font-size: 1.5rem;
    }
    
    .product-card,
    .master-card,
    .mission-item,
    .team-member {
        margin: 0 0.5rem;
    }
    
    .product-image,
    .master-image {
        height: 200px;
    }
    
    .tag {
        padding: 0.3rem 0.8rem;
        font-size: 0.7rem;
    }
    
    .price {
        font-size: 1.3rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
    }
    
    .submit-btn {
        width: 100%;
        padding: 0.8rem;
    }
}

/* 横屏模式优化 */
@media (max-height: 480px) and (orientation: landscape) {
    nav ul {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav li {
        margin: 0.3rem;
    }
    
    .banner,
    .shop-banner,
    .masters-banner,
    .about-banner {
        padding: 2rem 1rem;
    }
    
    .product-image,
    .master-image {
        height: 180px;
    }
    
    .team-member img {
        width: 100px;
        height: 100px;
    }
}