/* 全局样式 */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f8f9fa;
}

header {
    background: #2c3e50;
    color: white;
    padding: 1rem 0;
    position: relative;
}

/* 语言切换按钮 */
.lang-toggle {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    padding: 8px 16px;
    cursor: pointer;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    z-index: 10;
}

/* 导航样式 */
.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

.nav-list li {
    margin: 0 1rem;
}

.nav-list a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem 0;
    position: relative;
}

.nav-list a.active {
    color: #3498db;
}

.nav-list a:hover {
    color: #3498db;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #3498db;
    transition: width 0.3s ease;
}

.nav-list a:hover::after {
    width: 100%;
}

main {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* 页面标题 */
.page-title {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #3498db;
}

/* 首页英雄区 */
.hero-section {
    text-align: center;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.hero-desc {
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

/* 图片展示区 */
.image-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.image-showcase img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* 首页联系信息 */
.index-contact {
    background: #f1f5f9;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.index-contact p {
    margin: 0.5rem 0;
    font-size: 1.05rem;
}

/* 关于我们板块 */
.about-section {
    margin-bottom: 2rem;
    padding: 1rem;
    border-left: 4px solid #3498db;
    background: #f8f9fa;
    border-radius: 0 8px 8px 0;
}

.about-section h2 {
    color: #2c3e50;
    margin-top: 0;
}

footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
}

/* 产品橱窗样式 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.product-item {
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 8px;
    transition: box-shadow 0.3s ease;
    background: #fff;
}

.product-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1rem;
}

/* 产品展示样式 */
.product-showcase {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.product-image img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.product-details {
    flex: 1;
}

.price {
    font-size: 1.5rem;
    color: #e74c3c;
    font-weight: bold;
}

.contact-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
}

/* 联系方式样式 */
.contact-container {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-info, .contact-form {
    flex: 1;
}

.contact-info {
    background: #f1f5f9;
    padding: 1.5rem;
    border-radius: 8px;
}

.contact-info h2 {
    color: #2c3e50;
    margin-top: 0;
}

.contact-info p {
    margin: 1rem 0;
}

.contact-info span {
    margin-left: 0.5rem;
    color: #555;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

button[type="submit"] {
    background: #2ecc71;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

button[type="submit"]:hover {
    background: #27ae60;
}

/* 目录标签样式 */
.category-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.category-tab {
    padding: 10px 20px;
    background: #ecf0f1;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

.category-tab.active {
    background: #3498db;
    color: white;
}

.category-tab:hover:not(.active) {
    background: #d5dbdb;
}

.category-content {
    display: none;
}

.category-content.active {
    display: block;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    gap: 15px;
}

.page-btn {
    padding: 8px 16px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 1rem;
}

.page-btn:hover:not(:disabled) {
    background: #2980b9;
}

.page-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

.page-info {
    font-size: 14px;
    color: #7f8c8d;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .product-showcase, .contact-container {
        flex-direction: column;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-list li {
        margin: 0.5rem 0;
    }

    main {
        padding: 1rem;
        margin: 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .lang-toggle {
        position: static;
        transform: none;
        margin: 0 auto 1rem;
        display: block;
        width: fit-content;
    }

    header {
        padding: 1rem;
    }

    .contact-container {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .image-showcase {
        grid-template-columns: 1fr;
    }

    .category-tab {
        width: 100%;
        margin-bottom: 5px;
    }
}