/* ===== 全局重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #8B0000;
    --primary-dark: #5C0000;
    --gold: #D4AF37;
    --gold-light: #F0E68C;
    --brown: #3E2723;
    --cream: #FAF6F0;
    --white: #FFFFFF;
    --text: #333333;
    --text-light: #666666;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 30px rgba(139, 0, 0, 0.2);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
    color: var(--text);
    background: var(--cream);
    line-height: 1.8;
    padding-bottom: 70px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* ===== 顶部导航 ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 55px;
    width: 55px;
    border-radius: 50%;
    border: 2px solid var(--gold);
}

.logo-text h1 {
    font-size: 22px;
    color: var(--primary);
    font-weight: bold;
    letter-spacing: 2px;
}

.logo-text p {
    font-size: 12px;
    color: var(--text-light);
    letter-spacing: 1px;
}

.nav {
    display: flex;
    gap: 8px;
}

.nav a {
    padding: 10px 18px;
    font-size: 16px;
    color: var(--text);
    border-radius: 6px;
    position: relative;
}

.nav a:hover,
.nav a.active {
    color: var(--primary);
    background: rgba(139, 0, 0, 0.05);
}

.nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ===== 轮播图 ===== */
.banner {
    position: relative;
    height: 550px;
    overflow: hidden;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    background-size: cover;
    background-position: center;
}

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

.banner-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.5));
}

.banner-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
}

.banner-content h2 {
    font-size: 56px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    letter-spacing: 8px;
    animation: fadeInUp 1s ease;
}

.banner-content p {
    font-size: 22px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
    letter-spacing: 3px;
    animation: fadeInUp 1s ease 0.3s both;
}

.banner-btn {
    display: inline-block;
    padding: 14px 40px;
    background: var(--primary);
    color: var(--white);
    border: 2px solid var(--gold);
    border-radius: 50px;
    font-size: 18px;
    letter-spacing: 2px;
    animation: fadeInUp 1s ease 0.6s both;
}

.banner-btn:hover {
    background: var(--gold);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.banner-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

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

.banner-dot.active {
    background: var(--gold);
    transform: scale(1.3);
}

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

/* ===== 通用区块 ===== */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 38px;
    color: var(--primary);
    margin-bottom: 15px;
    letter-spacing: 4px;
    position: relative;
    display: inline-block;
}

.section-title h2::before,
.section-title h2::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 60px;
    height: 2px;
    background: var(--gold);
}

.section-title h2::before {
    left: -80px;
}

.section-title h2::after {
    right: -80px;
}

.section-title p {
    font-size: 16px;
    color: var(--text-light);
    letter-spacing: 2px;
}

/* ===== 关于我们 ===== */
.about {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    transition: transform 0.5s;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-image::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 2px solid var(--gold);
    border-radius: 8px;
    pointer-events: none;
}

.about-content h3 {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.about-content p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 18px;
    text-align: justify;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: var(--cream);
    border-radius: 8px;
    border-left: 4px solid var(--gold);
}

.about-feature .icon {
    font-size: 28px;
}

.about-feature span {
    font-size: 15px;
    color: var(--text);
    font-weight: bold;
}

/* ===== 产品中心 ===== */
.products {
    background: var(--cream);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 15px;
    background: var(--primary);
    color: var(--white);
    font-size: 12px;
    border-radius: 20px;
    letter-spacing: 1px;
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-info h3 {
    font-size: 18px;
    color: var(--text);
    margin-bottom: 8px;
}

.product-info p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
    height: 40px;
    overflow: hidden;
}

.product-price {
    font-size: 22px;
    color: var(--primary);
    font-weight: bold;
}

.product-price span {
    font-size: 14px;
    color: var(--text-light);
    font-weight: normal;
}

/* ===== 酿造工艺 ===== */
.craft {
    background: var(--brown);
    color: var(--white);
}

.craft .section-title h2 {
    color: var(--gold);
}

.craft .section-title p {
    color: rgba(255,255,255,0.7);
}

.craft-timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.craft-item {
    text-align: center;
    position: relative;
}

.craft-item:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -25px;
    top: 120px;
    font-size: 30px;
    color: var(--gold);
}

.craft-image {
    width: 200px;
    height: 200px;
    margin: 0 auto 25px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--gold);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}

.craft-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.craft-step {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    background: var(--gold);
    color: var(--brown);
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

.craft-item h3 {
    font-size: 22px;
    color: var(--gold);
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.craft-item p {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
}

/* ===== 定制服务 ===== */
.custom {
    background: var(--white);
}

.custom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.custom-content h3 {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.custom-content > p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 25px;
    text-align: justify;
}

.custom-list {
    list-style: none;
}

.custom-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 18px;
    padding: 15px;
    background: var(--cream);
    border-radius: 8px;
    transition: all 0.3s;
}

.custom-list li:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow);
}

