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

body {
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(135deg, #4A90E2, #7F58C6);
    color: #2C3E50;
    line-height: 1.6;
}

header {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px 40px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    color: #FFFFFF;
    background: linear-gradient(to right, #4A90E2, #7F58C6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav a {
    color: #FFFFFF;
    text-decoration: none;
    margin-left: 20px;
    font-size: 16px;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #FFD700;
}

.container {
    padding: 100px 20px 50px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    transition: background 0.3s ease;
}

.section:nth-child(even) {
    background: rgba(255, 255, 255, 0.2);
}

.section h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    margin-bottom: 20px;
    background: linear-gradient(to right, #4A90E2, #7F58C6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section p {
    font-size: 18px;
    margin-bottom: 20px;
}

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

.cta {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #7F58C6, #FFD700);
    border-radius: 10px;
}

.cta h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    color: #FFFFFF;
    margin-bottom: 20px;
}

.cta a {
    display: inline-block;
    padding: 15px 30px;
    background: #FFFFFF;
    color: #2C3E50;
    text-decoration: none;
    font-size: 18px;
    border-radius: 50px;
    transition: background 0.3s ease, color 0.3s ease;
}

.cta a:hover {
    background: #2C3E50;
    color: #FFFFFF;
}

.footer {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    font-size: 14px;
}

.code-block {
    background: #1C1C1C;
    color: #F8F8F2;
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    margin-bottom: 20px;
}

.code-block code {
    display: block;
    white-space: pre-wrap;
}

.sample-article {
    background: rgba(255, 255, 255, 0.15);
    padding: 40px;
    border-radius: 10px;
    margin-top: 40px;
}

.sample-article h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 26px;
    margin-bottom: 20px;
    color: #FFD700;
}

.sample-article pre {
    background: #2C3E50;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 20px;
}

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

.sample-article table, .sample-article th, .sample-article td {
    border: 1px solid #FFFFFF;
}

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

.sample-article th {
    background: #4A90E2;
    color: #FFFFFF;
}

@media (max-width: 1440px) {
    header {
        padding: 15px 30px;
    }

    .section {
        padding: 50px 15px;
    }

    .cta h2 {
        font-size: 28px;
    }

    .cta a {
        font-size: 16px;
        padding: 12px 25px;
    }
}

@media (max-width: 1200px) {
    .container {
        padding: 80px 15px 40px 15px;
    }

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

    .section p {
        font-size: 16px;
    }
}

@media (max-width: 1024px) {
    header h1 {
        font-size: 20px;
    }

    nav a {
        font-size: 14px;
        margin-left: 15px;
    }

    .section h2 {
        font-size: 22px;
    }

    .section p {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 40px 10px;
    }

    .cta h2 {
        font-size: 24px;
    }

    .cta a {
        font-size: 14px;
        padding: 10px 20px;
    }

    .sample-article {
        padding: 30px;
    }

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

@media (max-width: 480px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    header h1 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    nav a {
        margin-left: 0;
        margin-right: 15px;
    }

    .section h2 {
        font-size: 20px;
    }

    .section p {
        font-size: 14px;
    }

    .cta h2 {
        font-size: 20px;
    }

    .cta a {
        font-size: 12px;
        padding: 8px 16px;
    }

    .sample-article h2 {
        font-size: 20px;
    }
}

@media (max-width: 320px) {
    .section h2 {
        font-size: 18px;
    }

    .section p {
        font-size: 12px;
    }

    .cta h2 {
        font-size: 18px;
    }

    .cta a {
        font-size: 10px;
        padding: 6px 12px;
    }

    .sample-article h2 {
        font-size: 18px;
    }
}

/* 动画效果 */
@keyframes aurora-move {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body {
    background: radial-gradient(circle, rgba(255,87,34,1) 0%, transparent 70%);
    animation: aurora-move 15s linear infinite;
    background-size: 400% 400%;
}

.icon {
    width: 32px;
    height: 32px;
    fill: currentColor;
    transition: all 0.3s ease;
}

.icon:hover {
    transform: scale(1.2);
    fill: #FFD700;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

/* 提示信息样式 */
.tooltip {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background: #2C3E50;
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    opacity: 0.8;
}

/* 图片动画 */
.img-animate {
    transition: transform 0.3s ease;
}

.img-animate:hover {
    transform: scale(1.05);
}

