
/* 全局样式 */
body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #0A192F, #15202B);
    color: #EAEAEA;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    color: #68D391;
}

p {
    font-size: 1rem;
    color: #C4C4C4;
}

a {
    color: #68D391;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

a:hover {
    color: #4FD1C5;
}

/* 页面头部 */
header {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 30vh;
    background: linear-gradient(135deg, #0A192F, #15202B);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(104, 211, 145, 0.1) 10%, transparent 70%);
    animation: rotate-bg 10s infinite linear;
    transform-origin: center;
}

@keyframes rotate-bg {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

header h1 {
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    z-index: 1;
    position: relative;
}

/* 卡片布局 */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.card {
    background: linear-gradient(135deg, #15202B, #0A192F);
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    padding: 20px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
}

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

.card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #68D391, #4FD1C5);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.card:hover::after {
    opacity: 1;
}

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

/* 动画与交互 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1s ease-in-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .card-container {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .card-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .card-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 代码块样式 */
pre {
    background: #1E293B;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    color: #68D391;
}

code {
    font-size: 0.9rem;
    color: #4FD1C5;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #15202B;
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #2D3748;
}

th {
    background: #0A192F;
    color: #68D391;
}

td {
    color: #C4C4C4;
}

