/* 全局重置与基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* 启用平滑滚动 */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #334155;
    background-color: #f8fafc;
}

/* 统一容器控制 */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.nav-links a {
    color: #475569;
    text-decoration: none;
    margin-left: 24px;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #2563eb; /* 悬停时变为蓝色 */
}

/* 宽屏视觉区 (Hero Section) */
.hero {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
    padding: 90px 0;
    text-align: center;
}

.hero h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.hero p {
    font-size: 1.1rem;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto;
}

/* 通用区块样式 */
.section {
    padding: 80px 0;
}

.bg-light {
    background-color: #f1f5f9;
}

.section-title {
    font-size: 1.6rem;
    color: #0f172a;
    text-align: center;
    margin-bottom: 24px;
    position: relative;
}

/* 标题下方的装饰短线 */
.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background-color: #2563eb;
    margin: 10px auto 0 auto;
    border-radius: 2px;
}

.section-desc {
    max-width: 800px;
    margin: 0 auto;
    text-align: justify;
    color: #475569;
    font-size: 1rem;
    line-height: 1.8;
}

/* 网格布局（自适应） */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* 卡片样式 */
.card {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.card h4 {
    font-size: 1.2rem;
    color: #1e293b;
    margin-bottom: 12px;
}

.card p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
}

/* 服务项目细化样式 */
.service-item {
    background: #ffffff;
    padding: 24px;
    border-left: 4px solid #2563eb;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.service-item h4 {
    font-size: 1.1rem;
    color: #0f172a;
    margin-bottom: 8px;
}

.service-item p {
    font-size: 0.95rem;
    color: #475569;
}

/* 联系信息区域 */
.text-center {
    text-align: center;
}

.contact-info {
    margin-top: 30px;
    display: inline-block;
    text-align: left;
    background: #f1f5f9;
    padding: 20px 30px;
    border-radius: 8px;
}

.contact-info p {
    margin: 8px 0;
    font-size: 0.95rem;
}

/* 页脚样式 */
footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding: 40px 0;
    font-size: 0.9rem;
    border-top: 1px solid #1e293b;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

footer a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* 手机端响应式适配 */
@media (max-width: 768px) {
    .navbar-container {
        flex-direction: column;
        height: auto;
        padding: 15px 20px;
        gap: 10px;
    }

    .nav-links a {
        margin: 0 10px;
    }

    .hero {
        padding: 60px 0;
    }

    .hero h2 {
        font-size: 1.6rem;
    }

    .section {
        padding: 50px 0;
    }
}