.custom-list .num {
    flex-shrink: 0;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    font-weight: bold;
}

.custom-list h4 {
    font-size: 17px;
    color: var(--text);
    margin-bottom: 5px;
}

.custom-list p {
    font-size: 14px;
    color: var(--text-light);
}

.custom-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.custom-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

/* ===== 新闻资讯 ===== */
.news {
    background: var(--cream);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.news-image {
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.news-card:hover .news-image img {
    transform: scale(1.08);
}

.news-content {
    padding: 25px;
}

.news-date {
    font-size: 13px;
    color: var(--gold);
    margin-bottom: 10px;
    font-weight: bold;
}

.news-content h3 {
    font-size: 18px;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-content p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-more {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary);
    font-size: 14px;
    font-weight: bold;
}

.news-more:hover {
    color: var(--gold);
}

/* ===== 联系我们 ===== */
.contact {
    background: var(--white);
}

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

.contact-info h3 {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 25px;
    letter-spacing: 2px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px dashed #eee;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    font-size: 22px;
}

.contact-item h4 {
    font-size: 17px;
    color: var(--text);
    margin-bottom: 5px;
}

.contact-item p {
    font-size: 15px;
    color: var(--text-light);
}

.contact-form {
    background: var(--cream);
    padding: 40px;
    border-radius: 12px;
}

.contact-form h3 {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 25px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: var(--text);
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s;
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 17px;
    cursor: pointer;
    letter-spacing: 3px;
    transition: all 0.3s;
}

.submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* ===== 页脚 ===== */
.footer {
    background: var(--brown);
    color: rgba(255,255,255,0.8);
    padding: 50px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about img {
    height: 60px;
    width: 60px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    margin-bottom: 15px;
}

.footer-about h3 {
    color: var(--gold);
    font-size: 20px;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.footer-about p {
    font-size: 14px;
    line-height: 1.8;
}

.footer-col h4 {
    color: var(--gold);
    font-size: 17px;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

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

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

.footer-col a:hover {
    color: var(--gold);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
}

.footer-bottom a {
    color: rgba(255,255,255,0.6);
}

.footer-bottom a:hover {
    color: var(--gold);
}

/* ===== 底部固定拨号按钮 ===== */
.call-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--white);
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 2px;
    z-index: 999;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
    text-decoration: none;
    transition: all 0.3s;
}

.call-bar:hover {
    background: linear-gradient(135deg, var(--gold), #B8960C);
    color: var(--primary);
}

.call-bar .phone-icon {
    font-size: 22px;
    animation: phoneShake 1.5s ease infinite;
}

@keyframes phoneShake {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(15deg); }
    75% { transform: rotate(-15deg); }
}

/* ===== 页面头部横幅（内页） ===== */
.page-banner {
    height: 300px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(62, 39, 35, 0.7);
}

.page-banner-content {
    position: relative;
    z-index: 2;
}

.page-banner h2 {
    font-size: 42px;
    letter-spacing: 6px;
    margin-bottom: 10px;
}

.page-banner p {
    font-size: 16px;
    letter-spacing: 3px;
    opacity: 0.9;
}

.breadcrumb {
    background: var(--cream);
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.breadcrumb .container {
    font-size: 14px;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--primary);
}

.breadcrumb a:hover {
    color: var(--gold);
}

/* ===== 响应式 ===== */
@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .craft-timeline {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .craft-item:not(:last-child)::after {
        display: none;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
        gap: 5px;
    }
    
    .nav.open {
        display: flex;
    }
    
    .nav a {
        padding: 12px 15px;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .banner {
        height: 400px;
    }
    
    .banner-content h2 {
        font-size: 36px;
        letter-spacing: 4px;
    }
    
    .banner-content p {
        font-size: 16px;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .section-title h2::before,
    .section-title h2::after {
        width: 30px;
    }
    
    .section-title h2::before {
        left: -45px;
    }
    
    .section-title h2::after {
        right: -45px;
    }
    
    .about-grid,
    .custom-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .product-image {
        height: 200px;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .page-banner {
        height: 200px;
    }
    
    .page-banner h2 {
        font-size: 28px;
    }
    
    .contact-form {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .banner-content h2 {
        font-size: 28px;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .logo-text h1 {
        font-size: 18px;
    }
    
    .logo-text p {
        font-size: 10px;
    }
}
