/* 全局样式 */
:root {
    --primary-color: #1a4d2e;
    --secondary-color: #ff4d4d;
    --accent-color: #d4b59e;
    --text-color: #333;
    --light-bg: #f5f5f5;
    --white: #ffffff;
    --error-color: #dc3545;
    --success-color: #28a745;
    --border-color: #ddd;
    --header-height: 80px;
    --container-width: 100%;
    --max-container-width: 2000px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

.container {
    width: var(--container-width);
    max-width: var(--max-container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
.main-header {
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
    padding: 0 40px;
    position: relative;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    color: var(--text-color);
}

.logo img {
    height: 78px;
    padding: 10px 0;
}

/* 导航栏样式 */
.main-nav {
    display: flex;
    align-items: center;
}

.main-nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px; /* 从40px减小到30px，减少水平间距 */
}

.main-nav li {
    margin: 0;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 16px;
    padding: 4px 0; /* 从8px减小到4px */
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    position: relative;
    line-height: 1.2; /* 添加行高控制 */
}

.main-nav a span {
    font-size: 16px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.main-nav a:hover span,
.main-nav a.active span {
    color: var(--primary-color);
    font-weight: 700;
    transform: translateY(-2px);
    text-shadow: 0 2px 4px rgba(26, 77, 46, 0.1);
}

.main-nav a.active span {
    color: var(--primary-color);
    font-weight: 700;
}

/* 产品选择器样式 */
.products-selector {
    position: relative;
}

.products-selector a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0; /* 从8px减小到4px */
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2; /* 添加行高控制 */
}

.products-selector a i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.products-selector:hover a i {
    transform: rotate(180deg);
}

.products-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    min-width: 308px;
    width: max-content;
    z-index: 1000;
    margin-top: 2px;
    flex-direction: column;
    max-height: none;
    overflow-y: visible;
}

.products-selector:hover .products-dropdown,
.products-dropdown:hover {
    display: flex;
}

/* 为桌面版添加更稳定的hover体验 */
@media (min-width: 769px) {
    .products-selector {
        position: relative;
    }
    
    .products-selector::before {
        content: '';
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        height: 2px;
        background: transparent;
        z-index: 999;
    }
    
    .products-dropdown {
        transition: opacity 0.2s ease, visibility 0.2s ease;
    }
    
    .products-selector:not(:hover) .products-dropdown {
        opacity: 0;
        visibility: hidden;
        transition-delay: 0.1s;
    }
}

.products-dropdown a {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    font-weight: 400;
    white-space: nowrap;
}

.products-dropdown a:last-child {
    border-bottom: none;
}

.products-dropdown a:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
    font-weight: 500;
}

/* 语言选择器样式 */
.language-selector {
    position: relative;
    margin-left: 30px; /* 从40px减小到30px，与导航项间距一致 */
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0; /* 从8px减小到4px */
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2; /* 添加行高控制 */
}

.lang-btn i {
    font-size: 14px;
}

.current-lang-text {
    margin: 0 4px;
    font-size: 16px;
}

.language-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    min-width: 150px;
    z-index: 1000;
    margin-top: 2px;
    flex-direction: column;
}

/* 桌面端hover规则 - 只在桌面端生效 */
@media (min-width: 1025px) {
    .language-selector:hover .language-dropdown,
    .language-dropdown:hover {
        display: flex;
    }
}

/* 为桌面版添加更稳定的hover体验 */
@media (min-width: 1025px) {
    .language-selector {
        position: relative;
    }
    
    .language-selector::before {
        content: '';
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        height: 2px;
        background: transparent;
        z-index: 999;
    }
    
    .language-dropdown {
        transition: opacity 0.2s ease, visibility 0.2s ease;
    }
    
    .language-selector:not(:hover) .language-dropdown {
        opacity: 0;
        visibility: hidden;
        transition-delay: 0.1s;
    }
}

/* 平板端特殊处理 - 覆盖移动端规则 */
@media (min-width: 481px) and (max-width: 1024px) {
    .language-selector {
        position: relative !important;
        margin-left: 40px !important;
    }
    
    /* 完全禁用hover效果，只依赖点击 */
    .language-selector:hover .language-dropdown,
    .language-dropdown:hover,
    .language-selector:hover .language-dropdown:hover {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    /* 强制覆盖桌面端的transition规则 */
    .language-selector:not(:hover) .language-dropdown {
        transition: none !important;
        transition-delay: 0s !important;
    }
    
    .language-dropdown {
        position: absolute !important;
        top: 100% !important;
        right: 0 !important;
        left: auto !important;
        background: white !important;
        border: 1px solid var(--border-color) !important;
        border-radius: 4px !important;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
        min-width: 150px !important;
        max-width: none !important;
        width: auto !important;
        height: auto !important;
        max-height: 300px !important; /* 固定高度确保滚动正常工作 */
        z-index: 1000 !important;
        margin-top: 2px !important;
        flex-direction: column !important;
        overflow-y: scroll !important; /* 强制显示滚动条 */
        -webkit-overflow-scrolling: touch !important;
        transform: none !important;
        /* 默认隐藏 */
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }
    
    /* 最高优先级：active状态时显示，覆盖所有hover规则和桌面端规则 */
    .language-selector.active .language-dropdown,
    .language-selector.active:hover .language-dropdown,
    .language-selector.active:not(:hover) .language-dropdown,
    .language-selector.active .language-dropdown:not(:hover),
    .language-selector.active .language-dropdown:hover {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
        transition: none !important;
        transition-delay: 0s !important;
    }
    
    /* 额外的强制覆盖规则 */
    .language-selector.active .language-dropdown {
        visibility: visible !important;
    }
    
    /* 强制覆盖所有可能的隐藏规则 - 最高优先级 */
    .language-selector.active .language-dropdown {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto !important;
    }
    
    /* 覆盖移动端的语言下拉菜单样式 */
    .language-dropdown a {
        padding: 12px 15px !important;
        font-size: 16px !important;
        min-height: 44px !important; /* 确保触摸友好的高度 */
        height: 44px !important; /* 固定高度使滚动更可预测 */
        border-bottom: 1px solid var(--border-color) !important;
        background: transparent !important;
        color: var(--text-color) !important;
        display: flex !important;
        align-items: center !important;
        box-sizing: border-box !important;
    }
    
    .language-dropdown a:hover {
        background: var(--light-bg) !important;
        color: var(--primary-color) !important;
    }
    
    /* 终极覆盖规则 - 确保平板端active状态下visibility一定是visible */
    .language-selector.active .language-dropdown {
        visibility: visible !important;
        display: flex !important;
        opacity: 1 !important;
        z-index: 1000 !important; /* 提高z-index确保在最上层 */
        pointer-events: auto !important; /* 确保可以接收鼠标事件 */
    }
    
    /* 平板端语言下拉菜单滚动条样式 */
    .language-dropdown::-webkit-scrollbar {
        width: 8px; /* 增加滚动条宽度，更容易触摸 */
    }
    
    .language-dropdown::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 4px;
    }
    
    .language-dropdown::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 4px;
        border: 1px solid #f1f1f1;
    }
    
    .language-dropdown::-webkit-scrollbar-thumb:hover {
        background: #a1a1a1;
    }
    
    /* 确保滚动正常工作的额外规则 */
    .language-dropdown {
        scroll-behavior: smooth !important; /* 平滑滚动 */
        scrollbar-width: thin !important; /* Firefox滚动条 */
        scrollbar-color: #c1c1c1 #f1f1f1 !important; /* Firefox滚动条颜色 */
        touch-action: pan-y !important; /* 允许触摸滚动 */
    }
}

/* 全局强制规则 - 确保平板端active状态下的visibility */
@media (min-width: 481px) and (max-width: 1024px) {
    /* 语言选择器激活状态样式 - 强制覆盖所有其他规则 */
    .language-selector.active .language-dropdown {
        visibility: visible !important;
        display: flex !important;
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        pointer-events: auto !important; /* 确保可以接收鼠标事件 */
        z-index: 1000 !important; /* 提高z-index确保在最上层 */
        position: absolute !important; /* 确保绝对定位 */
        top: 100% !important; /* 确保位置正确 */
        right: 0 !important; /* 确保位置正确 */
        animation: none !important; /* 禁用所有动画 */
        overflow-y: auto !important; /* 确保可滚动 */
        height: auto !important; /* 使用实际内容高度 */
        max-height: 280px !important; /* 8个语言选项 × 35px每项 = 280px */
        padding: 0 !important; /* 移除内边距 */
        margin: 0 !important; /* 移除外边距 */
    }
    
    /* 完全禁用hover效果，只依赖click事件和active类 */
    .language-selector:hover:not(.active) .language-dropdown {
        visibility: hidden !important;
        display: none !important;
        opacity: 0 !important;
    }
    
    /* 禁用所有可能的过渡效果 */
    .language-dropdown {
        transition: none !important;
    }
    
    /* 确保语言选项可点击 */
    .language-dropdown a {
        pointer-events: auto !important;
    }
}

