/* CSS变量 - 主题配色 */
:root {
    --primary-color: #1a5fb4;
    --primary-dark: #0d3a7d;
    --secondary-color: #3584e4;
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-white);
}

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

/* 头部导航 */
.header {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    height: 45px;
    width: auto;
}

.company-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
}

.nav {
    display: flex;
    gap: 30px;
}

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

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

/* Hero区域 */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
    padding: 100px 20px;
}

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

.hero p {
    font-size: 1.25rem;
    opacity: 0.95;
}

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

.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
    margin: 15px auto 0;
}

/* 关于我们 */
.about {
    background: var(--bg-light);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* 产品服务 */
.products {
    background: var(--bg-white);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.product-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

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

.product-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.product-card p {
    color: var(--text-light);
}

/* 联系我们 */
.contact {
    background: var(--bg-light);
}

.contact-info {
    max-width: 500px;
    margin: 0 auto;
}

.contact-item {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
}

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

.contact-label {
    font-weight: 500;
    color: var(--text-color);
    min-width: 100px;
}

/* 页脚 */
.footer {
    background: var(--primary-dark);
    color: white;
    text-align: center;
    padding: 30px 20px;
}

.copyright {
    margin-bottom: 10px;
    opacity: 0.9;
}

.icp a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
}

.icp a:hover {
    color: white;
    text-decoration: underline;
}

.beian {
    margin-top: 8px;
}

.beian a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
}

.beian a:hover {
    color: white;
    text-decoration: underline;
}

.beian img {
    height: 16px;
    width: auto;
    vertical-align: middle;
    margin-right: 4px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        height: auto;
        padding: 15px 20px;
        gap: 15px;
    }

    .logo-wrapper {
        justify-content: center;
    }

    .nav {
        gap: 20px;
    }

    .hero {
        padding: 60px 20px;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section {
        padding: 50px 20px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .contact-item {
        flex-direction: column;
        gap: 5px;
    }

    .contact-label {
        min-width: auto;
    }
}