/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.colorful-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 20px 0;
}

.colorful-header.scrolled {
    padding: 15px 0;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.colorful-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 28px;
    font-weight: 700;
    color: #6a11cb;
    text-decoration: none;
    letter-spacing: -1px;
    transition: color 0.3s ease;
}

.logo a:hover {
    color: #2575fc;
}

.colorful-nav {
    display: flex;
    align-items: center;
}

.colorful-nav a {
    font-size: 16px;
    color: #333;
    text-decoration: none;
    margin-left: 40px;
    transition: all 0.3s ease;
    position: relative;
}

.colorful-nav a:hover,
.colorful-nav a.active {
    color: #6a11cb;
}

.colorful-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #6a11cb, #2575fc);
    transition: width 0.3s ease;
}

.colorful-nav a:hover::after,
.colorful-nav a.active::after {
    width: 100%;
}

/* 移动端菜单 */
.mobile-menu-toggle {
    display: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    padding: 80px 30px;
    transition: right 0.3s ease;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu a {
    font-size: 20px;
    color: #fff;
    text-decoration: none;
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.mobile-menu a:hover {
    color: #f0f0f0;
    transform: translateX(10px);
}

/* 首页大图 */
.colorful-hero {
    height: 100vh;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    margin-top: 0;
    overflow: hidden;
}

.colorful-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/pattern.png') repeat;
    opacity: 0.1;
}

.hero-content h1 {
    font-size: 80px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -2px;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s 0.3s forwards;
}

.hero-content p {
    font-size: 24px;
    color: #fff;
    margin-bottom: 40px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s 0.6s forwards;
}

/* 按钮样式 */
.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(90deg, #6a11cb, #2575fc);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s 0.9s forwards;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(106, 17, 203, 0.3);
}

/* 通用区块样式 */
.colorful-section {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

/* 多彩背景区块 */
.about-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.products-section {
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
}

.craft-section {
    background: linear-gradient(135deg, #fff5f6 0%, #fddfe4 100%);
}

.news-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #c1e3ff 100%);
}

.reviews-section {
    background: linear-gradient(135deg, #fff7e6 0%, #ffe6cc 100%);
}

.contact-section {
    background: linear-gradient(135deg, #e6fffb 0%, #b5f5ea 100%);
}

.links-section {
    background: linear-gradient(135deg, #f0f2f5 0%, #d4d9e0 100%);
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 60px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #6a11cb, #2575fc);
}

/* 品牌故事 */
.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 80px;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #555;
}

.about-image {
    flex: 1;
    min-width: 300px;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

/* 产品系列 */
.product-filter {
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 30px;
    background-color: #fff;
    color: #333;
    border: 1px solid #ddd;
    font-size: 16px;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(90deg, #6a11cb, #2575fc);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(106, 17, 203, 0.3);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px;
}

.product-item {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    opacity: 0;
    transform: translateY(30px);
}

.product-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.product-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-item:hover .product-image img {
    transform: scale(1.1);
}

.product-item h3 {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 20px;
}

.product-item p {
    font-size: 16px;
    color: #666;
    margin: 0 20px 20px;
}

/* 产品色彩标识 */
.product-item.blue .product-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 10px;
    height: 100%;
    background: linear-gradient(180deg, #2196F3, #03A9F4);
}

.product-item.green .product-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 10px;
    height: 100%;
    background: linear-gradient(180deg, #4CAF50, #8BC34A);
}

.product-item.red .product-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 10px;
    height: 100%;
    background: linear-gradient(180deg, #F44336, #FF5722);
}

/* 制作工艺 */
.craft-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.craft-step {
    text-align: center;
    padding: 40px 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.craft-step:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.craft-step::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #6a11cb, #2575fc);
}

.step-number {
    font-size: 48px;
    font-weight: 900;
    color: #f0f0f0;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.craft-step:hover .step-number {
    color: #6a11cb;
}

.craft-step h3 {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.craft-step p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

/* 新闻资讯 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.news-item {
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.news-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #6a11cb, #2575fc);
}

.news-date {
    font-size: 14px;
    color: #999;
    margin-bottom: 10px;
}

.news-item h3 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-item p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

/* 用户评价 */
.reviews-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.review-item {
    display: none;
    padding: 40px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.5s ease;
    position: relative;
}

.review-item.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.review-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #6a11cb, #2575fc);
}

.reviewer-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.reviewer-name {
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.reviewer-rating {
    font-size: 20px;
    color: #ffb400;
}

.review-item p {
    font-size: 18px;
    color: #555;
    line-height: 1.8;
    font-style: italic;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.slider-prev,
.slider-next {
    width: 50px;
    height: 50px;
    background: linear-gradient(90deg, #6a11cb, #2575fc);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(106, 17, 203, 0.3);
}

.slider-prev:hover,
.slider-next:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(106, 17, 203, 0.4);
}

/* 联系我们 */
.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-item {
    margin-bottom: 40px;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-item h3 {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.contact-item p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

.contact-form {
    flex: 1;
    min-width: 300px;
    padding: 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6a11cb;
    box-shadow: 0 0 0 3px rgba(106, 17, 203, 0.1);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

/* 友情链接 */
.links-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

.links-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.links-grid a {
    font-size: 16px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 10px 20px;
    background-color: #fff;
    border-radius: 50px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.links-grid a:hover {
    color: #6a11cb;
    box-shadow: 0 5px 15px rgba(106, 17, 203, 0.2);
    transform: translateY(-3px);
}

/* 页脚 */
.colorful-footer {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: #fff;
    padding: 80px 0 40px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 60px;
    gap: 40px;
}

.footer-logo {
    font-size: 36px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-links a {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: #fff;
}

.footer-social {
    display: flex;
    gap: 20px;
}

.footer-social a {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: #fff;
}

.footer-copyright {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-copyright p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(90deg, #6a11cb, #2575fc);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 99;
    box-shadow: 0 5px 15px rgba(106, 17, 203, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(106, 17, 203, 0.4);
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 992px) {
    .colorful-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 60px;
    }
    
    .hero-content p {
        font-size: 20px;
    }
    
    .about-content {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .colorful-section {
        padding: 80px 0;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .hero-content h1 {
        font-size: 48px;
    }
    
    .hero-content p {
        font-size: 18px;
    }
    
    .btn-primary {
        padding: 12px 30px;
        font-size: 14px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 36px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .product-filter {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 8px 20px;
        font-size: 14px;
    }
    
    .review-item {
        padding: 20px;
    }
    
    .review-item p {
        font-size: 16px;
    }
}