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

:root {
    /* 绿色主题 */
    --primary: #0d3b26;        /* 深墨绿 */
    --primary-light: #145a36;  /* 中深绿 */
    --secondary: #10a050;      /* 主绿 */
    --accent: #38d968;         /* 亮绿/荧光绿 */
    --dark: #0a2016;
    --gray: #3a5a48;
    --light-gray: #d8ede0;
    --white: #ffffff;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    line-height: 1.6;
    color: var(--dark);
}

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

a {
    text-decoration: none;
    color: inherit;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.logo img {
    height: 40px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-links a {
    padding: 8px 16px;
    font-size: 0.95rem;
    color: var(--gray);
    transition: all 0.3s;
    border-radius: 4px;
}

.nav-links a:hover {
    color: var(--secondary);
    background: #e6f7ed;
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
    overflow: hidden;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 12px 16px;
    border-bottom: 1px solid var(--light-gray);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* 语言切换按钮 */
.lang-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    height: 36px;
    padding: 0 12px;
    background: var(--primary);
    color: var(--white);
    border: 2px solid var(--primary);
    border-radius: 18px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 16px;
}

.lang-switch:hover {
    background: var(--white);
    color: var(--primary);
}

.lang-switch span {
    letter-spacing: 0.5px;
}

/* Hero横幅 */
.hero {
    position: relative;
    height: 600px;
    background: linear-gradient(135deg, rgba(13,59,38,0.88) 0%, rgba(20,90,54,0.85) 100%),
                url('generated-images/Professional_electronics_manuf_2026-05-30T08-12-45.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: 70px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.08)" stroke-width="0.5"/></svg>');
    background-size: 200px;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 32px;
    opacity: 0.9;
}

.hero-btn {
    display: inline-block;
    padding: 14px 36px;
    background: var(--accent);
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s;
}

.hero-btn:hover {
    background: #28c960;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(56,217,104, 0.4);
}

/* 通用区块 */
.section {
    padding: 80px 0;
}

.bg-light {
    background: #f2f9f4;
}

.bg-gradient {
    background: linear-gradient(135deg, #0d3b26 0%, #10a050 100%);
    color: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.bg-gradient .section-header h2 {
    color: var(--white);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--gray);
}

.bg-gradient .section-header p {
    color: rgba(255,255,255,0.8);
}

/* 关于我们 */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    font-size: 1.05rem;
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.stat-item {
    background: var(--white);
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--gray);
    margin-top: 4px;
}

/* 数据统计条 */
.stats-section {
    background: var(--white);
    padding: 40px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-box {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-right: 1px solid var(--light-gray);
}

.stat-box:last-child {
    border-right: none;
}

.stat-icon {
    font-size: 2.5rem;
}

.stat-info h3 {
    font-size: 1.8rem;
    color: var(--primary);
}

.stat-info p {
    font-size: 0.9rem;
    color: var(--gray);
}

/* 品牌展示 */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.brand-item {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.brand-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.brand-logo {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0d3b26, #10a050);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 16px;
}

.brand-item h4 {
    font-size: 1rem;
    color: var(--dark);
    margin-bottom: 4px;
}

.brand-item p {
    font-size: 0.85rem;
    color: var(--gray);
}

/* 服务卡片 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 36px 28px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border-top: 4px solid #10a050;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--gray);
    line-height: 1.7;
}

/* 行业展示 */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.industry-item {
    background: rgba(255,255,255,0.15);
    padding: 24px 16px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s;
}

.industry-item:hover {
    background: rgba(255,255,255,0.25);
    transform: scale(1.05);
}

.industry-icon {
    display: block;
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.industry-item span:last-child {
    font-size: 0.95rem;
    font-weight: 500;
}

/* 全球布局 */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.location-card {
    background: var(--white);
    padding: 28px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.location-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.location-icon {
    font-size: 1.5rem;
}

.location-header h4 {
    font-size: 1.1rem;
    color: var(--primary);
}

.location-card p {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 8px;
}

.location-card .contact {
    font-size: 0.85rem;
    color: var(--dark);
}

/* 新闻动态 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.news-date {
    background: var(--primary);
    color: var(--white);
    padding: 8px 16px;
    font-size: 0.85rem;
}

.news-card h4 {
    padding: 20px 20px 12px;
    font-size: 1.1rem;
    color: var(--dark);
}

.news-card p {
    padding: 0 20px 16px;
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.6;
}

.news-link {
    display: block;
    padding: 12px 20px;
    color: #10a050;
    font-weight: 600;
    border-top: 1px solid var(--light-gray);
}

.news-link:hover {
    background: #e6f7ed;
}

/* 联系我们 */
.contact-section {
    background: #f2f9f4;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
}

.contact-icon {
    font-size: 2rem;
}

.contact-item h4 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.contact-item p {
    font-size: 0.95rem;
    color: var(--gray);
    line-height: 1.6;
}

.contact-form {
    background: var(--white);
    padding: 36px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.contact-form h4 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 24px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 16px;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #10a050;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-btn:hover {
    background: var(--primary-light);
}

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

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-col p {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    line-height: 1.6;
}

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

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

.footer-col ul li a {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-btn {
    padding: 10px 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.social-btn:hover {
    background: #10a050;
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-box {
        border-right: none;
        border-bottom: 1px solid var(--light-gray);
    }
    
    .brands-grid,
    .locations-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .services-grid,
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .industries-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-container {
        flex-wrap: wrap;
    }
    
    .lang-switch {
        margin-left: auto;
        margin-right: 10px;
        min-width: 44px;
        height: 32px;
        font-size: 0.75rem;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        width: 100%;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .stats-grid,
    .brands-grid,
    .locations-grid,
    .services-grid,
    .news-grid,
    .industries-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: 1fr 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}
