/* style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

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

/* 导航栏样式 */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo h2 {
    color: #2c5530;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #2c5530;
}

/* 首页横幅样式 - 修改为静态图片 */
.hero {
    position: relative;
    height: 720px;
    margin-top: 60px;
    overflow: hidden;
}

.hero-static {
    position: relative;
    height: 100%;
    width: 100%;
}

.hero-static img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 80%;
    max-width: 800px;
    z-index: 3;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 
                 0 0 10px rgba(0, 0, 0, 0.5),
                 -1px -1px 0 rgba(0, 0, 0, 0.3),
                 1px -1px 0 rgba(0, 0, 0, 0.3),
                 -1px 1px 0 rgba(0, 0, 0, 0.3),
                 1px 1px 0 rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px);
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.slogan {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    background-color: #2c5530;
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
    position: relative;
    z-index: 4;
}

.cta-button:hover {
    background-color: #1e3a23;
}

/* 选择我们的理由 */
.reasons {
    padding: 80px 0;
    background-color: white;
}

.reasons h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
    color: #2c5530;
}

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

.reason-card {
    background-color: #f5f5f5;
    padding: 30px;
    border-radius: 5px;
    text-align: center;
    transition: transform 0.3s;
}

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

.reason-card h3 {
    color: #2c5530;
    margin-bottom: 15px;
}

/* 关于我们 */
.about {
    padding: 80px 0;
    background-color: #f5f5f5;
}

.about h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
    color: #2c5530;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

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

.stat {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.stat h3 {
    color: #2c5530;
    font-size: 2rem;
    margin-bottom: 10px;
}

/* 产品中心 */
.products {
    padding: 80px 0;
    background-color: white;
}

.products h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
    color: #2c5530;
}

.product-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.tab-button {
    background-color: #f5f5f5;
    border: none;
    padding: 12px 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.tab-button.active {
    background-color: #2c5530;
    color: white;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

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

.product-image img {
    width: 100%;
    border-radius: 5px;
}

.product-info h3 {
    color: #2c5530;
    margin-bottom: 10px;
}

.product-tagline {
    font-style: italic;
    margin-bottom: 20px;
    color: #666;
}

.features {
    margin: 30px 0;
}

.feature {
    margin-bottom: 15px;
}

.feature h4 {
    color: #2c5530;
    margin-bottom: 5px;
}

.applications h4 {
    color: #2c5530;
    margin-bottom: 10px;
}

.applications ul {
    list-style-type: none;
    padding-left: 0;
}

.application-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.application-item img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    margin-right: 15px;
    border-radius: 3px;
}

/* 色卡展示 - 修改为两张图片并排 */
.colors {
    padding: 80px 0;
    background-color: #f5f5f5;
}

.colors h2 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 2rem;
    color: #2c5530;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 40px;
    color: #666;
}

.color-images-container {
    max-width: 1000px;
    margin: 0 auto;
}

.color-image-pair {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 20px;
}

.color-image-item {
    flex: 1;
    max-width: 48%;
    text-align: center;
}

.color-image-item img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.color-image-item img:hover {
    transform: scale(1.02);
}

.custom-color-text {
    text-align: center;
    font-style: italic;
    color: #666;
    margin-top: 20px;
    font-size: 1.1rem;
}

/* 联系我们 */
.contact {
    padding: 80px 0;
    background-color: white;
}

.contact h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
    color: #2c5530;
}

.contact-info h3 {
    margin-bottom: 20px;
    color: #2c5530;
}

.contact-info p {
    margin-bottom: 10px;
}

/* Q&A 样式 */
.QA {
    padding: 80px 0;
    background-color: #f5f5f5;
}

.QA h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
    color: #2c5530;
}

.qa-categories {
    max-width: 800px;
    margin: 0 auto 40px;
}

.qa-category {
    background: white;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.qa-category h3 {
    padding: 20px;
    margin: 0;
    background: #2c5530;
    color: white;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 1.1rem;
}

.qa-category h3:hover {
    background: #1e3a23;
}

.qa-items {
    padding: 0;
}

/* 第一个分类默认展开 */
.qa-category.active .qa-items {
    display: block;
}

.qa-item {
    border-bottom: 1px solid #eee;
}

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

.question {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s;
}

.question:hover {
    background: #f9f9f9;
}

.toggle-answer {
    background: #2c5530;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 15px;
}

.answer {
    display: none;
    padding: 0 20px 20px;
    background: #f9f9f9;
}

.answer.active {
    display: block;
}

.answer p {
    margin: 0;
    line-height: 1.6;
    padding: 15px 0 0;
}

/* WhatsApp 浮动按钮 */
.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 2rem;
    line-height: 60px;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* 联系表单样式 */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2c5530;
}

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

.submit-btn {
    background: #2c5530;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
}

.submit-btn:hover {
    background: #1e3a23;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .product-detail {
        grid-template-columns: 1fr;
    }
    
    .application-item {
        flex-direction: column;
    }
    
    .application-item img {
        margin-bottom: 10px;
        margin-right: 0;
    }
    
    .hero {
        height: 500px;
    }
    
    .color-image-pair {
        flex-direction: column;
        align-items: center;
    }
    
    .color-image-item {
        max-width: 100%;
        width: 100%;
    }
    
    .qa-category h3 {
        font-size: 1rem;
        padding: 15px;
    }
    
    .question {
        padding: 12px 15px;
    }
    
    .contact-form {
        padding: 20px;
    }
    
    .color-images-container {
        padding: 0 15px;
    }
    
    .hero-content {
        padding: 15px;
        width: 90%;
    }
}