/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2d5f3f;
    --secondary-color: #6b9f7f;
    --accent-color: #d4af37;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

/* 防止初始加载闪烁 - 优化版 */
/* 使用更轻量的方式，避免完全隐藏导致白屏 */
html:not(.lang-ready) body:not(.admin-body) {
    opacity: 0.01; /* 几乎不可见，但不会完全白屏 */
}

html.lang-ready body:not(.admin-body),
body.admin-body {
    opacity: 1;
    transition: opacity 0.15s ease;
}

/* 页面样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", 
                 "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

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

/* 顶部导航栏 */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

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

.language-switch {
    display: flex;
    gap: 10px;
}

.lang-btn {
    padding: 6px 15px;
    border: 1px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    cursor: pointer;
    border-radius: 20px;
    font-size: 14px;
    transition: var(--transition);
}

.lang-btn.active,
.lang-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* 导航菜单 */
.nav {
    padding: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    justify-content: center;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: block;
    padding: 20px 25px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
    color: var(--primary-color);
    background: var(--bg-light);
}

/* 下拉菜单 */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    list-style: none;
    min-width: 200px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.dropdown-menu li a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    padding-left: 25px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--primary-color);
}

/* 主横幅 */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.2) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: heroFloat 15s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.1) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

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

.hero h2 {
    font-size: 56px;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

.hero p {
    font-size: 22px;
    margin-bottom: 30px;
    opacity: 0.95;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    font-weight: 300;
}

/* 按钮样式 */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color) 0%, #c19b2e 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #c19b2e 0%, var(--accent-color) 100%);
    border-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transition: left 0.4s ease;
    z-index: -1;
}

.btn-secondary:hover::before {
    left: 0;
}

.btn-secondary:hover {
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 95, 63, 0.3);
}

.btn-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.btn-link:hover {
    color: var(--accent-color);
}

/* 区块标题 */
.section-title {
    text-align: center;
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, var(--accent-color) 50%, transparent 100%);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 50px;
}

/* 关于我们 */
.about-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(107, 159, 127, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

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

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

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

.about-text .btn-secondary {
    margin-top: 20px;
}

.about-image .image-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #e8f4ed 0%, #d4ebe2 60%, #c0e2d7 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(45, 95, 63, 0.15);
    border: 3px solid rgba(45, 95, 63, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.about-image .image-placeholder::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
    animation: shimmer 4s infinite;
}

.about-image .image-placeholder:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 30px rgba(45, 95, 63, 0.2);
}

/* 产品展示 */
.products-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #f8f9fa 100%);
    position: relative;
}

