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

body {
    font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(135deg, #001233, #012a4a, #013a63);
    color: #e7e7ff;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* 星空背景效果 */
.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    animation: twinkle 4s infinite ease-in-out;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; transform: scale(1.2); }
}

/* 页面容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(1, 17, 36, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(90deg, #4facfe, #00f2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(79, 172, 254, 0.3);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: #e7e7ff;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #4facfe, #00f2fe);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* 英雄区域 */
.hero {
    margin-top: 5rem;
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle, rgba(1, 42, 74, 0.7) 0%, rgba(1, 17, 36, 0.9) 100%);
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, #4facfe, #00f2fe, #a6c1ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
    letter-spacing: -0.5px;
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: #ccd6f6;
    animation: fadeInUp 1.2s ease-out;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(45deg, #4facfe, #00f2fe);
    border-radius: 30px;
    box-shadow: 0 10px 20px rgba(79, 172, 254, 0.3);
    transition: all 0.3s ease;
    animation: fadeInUp 1.4s ease-out;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(79, 172, 254, 0.4);
}

/* 模块卡片样式 */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 4rem 0;
}

.card {
    background: rgba(3, 25, 48, 0.7);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.card-img {
    height: 200px;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-img img {
    transform: scale(1.1);
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #4facfe;
}

.card-text {
    margin-bottom: 1.5rem;
    color: #b3c5ef;
}

.card-button {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    background: linear-gradient(45deg, #4facfe, #00f2fe);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.card-button:hover {
    box-shadow: 0 5px 15px rgba(79, 172, 254, 0.4);
}

/* 特色区域 */
.features {
    margin: 5rem 0;
    padding: 3rem;
    background: rgba(1, 29, 51, 0.6);
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.features-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    background: linear-gradient(90deg, #4facfe, #a6c1ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-item {
    text-align: center;
    padding: 2rem;
    background: rgba(3, 37, 65, 0.5);
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-item:hover {
    transform: translateY(-10px);
    background: rgba(3, 42, 73, 0.7);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #4facfe;
}

.feature-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #e7e7ff;
}

.feature-desc {
    color: #b3c5ef;
}

/* 示例展示区域 */
.demo-section {
    margin: 5rem 0;
    position: relative;
}

.demo-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    background: linear-gradient(90deg, #4facfe, #a6c1ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.demo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.demo-card {
    background: rgba(2, 33, 58, 0.7);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.demo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.demo-card h3 {
    color: #4facfe;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.demo-card ul {
    list-style-position: inside;
    color: #b3c5ef;
}

.demo-card li {
    margin-bottom: 0.7rem;
}

/* 文章区域 */
.article-section {
    margin: 5rem 0;
    background: rgba(1, 29, 51, 0.7);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.article-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    background: linear-gradient(90deg, #4facfe, #a6c1ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.article-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: #e7e7ff;
}

.article-content h3 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    color: #4facfe;
}

.article-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.article-content b {
    color: #4facfe;
}

.article-content ul {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.7rem;
}

.article-content pre {
    background: rgba(1, 17, 36, 0.8);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.article-content code {
    font-family: 'Courier New', Courier, monospace;
    color: #79e3ff;
    line-height: 1.6;
}

/* 页脚 */
.footer {
    background: rgba(1, 17, 36, 0.9);
    padding: 3rem 0;
    margin-top: 5rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, #4facfe, #00f2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin-bottom: 2rem;
}

.footer-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #4facfe;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.7rem;
}

.footer-links a {
    color: #b3c5ef;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #4facfe;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #b3c5ef;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 1024px) {
    .hero {
        padding: 5rem 1.5rem;
    }
    
    .hero h1 {
        font-size: 2.7rem;
    }
    
    .features, .article-section {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        padding: 1rem;
    }
    
    .nav-links {
        margin-top: 1rem;
    }
    
    .nav-links li {
        margin: 0 0.7rem;
    }
    
    .hero h1 {
        font-size: 2.3rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .features-grid, .demo-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 4rem 1rem;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .cta-button {
        padding: 0.8rem 1.8rem;
        font-size: 1rem;
    }
    
    .cards-container {
        grid-template-columns: 1fr;
    }
    
    .article-content h2 {
        font-size: 1.8rem;
    }
    
    .article-content h3 {
        font-size: 1.5rem;
    }
    
    .footer-section {
        flex: 0 0 100%;
    }
}

@media (max-width: 320px) {
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .article-content pre {
        padding: 1rem;
    }
    
    .card-title {
        font-size: 1.3rem;
    }
}

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

@keyframes floating {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.floating {
    animation: floating 5s ease-in-out infinite;
}

.design-notice {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(3, 25, 48, 0.9);
    color: #e7e7ff;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

