
/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: #ffffff;
    line-height: 1.6;
    padding: 20px;
    animation: backgroundAnimation 15s linear infinite;
}

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

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

header h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 48px;
    color: #00bcd4;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 188, 212, 0.5);
}

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

nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

nav a {
    text-decoration: none;
    color: #ffffff;
    padding: 10px 20px;
    background: linear-gradient(135deg, #4c6ef5, #8e44ad);
    border-radius: 5px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

nav a:hover {
    box-shadow: 0 0 15px rgba(76, 110, 245, 0.8);
    transform: scale(1.05);
}

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

.card {
    background: rgba(30, 30, 30, 0.8);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.card h3 {
    font-family: 'Orbitron', sans-serif;
    color: #00bcd4;
    margin-bottom: 10px;
}

.card p {
    color: #e0e0e0;
}

footer {
    text-align: center;
    padding: 30px 0;
    background: rgba(20, 20, 20, 0.9);
    margin-top: 40px;
}

footer p {
    color: #b0b0b0;
}

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

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

@media (max-width: 1024px) {
    nav {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 32px;
    }
    nav a {
        padding: 8px 16px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 28px;
    }
    header p {
        font-size: 16px;
    }
}

@media (max-width: 320px) {
    header h1 {
        font-size: 24px;
    }
    nav a {
        padding: 6px 12px;
        font-size: 14px;
    }
}

.code-block {
    background: #1e1e1e;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    color: #00ff00;
    margin: 20px 0;
}

.table-responsive {
    overflow-x: auto;
}

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

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

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

th {
    background: #2c5364;
}

a[rel="nofollow"] {
    /* 内部链接不声明外部链接 */
}