.products-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(45, 95, 63, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(212, 175, 55, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

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

.product-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(45, 95, 63, 0.1);
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 12px 30px rgba(45, 95, 63, 0.2);
    border-color: var(--accent-color);
}

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

.product-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

.product-image .image-placeholder {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.product-image .image-placeholder::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.product-info {
    padding: 25px;
}

.product-info h3 {
    color: var(--primary-color);
    font-size: 22px;
    margin-bottom: 10px;
}

.product-info p {
    color: var(--text-light);
    margin-bottom: 15px;
}

/* 新闻动态 */
.news-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #ffffff 100%);
    position: relative;
}

.news-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(212, 175, 55, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

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

.news-card {
    padding: 35px;
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border-radius: 15px;
    border-left: 4px solid var(--accent-color);
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(45, 95, 63, 0.08);
    border: 2px solid transparent;
    border-left: 4px solid var(--accent-color);
    position: relative;
    overflow: hidden;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    transform: translate(30%, -30%);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(45, 95, 63, 0.15);
    border-color: var(--primary-color);
}

.news-card:hover::before {
    transform: translate(20%, -20%) scale(1.5);
}

.news-date {
    display: inline-block;
    background: linear-gradient(135deg, #2d5f3f 0%, #4a8c65 100%);
    color: var(--white);
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(45, 95, 63, 0.3);
    transition: var(--transition);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.news-card:hover .news-date {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(45, 95, 63, 0.4);
}

.news-card h3 {
    color: var(--primary-color);
    font-size: 20px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-card p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.7;
}

/* 联系我们 */
.contact-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f0f7f4 0%, #e8f4ed 50%, #f0f7f4 100%);
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: radial-gradient(circle at 30% 70%, rgba(45, 95, 63, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding: 45px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(45, 95, 63, 0.1);
    border: 2px solid rgba(45, 95, 63, 0.1);
    position: relative;
    overflow: hidden;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(107, 159, 127, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.contact-item {
    padding: 20px;
    border-bottom: 2px solid #e9ecef;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(45, 95, 63, 0.1);
}

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

.contact-item h4 {
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.contact-item h4 span:first-child {
    font-size: 24px;
    filter: drop-shadow(0 2px 4px rgba(45, 95, 63, 0.2));
}

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

.contact-form {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 45px;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(45, 95, 63, 0.1);
    border: 2px solid rgba(212, 175, 55, 0.2);
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.contact-form h3 {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 26px;
    font-weight: 700;
    position: relative;
    z-index: 1;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--accent-color);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px 20px;
    margin-bottom: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 1;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1), 0 4px 12px rgba(45, 95, 63, 0.1);
    transform: translateY(-2px);
}

.contact-form button {
    width: 100%;
    padding: 15px;
    border: none;
    position: relative;
    z-index: 1;
    cursor: pointer;
}

/* 页脚 */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-col p {
    opacity: 0.9;
    line-height: 1.8;
}

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

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

.footer-col ul li a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    opacity: 1;
    padding-left: 5px;
}

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

.footer-bottom p {
    margin: 8px 0;
}

.footer-icp {
    font-size: 0.9em;
    opacity: 0.7;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .about-content,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: var(--shadow);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu > li > a {
        padding: 15px 20px;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--bg-light);
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero h2 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .products-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .header-top {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .about-section,
    .products-section,
    .news-section,
    .contact-section {
        padding: 50px 0;
    }
    
    .contact-form {
        padding: 25px;
    }
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 页面横幅（子页面） */
.page-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(212, 175, 55, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: heroFloat 20s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-5%, -5%) rotate(5deg); }
}

.page-hero h1 {
    font-size: 48px;
    margin-bottom: 15px;
    font-weight: 700;
    position: relative;
    z-index: 1;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    animation: titleSlideIn 0.8s ease-out;
}

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

.page-hero p {
    font-size: 18px;
    opacity: 0.9;
}

/* 产品过滤 */
.products-filter-section {
    padding: 40px 0;
    background: var(--white);
    border-bottom: 1px solid #e0e0e0;
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.filter-tab {
    padding: 10px 25px;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 25px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition);
}

.filter-tab:hover,
.filter-tab.active {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45,95,63,0.3);
}

/* 产品列表 */
.products-list-section {
    padding: 60px 0;
    background: var(--bg-light);
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ================== 新增组件样式 ================== */

/* 侧边栏组件 */
.sidebar {
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 0;
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    padding: 25px;
    border-bottom: 1px solid #e0e0e0;
}

.sidebar-widget:last-child {
    border-bottom: none;
}

.widget-title {
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin: 10px 0;
}

.sidebar-menu a {
    color: var(--text-dark);
    text-decoration: none;
    padding: 8px 12px;
    display: block;
    border-radius: 5px;
    transition: var(--transition);
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: var(--bg-light);
    color: var(--primary-color);
    padding-left: 18px;
}

.sidebar-contact p {
    color: var(--text-light);
    font-size: 14px;
    margin: 8px 0;
}

.sidebar-contact strong {
    color: var(--text-dark);
}

.sidebar-news {
    list-style: none;
}

.sidebar-news li {
    margin: 12px 0;
}

.sidebar-news a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.5;
    display: block;
    padding: 8px 0;
    border-bottom: 1px dashed #e0e0e0;
    transition: var(--transition);
}

.sidebar-news a:hover {
    color: var(--primary-color);
    padding-left: 10px;
}

/* 面包屑导航组件 */
.breadcrumb {
    background: var(--bg-light);
    padding: 15px 0;
    margin-bottom: 30px;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.breadcrumb-item a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

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

.breadcrumb-item[aria-current="page"] span {
    color: var(--primary-color);
    font-weight: 500;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    margin: 0 10px;
    color: var(--text-light);
    font-size: 16px;
}

/* Toast 提示样式 */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 250px;
    max-width: 400px;
    padding: 15px 20px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    z-index: 10000;
    transform: translateX(450px);
    transition: transform 0.3s ease;
}

.toast.show {
    transform: translateX(0);
}

.toast-success {
    border-left: 4px solid #28a745;
}

.toast-error {
    border-left: 4px solid #dc3545;
}

.toast-info {
    border-left: 4px solid #17a2b8;
}

.toast-warning {
    border-left: 4px solid #ffc107;
    color: #856404;
}

/* 加载状态和错误信息 */
.loading-spinner {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
}

.loading-spinner::before {
    content: "⏳";
    display: block;
    font-size: 48px;
    margin-bottom: 10px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.error-message {
    text-align: center;
    padding: 40px;
    color: #dc3545;
    background: #f8d7da;
    border-radius: 8px;
    margin: 20px 0;
}

.no-data {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
    font-style: italic;
}

/* 响应式调整 - 侧边栏和面包屑 */
@media (max-width: 768px) {
    .sidebar {
        position: static;
        margin-bottom: 30px;
    }
    
    .breadcrumb-item {
        font-size: 12px;
    }
    
    .breadcrumb-item + .breadcrumb-item::before {
        margin: 0 5px;
    }
    
    .toast {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* ================== 关于我们和工厂页面样式 ================== */

/* 通用页面区块 */
.page-section {
    padding: 80px 0;
    background: var(--white);
}

.page-section.bg-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.page-section:nth-child(even):not(.bg-light) {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.intro-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    color: var(--text-light);
    font-size: 18px;
    line-height: 1.8;
}

/* 发展历程时间轴 */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 50px auto;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--accent-color) 0%, var(--secondary-color) 100%);
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.timeline-item {
    display: flex;
    margin-bottom: 60px;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-item:nth-child(odd) .timeline-content {
    text-align: right;
    padding-right: 60px;
}

.timeline-item:nth-child(even) .timeline-content {
    padding-left: 60px;
}

.timeline-year {
    flex: 0 0 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-color);
    position: relative;
}

.timeline-year::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #c19b2e 100%);
    border: 4px solid var(--white);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.2), 0 4px 10px rgba(212, 175, 55, 0.4);
    transition: var(--transition);
}

.timeline-item:hover .timeline-year::after {
    transform: scale(1.3);
    box-shadow: 0 0 0 6px rgba(212, 175, 55, 0.3), 0 6px 15px rgba(212, 175, 55, 0.5);
}

.timeline-item:nth-child(odd) .timeline-year::after {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-year::after {
    left: -10px;
}

.timeline-content {
    flex: 0 0 50%;
}

.timeline-content h3 {
    color: var(--primary-color);
    font-size: 22px;
    margin-bottom: 10px;
}

.timeline-content p {
    color: var(--text-light);
    line-height: 1.7;
}

/* 企业文化网格 */
.culture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.culture-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(45, 95, 63, 0.1);
    transition: var(--transition);
    border: 2px solid transparent;
}

.culture-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(45, 95, 63, 0.2);
    border-color: var(--accent-color);
    background: linear-gradient(135deg, #ffffff 0%, #f0f7f4 100%);
}

.culture-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.culture-item h3 {
    color: var(--primary-color);
    font-size: 20px;
    margin-bottom: 15px;
}

.culture-item p {
    color: var(--text-light);
    line-height: 1.7;
}

/* 工厂内容布局 */
.factory-content,
.tea-garden-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 50px;
}

.factory-text h3,
.tea-garden-text h3 {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 15px;
    margin-top: 25px;
}

.factory-text h3:first-child,
.tea-garden-text h3:first-child {
    margin-top: 0;
}

.factory-text p,
.tea-garden-text p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 15px;
}

.factory-image .image-placeholder,
.tea-garden-image .image-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #e8f4ed 0%, #d4ebe2 60%, #c0e2d7 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(45, 95, 63, 0.15);
    border: 3px solid rgba(45, 95, 63, 0.1);
    transition: var(--transition);
}

.factory-image .image-placeholder:hover,
.tea-garden-image .image-placeholder:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 30px rgba(45, 95, 63, 0.2);
}

