
/* 网页通用样式 */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    color: #f0f0f0;
    background: linear-gradient(to bottom, #0a0a0a, #1a1a40);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 0.8em;
    line-height: 1.3;
}

h1 { font-size: 2.5em; }
h2 { font-size: 2em; }
h3 { font-size: 1.6em; }
h4 { font-size: 1.4em; }
h5 { font-size: 1.2em; }
h6 { font-size: 1em; }

p {
    margin-bottom: 1.2em;
    font-size: 1em;
    color: #d0d0d0;
}

a {
    color: #38B6FF;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #5ECEFF;
}

ul, ol {
    margin-bottom: 1.2em;
    padding-left: 20px;
}

li {
    margin-bottom: 0.6em;
    color: #d0d0d0;
}

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

.section {
    padding: 60px 0;
    text-align: center;
}

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

.grid-item {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* 头部样式 */
header {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8em;
    font-weight: bold;
    color: #ffffff;
}

nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
}

nav li {
    margin-left: 30px;
}

nav a {
    display: block;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* 英雄区域样式 */
.hero-section {
    background: linear-gradient(135deg, #1a1a40 0%, #2a2a60 100%);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.4em;
    color: #cccccc;
    margin-bottom: 40px;
}

.hero-button {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.1em;
    border-radius: 8px;
    background-color: #38B6FF;
    color: #ffffff;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.hero-button:hover {
    background-color: #5ECEFF;
    transform: scale(1.05);
}

.hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.1;
    z-index: 0;
}

/* 特色模块样式 */
.features-section {
    background: #121228;
}

.feature-item {
    text-align: center;
    padding: 30px;
}

.feature-icon {
    font-size: 3em;
    color: #38B6FF;
    margin-bottom: 20px;
}

/* 案例展示模块样式 */
.cases-section {
    background: linear-gradient(to bottom, #1a1a40, #121228);
}

.case-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.case-item:hover {
    transform: translateY(-10px);
}

.case-image {
    width: 100%;
    display: block;
}

.case-content {
    padding: 25px;
    background-color: #0a0a0a;
}

.case-title {
    font-size: 1.5em;
    margin-bottom: 15px;
}

.case-description {
    color: #cccccc;
}

/* 代码示例样式 */
pre {
    background-color: #1e1e1e;
    color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 0.9em;
    line-height: 1.4;
    tab-size: 4;
    white-space: pre-wrap;
    word-wrap: break-word;
}

code {
    font-family: 'Courier New', monospace;
}

/* 文章展示模块样式 */
.article-section {
    background: #0a0a0a;
    padding: 60px 0;
}

.article-content {
    text-align: left;
}

.article-content h2 {
    font-size: 2.2em;
    margin-bottom: 25px;
    border-bottom: 2px solid #38B6FF;
    padding-bottom: 10px;
    display: inline-block;
}

.article-content h3 {
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 20px;
}

.article-content h4 {
    font-size: 1.5em;
    margin-top: 25px;
    margin-bottom: 15px;
}

.article-content ul, .article-content ol {
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 10px;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    margin-bottom: 20px;
}

.article-content th, .article-content td {
    border: 1px solid #333;
    padding: 10px;
    text-align: left;
}

.article-section strong {
    color: #5ECEFF;
}

.article-section span {
    color: #5ECEFF;
    font-weight: bold;
}

.article-section em, .article-section i {
    font-style: italic;
    color: #cccccc;
}

/* 页脚样式 */
footer {
    background: #0a0a0a;
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid #222;
    margin-top: auto;
}

footer p {
    font-size: 0.9em;
    color: #888;
}

/* 小屏幕适配 */
@media (max-width: 768px) {
    .container {
        width: 95%;
    }
    .section {
        padding: 40px 0;
    }
    .hero-section {
        padding: 80px 0;
    }
    .hero-title {
        font-size: 2.8em;
    }
    .hero-subtitle {
        font-size: 1.2em;
    }
    nav ul {
        flex-direction: column;
        text-align: center;
    }
    nav li {
        margin-left: 0;
        margin-top: 15px;
    }
    .grid-container {
        grid-template-columns: 1fr;
    }
    .article-content h2 {
        font-size: 2em;
    }
    .article-content h3 {
        font-size: 1.6em;
    }
    .article-content h4 {
        font-size: 1.3em;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 60px 0;
    }
    .hero-title {
        font-size: 2.2em;
    }
    .hero-subtitle {
        font-size: 1em;
    }
}

