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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: linear-gradient(135deg, #0A2463, #B46CCF);
    background-size: 400% 400%;
    animation: gradient-animation 15s linear infinite;
    min-height: 100vh;
}

/* 渐变动画 */
@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 容器 */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

header .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #FFC857;
    text-decoration: none;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
}

nav ul li a {
    text-decoration: none;
    color: #ffffff;
    font-size: 1rem;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #7BE495;
}

/* 主视觉区 */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    text-align: center;
    background: rgba(10, 36, 99, 0.7);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #FFC857;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #ffffff;
    max-width: 600px;
}

.hero .cta-button {
    padding: 15px 30px;
    border: none;
    border-radius: 30px;
    background: linear-gradient(135deg, #7BE495, #FFC857);
    color: #0A2463;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero .cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 200, 87, 0.5);
}

/* 服务模块 */
.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 60px 0;
}

.service-card {
    background: linear-gradient(135deg, #7BE495, #FFC857);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: #0A2463;
}

.service-card p {
    font-size: 1rem;
    color: #ffffff;
}

/* 示例展示 */
.example-display {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin: 60px 0;
}

.example-display h2 {
    margin-bottom: 20px;
    font-size: 2rem;
    color: #FFC857;
    text-align: center;
}

.example-display article {
    max-width: 800px;
    margin: 0 auto;
    color: #ffffff;
}

.example-display pre {
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
}

.example-display code {
    color: #7BE495;
    font-family: 'Roboto Mono', monospace;
}

/* 图像展示 */
.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 40px 0;
    justify-content: center;
}

.image-gallery img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
}

/* 底部样式 */
footer {
    text-align: center;
    padding: 20px 0;
    background: rgba(10, 36, 99, 0.8);
    color: #ffffff;
    position: relative;
}

footer .cta-button {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    background: linear-gradient(135deg, #0A2463, #B46CCF);
    color: #ffffff;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

footer .cta-button:hover {
    background: linear-gradient(135deg, #B46CCF, #0A2463);
}

/* 响应式设计 */
/* 小尺寸手机 320px */
@media (max-width: 320px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
    }
}

/* 大尺寸手机 480px */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.5rem;
    }

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

/* 竖屏平板 768px */
@media (max-width: 768px) {
    .hero {
        height: 80vh;
    }

    .services {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .example-display {
        padding: 30px;
    }
}

/* 中等屏幕 1024px */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }

    .services {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* 桌面显示器 1200px */
@media (max-width: 1200px) {
    .container {
        width: 85%;
    }
}

/* 大尺寸桌面显示器 1440px及以上 */
@media (min-width: 1440px) {
    .hero h1 {
        font-size: 4rem;
    }

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

/* 视觉提示 */
.note {
    text-align: center;
    font-size: 1rem;
    color: #FFC857;
    margin-top: 30px;
}

/* 链接样式 */
a {
    color: #7BE495;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #FFC857;
}

/* 按钮样式 */
.button {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #0A2463, #B46CCF);
    color: #ffffff;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

