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

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f8fafc;
    --bg-gray: #f1f5f9;
    --white: #ffffff;
    --border-color: #e5e7eb;
}

html {
    scroll-behavior: smooth;
}

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

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

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

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-color);
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--primary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.logo-icon svg {
    width: 20px;
    height: 20px;
}

.logo-text {
    font-size: 18px;
    font-weight: 600;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-size: 15px;
    transition: color 0.3s;
    position: relative;
}

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

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-color);
    transition: 0.3s;
}

/* 首页横幅 */
.hero {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: var(--white);
    padding: 160px 0 100px;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 18px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 50px;
    line-height: 1.8;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 80px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 42px;
    font-weight: 700;
}

.stat-label {
    font-size: 14px;
    opacity: 0.8;
    margin-top: 5px;
}

/* 通用标题样式 */
.section-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 50px;
}

/* 服务项目 */
.services {
    padding: 100px 0;
    background: var(--white);
}

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

.service-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 35px 30px;
    transition: all 0.3s;
}

.service-card:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.service-icon {
    width: 48px;
    height: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
}

/* 为什么选择我们 */
.why-us {
    padding: 100px 0;
    background: var(--bg-light);
}

.features {
    display: flex;
    justify-content: center;
    gap: 60px;
}

.feature-item {
    text-align: center;
    max-width: 180px;
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--white);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.feature-item h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-item p {
    font-size: 14px;
    color: var(--text-light);
}

/* 关于我们 */
.about {
    padding: 100px 0;
    background: var(--white);
}

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

.about-content p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 15px;
}

.company-info {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.info-row {
    display: flex;
    gap: 40px;
    margin-bottom: 20px;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-item {
    flex: 1;
    display: flex;
    gap: 15px;
}

.info-label {
    font-size: 14px;
    color: var(--text-light);
    white-space: nowrap;
}

.info-value {
    font-size: 14px;
    font-weight: 500;
}

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

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-card {
    background: var(--white);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
}

.contact-icon {
    width: 48px;
    height: 48px;
    color: var(--primary-color);
    margin: 0 auto 20px;
}

.contact-icon svg {
    width: 100%;
    height: 100%;
}

.contact-card h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.contact-card p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 5px;
}

/* 页脚 */
.footer {
    background: #1e293b;
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 25px;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

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

.footer-info p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
}

.footer-meta {
    margin-bottom: 18px;
}

.beian-block {
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
}

.beian-title {
    display: block;
    margin-bottom: 10px;
    font-size: 12px;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.45);
}

.beian-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 18px;
}

.beian-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    transition: border-color 0.3s, background 0.3s, color 0.3s;
}

.footer-info a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
}

.footer-info a:hover,
.beian-chip:hover {
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
}

.police-beian {
    padding-left: 10px;
}

.police-beian img {
    width: auto;
    height: 16px;
    object-fit: contain;
    flex: 0 0 auto;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features {
        flex-wrap: wrap;
        gap: 40px;
    }

    .stats {
        gap: 50px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        padding: 130px 0 80px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero-desc {
        font-size: 16px;
    }

    .stats {
        flex-direction: column;
        gap: 30px;
    }

    .stat-number {
        font-size: 36px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 26px;
    }

    .features {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .info-row {
        flex-direction: column;
        gap: 20px;
    }

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

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-nav {
        flex-wrap: wrap;
        gap: 20px;
    }

    .beian-links {
        flex-direction: column;
        gap: 8px;
    }

    .beian-block {
        width: 100%;
        padding: 14px;
    }

    .beian-chip {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }

    .company-info {
        padding: 25px;
    }
}