/* 工厂规格展示 */
.factory-specs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.spec-item {
    text-align: center;
    padding: 25px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(45, 95, 63, 0.1);
    transition: var(--transition);
    border: 2px solid transparent;
}

.spec-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(45, 95, 63, 0.15);
    border-color: var(--accent-color);
}

.spec-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

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

/* 茶园特色 */
.tea-garden-features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 25px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #f0f7f4 0%, #e8f4ed 100%);
    border-radius: 25px;
    font-size: 15px;
    color: var(--text-dark);
    border: 2px solid transparent;
    transition: var(--transition);
}

.feature-item:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #e8f4ed 0%, #d4ebe2 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 95, 63, 0.15);
}

.feature-icon {
    font-size: 24px;
}

/* 生产流程 */
.process-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.process-step {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(45, 95, 63, 0.1);
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
}

.process-step:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(45, 95, 63, 0.2);
    border-color: var(--primary-color);
}

.process-step::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color) 0%, transparent 100%);
    transform: translateY(-50%);
}

.process-step:last-child::before {
    display: none;
}

.process-number {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: 0 6px 20px rgba(45,95,63,0.3);
    transition: var(--transition);
}

.process-step:hover .process-number {
    transform: scale(1.1) rotate(360deg);
    box-shadow: 0 8px 25px rgba(45,95,63,0.4);
}

