
/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    font-family: "Helvetica Neue", Arial, sans-serif;
    background-color: #f0f4f8;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 页头 */
header {
    background: linear-gradient(135deg, #1e90ff, #00bfff);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

header h1 {
    font-size: clamp(24px, 6vw, 48px);
    /* 动态调整字体大小 */
    font-weight: bold;
    margin: 0;
    color: #fff;
    white-space: nowrap;
    /* 确保文字不换行 */
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    0% {
        text-shadow:
            0 0 5px rgba(30, 144, 255, 0.8),
            0 0 10px rgba(30, 144, 255, 0.8);
    }

    100% {
        text-shadow:
            0 0 10px rgba(30, 144, 255, 0.8),
            0 0 20px rgba(30, 144, 255, 0.8);
    }
}

header p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 10px;
}

header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #1e90ff, #00bfff);
}

/* 功能特色部分 */
.features {
    background-color: #fff;
    padding: 50px 0;
    text-align: center;
}

.features h2 {
    font-size: 36px;
    color: #1e90ff;
    margin-bottom: 30px;
    font-weight: bold;
}

.features ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.features li {
    flex: 1 1 30%;
    background-color: #f0f4f8;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.features li:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.features li h3 {
    font-size: 20px;
    color: #1e90ff;
    margin-bottom: 10px;
    font-weight: bold;
}

.features li p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

/* 主体内容 */
.main-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 50px;
}

.section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1 1 30%;
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.section:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.section h2 {
    font-size: 24px;
    color: #1e90ff;
    margin-bottom: 20px;
    font-weight: bold;
}

.section p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

.section a {
    display: inline-block;
    background: linear-gradient(90deg, #1e90ff, #00bfff);
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    margin-top: 20px;
    transition: transform 0.3s ease;
}

.section a:hover {
    transform: translateY(-3px);
}

/* 页脚 */
footer {
    background-color: #1e90ff;
    padding: 30px 0;
    text-align: center;
    color: #fff;
    font-size: 14px;
    margin-top: 80px;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 40px;
    border-radius: 12px;
    max-width: 800px;
    position: relative;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    max-height: 80vh;
    overflow-y: auto;
}

.modal h2 {
    font-size: 28px;
    color: #1e90ff;
    margin-bottom: 20px;
    font-weight: bold;
}

.modal p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.modal ul {
    margin: 20px 0;
    padding-left: 20px;
}

.modal li {
    margin-bottom: 10px;
}

.close {
    color: #1e90ff;
    font-size: 28px;
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
}

.close:hover {
    color: #00bfff;
}