/* 全局样式 - 黄黑主色调 */
:root {
    --primary-yellow: #FFCC00; /* 主黄色 */
    --dark-black: #111111;      /* 主黑色 */
    --light-black: #222222;    /* 浅黑色 */
    --gray: #666666;           /* 灰色 */
    --white: #FFFFFF;          /* 白色 */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: var(--dark-black);
    color: var(--white);
    line-height: 1.6;
}

/* 头部导航 */
.header {
    background-color: var(--light-black);
    padding: 15px 0;
    border-bottom: 2px solid var(--primary-yellow);
}

.nav-container {
    width: 90%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
}

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

.nav-menu li {
    margin: 0 15px;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--primary-yellow);
}

/* 语言切换 */
.lang-switch {
    display: flex;
    gap: 10px;
}

.lang-switch a {
    color: var(--white);
    text-decoration: none;
    padding: 5px 10px;
    border: 1px solid transparent;
}

.lang-switch a.active {
    color: var(--dark-black);
    background-color: var(--primary-yellow);
    border-color: var(--primary-yellow);
    border-radius: 3px;
}

/* 横幅区域 */
.banner {
    background: url('../images/banner.jpg') no-repeat center center;
    background-size: cover;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.banner-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--primary-yellow);
    text-shadow: 2px 2px 4px var(--dark-black);
}

.banner-content p {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 800px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-yellow);
    color: var(--dark-black);
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #e6b800;
}

/* 产品区域 */
.products {
    padding: 60px 0;
    width: 90%;
    margin: 0 auto;
}

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

.section-title h2 {
    font-size: 36px;
    color: var(--primary-yellow);
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-yellow);
}

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

.product-item {
    background-color: var(--light-black);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}

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

.product-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

.product-info {
    padding: 20px;
}

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

.product-info .price {
    color: var(--white);
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

/* 页脚 */
.footer {
    background-color: var(--light-black);
    padding: 40px 0;
    border-top: 2px solid var(--primary-yellow);
}

.footer-container {
    width: 90%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-col h3 {
    color: var(--primary-yellow);
    margin-bottom: 20px;
    font-size: 18px;
}

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

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

.footer-col a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--primary-yellow);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #333;
    color: var(--gray);
}

/* 响应式适配 */
@media (max-width: 768px) {
    .banner {
        height: 350px;
    }
    .banner-content h1 {
        font-size: 32px;
    }
    .section-title h2 {
        font-size: 28px;
    }
}