* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f5f7fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.header {
    background-color: #0a192f;
    color: #fff;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: row; /* 明确横向排列（默认就是row，写出来更保险） */
    align-items: center; /* 垂直居中对齐 */
    gap: 10px; /* 图标和文字的间距 */
    white-space: nowrap; /* 禁止内部文字换行 */
    cursor: pointer;
}

.logo span {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    white-space: nowrap; /* 禁止文字换行 */
}

.xh-logo {
    width: 40px;
    height: 40px;
    border-radius: 9px; /* 等比缩放圆角，匹配原图标弧度 */
    background: linear-gradient(180deg, #1e88ff 0%, #00c2cc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 20px; /* 适配40px容器的字号 */
    font-weight: 900;
    font-family: "Microsoft Yahei", system-ui, sans-serif;
    flex-shrink: 0; /* 防止导航栏挤压变形 */
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: #ccd6f6;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

.nav-menu a:hover, .nav-menu a.active {
    color: #64ffda;
}

/* Banner */
.banner {
    width: 100%;
    height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 25, 47, 0.6);
}

.banner-content {
    position: relative;
    z-index: 1;
}

.banner h1 {
    font-size: 60px;
    margin-bottom: 20px;
}

.banner p {
    font-size: 20px;
    max-width: 850px;
    margin: 0 auto;
}

/* 区块通用 */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    color: #0a192f;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #64ffda;
    margin: 15px auto 0;
}

/* 卡片网格 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-body {
    padding: 25px;
}

.card-body h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #0a192f;
}

.card-body p {
    color: #666;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: #0a192f;
    color: #64ffda;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #112240;
}

/* 两列布局 */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 60px;
}

.two-col:last-child {
    margin-bottom: 0;
}

.three-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    align-items: center;
    margin-bottom: 60px;
}

.three-col:last-child {
    margin-bottom: 0;
}

.col-img img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.col-text h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #0a192f;
}

.col-text p {
    color: #666;
    margin-bottom: 15px;
    font-size: 16px;
}

.col-text ul {
    list-style: none;
    margin-top: 20px;
}

.col-text li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
    color: #555;
}

.col-text li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #64ffda;
    font-weight: bold;
}

/* CTA区块 */
.cta-section {
    background-color: #0a192f;
    color: #fff;
    text-align: center;
    padding: 80px 0;
}

.cta-section h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #ccd6f6;
}

.cta-section .btn {
    background-color: #64ffda;
    color: #0a192f;
    font-size: 18px;
    padding: 12px 40px;
}

.cta-section .btn:hover {
    background-color: #4fd1b0;
}

/* 页脚 */
.footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.3fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-col h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 20px;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.8;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
    font-size: 14px;
}

.footer-col ul li a {
    color: #94a3b8;
    text-decoration: none;
}

.footer-col ul li a:hover {
    color: #64ffda;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
}

/* 响应式 */
@media (max-width: 768px) {
    .banner h1 {
        font-size: 32px;
    }

    .banner p {
        font-size: 16px;
    }

    .two-col {
        grid-template-columns: 1fr;
    }

    .three-col {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        gap: 15px;
        font-size: 14px;
    }

    .section-title {
        font-size: 28px;
    }
}