
/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: linear-gradient(135deg, #4c6ef5, #8f7ae6, #b3e5fc);
    overflow-x: hidden;
}

/* 渐变极光背景动画 */
@keyframes aurora-move {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body {
    background: radial-gradient(circle, rgb(76, 110, 245), transparent);
    animation: aurora-move 15s linear infinite;
}

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

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    padding: 15px 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.navbar li {
    margin: 0 15px;
}

.navbar a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #b3e5fc;
}

/* 主视觉区 */
.hero-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    z-index: -1;
}

.hero-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #4c6ef5, #8f7ae6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-slogan {
    font-size: 24px;
    margin-bottom: 30px;
}

.cta-button {
    background: #4c6ef5;
    color: #ffffff;
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle, rgba(255,255,255,0.3), transparent);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s ease;
}

.cta-button:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

.cta-button:hover {
    background: #8f7ae6;
    box-shadow: 0 0 20px rgba(143, 122, 230, 0.6);
}

/* 服务卡片区 */
.services-section {
    padding: 60px 0;
    background: rgba(0, 0, 0, 0.4);
}

.services-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    color: #ffffff;
}

.services-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.service-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    width: 300px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-title {
    font-size: 24px;
    margin-bottom: 15px;
    color: #b3e5fc;
}

.service-content {
    font-size: 16px;
    color: #ffffff;
}

/* 示例文章区 */
.article-section {
    padding: 60px 0;
    background: rgba(0, 0, 0, 0.3);
}

.article-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 30px;
    color: #ffffff;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
}

.article-content h2,
.article-content h3,
.article-content h4 {
    color: #8f7ae6;
}

.article-content p {
    color: #ffffff;
    margin-bottom: 15px;
}

.article-content pre {
    background: rgba(0, 0, 0, 0.6);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

.article-content code {
    color: #ffab40;
    font-family: 'Courier New', Courier, monospace;
}

.sample-label {
    display: block;
    text-align: right;
    font-size: 14px;
    margin-bottom: 10px;
    color: #ffab40;
}

/* 图片展示区 */
.image-gallery {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

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

/* 底部信息区 */
.footer {
    background: rgba(0, 0, 0, 0.5);
    padding: 30px 0;
    text-align: center;
    color: #ffffff;
    position: relative;
    z-index: 1;
}

.footer a {
    color: #8f7ae6;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #b3e5fc;
}

.social-icons {
    margin-top: 15px;
}

.social-icons img {
    width: 30px;
    height: 30px;
    margin: 0 5px;
}

/* 提示信息 */
.reference-note {
    text-align: center;
    font-size: 16px;
    margin: 20px 0;
    color: #ffab40;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .hero-title {
        font-size: 42px;
    }
    .hero-slogan {
        font-size: 20px;
    }
}

@media (max-width: 1200px) {
    .services-container {
        justify-content: center;
    }
}

@media (max-width: 1024px) {
    .services-container {
        flex-direction: column;
        align-items: center;
    }
    .service-card {
        width: 80%;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }
    .hero-slogan {
        font-size: 18px;
    }
    .cta-button {
        padding: 12px 25px;
        font-size: 16px;
    }
    .services-title {
        font-size: 28px;
    }
    .article-title {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .navbar ul {
        flex-direction: column;
    }
    .navbar li {
        margin: 10px 0;
    }
    .hero-title {
        font-size: 28px;
    }
    .hero-slogan {
        font-size: 16px;
    }
    .cta-button {
        padding: 10px 20px;
        font-size: 14px;
    }
    .services-title {
        font-size: 24px;
    }
    .article-title {
        font-size: 24px;
    }
    .service-card {
        width: 100%;
    }
    .article-content {
        padding: 20px;
    }
}

@media (max-width: 320px) {
    .hero-title {
        font-size: 24px;
    }
    .hero-slogan {
        font-size: 14px;
    }
    .cta-button {
        padding: 8px 16px;
        font-size: 12px;
    }
    .services-title {
        font-size: 20px;
    }
    .article-title {
        font-size: 20px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 1s ease-in-out forwards;
    opacity: 0;
}


