
/* 基础样式 */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #0A1F3C, #1E3D59);
    color: #F5F5F7;
    overflow-x: hidden;
}

h2, h3 {
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    color: #39FF14;
    margin-top: 20px;
    margin-bottom: 15px;
    text-shadow: 0 0 5px rgba(57, 255, 20, 0.8);
}

p {
    font-size: 16px;
    line-height: 1.7;
    color: #F5F5F7;
    margin-bottom: 15px;
}

a {
    color: #39FF14;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #F5F5F7;
}

code {
    background-color: #223854;
    color: #eee;
    padding: 8px 12px;
    border-radius: 5px;
    display: block;
    overflow-x: auto;
    white-space: pre-wrap;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    margin: 10px 0;
}

pre {
    background-color: #223854;
    color: #eee;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    white-space: pre-wrap;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.4;
    margin: 15px 0;
}

ul, ol {
    color: #F5F5F7;
    margin-bottom: 15px;
}

li {
    line-height: 1.6;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    color: #F5F5F7;
}

th, td {
    border: 1px solid #33475b;
    padding: 8px;
    text-align: left;
}

th {
    background-color: #33475b;
    font-weight: bold;
}

/* 布局和模块化样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 30px;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #39FF14;
    text-shadow: 0 0 10px rgba(57, 255, 20, 0.9);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 18px;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-links a:hover {
    background-color: rgba(57, 255, 20, 0.1);
    color: #F5F5F7;
}

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    padding: 50px 0;
}

.hero-content {
    padding-right: 20px;
}

.hero-title {
    font-size: 48px;
    font-weight: bolder;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 15px rgba(57, 255, 20, 0.9);
}

.hero-subtitle {
    font-size: 20px;
    color: #ddd;
    margin-bottom: 30px;
}

.hero-image {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

.features {
    padding: 60px 0;
    background-color: rgba(10, 31, 60, 0.8);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    margin-bottom: 40px;
    padding: 40px;
}

.features-title {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 0 0 10px rgba(57, 255, 20, 0.9);
}

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

.feature-item {
    background-color: #1E3D59;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    margin-bottom: 20px;
    text-align: center;
}

.feature-icon img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.feature-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #39FF14;
    text-shadow: 0 0 5px rgba(57, 255, 20, 0.8);
}

.feature-description {
    font-size: 16px;
    line-height: 1.6;
    color: #ddd;
}

.article-section {
    padding: 40px 20px;
    background-color: rgba(10, 31, 60, 0.7);
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.3);
    margin-bottom: 40px;
}

.article-section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 32px;
}

.article-content {
    padding: 20px;
}

.footer {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid rgba(57, 255, 20, 0.2);
    color: #ddd;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .container {
        padding: 15px;
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 30px;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-image {
        order: -1;
    }

    .nav-links {
        gap: 15px;
        flex-direction: column;
        text-align: center;
        position: absolute;
        top: 80px;
        right: 0;
        background-color: rgba(10, 31, 60, 0.95);
        width: 100%;
        padding: 20px 0;
        border-radius: 0 0 10px 10px;
        z-index: 100;
        display: none; /* 默认隐藏，JS控制显示 */
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        display: block;
        padding: 10px 20px;
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
    }

    .logo {
        margin-bottom: 15px;
    }
}

@media (max-width: 768px) {
    .features-title {
        font-size: 32px;
    }

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

    .article-section h2 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .features-title {
        font-size: 28px;
    }

    .article-section h2 {
        font-size: 24px;
    }
}

@media (max-width: 320px) {
    .hero-title {
        font-size: 28px;
    }

    .feature-title {
        font-size: 22px;
    }
}

/* 辅助类 */
.highlight {
    color: #39FF14;
    font-weight: bold;
}

.text-center {
    text-align: center;
}