.language-dropdown a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
    border-bottom: 1px solid var(--border-color);
    font-size: 16px;
}

.language-dropdown a:last-child {
    border-bottom: none !important; /* 确保最后一个选项没有底部边框 */
}

.language-dropdown a:hover {
    background: var(--light-bg);
    color: var(--primary-color);
}

/* 确保主导航栏中的语言选项正确显示 */
.main-nav .language-selector {
    display: block;
}

.main-nav .language-dropdown li {
    width: 100%;
}

/* 移动端响应式调整 */
@media (max-width: 768px) {
    .language-selector {
        margin-left: 0;
    }
    
    .language-dropdown {
        width: 200px;
        right: -75px;
        max-height: 80vh !important;
        overflow-y: scroll !important;
        -webkit-overflow-scrolling: touch !important;
        /* 确保所有语言选项都可见 */
        min-height: 350px !important;
        height: auto !important;
    }
}

/* 询价按钮 */
.inquiry-btn .btn-primary {
    background: var(--secondary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.inquiry-btn .btn-primary:hover {
    background: #cc0000 !important;
}

/* 主横幅 */
.hero-banner {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('images/kingstartea-home-banner.jpg');
    background-size: cover;
    background-position: center;
    height: 504px;
    display: flex;
    align-items: center;
    color: white;
    margin-top: var(--header-height);
}

.banner-content {
    text-align: center;
    max-width: 850px;
    margin: 0 auto;
}

.banner-content h1 {
    font-size: 3.5em;
    margin-bottom: 30px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.banner-content h2 {
    font-size: 2em;
    margin-bottom: 50px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.banner-content p {
    font-size: 1.2em;
    margin: 39px 0;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

@media (max-width: 1024px) {
    .banner-content p {
        margin: 39px 0;
    }
}

@media (max-width: 768px) {
    .banner-content p {
        margin: 39px 0;
    }
}

.banner-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-primary, .btn-secondary {
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn-primary {
    background: #037b2a;
    color: white;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-primary:hover {
    background: #cc0000 !important;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
}

/* 特色产品 */
.featured-products {
    padding: 80px 0;
    background: var(--light-bg);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2em;
    color: var(--primary-color);
}

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

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card .image-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.product-card .product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.5s ease;
}

.product-card .product-image.hover-image {
    opacity: 0;
}

.product-card:hover .product-image.main-image {
    opacity: 0;
}

.product-card:hover .product-image.hover-image {
    opacity: 1;
}

.product-card h3 {
    padding: 20px;
    margin: 0;
    font-size: 1.2em;
    text-align: center;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card p {
    padding: 0 20px;
    color: #666;
    margin-bottom: 20px;
    text-align: center;
}

.btn-view {
    display: block;
    text-align: center;
    padding: 15px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    transition: background-color 0.3s;
}

.btn-view:hover {
    background: #133d24;
}

/* 关于我们 */
.about-section {
    padding: 80px 0;
    background: var(--white);
}

.about-content {
    width: var(--container-width);
    max-width: var(--max-container-width);
    margin: 0 auto;
    padding: 0 8%;
    display: flex;
    flex-direction: column;
}

.about-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 48px;
    padding: 40px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.about-text {
    padding-right: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.about-text h2 {
    color: var(--primary-color);
    font-size: 2.5em;
    margin-bottom: 30px;
}

.about-text p {
    color: var(--text-color);
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 15px;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    width: 100%;
}

.feature {
    text-align: center;
    padding: 20px;
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature i {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: inline-block;
    background: rgba(26, 77, 46, 0.1);
    width: 100px;
    height: 100px;
    line-height: 100px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.feature:hover i {
    background: var(--primary-color);
    color: white;
    transform: rotate(360deg);
}

.feature h3 {
    color: #333;
    font-size: 1.5em;
    margin-bottom: 15px;
    font-weight: 600;
}

.feature p {
    color: #666;
    font-size: 1em;
    line-height: 1.6;
    margin: 0;
}

.about-image {
    width: 80%;
    height: 80%;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin: auto;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.btn-learn-more {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    align-self: flex-end;
    margin-top: 10px;
}

.btn-learn-more:hover {
    background-color: #037b2a;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .about-content {
        padding: 0 5%;
    }
    
    .about-main {
        gap: 60px;
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .about-content {
        padding: 0 20px;
    }
    
    .about-main {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 20px;
    }

    .about-text {
        padding-right: 0;
        height: auto;
    }
    
    .about-image {
        width: 90%;
        height: auto;
        margin: 20px auto 0;
    }
    
    .btn-learn-more {
        padding: 7.5px 20px;
        font-size: 0.8em;
        align-self: flex-end;
        margin-right: 3px;
        margin-top: 5px;
    }

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

    .feature {
        padding: 15px;
    }

    .feature i {
        width: 80px;
        height: 80px;
        line-height: 80px;
        font-size: 2.5em;
    }

    .feature h3 {
        font-size: 1.3em;
    }
}

/* 生产流程部分 */
.process-section {
    padding: 80px 0;
    background: #f5f5f5;
    overflow-x: auto;
}

.process-section .container {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.5em;
    color: #1a4d2e;
    text-align: center;
    margin-bottom: 50px;
}

.process-wrapper {
    padding: 20px 0;
    width: 100%;
}

.process-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 36px;
    width: auto;
    min-width: 0;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    justify-content: flex-start;
    align-items: flex-start;
    padding: 40px 0;
}

.process-item {
    flex: 0 0 180px;
    width: 180px;
    height: 420px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    background: white;
    overflow: hidden;
}

.process-item:hover {
    transform: translateY(-5px);
}

.process-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

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

.process-content {
    padding: 15px;
}

.process-content h3 {
    color: #1a4d2e;
    font-size: 1em;
    margin-bottom: 8px;
    text-align: center;
}

.process-content p {
    color: #666;
    font-size: 0.85em;
    line-height: 1.4;
    text-align: center;
    margin: 0;
}

/* 响应式布局 */
@media (max-width: 1200px) {
    .process-grid {
        gap: 18px;
    }
    .process-item {
        flex: 0 0 150px;
        width: 150px;
        height: 350px;
    }
}

@media (max-width: 1024px) {
    .process-grid {
        gap: 10px;
    }
    .process-item {
        flex: 0 0 calc(33.333% - 10px);
        width: calc(33.333% - 10px);
        height: 300px;
    }
}

@media (max-width: 600px) {
    .process-item {
        flex: 0 0 100%;
        width: 100%;
        height: 220px;
    }
    
    .process-image {
        height: 120px;
    }
}

/* 合作伙伴 */
.partners-section {
    padding: 80px 0;
    background: var(--light-bg);
}

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

.partners-grid img {
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
    transition: filter 0.3s;
}

/* 新闻博客 */
.news-section {
    padding: 80px 0;
}

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

.news-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

.news-content {
    padding: 20px;
}

.news-content h3 {
    margin-bottom: 10px;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

/* 页脚 */
.main-footer {
    background: #333;
    color: white;
    padding: 60px 0 20px;
}

/* 移动端脚部样式优化 */
@media (max-width: 768px) {
    .main-footer {
        padding: 25px 0 15px;
        margin-top: 10px;
        min-height: auto;
        overflow: visible;
        width: 100%;
    }
    
    .social-links {
        justify-content: center;
        margin-top: 10px;
        flex-wrap: wrap;
    }
    
    .social-links a {
        width: 50px;
        height: 50px;
        font-size: 20px;
        margin: 5px;
    }
    
    .footer-bottom {
        padding-top: 15px;
        font-size: 15px;
        margin-top: 10px;
    }
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
    width: 100%;
    overflow: visible;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 1.2em;
    color: white;
    display: block;
}

.footer-section p {
    color: white;
    margin-bottom: 10px;
    line-height: 1.6;
}

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

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

.footer-section a {
    color: white;
    text-decoration: none;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.social-links a:hover {
    background: var(--primary-color);
}

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

/* 手机导航菜单按钮 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
    padding: 10px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
}

.mobile-menu-btn:hover {
    color: var(--secondary-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* 1. 显示手机菜单按钮，隐藏桌面导航 */
    .mobile-menu-btn {
        display: block;
        color: var(--primary-color) !important;
    }
    
    .main-header .container {
        padding: 0 20px;
    }
    
    .logo {
        position: absolute;
        left: 10px;
        top: 30%;
        transform: translateY(-30%);
    }
    
    .logo img {
        height: 75px;
    }
    
    .main-nav {
        width: 100%;
    }
    
    .main-nav ul {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        box-shadow: 0 4px 20px rgba(0,0,0,0.15);
        z-index: 999;
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
        border-top: 1px solid var(--border-color);
        -webkit-overflow-scrolling: touch;
    }
    
    .main-nav ul.show {
        display: flex;
    }
    
    .main-nav li {
        margin: 0;
        border-bottom: none;
        padding: 0;
        line-height: 1;
    }
    
    .main-nav li:last-child {
        border-bottom: none;
    }
    
    .main-nav a {
        padding: 6px 11px;
        display: block;
        color: var(--text-color);
        font-size: 14px;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        line-height: 1.4;
        margin: 0;
        text-align: left;
        width: 100%;
        box-sizing: border-box;
    }
    
    .main-nav a:hover,
    .main-nav a.active {
        background: var(--light-bg);
        color: var(--primary-color);
    }
    
    .products-selector {
        position: relative;
        margin: 0;
        border-top: none;
    }

    .products-selector a {
        justify-content: space-between;
        padding: 6px 11px !important;
        font-weight: 500;
        font-size: 14px;
        color: var(--text-color);
        background: none;
        border: none;
        border-radius: 0;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 8px;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        line-height: 1.4;
        text-align: left;
        width: 100%;
        box-sizing: border-box;
    }

    .products-selector a i {
        font-size: 10px;
        transition: transform 0.3s ease;
        padding: 8px;
        margin: -8px -8px -8px 8px;
        border-radius: 4px;
        cursor: pointer;
    }

    .products-dropdown {
        position: static;
        display: none;
        background: var(--light-bg);
        border: 1px solid var(--border-color);
        border-radius: 4px;
        margin: 5px 15px;
        max-height: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        width: calc(100% - 30px);
        box-sizing: border-box;
    }

    .products-selector.active .products-dropdown {
        display: flex;
    }

    .products-selector.active a i {
        transform: rotate(180deg);
    }

    .products-dropdown a {
        padding: 12px 20px !important;
        color: var(--text-color) !important;
        background: transparent !important;
        border: none !important;
        border-bottom: 1px solid var(--border-color) !important;
        border-radius: 0 !important;
        margin: 0 !important;
        font-size: 14px !important;
        font-weight: 400 !important;
        gap: 0 !important;
        justify-content: flex-start !important;
        text-align: left !important;
        width: 100% !important;
        box-sizing: border-box !important;
        display: block !important;
        line-height: 1.4 !important;
    }

    .products-dropdown a:last-child {
        border-bottom: none !important;
    }

    .products-dropdown a:hover,
    .products-dropdown a:active {
        background: rgba(26, 77, 46, 0.1) !important;
        color: var(--primary-color) !important;
        font-weight: 500 !important;
    }
    
    .language-selector {
        margin-left: 0;
        border-top: none;
        position: relative;
        z-index: 1001;
    }
    
    .lang-btn {
        padding: 6px 11px !important;
        font-weight: 500;
        font-size: 14px;
        line-height: 1.4;
        cursor: pointer;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
        margin: 0;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        text-align: left;
        width: 100%;
        box-sizing: border-box;
        display: block;
    }
    
    .language-dropdown {
        display: none;
        position: static;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        border: 1px solid var(--border-color);
        background: var(--light-bg);
        margin: 5px 15px;
        border-radius: 4px;
        max-height: 60vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: rgba(0,0,0,0.3) transparent;
        /* 确保在移动端有足够的滚动区域 */
        overscroll-behavior: contain;
        /* 强制显示滚动条 */
        overflow-y: scroll !important;
        /* 确保所有内容都可见 */
        min-height: auto;
        height: auto;
        /* 确保下拉菜单不被父容器裁剪 */
        z-index: 1002;
        /* 修复iOS上的滚动问题 */
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        /* 移动端特定优化 */
        position: relative;
        will-change: transform;
        /* 确保内容不会被裁剪 */
        contain: none;
        width: calc(100% - 30px);
        box-sizing: border-box;
    }
    
    /* 自定义滚动条样式 */
    .language-dropdown::-webkit-scrollbar {
        width: 6px;
    }
    
    .language-dropdown::-webkit-scrollbar-track {
        background: rgba(0,0,0,0.1);
        border-radius: 3px;
    }
    
    .language-dropdown::-webkit-scrollbar-thumb {
        background: rgba(0,0,0,0.3);
        border-radius: 3px;
    }
    
    .language-dropdown::-webkit-scrollbar-thumb:hover {
        background: rgba(0,0,0,0.5);
    }
    
    .language-selector.active .language-dropdown {
        display: block;
    }
    
    .language-dropdown a {
        padding: 12px 20px;
        font-size: 14px;
        font-weight: 400;
        border-bottom: 1px solid var(--border-color);
        cursor: pointer;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
        min-height: 44px;
        display: flex;
        align-items: center;
        flex-shrink: 0;
        /* 确保在iOS上有良好的触摸体验 */
        touch-action: manipulation;
        /* 防止选择时的闪烁 */
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        /* 确保每个选项都完全可见 */
        width: 100%;
        box-sizing: border-box;
        /* 确保所有语言选项都可见 */
        white-space: nowrap;
        overflow: visible;
        text-align: left;
        line-height: 1.4;
    }
    
    /* 为语言选项添加活跃状态 */
    .language-dropdown a:active {
        background-color: rgba(0,0,0,0.1);
        transform: scale(0.98);
        transition: all 0.1s ease;
    }
    
        /* 移动端语言下拉菜单特别优化 */
    @media (max-width: 480px) {
                  .language-dropdown {
              height: 330px !important;
              max-height: 330px !important;
            overflow-y: scroll !important;
            -webkit-overflow-scrolling: touch !important;
            /* 确保下拉菜单完全可见 */
            position: fixed !important;
            top: 45% !important;
            left: 15px !important;
            right: 15px !important;
            transform: translateY(-50%) !important;
            background: white !important;
            border: 2px solid #333 !important;
            border-radius: 8px !important;
            box-shadow: 0 8px 30px rgba(0,0,0,0.3) !important;
            z-index: 10000 !important;
            /* 防止滚动冒泡 */
            overscroll-behavior: contain !important;
        }
        
        .language-dropdown a {
            min-height: 40px !important;
            height: 40px !important;
            padding: 10px 20px !important;
            font-size: 14px !important;
            display: flex !important;
            align-items: center !important;
            width: 100% !important;
            box-sizing: border-box !important;
            white-space: nowrap !important;
            border-bottom: 1px solid #eee !important;
        }
        
        /* 确保非激活状态下语言面板隐藏 - 加强版 */
        .language-selector:not(.active) .language-dropdown {
            display: none !important;
            visibility: hidden !important;
            opacity: 0 !important;
            pointer-events: none !important;
            transform: translateY(-50%) scale(0) !important;
        }
        
        .language-selector.active .language-dropdown {
            display: block !important;
            visibility: visible !important;
            opacity: 1 !important;
            pointer-events: auto !important;
            transform: translateY(-50%) scale(1) !important;
        }
        
        /* 强制显示所有8个语言选项 */
        .language-dropdown a:nth-child(1),
        .language-dropdown a:nth-child(2),
        .language-dropdown a:nth-child(3),
        .language-dropdown a:nth-child(4),
        .language-dropdown a:nth-child(5),
        .language-dropdown a:nth-child(6),
        .language-dropdown a:nth-child(7),
        .language-dropdown a:nth-child(8) {
            display: flex !important;
            visibility: visible !important;
            opacity: 1 !important;
        }
    }
      
      /* 通用移动端语言下拉菜单优化 */
      @media (max-width: 768px) {
          /* 确保移动端导航菜单不限制语言下拉菜单 */
          .main-nav ul.show {
              overflow: visible !important;
              max-height: none !important;
              height: auto !important;
          }
          
          .language-selector {
              position: relative !important;
              overflow: visible !important;
              z-index: 1001 !important;
          }
          
          .language-dropdown {
              /* 确保有足够高度显示所有8个语言选项 */
              height: 330px !important;
              max-height: 330px !important;
              overflow-y: scroll !important;
              -webkit-overflow-scrolling: touch !important;
              /* 确保下拉菜单不被父容器限制 */
              position: fixed !important;
              top: 50% !important;
              left: 20px !important;
              right: 20px !important;
              transform: translateY(-50%) !important;
              width: auto !important;
              background: white !important;
              border: 2px solid #333 !important;
              border-radius: 8px !important;
              box-shadow: 0 8px 30px rgba(0,0,0,0.3) !important;
              z-index: 10000 !important;
              /* 强制启用滚动 */
              overflow: auto !important;
              /* 确保触摸滚动在iOS上正常工作 */
              -webkit-overflow-scrolling: touch !important;
              /* 防止滚动事件冒泡 */
              overscroll-behavior: contain !important;
          }
          
          .language-selector.active .language-dropdown {
              display: block !important;
              visibility: visible !important;
          }
          
          .language-selector:not(.active) .language-dropdown {
              display: none !important;
              visibility: hidden !important;
          }
          
          .language-dropdown a {
              /* 确保每个语言选项都有足够的高度和可见性 */
              min-height: 45px !important;
              height: 45px !important;
              padding: 12px 25px !important;
              display: flex !important;
              align-items: center !important;
              width: 100% !important;
              box-sizing: border-box !important;
              font-size: 15px !important;
              font-weight: 600 !important;
              border-bottom: 1px solid #eee !important;
              /* 强制显示每个选项 */
              visibility: visible !important;
              opacity: 1 !important;
              overflow: visible !important;
              /* 确保文本不换行 */
              white-space: nowrap !important;
              /* 防止选择时的默认行为 */
              -webkit-tap-highlight-color: transparent !important;
              /* 确保可以被触摸 */
              pointer-events: auto !important;
          }
          
          .language-dropdown a:last-child {
              border-bottom: none !important;
          }
          
          .language-dropdown a:hover,
          .language-dropdown a:active {
              background-color: #f0f0f0 !important;
          }
      }
      
          /* 2. 主页产品卡片居中和间距调整 */
    .product-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 0 0.5%;
    }

    .product-card {
        text-align: center;
        margin: 10px auto;
        width: 100%;
        max-width: 400px;
        padding: 0;
    }
    
    .product-card .image-container {
        width: min(380px, calc(98vw - 5px));
        height: min(380px, calc(98vw - 5px));
        margin: 0 auto;
        aspect-ratio: 1;
    }
    
    .product-card h3 {
        padding: 8px 1px;
        font-size: 1.3em;
        font-weight: 600;
    }
    
    .product-card p {
        padding: 0 1px;
        margin-bottom: 8px;
        font-size: 1.1em;
        line-height: 1.5;
    }
    
    /* 移动端按钮字体调整 */
    .btn-view {
        font-size: 1em;
        padding: 12px 15px;
    }
    
    /* 产品图片滑动优化（移动端和桌面端） */
    .product-card .image-container {
        touch-action: pan-y; /* 允许垂直滚动，限制水平滑动 */
        user-select: none; /* 防止文本选择 */
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        cursor: grab; /* 桌面端显示可拖拽光标 */
    }
    
    .product-card .image-container:active {
        cursor: grabbing; /* 拖拽时的光标 */
        transform: scale(0.98); /* 轻微缩放反馈 */
        transition: transform 0.1s ease;
    }
    
    .product-card .product-image {
        transition: opacity 0.3s ease;
        -webkit-transition: opacity 0.3s ease;
        pointer-events: none; /* 防止图片本身的拖拽 */
    }
    
    /* 滑动提示（移动端和桌面端） */
    .product-card .image-container::after {
        content: "👆 轻触或滑动";
        position: absolute;
        bottom: 8px;
        right: 8px;
        background: rgba(0, 0, 0, 0.7);
        color: white;
        padding: 4px 8px;
        border-radius: 12px;
        font-size: 0.75em;
        opacity: 0.8;
        pointer-events: none;
        z-index: 2;
    }
    
    /* 桌面端显示悬停提示 */
    @media (min-width: 769px) {
        .product-card .image-container::after {
            content: "🖱️ 悬停查看更多";
        }
        
        [lang="en"] .product-card .image-container::after {
            content: "🖱️ Hover to view";
        }
        
        [lang="es"] .product-card .image-container::after {
            content: "🖱️ Pasa el ratón para ver";
        }
        
        [lang="fr"] .product-card .image-container::after {
            content: "🖱️ Survolez pour voir";
        }
        
        [lang="de"] .product-card .image-container::after {
            content: "🖱️ Hover zum Anzeigen";
        }
        
        [lang="ru"] .product-card .image-container::after {
            content: "🖱️ Наведите для просмотра";
        }
        
        [lang="ko"] .product-card .image-container::after {
            content: "🖱️ 마우스를 올려 보기";
        }
        
        [lang="ja"] .product-card .image-container::after {
            content: "🖱️ ホバーして表示";
        }
    }
    
    /* 英文版本的提示 */
    [lang="en"] .product-card .image-container::after {
        content: "👆 Touch or swipe";
    }
    
    [lang="es"] .product-card .image-container::after {
        content: "👆 Toca o desliza";
    }
    
    [lang="fr"] .product-card .image-container::after {
        content: "👆 Touchez ou glissez";
    }
    
    [lang="de"] .product-card .image-container::after {
        content: "👆 Berühren oder wischen";
    }
    
    [lang="ru"] .product-card .image-container::after {
        content: "👆 Касание или смахивание";
    }
    
    [lang="ko"] .product-card .image-container::after {
        content: "👆 터치 또는 스와이프";
    }
    
    [lang="ja"] .product-card .image-container::after {
        content: "👆 タッチまたはスワイプ";
    }
    
    /* 3. 减少容器间距 */
    .featured-products {
        padding: 40px 0;
    }
    
    .about-section {
        padding: 40px 0;
    }
    
    .process-showcase {
        padding: 40px 0;
    }
    
    .testimonial-section {
        padding: 40px 0;
    }
    
    /* 4. 确保样式一致性 */
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-main {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .about-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature {
        padding: 20px;
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px 8px;
        min-height: auto;
        overflow: visible;
    }
    
    .footer-section {
        margin-bottom: 13px;
        padding: 0 5px;
        width: 100%;
        display: block !important;
        overflow: visible;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .footer-section h3 {
        font-size: 1.3em;
        margin-bottom: 13px;
        padding: 0 5px;
        color: white !important;
        display: block !important;
        visibility: visible !important;
    }
    
    .footer-section ul {
        display: block !important;
        visibility: visible !important;
        list-style: none;
    }
    
    .footer-section ul li {
        margin-bottom: 10px;
        display: block !important;
        visibility: visible !important;
    }
    
    .footer-section a {
        font-size: 1.1em;
        padding: 0 5px;
        color: white !important;
        display: block !important;
        visibility: visible !important;
        text-decoration: none;
    }
    
    .footer-section p {
        color: white !important;
        margin-bottom: 8px;
        padding: 0 5px;
        line-height: 1.6;
        display: block !important;
        visibility: visible !important;
    }
    
    /* 强制显示所有脚部容器 - 修正选择器 */
    .footer-content .footer-section:nth-child(1),
    .footer-content .footer-section:nth-child(2), 
    .footer-content .footer-section:nth-child(3),
    .footer-content .footer-section:nth-child(4) {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        overflow: visible !important;
        width: 100% !important;
        margin-bottom: 13px !important;
    }
    
    /* 确保版权信息显示 */
    .footer-bottom {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        padding-top: 15px;
        font-size: 15px;
        margin-top: 10px;
        text-align: center;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    
    .footer-bottom p {
        display: block !important;
        visibility: visible !important;
        color: white !important;
    }
    
        /* 6. 横幅高度调整 */
    .page-banner {
        padding: 40px 0 20px;
    }

    .page-banner h1 {
        font-size: 1.5em;
        margin-bottom: 8px;
        line-height: 1.3;
    }

    .page-banner p {
        font-size: 0.9em;
        padding: 0 2px;
        line-height: 1.4;
    }
    
    /* 手机版H1和H2字体调整 */
    .banner-content h1 {
        font-size: 1.8em;
    }
    
    .about-text h2 {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    
    .section-title {
        font-size: 1.5em;
        margin-bottom: 8px;
    }
    
    .products h2,
    .quality-assurance h2,
    .banner h2,
    .products-page .product-category h2,
    .products-banner h1,
    .product-details-container h1,
    .product-specs h2,
    .brewing-guide h2 {
        font-size: 1.6em;
    }
    
    /* 进一步缩小容器间距 */
    .featured-products {
        padding: 30px 0;
        margin: 5px 1px;
    }
    
    .about-section {
        padding: 30px 0;
        margin: 5px 1px;
    }
    
    .process-showcase {
        padding: 30px 0;
        margin: 5px 1px;
    }
    
    .testimonial-section {
        padding: 30px 0;
        margin: 5px 1px;
    }
    
    /* 其他元素间距调整 */
    .about-main {
        gap: 8px;
        padding: 1px;
    }
    
    .about-features {
        gap: 8px;
    }
    
    .hero-banner {
        height: 350px;
    }
    
    .banner-content {
        padding: 0 2px;
    }
    
    .banner-content h1 {
        margin-bottom: 10px;
    }
    
    .banner-content p {
        font-size: 1em;
        margin-bottom: 20px;
    }
    
    /* 大幅缩小容器边距 */
    .container {
        padding: 0 2px;
    }
    
    .about-content {
        padding: 0 2px;
    }
    
    .about-text {
        padding-right: 0;
        height: auto;
    }
    
    .about-image {
        width: 95%;
        height: auto;
        margin: 10px auto 0;
    }
    
    .btn-learn-more {
        padding: 7.5px 20px;
        font-size: 0.8em;
        align-self: flex-end;
        margin-right: 25px;
        margin-top: 1px;
        margin-bottom: 10px;
    }
    
    .about-text h2 {
        font-size: 1.5em;
        margin-bottom: 10px;
    }
    
    .about-text p {
        font-size: 1em;
        line-height: 1.6;
        margin-bottom: 8px;
        padding: 0 1px;
    }
    
    .feature {
        padding: 1px;
    }
    
    .feature h3 {
        font-size: 1.2em;
        margin-bottom: 8px;
    }
    
    .feature p {
        font-size: 0.9em;
        line-height: 1.4;
        padding: 0 1px;
    }
    
    /* 产品详情页面间距优化 */
    .product-gallery-container,
    .product-details-container {
        padding: 1px;
    }
    
    .product-description {
        margin: 5px 0;
        font-size: 0.9em;
        line-height: 1.5;
        padding: 0 1px;
    }
    
    .product-specs {
        margin: 5px 0;
        padding: 0 1px;
    }
    
    .spec-item {
        margin-bottom: 4px;
        padding: 2px 1px;
    }
    
    .brewing-guide {
        margin: 5px 0;
        padding: 0 1px;
    }
    
    .brewing-guide ul {
        padding-left: 8px;
        margin: 4px 0;
    }
    
    .brewing-guide li {
        margin-bottom: 3px;
        font-size: 0.9em;
        line-height: 1.4;
        padding: 0 1px;
    }
    
    /* 流程展示区域优化 */
    .process-box .content {
        padding: 1px;
    }
    
    .process-box .content h3 {
        font-size: 1.1em;
        margin-bottom: 6px;
    }
    
    .process-box .content p {
        font-size: 0.85em;
        line-height: 1.3;
    }
}

/* 平板端导航按钮行距优化 */
@media (max-width: 1024px) and (min-width: 481px) {
    /* 进一步缩窄平板端导航按钮行距 */
    .main-nav a {
        padding: 3px 0 !important; /* 再减少20%，从4px减到3px */
        line-height: 1 !important; /* 减小行高 */
        font-size: 14px !important; /* 减小字体大小，与语言菜单保持一致 */
    }
    
    .products-selector a {
        padding: 3px 0 !important; /* 再减少20%，从4px减到3px */
        line-height: 1 !important; /* 减小行高 */
        font-size: 14px !important; /* 减小字体大小，与其他菜单保持一致 */
    }
    
    .lang-btn {
        padding: 3px 0 !important; /* 再减少20%，从4px减到3px */
        line-height: 1 !important; /* 减小行高 */
        font-size: 14px !important; /* 减小字体大小，与其他菜单保持一致 */
    }
    
    /* 减小导航项目间的垂直间距 */
    .main-nav ul {
        gap: 24px !important; /* 再减少20%，从30px减到24px */
    }
    
    .language-selector {
        margin-left: 24px !important; /* 再减少20%，从30px减到24px */
    }
    
    /* 调整语言下拉菜单项的高度 */
    .language-dropdown a {
        padding: 10px 15px !important; /* 再减少20%，从12px减到10px */
        min-height: 35px !important; /* 再减少20%，从44px减到35px */
        height: 35px !important; /* 再减少20%，从44px减到35px */
        line-height: 1 !important; /* 减小行高 */
        font-size: 14px !important; /* 减小字体大小，从16px减到14px */
        box-sizing: border-box !important; /* 确保padding计入高度 */
        margin: 0 !important; /* 移除外边距 */
        flex-shrink: 0 !important; /* 防止项目被压缩 */
    }
    
    /* 调整语言下拉菜单的总高度，刚好容纳8个语言选项 */
    .language-dropdown {
        max-height: 280px !important; /* 8个语言选项 × 35px每项 = 280px */
        height: auto !important; /* 使用实际内容高度 */
        padding-bottom: 0 !important; /* 移除底部内边距 */
    }
    
    /* 调整产品下拉菜单项的高度和字体 */
    .products-dropdown a {
        padding: 10px 15px !important; /* 与语言菜单保持一致 */
        font-size: 14px !important; /* 与其他菜单保持一致 */
        line-height: 1 !important; /* 减小行高 */
    }
    
    /* 解决点击后菜单消失问题并调整大小 */
    .language-selector.active .language-dropdown {
        visibility: visible !important;
        display: flex !important;
        opacity: 1 !important;
        z-index: 1000 !important;
        pointer-events: auto !important;
        position: absolute !important;
        top: 100% !important;
        right: 0 !important;
        transition: none !important;
        animation: none !important;
        height: auto !important; /* 使用实际内容高度 */
        max-height: 280px !important; /* 刚好容纳8个语言选项 */
        padding: 0 !important; /* 移除内边距 */
        margin: 0 !important; /* 移除外边距 */
        overflow: hidden !important; /* 隐藏溢出内容 */
    }
    
    /* 禁用hover效果，只依赖click事件 */
    .language-selector:hover:not(.active) .language-dropdown {
        visibility: hidden !important;
        display: none !important;
        opacity: 0 !important;
    }
}

/* 平板响应式设计 */
@media (max-width: 1024px) and (min-width: 769px) {
    /* 平板H1和H2字体调整 */
    .banner-content h1 {
        font-size: 2.2em;
    }
    
    .about-text h2 {
        font-size: 2.2em;
    }
    
    .section-title {
        font-size: 2.2em;
        margin-bottom: 40px;
    }
    
    .products h2,
    .quality-assurance h2,
    .banner h2,
    .products-page .product-category h2,
    .products-banner h1,
    .product-details-container h1,
    .product-specs h2,
    .brewing-guide h2 {
        font-size: 2em;
    }
    
    .page-banner h1 {
        font-size: 1.4em;
    }
    
    /* 3. 平板容器间距调整 */
    .featured-products {
        padding: 50px 0;
    }
    
    .about-section {
        padding: 50px 0;
    }
    
    .process-showcase {
        padding: 50px 0;
    }
    
    .testimonial-section {
        padding: 50px 0;
    }
    
    .product-grid {
        gap: 25px;
    }
    
    /* 5. 产品页面图片比例调整 */
    .products-page .product-card .image-container {
        height: 200px;
    }
    
    .products-page .product-card .product-image {
        height: 200px;
        object-fit: cover;
    }
    
    /* 移动端产品页面字体调整 */
    .products-page .product-card .product-info h3 {
        font-size: 1.3em !important;
        font-weight: 600;
    }
    
    .products-page .product-card .product-info p {
        font-size: 1.1em !important;
        line-height: 1.5;
    }
}

/* RTL支持 */
[dir="rtl"] .main-nav ul {
    flex-direction: row-reverse;
}

[dir="rtl"] .language-dropdown {
    left: 0;
    right: auto;
}

[dir="rtl"] .current-lang i {
    margin-right: 0;
    margin-left: 5px;
}

/* 横幅区域 */
.banner {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('images/kingstartea-home-banner.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 126px 0 70px;
    text-align: center;
}

.banner h2 {
    font-size: 3em;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.banner p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
    font-weight: 500;
    border: 2px solid transparent;
}

.cta-button:hover {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white);
}

/* 特色区域 */
.features {
    padding: 80px 0;
    background-color: var(--white);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.feature-item {
    padding: 30px;
}

.feature-item i {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-item h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.5em;
}

/* 产品区域 */
.products {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.products h2 {
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-color);
    font-size: 2.5em;
}

.product-features {
    padding: 0 20px 20px;
    display: flex;
    gap: 15px;
}

.product-features span {
    font-size: 0.9em;
    color: var(--secondary-color);
}

.product-features i {
    margin-right: 5px;
}

/* 品质保证区域 */
.quality-assurance {
    padding: 60px 0;
    background-color: var(--primary-color);
    color: var(--white);
}

.quality-assurance h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2em;
}

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

.quality-item i {
    font-size: 2em;
    margin-bottom: 15px;
    color: var(--accent-color);
}

/* 制作工艺展示 */
.craftsmanship {
    padding: 80px 0;
    background-color: var(--white);
}

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

.process-item {
    text-align: center;
}

.process-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* 产品展示增强 */
.product-images {
    position: relative;
    margin-bottom: 20px;
}

.main-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.gallery-thumbs img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.gallery-thumbs img:hover {
    opacity: 0.8;
}

.product-info {
    padding: 20px;
}

.product-details {
    margin: 20px 0;
    padding: 15px;
    background-color: var(--light-bg);
    border-radius: 4px;
}

.product-details ul {
    list-style: none;
    margin-top: 10px;
}

.product-details li {
    margin-bottom: 8px;
    font-size: 0.9em;
}

/* 健康价值展示 */
.health-benefits {
    padding: 80px 0;
    background-color: var(--light-bg);
}

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

.benefit-item {
    text-align: center;
    padding: 30px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.benefit-item i {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* 博客区域 */
.blog {
    padding: 80px 0;
    background-color: var(--white);
}

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

.blog-post {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

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

.blog-post h3 {
    padding: 20px 20px 10px;
    font-size: 1.2em;
}

.blog-post p {
    padding: 0 20px;
    margin-bottom: 20px;
}

.read-more {
    display: inline-block;
    padding: 10px 20px;
    margin: 0 20px 20px;
    color: var(--primary-color);
    text-decoration: none;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    transition: all 0.3s;
}

.read-more:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* 认证展示 */
.certifications {
    padding: 60px 0;
    background-color: var(--light-bg);
}

.cert-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.cert-grid img {
    height: 100px;
    object-fit: contain;
}

/* 询价表单 */
.inquiry-form {
    padding: 80px 0;
    background-color: var(--white);
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

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

button[type="submit"] {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button[type="submit"]:hover {
    background-color: var(--secondary-color);
}

/* 返回顶部按钮 */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: background-color 0.3s;
}

.scroll-to-top:hover {
    background-color: var(--secondary-color);
}

/* 页面横幅通用样式 */
.page-banner {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    color: white;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    margin-top: var(--header-height);
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

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

.page-banner h1 {
    font-size: 2.1em;
    margin-bottom: 14px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-banner h2,
.page-banner p {
    font-size: 0.84em;
    max-width: 560px;
    margin: 0 auto;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
    opacity: 0.9;
}

/* 产品页面横幅 */
.products-banner {
    background-image: url('images/products-banner.jpg');
}

/* 关于我们页面横幅 */
.about-banner {
    background-image: url('images/about-banner.jpg');
}

/* 联系我们页面横幅 */
.contact-banner {
    background-image: url('images/contact-banner.jpg');
}

/* 响应式调整 */
@media (max-width: 768px) {
    .page-banner {
        height: 280px;
    }

    .page-banner h1 {
        font-size: 1.75em;
    }

    .page-banner p {
        font-size: 0.77em;
        padding: 0 14px;
    }
}

/* 产品页面样式 */
.product-page .products-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    padding: 40px 0;
}

.product-categories {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.product-categories h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.product-categories ul {
    list-style: none;
}

.product-categories ul li {
    margin-bottom: 10px;
}

.product-categories ul li a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
    display: block;
    padding: 8px 0;
}

.product-categories ul li a:hover {
    color: var(--primary-color);
}

.products-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.product-section h3 {
    margin-bottom: 30px;
    color: var(--primary-color);
}

.products-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* 关于页面样式 */
.about-content {
    padding: 40px 0;
}

.history-section {
    margin-bottom: 60px;
}

.history-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.history-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.history-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.value-item {
    text-align: center;
    padding: 30px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.value-item i {
    font-size: 2em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.team-member {
    text-align: center;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.team-member img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.team-member h4 {
    margin: 20px 0 5px;
    color: var(--primary-color);
}

.team-member .role {
    color: var(--secondary-color);
    font-style: italic;
    margin-bottom: 15px;
}

.team-member .description {
    padding: 0 20px 20px;
    color: var(--text-color);
}

/* 联系页面样式 */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.contact-info {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item i {
    font-size: 1.5em;
    color: var(--primary-color);
}

.info-item h4 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.contact-form {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.map-section {
    margin-top: 60px;
}

.map-container {
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 20px;
}

.placeholder-map {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 响应式设计补充 */
@media (max-width: 992px) {
    .product-page .products-grid {
        grid-template-columns: 1fr;
    }

    .product-categories {
        margin-bottom: 30px;
    }

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

    .history-content {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .values-grid {
        grid-template-columns: 1fr;
    }

    .page-banner {
        height: 245px;
    }

    .page-banner h2 {
        font-size: 2em;
    }
}

/* Logo链接样式 */
.logo a {
    text-decoration: none;
    color: inherit;
}

.logo a:hover {
    color: var(--secondary-color);
}

/* 按钮和链接样式 */
.inquiry-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1em;
    text-align: center;
}

.inquiry-button:hover {
    background-color: var(--secondary-color);
}

.view-all-products {
    text-align: center;
    margin-top: 40px;
}

/* 产品卡片样式更新 */
.product-card .product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.product-card .price {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--primary-color);
}

/* 响应式设计补充 */
@media (max-width: 768px) {
    :root {
        --container-width: 95%;
    }
    
    .container,
    .about-content {
        padding: 0 2px;
    }
}

/* 桌面端整体缩放 */
@media screen and (min-width: 1024px) {
    body {
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        min-height: 100vh;
    }

    #root-wrapper {
        width: 125%;
        transform-origin: top center;
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%) scale(0.8); /* 恢复 transform 属性 */
    }
}

/* 平板和移动端保持原始大小 */
@media screen and (max-width: 1023px) {
    #root-wrapper {
        transform: none;
        width: 100%;
    }
    
    .container,
    .about-content {
        width: 95%;
        padding: 0 2px;
    }
}

/* 产品页面样式 */
.products-page {
    padding-top: 60px;
}

/* 联系页面样式 */
.contact-page {
    padding-top: 60px;
}

/* 客户反馈部分 */
.testimonial-section {
    padding: 80px 0;
    background: var(#f6fff8); /* 或者 var(--light-bg) 根据设计调整 */
}

.testimonial-section .section-title {
    margin-bottom: 60px;
}

.testimonial-carousel-wrapper {
    position: relative;
    max-width: 900px; /* 根据卡片大小和希望显示的卡片数量调整 */
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
    /* width: 500%; */ /* REMOVED: JS now sets this dynamically based on card count */
    /* --total-testimonial-cards will be set by JS */
}

.testimonial-card {
    /* width: 100%; */ /* REMOVED */
    flex-shrink: 0; /* Prevent shrinking */
    flex-grow: 0;   /* Prevent growing */
    flex-basis: calc(100% / var(--total-testimonial-cards, 1)); /* Calculate width based on number of cards */
    box-sizing: border-box;
    background: var(--light-bg);
    border-radius: 8px;
    padding: 30px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.testimonial-content {
    margin-bottom: 20px; /* 文字和头像的间距 */
}

.testimonial-text {
    font-size: 1.1em;
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    font-size: 1em;
    font-weight: 600;
    color: var(--primary-color);
}

.testimonial-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 轮播控件 */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.3);
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 24px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 10;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-control:hover {
    background-color: rgba(0,0,0,0.6);
}

.carousel-control.prev {
    left: -20px; /* 调整按钮位置 */
}

.carousel-control.next {
    right: -20px; /* 调整按钮位置 */
}

/* 响应式调整 */
@media (max-width: 992px) {
    .testimonial-carousel-wrapper {
        max-width: 90%;
    }
    .carousel-control.prev {
        left: 5px;
    }
    .carousel-control.next {
        right: 5px;
    }
}

@media (max-width: 768px) {
    .testimonial-card {
        padding: 25px 20px;
    }
    .testimonial-text {
        font-size: 1em;
    }
    .testimonial-author {
        font-size: 0.9em;
    }
    .testimonial-avatar img {
        width: 70px;
        height: 70px;
    }
    .carousel-control {
        padding: 8px 12px;
        font-size: 20px;
        width: 40px;
        height: 40px;
    }
}

/* Products Page Specific Styles */
.products-page .product-category h2 {
    text-align: center;
    font-size: 2.2em; /* 增大字体 */
    margin-bottom: 40px; /* 标题和产品网格之间的间距 */
    color: var(--primary-color);
}

.products-page .product-category {
    margin-bottom: 60px; /* 增大产品系列之间的间距 */
}

/* If .image-container specific styling for products page is needed beyond global .product-card styling */
.products-page .product-card .image-container {
    position: relative;
    overflow: hidden;
    height: 400px; /* 从600px改回400px */
}

.products-page .product-card .product-image {
    display: block;
    width: 100%;
    height: 100%; /* 设置为100%以适应容器高度 */
    object-fit: cover; /* 确保图片合适地填充容器 */
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.products-page .product-card .product-image.hover-image {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.products-page .product-card:hover .product-image.main-image {
    opacity: 0;
    transform: scale(1.05); /* Optional: slight zoom out for main image */
}

.products-page .product-card:hover .product-image.hover-image {
    opacity: 1;
    transform: scale(1); /* Optional: ensure hover image is at normal scale */
}

/* Adjusting product info text if needed */
.products-page .product-card .product-info h3 {
    font-size: 1.4em; 
    margin-bottom: 8px; /* 从10px减小到8px */
    font-weight: 600;
}

.products-page .product-card .product-info p {
    font-size: 1.1em;
    margin-bottom: 8px; /* 从15px减小到8px */
    line-height: 1.5;
}

.products-page .product-card .product-info {
    padding: 15px;
    max-height: none; /* 移除高度限制 */
    overflow: visible; /* 确保内容可见 */
}

.products-page .product-specs span {
    font-size: 0.9em;
}

/* Styling for page banner on products page if needed to be different */
.products-banner h1 {
    font-size: 2.8em; /* Example adjustment for products page banner title */
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.products-banner h2,
.products-banner p {
    font-size: 1.3em; /* Example adjustment for products page banner subtitle */
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

/* 工艺流程展示部分 */
.process-showcase {
    padding: 80px 0;
    background: var(--white);
    margin-top: 40px;
}

.process-showcase .container {
    max-width: 1400px; /* 减小容器最大宽度 */
    margin: 0 auto;
    padding: 0 20px;
}

.process-showcase .section-title {
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-color);
    font-size: 2.5em;
}

.process-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 15px; /* 减小卡片之间的间距 */
    overflow-x: auto;
    padding: 20px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--light-bg);
}

.process-container::-webkit-scrollbar {
    height: 6px;
}

.process-container::-webkit-scrollbar-track {
    background: var(--light-bg);
    border-radius: 3px;
}

.process-container::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 3px;
}

.process-box {
    flex: 0 0 220px; /* 减小卡片宽度 */
    min-width: 220px; /* 减小最小宽度 */
    height: 450px; /* 增加卡片高度 */
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.process-box:hover {
    transform: translateY(-10px);
}

.process-box .image-container {
    width: 100%;
    height: 220px; /* 调整图片容器高度 */
    overflow: hidden;
}

.process-box .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.process-box:hover .image-container img {
    transform: scale(1.1);
}

.process-box .content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.process-box .content h3 {
    color: var(--primary-color);
    font-size: 1.1em;
    margin-bottom: 12px;
    text-align: center;
}

.process-box .content p {
    color: var(--text-color);
    font-size: 0.9em;
    line-height: 1.6;
    text-align: center;
    margin-top: auto;
}

.process-box .step-number {
    display: inline-block;
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    margin: 0 auto 15px;
    font-weight: bold;
}

/* 响应式调整 */
@media (max-width: 1400px) {
    .process-box {
        flex: 0 0 200px;
        min-width: 200px;
    }
}

@media (max-width: 768px) {
    .process-showcase .section-title {
        font-size: 1.5em;
        margin-bottom: 8px;
    }
    
    .process-box {
        flex: 0 0 180px;
        min-width: 180px;
        height: 420px;
    }
    
    .process-box .image-container {
        height: 180px;
    }
    
    .process-box .content {
        padding: 15px;
    }
    
    .process-box .content h3 {
        font-size: 1em;
    }
    
    .process-box .content p {
        font-size: 0.85em;
    }
}

/* 新会柑普洱茶详情页面样式 */
.xinhui-tangerine-puer-tea-page {
    padding: 40px 0;
}

.product-gallery-container {
    background: var(--light-bg);
    padding: 40px 0;
    margin-bottom: 40px;
}

.product-gallery {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.main-image {
    width: 100%;
    height: 500px;
    object-fit: contain; /* 修改为contain */
    background-color: #f8f8f8; /* 可选，和移动端一致 */
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.thumbnails {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.thumbnail {
    width: 100%;
    height: 120px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 4px;
    transition: opacity 0.3s;
    border: 2px solid transparent;
}

.thumbnail:hover {
    opacity: 0.8;
    border-color: var(--primary-color);
}

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

.product-details-container h1 {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.product-description {
    font-size: 1.1em;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 40px;
}

.product-specs {
    background: var(--light-bg);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.product-specs h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.spec-item i {
    color: var(--primary-color);
    width: 24px;
}

.brewing-guide {
    margin-bottom: 40px;
}

.brewing-guide h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.brewing-guide ul {
    list-style: none;
    padding: 0;
}

.brewing-guide li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.brewing-guide i {
    color: var(--primary-color);
    width: 24px;
}

.inquiry-button {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 1.2em;
    transition: all 0.3s;
    text-align: center;
}

.inquiry-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .product-gallery {
        grid-template-columns: 1fr;
    }

    .thumbnails {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .thumbnail {
        width: 120px;
        flex-shrink: 0;
    }

    .main-image {
        height: 300px;
    }

    .product-details-container h1 {
        font-size: 2em;
    }
}

/* ============================================
   移动端SEO优化字体规范 - 统一设计标准
   ============================================ */

/* 移动端标题层级 - SEO友好 */
@media (max-width: 768px) {
    /* H1 - 主标题 (页面最重要的标题) */
    h1, .h1 {
        font-size: 24px !important;
        line-height: 1.3 !important;
        font-weight: 700 !important;
        margin: 15px 0 12px 0 !important;
        color: var(--primary-color) !important;
    }
    
    /* H2 - 二级标题 (章节标题) */
    h2, .h2 {
        font-size: 20px !important;
        line-height: 1.4 !important;
        font-weight: 600 !important;
        margin: 12px 0 10px 0 !important;
        color: var(--primary-color) !important;
    }
    
    /* H3 - 三级标题 (子章节标题) */
    h3, .h3 {
        font-size: 18px !important;
        line-height: 1.4 !important;
        font-weight: 600 !important;
        margin: 10px 0 8px 0 !important;
        color: var(--text-color) !important;
    }
    
    /* H4 - 四级标题 */
    h4, .h4 {
        font-size: 16px !important;
        line-height: 1.4 !important;
        font-weight: 600 !important;
        margin: 8px 0 6px 0 !important;
        color: var(--text-color) !important;
    }
    
    /* H5 - 五级标题 */
    h5, .h5 {
        font-size: 15px !important;
        line-height: 1.4 !important;
        font-weight: 500 !important;
        margin: 6px 0 5px 0 !important;
        color: var(--text-color) !important;
    }
    
    /* H6 - 六级标题 */
    h6, .h6 {
        font-size: 14px !important;
        line-height: 1.4 !important;
        font-weight: 500 !important;
        margin: 5px 0 4px 0 !important;
        color: var(--text-color) !important;
    }
    
    /* 段落文字 */
    p, .paragraph {
        font-size: 15px !important;
        line-height: 1.6 !important;
        font-weight: 400 !important;
        margin: 8px 0 !important;
        color: var(--text-color) !important;
    }
    
    /* 列表文字 */
    li {
        font-size: 15px !important;
        line-height: 1.5 !important;
        margin: 4px 0 !important;
    }
    
    /* 强调文字 */
    strong, b {
        font-weight: 600 !important;
    }
    
    /* 小字体文字 */
    small, .small-text {
        font-size: 13px !important;
        line-height: 1.4 !important;
    }
}

/* 更小屏幕优化 (iPhone SE等) */
@media (max-width: 480px) {
    h1, .h1 {
        font-size: 22px !important;
        margin: 12px 0 10px 0 !important;
    }
    
    h2, .h2 {
        font-size: 18px !important;
        margin: 10px 0 8px 0 !important;
    }
    
    h3, .h3 {
        font-size: 16px !important;
        margin: 8px 0 6px 0 !important;
    }
    
    h4, .h4 {
        font-size: 15px !important;
        margin: 6px 0 5px 0 !important;
    }
    
    h5, .h5 {
        font-size: 14px !important;
        margin: 5px 0 4px 0 !important;
    }
    
    h6, .h6 {
        font-size: 13px !important;
        margin: 4px 0 3px 0 !important;
    }
    
    p, .paragraph {
        font-size: 14px !important;
        margin: 6px 0 !important;
    }
}

/* 特定组件的字体优化覆盖 */
@media (max-width: 768px) {
    /* 产品卡片标题 */
    .product-card h3 {
        font-size: 16px !important;
        font-weight: 600 !important;
        line-height: 1.3 !important;
        margin: 8px 0 !important;
    }
    
    /* 产品卡片描述 */
    .product-card p {
        font-size: 14px !important;
        line-height: 1.5 !important;
        margin: 6px 0 !important;
    }
    
    /* 横幅标题 */
    .banner-content h1,
    .page-banner h1 {
        font-size: 26px !important;
        line-height: 1.2 !important;
        margin: 15px 0 !important;
        color: white !important;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7) !important;
    }
    
    /* 横幅副标题 - 现在使用H2标签 */
    .banner-content h2,
    .page-banner h2,
    .banner-content p,
    .page-banner p {
        font-size: 15px !important;
        line-height: 1.5 !important;
        margin: 10px 0 !important;
        color: white !important;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6) !important;
    }
    
    /* 章节标题 */
    .section-title {
        font-size: 22px !important;
        line-height: 1.3 !important;
        margin: 20px 0 15px 0 !important;
    }
    
    /* 关于我们标题 */
    .about-text h2 {
        font-size: 20px !important;
        line-height: 1.3 !important;
        margin: 12px 0 10px 0 !important;
    }
    
    /* 功能特点标题 */
    .feature h3 {
        font-size: 16px !important;
        line-height: 1.4 !important;
        margin: 8px 0 6px 0 !important;
    }
    
    /* 功能特点描述 */
    .feature p {
        font-size: 14px !important;
        line-height: 1.5 !important;
        margin: 6px 0 !important;
    }
    
    /* 工艺流程标题 */
    .process-content h3,
    .process-box .content h3 {
        font-size: 16px !important;
        line-height: 1.4 !important;
        margin: 8px 0 6px 0 !important;
    }
    
    /* 工艺流程描述 */
    .process-content p,
    .process-box .content p {
        font-size: 13px !important;
        line-height: 1.5 !important;
        margin: 6px 0 !important;
    }
    
    /* 产品详情页标题 */
    .product-details-container h1 {
        font-size: 24px !important;
        line-height: 1.3 !important;
        margin: 15px 0 12px 0 !important;
    }
    
    /* 产品规格标题 */
    .product-specs h2,
    .brewing-guide h2 {
        font-size: 18px !important;
        line-height: 1.4 !important;
        margin: 12px 0 8px 0 !important;
    }
    
    /* 按钮文字 */
    .btn-primary,
    .btn-secondary,
    .btn-view,
    .btn-learn-more {
        font-size: 14px !important;
        font-weight: 500 !important;
    }
    
    /* 导航菜单文字 */
    .main-nav a {
        font-size: 16px !important;
        font-weight: 500 !important;
    }
    
    /* 页脚标题 */
    .footer-section h3 {
        font-size: 16px !important;
        line-height: 1.4 !important;
        margin: 8px 0 6px 0 !important;
    }
    
    /* 页脚链接 */
    .footer-section a {
        font-size: 14px !important;
        line-height: 1.5 !important;
    }
} 

/* 关于页面新样式 */
.about-intro {
    padding: 80px 0;
    background: var(--light-bg);
}

.about-intro .container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.about-intro h1 {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-weight: 700;
}

.about-intro p {
    font-size: 1.2em;
    line-height: 1.8;
    color: var(--text-color);
    max-width: 900px;
    margin: 0 auto;
}

.plantation-section {
    padding: 80px 0;
    background: var(--white);
}

.content-with-image {
    display: flex;
    align-items: center;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.text-content {
    flex: 1;
}

.text-content h2 {
    font-size: 2em;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.text-content p {
    font-size: 1.1em;
    line-height: 1.8;
    color: var(--text-color);
}

.image-content {
    flex: 1;
}

.image-content img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.tea-partners {
    padding: 80px 0;
    background: var(--light-bg);
}

.tea-partners .container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.tea-partners h2 {
    font-size: 2em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.tea-partners > p {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 50px;
}

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

.partner-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

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

.partner-card h3 {
    font-size: 1.3em;
    color: var(--primary-color);
    margin: 20px 0 10px;
    padding: 0 20px;
}

.partner-card p {
    font-size: 1em;
    color: var(--text-color);
    padding: 0 20px 20px;
    line-height: 1.6;
}

.product-lines {
    padding: 80px 0;
    background: var(--white);
}

.product-lines .container {
    max-width: 1200px;
    margin: 0 auto;
}

.product-lines h2 {
    text-align: center;
    font-size: 2em;
    color: var(--primary-color);
    margin-bottom: 50px;
}

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

.series-card {
    background: var(--light-bg);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

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

.series-card h3 {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.series-card p {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--text-color);
}

.btn-learn-more {
    display: inline-block;
    padding: 12px 25px;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.btn-learn-more:hover {
    background: #2a6d3e;
}

.partnership {
    padding: 80px 0;
    background: var(--light-bg);
}

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

.partnership h2 {
    text-align: center;
    font-size: 2em;
    color: var(--primary-color);
    margin-bottom: 50px;
}

.partnership-content {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.partnership-text p {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 30px;
}

.partnership-features {
    list-style: none;
    padding: 0;
}

.partnership-features li {
    font-size: 1.1em;
    margin-bottom: 20px;
    padding-left: 30px;
    position: relative;
}

.partnership-features li::before {
    content: "•";
    color: var(--primary-color);
    font-size: 1.5em;
    position: absolute;
    left: 0;
    top: -5px;
}

.contact-cta {
    padding: 80px 0;
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
}

.contact-cta .container {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-cta h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: var(--white);
}

.contact-cta p {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.8;
    color: var(--white);
}

/* 添加平板端和手机端的样式 */
@media (max-width: 1024px) {
    .contact-cta h2,
    .contact-cta p {
        color: var(--white);
    }
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-primary {
    display: inline-block;
    padding: 15px 30px;
    background: #037b2a;
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #cc0000;
    transform: translateY(-2px);
}

/* 添加平板端和手机端的按钮样式 */
@media (max-width: 1024px) {
    .hero-banner .btn-primary {
        padding: 12px 25px;
        min-width: 136px;
        max-width: 170px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .hero-banner .btn-primary {
        padding: 10px 20px;
        min-width: 119px;
        max-width: 153px;
    }
}

.btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    background: transparent;
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    border: 2px solid var(--white);
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .content-with-image {
        flex-direction: column;
        padding: 0 20px;
    }

    .partners-grid,
    .product-series {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .about-intro {
        padding: 60px 20px;
    }

    .about-intro h1 {
        font-size: 2em;
    }

    .partners-grid,
    .product-series {
        grid-template-columns: 1fr;
    }

    .partnership-content {
        padding: 20px;
        margin: 0 20px;
    }

    .cta-buttons {
        flex-direction: column;
        padding: 0 20px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }
}

/* 关于页面新样式 */
.synergy-text {
    font-size: 1.2em;
    line-height: 1.8;
    color: var(--text-color);
    max-width: 900px;
    margin: 50px auto 0;
    text-align: center;
    padding: 0 20px;
}

.synergy-text strong {
    color: var(--primary-color);
    font-weight: 700;
}

@media (max-width: 768px) {
    .synergy-text {
        font-size: 1.1em;
        margin-top: 30px;
    }
} 