
/* 通用样式 */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(180deg, #0a0e1a, #1a2038);
    color: #e0e0e0;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    color: #f0f0f0;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    line-height: 1.3;
}

p {
    line-height: 1.7;
    margin-bottom: 1.2em;
    color: #d0d0d0;
}

a {
    color: #7bb7ff;
    text-decoration: none;
}

a:hover {
    color: #a0cfff;
}

/* 容器和布局 */
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 30px;
    padding-right: 30px;
}

.section {
    padding-top: 60px;
    padding-bottom: 60px;
    position: relative;
}

.section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 2em;
    color: #ffffff;
}

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

.grid-item {
    padding: 25px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.grid-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* 头部区域 */
.header-section {
    background: linear-gradient(90deg, #12182b, #273459);
    padding-top: 80px;
    padding-bottom: 100px;
    text-align: center;
}

.header-title {
    font-size: 3.5em;
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.header-subtitle {
    font-size: 1.4em;
    color: #c0c0c0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* 特色区域 */
.features-section {
    background: linear-gradient(180deg, #1a2038, #0f1321);
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    border-radius: 50%;
    background-color: #34496e;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

.feature-icon img {
    max-width: 40px;
    max-height: 40px;
    opacity: 0.8;
}

.feature-title {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: #ffffff;
}

.feature-description {
    color: #c0c0c0;
}

/* 示例文章区域 */
.article-section {
    background-color: #0a0e1a;
    padding-top: 80px;
    padding-bottom: 80px;
}

.article-title {
    font-size: 2.2em;
    color: #ffffff;
    text-align: center;
    margin-bottom: 40px;
}

article h2 {
    font-size: 1.8em;
    color: #ffffff;
    margin-top: 2em;
    margin-bottom: 1em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5em;
}

article h3 {
    font-size: 1.5em;
    color: #ffffff;
    margin-top: 1.8em;
    margin-bottom: 0.8em;
}

article p {
    color: #d0d0d0;
    margin-bottom: 1.4em;
}

article pre {
    background-color: #1e273d;
    color: #f8f8f2;
    padding: 15px;
    border-radius: 6px;
    overflow-x: auto;
    font-size: 0.9em;
    line-height: 1.5;
    tab-size: 4;
    white-space: pre-wrap;
}

article code {
    font-family: monospace, monospace;
}

article ul, article ol {
    padding-left: 30px;
    margin-bottom: 1.4em;
}

article li {
    color: #d0d0d0;
    line-height: 1.7;
    margin-bottom: 0.6em;
}

article table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2em;
}

article th, article td {
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px;
    text-align: left;
}

article th {
    background-color: rgba(255, 255, 255, 0.08);
    color: #eee;
}

/* 页脚 */
.footer-section {
    background-color: #070a13;
    padding-top: 40px;
    padding-bottom: 40px;
    text-align: center;
    color: #b0b0b0;
    font-size: 0.9em;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .container {
        max-width: 960px;
    }
    .section-title {
        font-size: 2.2em;
    }
    .header-title {
        font-size: 3em;
    }
    .header-subtitle {
        font-size: 1.2em;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 720px;
        padding-left: 20px;
        padding-right: 20px;
    }
    .section {
        padding-top: 50px;
        padding-bottom: 50px;
    }
    .section-title {
        font-size: 2em;
    }
    .header-section {
        padding-top: 60px;
        padding-bottom: 80px;
    }
    .header-title {
        font-size: 2.5em;
    }
    .header-subtitle {
        font-size: 1.1em;
    }
    .grid-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    .section {
        padding-top: 40px;
        padding-bottom: 40px;
    }
    .section-title {
        font-size: 1.8em;
    }
    .header-section {
        padding-top: 50px;
        padding-bottom: 70px;
    }
    .header-title {
        font-size: 2em;
    }
    .header-subtitle {
        font-size: 1em;
    }
}

@media (max-width: 320px) {
     .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    .header-title {
        font-size: 1.8em;
    }
     .header-subtitle {
        font-size: 0.9em;
    }
}

