
/* 基本样式设定 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0f172a, #1e40af, #10b981);
    color: #ffffff;
    overflow-x: hidden;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.8);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    z-index: 1000;
    transition: background 0.5s ease;
}

.navbar .logo {
    font-size: 24px;
    font-weight: bold;
    color: #10b981;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

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

.navbar ul li a:hover {
    color: #10b981;
}

/* 主视觉区域 */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    animation: fadeIn 2s ease-in-out;
}

.hero p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
    animation: fadeIn 3s ease-in-out;
}

.hero .cta-button {
    background-color: #10b981;
    border: none;
    padding: 15px 30px;
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.hero .cta-button:hover {
    background-color: #047857;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.5);
}

/* 内容区域 */
.section {
    padding: 100px 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section h2 {
    font-size: 36px;
    margin-bottom: 40px;
    color: #10b981;
    animation: fadeInUp 1s ease-in-out;
}

.section .cards {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.section .card {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.section .card img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.section .card h3 {
    margin-top: 15px;
    font-size: 20px;
    color: #ffffff;
}

.section .card p {
    margin-top: 10px;
    font-size: 16px;
    line-height: 1.5;
}

/* 示例数据展示 */
.sample-data {
    background: rgba(15, 23, 42, 0.9);
    padding: 50px;
    border-radius: 10px;
    max-width: 1000px;
    margin: 50px auto;
}

.sample-data h2 {
    font-size: 28px;
    color: #10b981;
    margin-bottom: 20px;
    text-align: center;
}

.sample-data ul {
    list-style: disc;
    padding-left: 20px;
    line-height: 1.8;
}

.sample-data ul li {
    margin-bottom: 10px;
}

/* 文章展示 */
.article-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 50px;
    border-radius: 10px;
    max-width: 1000px;
    margin: 50px auto;
}

.article-section h2, .article-section h3 {
    color: #10b981;
}

.article-section p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.article-section pre {
    background: #1e40af;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

.article-section code {
    color: #10b981;
    font-family: 'Courier New', Courier, monospace;
}

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

.article-section table, .article-section th, .article-section td {
    border: 1px solid #10b981;
}

.article-section th, .article-section td {
    padding: 10px;
    text-align: left;
}

.article-section img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* 联系我们 */
.contact {
    background: rgba(15, 23, 42, 0.8);
    color: #ffffff;
    padding: 50px;
    text-align: center;
}

.contact h2 {
    font-size: 28px;
    color: #10b981;
    margin-bottom: 20px;
}

.contact p {
    font-size: 16px;
    line-height: 1.6;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .navbar {
        padding: 15px 40px;
    }
    .hero h1 {
        font-size: 40px;
    }
    .hero p {
        font-size: 16px;
    }
}

@media (max-width: 1200px) {
    .navbar ul {
        gap: 15px;
    }
    .section {
        padding: 80px 30px;
    }
    .section .cards {
        gap: 20px;
    }
    .section .card {
        width: 280px;
    }
}

@media (max-width: 1024px) {
    .navbar {
        padding: 10px 30px;
    }
    .hero h1 {
        font-size: 32px;
    }
    .section .card {
        width: 250px;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .navbar ul {
        flex-direction: column;
        width: 100%;
    }
    .navbar ul li {
        margin-bottom: 10px;
    }
    .hero h1 {
        font-size: 28px;
    }
    .hero p {
        font-size: 14px;
    }
    .section .cards {
        flex-direction: column;
        align-items: center;
    }
    .section .card {
        width: 100%;
    }
    .sample-data, .article-section {
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 8px 20px;
    }
    .navbar .logo {
        font-size: 20px;
    }
    .navbar ul li a {
        font-size: 14px;
    }
    .hero h1 {
        font-size: 24px;
    }
    .hero p {
        font-size: 12px;
    }
    .hero .cta-button {
        padding: 10px 20px;
        font-size: 14px;
    }
    .section {
        padding: 60px 20px;
    }
}

@media (max-width: 320px) {
    .section .card {
        width: 100%;
    }
}

/* 背景动态效果 */
.lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.line {
    stroke: #10b981;
    stroke-width: 1;
    opacity: 0.3;
    animation: wave 10s infinite linear;
}

@keyframes wave {
    from { transform: translateX(0); }
    to { transform: translateX(-1000px); }
}

