/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* 导航栏样式 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
}

.logo {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 55px;
    width: auto;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo img:hover {
    transform: scale(1.05);
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

.nav a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #8b6f47;
    transition: width 0.3s ease;
}

.nav a:hover {
    color: #8b6f47;
}

.nav a:hover:after {
    width: 100%;
}

/* 轮播图样式 */
.hero-slider {
    position: relative;
    width: 100%;
    margin-top: 80px;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 50%;
    background: #000;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.5) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-content {
    text-align: center;
    color: #fff;
    padding: 40px;
    animation: fadeInUp 1s ease;
}

.slide-content h1 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    letter-spacing: 2px;
}

.slide-content p {
    font-size: 24px;
    font-weight: 300;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
    letter-spacing: 1px;
}

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

.slider-nav {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 30px;
    z-index: 10;
}

.slider-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #333;
    font-size: 32px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.slider-btn:hover {
    background: #fff;
    transform: scale(1.1);
}

.slider-dots {
    display: flex;
    gap: 12px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.dot.active {
    background: #fff;
    border-color: rgba(139, 111, 71, 0.6);
    transform: scale(1.3);
}

/* 通用区块样式 */
.section-header {
    text-align: center;
    margin-bottom: 25px;
    padding-top: 20px;
}

.section-header h2 {
    font-size: 48px;
    font-weight: 700;
    color: #2c1810;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #c9a882 0%, #8b6f47 100%);
    border-radius: 2px;
}

.section-header p {
    font-size: 18px;
    color: #666;
    margin-top: 25px;
}

/* 产品展示区域 */
.products-section {
    padding: 60px 0;
    background: linear-gradient(to bottom, #f9f9f9 0%, #ffffff 100%);
}

.product-slider {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.product-slider-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 60%;
    background: #000;
}

.product-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.product-slide.active {
    opacity: 1;
}

.product-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.product-slider-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 25px;
    z-index: 10;
}

.product-slider-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #333;
    font-size: 28px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.product-slider-btn:hover {
    background: #fff;
    transform: scale(1.1);
}

.product-slider-dots {
    display: flex;
    gap: 10px;
}

.product-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.product-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.product-dot.active {
    background: #fff;
    border-color: rgba(139, 111, 71, 0.6);
    transform: scale(1.3);
}

/* 联系我们区域 */
.contact-section {
    padding: 60px 0 80px;
    background: #fff;
}

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

.contact-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.contact-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #c9a882 0%, #8b6f47 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-color: #e0e0e0;
}

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

.contact-icon {
    margin-bottom: 20px;
}

.contact-icon img {
    width: 60px;
    height: 60px;
    transition: transform 0.4s ease;
}

.contact-card:hover .contact-icon img {
    transform: rotate(360deg);
}

.contact-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2c1810;
    margin-bottom: 15px;
}

.contact-info {
    font-size: 15px;
    color: #555;
    line-height: 1.8;
    word-break: break-word;
}

/* 页脚样式 */
.footer {
    background: linear-gradient(135deg, #2c1810 0%, #1a0f0a 100%);
    color: #d4a574;
    padding: 50px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-logo img {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-info p {
    font-size: 16px;
    line-height: 1.8;
    color: #c9a882;
}

.footer-info .icp-info {
    margin-top: 10px;
    font-size: 14px;
}

.footer-info .icp-info a {
    color: #d4a574;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-info .icp-info a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-info p:first-child {
    font-weight: 600;
    font-size: 18px;
    color: #d4a574;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .slide-content h1 {
        font-size: 42px;
    }

    .slide-content p {
        font-size: 20px;
    }

    .section-header h2 {
        font-size: 38px;
    }
}

@media (max-width: 768px) {
    .header .container {
        padding: 12px 20px;
    }

    .logo img {
        height: 40px;
    }

    .nav ul {
        gap: 20px;
    }

    .nav a {
        font-size: 14px;
    }

    .hero-slider {
        margin-top: 68px;
    }

    .slider-container {
        padding-bottom: 70%;
    }

    .slide-content {
        padding: 20px;
    }

    .slide-content h1 {
        font-size: 28px;
        margin-bottom: 10px;
    }

    .slide-content p {
        font-size: 16px;
    }

    .slider-nav {
        bottom: 20px;
        gap: 15px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .section-header {
        padding-top: 30px;
        margin-bottom: 35px;
    }

    .section-header h2 {
        font-size: 32px;
    }

    .section-header p {
        font-size: 16px;
    }

    .products-section,
    .contact-section {
        padding: 40px 0;
    }

    .product-slider-container {
        padding-bottom: 75%;
    }

    .product-slider-nav {
        bottom: 20px;
        gap: 15px;
    }

    .product-slider-btn {
        width: 38px;
        height: 38px;
        font-size: 22px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-card {
        padding: 30px 20px;
    }

    .footer {
        padding: 40px 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .nav ul {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .slide-content h1 {
        font-size: 22px;
    }

    .slide-content p {
        font-size: 14px;
    }

    .section-header h2 {
        font-size: 26px;
    }
}