.process-content h3 {
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: 10px;
}

.process-content p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
}

/* 面包屑容器 */
.breadcrumb-container {
    background: var(--bg-light);
    padding: 15px 0;
    margin-top: 80px;
}

/* 响应式 - 关于我们和工厂页面 */
@media (max-width: 992px) {
    .factory-content,
    .tea-garden-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .factory-specs {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: row !important;
    }
    
    .timeline-item .timeline-content {
        text-align: left !important;
        padding-left: 80px !important;
        padding-right: 0 !important;
    }
    
    .timeline-year {
        flex: 0 0 auto;
        width: 60px;
        justify-content: flex-start;
        padding-left: 15px;
    }
    
    .timeline-year::after {
        left: 20px !important;
        right: auto !important;
    }
}

@media (max-width: 768px) {
    .page-section {
        padding: 50px 0;
    }
    
    .culture-grid {
        grid-template-columns: 1fr;
    }
    
    .factory-specs {
        grid-template-columns: 1fr;
    }
    
    .process-timeline {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .tea-garden-features {
        flex-direction: column;
    }
    
    .feature-item {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .timeline-content h3 {
        font-size: 18px;
    }
    
    .timeline-year {
        font-size: 24px;
    }
    
    .process-timeline {
        grid-template-columns: 1fr;
    }
}

/* ================== 详情页面样式 ================== */

/* 产品详情布局 */
.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 30px;
}

.product-detail-image {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.product-detail-image img,
.product-detail-image .image-placeholder {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 10px;
}

.product-detail-image .image-placeholder {
    background: linear-gradient(135deg, var(--bg-light) 0%, #e0e0e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 18px;
}

.product-detail-info {
    padding: 20px 0;
}

.product-detail-title {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.product-detail-category {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.category-badge,
.featured-badge {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.category-badge {
    background: var(--primary-color);
    color: var(--white);
}

.featured-badge {
    background: var(--accent-color);
    color: var(--white);
}

.product-detail-description,
.product-detail-specs {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.product-detail-description h3,
.product-detail-specs h3 {
    color: var(--primary-color);
    font-size: 20px;
    margin-bottom: 15px;
}

.product-detail-description p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 16px;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid #e0e0e0;
}

.specs-table td {
    padding: 12px 0;
    color: var(--text-dark);
}

.specs-table td:first-child {
    font-weight: 500;
    width: 120px;
    color: var(--text-light);
}

.product-detail-actions {
    display: flex;
    gap: 15px;
}

.product-detail-actions .btn-primary,
.product-detail-actions .btn-secondary {
    flex: 1;
    text-align: center;
}

/* 新闻详情样式 */
.news-detail-article {
    max-width: 900px;
    margin: 30px auto;
}

.news-detail-header {
    text-align: center;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--accent-color);
    margin-bottom: 40px;
}

.news-detail-title {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.4;
}

.news-detail-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: var(--text-light);
    font-size: 14px;
}

.news-date {
    color: var(--accent-color);
    font-weight: 500;
}

.news-detail-content {
    color: var(--text-dark);
    line-height: 2;
    font-size: 16px;
}

.news-detail-content p {
    margin-bottom: 20px;
    text-align: justify;
}

.news-detail-content h2,
.news-detail-content h3 {
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.news-detail-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

/* 响应式 - 详情页面 */
@media (max-width: 992px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .product-detail-image {
        position: static;
    }
}

@media (max-width: 768px) {
    .product-detail-title {
        font-size: 28px;
    }
    
    .news-detail-title {
        font-size: 24px;
    }
    
    .product-detail-actions {
        flex-direction: column;
    }
    
    .specs-table td:first-child {
        width: 100px;
    }
}

@media (max-width: 480px) {
    .product-detail-image img,
    .product-detail-image .image-placeholder {
        height: 300px;
    }
    
    .product-detail-title {
        font-size: 24px;
    }
    
    .news-detail-title {
        font-size: 20px;
    }
}

/* 联系页面增强样式 */
/* 联系链接样式 */
.contact-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.contact-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
    transform: translateX(3px);
}

.contact-link::before {
    content: '→';
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition);
}

.contact-link:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* 地图容器样式 */
.contact-map {
    margin-top: 60px;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.map-wrapper {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(45, 95, 63, 0.1);
    border: 2px solid rgba(212, 175, 55, 0.2);
}

.map-wrapper h3 {
    color: var(--primary-color);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--accent-color);
    display: inline-block;
}

.map-container {
    position: relative;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    display: block;
    width: 100%;
}

.map-address {
    padding: 20px;
    background: rgba(45, 95, 63, 0.05);
    border-top: 2px solid rgba(212, 175, 55, 0.3);
}

.map-address p {
    margin: 0 0 15px 0;
    color: var(--text-color);
    font-size: 16px;
    line-height: 1.6;
}

.map-address strong {
    color: var(--primary-color);
    font-weight: 600;
}

.map-address .btn-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 8px 16px;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    background: transparent;
}

.map-address .btn-link:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(45, 95, 63, 0.3);
}

/* 响应式 - 地图 */
@media (max-width: 768px) {
    .map-wrapper {
        padding: 25px 20px;
    }
    
    .map-wrapper h3 {
        font-size: 24px;
    }
    
    .map-container iframe {
        height: 300px;
    }
    
    .map-address {
        padding: 15px;
    }
    
    .map-address p {
        font-size: 14px;
    }
}

