/* ========== 全局重置与基础 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Microsoft YaHei", "微软雅黑", SimSun, "宋体", Arial, sans-serif;
    color: #333;
    background: #f5f6f8;
    line-height: 1.8;
    min-width: 320px;
}

a {
    color: #1a3a5c;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #2a6496;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== Header 导航栏 ========== */
.site-header {
    background: #1a3a5c;
    color: #fff;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    font-size: 22px;
    font-weight: bold;
    color: #fff;
    letter-spacing: 2px;
    white-space: nowrap;
}

.logo span {
    color: #6cb4ee;
}

.main-nav {
    display: flex;
    gap: 8px;
}

.main-nav a {
    color: rgba(255, 255, 255, 0.85);
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 15px;
    transition: all 0.3s;
}

.main-nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.main-nav a.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    font-weight: bold;
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 26px;
    cursor: pointer;
    padding: 4px 8px;
}

/* ========== Banner 横幅 ========== */
.banner {
    background: linear-gradient(135deg, #1a3a5c 0%, #2a5a8c 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.banner h1 {
    font-size: 34px;
    font-weight: bold;
    margin-bottom: 12px;
    letter-spacing: 3px;
}

.banner p {
    font-size: 18px;
    opacity: 0.9;
    letter-spacing: 1px;
}

/* 内页 Banner（较小） */
.banner-inner {
    padding: 40px 0;
}

.banner-inner h1 {
    font-size: 28px;
}

/* ========== 内容区 ========== */
.content {
    background: #fff;
    padding: 50px 0;
}

.section-title {
    font-size: 24px;
    color: #1a3a5c;
    text-align: center;
    margin-bottom: 10px;
    font-weight: bold;
}

.section-subtitle {
    text-align: center;
    color: #888;
    font-size: 14px;
    margin-bottom: 40px;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #1a3a5c;
    margin: 12px auto 0;
    border-radius: 2px;
}

/* 企业简介 */
.intro {
    margin-bottom: 50px;
}

.intro p {
    font-size: 16px;
    line-height: 2;
    color: #555;
    text-indent: 2em;
    margin-bottom: 10px;
}

/* 服务领域 */
.services {
    margin-bottom: 20px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: #f8f9fb;
    border-radius: 8px;
    padding: 30px 24px;
    text-align: center;
    border: 1px solid #e8ecf1;
    transition: all 0.3s;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(26, 58, 92, 0.1);
    border-color: #1a3a5c;
}

.service-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.service-card h3 {
    font-size: 18px;
    color: #1a3a5c;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 14px;
    color: #777;
    line-height: 1.8;
}

/* ========== 关于我们页 ========== */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content p {
    font-size: 16px;
    line-height: 2;
    color: #555;
    text-indent: 2em;
    margin-bottom: 16px;
}

.about-content h3 {
    font-size: 20px;
    color: #1a3a5c;
    margin: 30px 0 15px;
    padding-left: 12px;
    border-left: 4px solid #1a3a5c;
}

.license-section {
    margin-top: 40px;
    text-align: center;
}

.license-section h3 {
    border-left: none;
    padding-left: 0;
    text-align: center;
}

.license-section h3::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #1a3a5c;
    margin: 12px auto 0;
    border-radius: 2px;
}

.license-img {
    max-width: 600px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 8px;
    margin-top: 20px;
    background: #fafafa;
}

/* ========== 联系我们页 ========== */
.contact-content {
    max-width: 700px;
    margin: 0 auto;
}

.contact-info {
    background: #f8f9fb;
    border-radius: 8px;
    padding: 36px 40px;
    border: 1px solid #e8ecf1;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px dashed #e0e4ea;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-label {
    font-weight: bold;
    color: #1a3a5c;
    min-width: 100px;
    font-size: 15px;
}

.contact-value {
    color: #555;
    font-size: 15px;
}

/* ========== Footer 页脚 ========== */
.site-footer {
    background: #2c2c2c;
    color: #ccc;
    padding: 30px 0 20px;
    text-align: center;
    margin-top: 0;
}

.footer-info {
    margin-bottom: 12px;
    line-height: 2;
    font-size: 14px;
}

.footer-info p {
    margin: 2px 0;
}

.footer-beian {
    margin: 12px 0;
    font-size: 13px;
    line-height: 2;
}

.footer-beian a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-beian a:hover {
    color: #fff;
    text-decoration: underline;
}

.copyright {
    font-size: 12px;
    color: #888;
    margin-top: 8px;
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: #1a3a5c;
        flex-direction: column;
        padding: 10px 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav a {
        padding: 12px 24px;
        border-radius: 0;
    }

    .banner h1 {
        font-size: 24px;
        letter-spacing: 1px;
    }

    .banner p {
        font-size: 15px;
    }

    .banner {
        padding: 40px 0;
    }

    .service-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .contact-item {
        flex-direction: column;
    }

    .contact-label {
        margin-bottom: 4px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
