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

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #00264d, #5c0789, #00a896);
    background-size: 400% 400%;
    animation: gradientAnimation 15s ease infinite;
    color: #ffffff;
    line-height: 1.6;
    padding: 20px;
}

@keyframes gradientAnimation {
    0% {background-position: 0% 50%;}
    50% {background-position: 100% 50%;}
    100% {background-position: 0% 50%;}
}

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

header {
    text-align: center;
    padding: 50px 0;
}

header h1 {
    font-size: 48px;
    font-weight: bold;
    background: linear-gradient(to right, #5c0789, #00a896);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

header p {
    font-size: 18px;
    color: #dcdcdc;
}

.features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 40px 0;
}

.feature {
    flex: 1 1 calc(33.333% - 40px);
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: scale(1.05);
}

.feature img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.feature h3 {
    margin: 15px 0;
    font-size: 24px;
    color: #ffffff;
}

.feature p {
    font-size: 16px;
    color: #cccccc;
}

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

.sample-article h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #ffffff;
}

.sample-article h3 {
    font-size: 24px;
    margin: 20px 0 10px;
    color: #d1a3ff;
}

.sample-article p {
    font-size: 16px;
    margin-bottom: 15px;
    color: #e0e0e0;
}

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

.sample-article code {
    font-family: 'Courier New', Courier, monospace;
    color: #00ffcc;
}

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

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

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

.buttons {
    text-align: center;
    margin: 40px 0;
}

.buttons a {
    display: inline-block;
    padding: 15px 30px;
    margin: 10px;
    background: #5c0789;
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.buttons a:hover {
    background: #00a896;
    box-shadow: 0 0 15px rgba(0, 168, 150, 0.7);
}

footer {
    text-align: center;
    padding: 20px 0;
    color: #cccccc;
}

.footer-note {
    font-size: 14px;
}

@media (max-width: 1440px) {
    .feature {
        flex: 1 1 calc(33.333% - 40px);
    }
}

@media (max-width: 1200px) {
    .feature {
        flex: 1 1 calc(50% - 40px);
    }
}

@media (max-width: 1024px) {
    .feature {
        flex: 1 1 calc(50% - 40px);
    }
}

@media (max-width: 768px) {
    .features {
        flex-direction: column;
    }
    .feature {
        flex: 1 1 100%;
    }
    header h1 {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 28px;
    }
    .feature h3 {
        font-size: 20px;
    }
}

@media (max-width: 320px) {
    header h1 {
        font-size: 24px;
    }
    .feature h3 {
        font-size: 18px;
    }
}

/* 按钮悬停动画 */
button, .buttons a {
    position: relative;
    overflow: hidden;
}

button::after, .buttons a::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: all 0.3s ease;
}

button:hover::after, .buttons a:hover::after {
    width: 200%;
    height: 200%;
    opacity: 1;
}

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

a:hover {
    color: #5c0789;
    text-decoration: underline;
}

/* 图片装饰 */
.decorative-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.decorative-images img {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    object-fit: cover;
}

/* 提示信息 */
.reference-note {
    text-align: center;
    font-size: 16px;
    color: #ffcc00;
    margin-bottom: 20px;
}

