/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft JhengHei", "Arial", sans-serif;
}

/* 基础样式 */
body {
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* 按钮样式（华强北电子蓝主题） */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #d86200;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #aa5006;
}

/* 标题样式 */
.section-title {
    font-size: 28px;
    text-align: center;
    margin-bottom: 40px;
    color: #2c3e50;
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background-color: #d86200;
    margin: 10px auto 0;
}

/* 头部导航 */
.header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    flex-wrap: wrap;
}

.logo h1 {
    font-size: 24px;
    color: #d86200;
}

/* 头部右侧区域（语言+导航） */
.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* 语言下拉菜单样式 */
.lang-dropdown {
    position: relative;
    z-index: 101;
}

.dropdown-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: all 0.3s ease;
}

.dropdown-btn:hover {
    border-color: #d86200;
    color: #d86200;
}

.dropdown-btn i {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.dropdown-btn i.rotate {
    transform: rotate(180deg);
}

/* 下拉内容（默认隐藏） */
.dropdown-content {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 120px;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    display: none;
    margin-top: 5px;
}

.dropdown-content.show {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 10px 15px;
    color: #333;
    transition: background-color 0.3s ease;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
    color: #d86200;
}

/* 导航菜单 */
.nav-menu ul {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    padding: 8px 0;
    position: relative;
}

.nav-menu a::after {
    content: "";
    display: block;
    width: 0;
    height: 2px;
    background-color: #d86200;
    transition: width 0.3s ease;
    position: absolute;
    bottom: 0;
    left: 0;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

/* 首页横幅 */
.banner {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('./img/ic.jpg') no-repeat center center;
    background-size: cover;
    color: white;
    padding: 120px 0;
    text-align: center;
}

.banner-content h2 {
    font-size: 40px;
    margin-bottom: 20px;
}

.banner-content p {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* 核心优势 */
.features {
    padding: 80px 0;
    background-color: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 40px;
    color: #d86200;
    margin-bottom: 20px;
}

.feature-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 20px;
}

/* 产品卡片样式 */
.products {
    padding: 80px 0;
    background: #f8f9fa;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}
.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: 0.3s;
}
.product-card:hover {
    transform: translateY(-5px);
}
.product-card img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}
.product-info {
    padding: 20px;
}
.product-info h4 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #222;
}
.product-info p {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
}
.product-tag {
    display: inline-block;
    background: #e6f2ff;
    color: #d86200;
    padding: 3px 8px;
    font-size: 12px;
    border-radius: 4px;
    margin-top: 8px;
}

/* 关于我们 */
.about {
    padding: 80px 0;
    background-color: white;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-text h4 {
    font-size: 20px;
    margin: 20px 0 10px;
    color: #d86200;
}

.about-text p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.about-img img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 新闻动态 */
.news {
    padding: 80px 0;
    background: #fff;
}
.news-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}
.news-item h4 {
    color: #d86200;
    margin-bottom: 8px;
}
.news-date {
    font-size: 13px;
    color: #888;
    margin-bottom: 10px;
}

/* 联系我们 */
.contact {
    padding: 80px 0;
    background-color: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info .info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.contact-info .info-item i {
    font-size: 24px;
    color: #d86200;
    margin-top: 5px;
}

.contact-info h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #2c3e50;
}

.contact-form h4 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #2c3e50;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-map {
    margin-top: 40px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-map iframe {
    width: 100%;
    height: 350px;
    border: none;
}

/* 底部样式 */
.footer {
    background-color: #d86200;
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer p {
    margin-bottom: 10px;
    opacity: 0.9;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-links a {
    color: white;
    font-size: 20px;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 0.7;
}

/* 响应式适配（手机/平板） */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    .header-right {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    .lang-dropdown {
        align-self: flex-end;
    }
    .banner-content h2 {
        font-size: 28px;
    }
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    .nav-menu ul {
        gap: 20px;
        justify-content: center;
        flex-wrap: wrap;
    }
    .section-title {
        font-size: 24px;
    }
    .features, .products, .news, .contact {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .banner {
        padding: 80px 0;
    }
    .banner-content h2 {
        font-size: 24px;
    }
    .product-grid {
        grid-template-columns: 1fr;
    }
}