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

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #000428, #004e92);
    color: #ffffff;
    line-height: 1.6;
    padding: 20px;
}

/* 响应式布局 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    padding: 50px 0;
    background: linear-gradient(135deg, #2c3e50, #4ca1af);
    border-radius: 10px;
    margin-bottom: 40px;
}

header h1 {
    font-size: 3em;
    color: #ffffff;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

header p {
    font-size: 1.2em;
    margin-top: 20px;
}

section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #ff7675;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.3);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.card {
    background: linear-gradient(145deg, #1e3c72, #2a5298);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
}

.card h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #55efc4;
}

.card p {
    font-size: 1em;
    color: #dfe6e9;
}

.article-section {
    background: rgba(0, 0, 0, 0.6);
    padding: 30px;
    border-radius: 10px;
    overflow: auto;
}

.article-section h2 {
    font-size: 2em;
    margin-bottom: 15px;
    color: #ffeaa7;
}

.article-section h3 {
    font-size: 1.8em;
    margin-top: 20px;
    color: #fab1a0;
}

.article-section p {
    margin: 15px 0;
    font-size: 1em;
    color: #dcdde1;
}

.article-section pre {
    background: #2f3640;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin: 15px 0;
}

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

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

table, th, td {
    border: 1px solid #636e72;
}

th, td {
    padding: 15px;
    text-align: left;
    color: #dfe6e9;
}

th {
    background: #0984e3;
}

footer {
    text-align: center;
    padding: 30px 0;
    background: linear-gradient(135deg, #2c3e50, #4ca1af);
    border-radius: 10px;
}

footer p {
    font-size: 1em;
    color: #b2bec3;
}

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

body {
    animation: fadeIn 2s ease-in;
}

/* 响应式调整 */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }

    .section-title {
        font-size: 2em;
    }

    .card h3 {
        font-size: 1.2em;
    }

    .article-section {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 30px 0;
    }

    header h1 {
        font-size: 1.5em;
    }

    .section-title {
        font-size: 1.5em;
    }

    .card h3 {
        font-size: 1em;
    }

    .article-section h2 {
        font-size: 1.5em;
    }

    .article-section h3 {
        font-size: 1.2em;
    }

    footer {
        padding: 20px 0;
    }
}

/* 按钮样式 */
button {
    background: #e17055;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: #d35400;
}

/* 链接样式 */
a {
    color: #00cec9;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #81ecec;
}

/* 提示样式 */
.reference-note {
    text-align: center;
    font-size: 1em;
    color: #ffeaa7;
    margin-top: 40px;
}

/* 其他视觉效果 */
.shadow-text {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.gradient-border {
    border: 2px solid;
    border-image-slice: 1;
    border-width: 2px;
    border-image-source: linear-gradient(45deg, #ff6b81, #f093fb, #f5576c);
}


