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

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    color: #e0e0e0;
    line-height: 1.6;
    padding: 20px;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
}

p {
    font-size: 1rem;
    color: #c8c8c8;
    margin-bottom: 1rem;
}

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

a:hover {
    color: #00cc77;
}

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

.header {
    text-align: center;
    margin-bottom: 40px;
}

.header h1 {
    font-size: 2.5rem;
    background: linear-gradient(90deg, #00ff99, #00ccff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease-in-out;
}

.section:hover {
    transform: translateY(-5px);
}

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

.card {
    background: linear-gradient(135deg, #1a1a1a, #2c2c2c);
    border-radius: 10px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.card:hover {
    background: linear-gradient(135deg, #2c2c2c, #1a1a1a);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 255, 153, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

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

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

.card h3 {
    font-size: 1.2rem;
    color: #00ff99;
    margin-bottom: 10px;
}

.card p {
    font-size: 0.9rem;
    color: #c8c8c8;
}

.button {
    display: inline-block;
    background: linear-gradient(90deg, #00ff99, #00ccff);
    color: #0f0c29;
    padding: 10px 20px;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: bold;
    transition: all 0.3s ease-in-out;
}

.button:hover {
    background: linear-gradient(90deg, #00ccff, #00ff99);
    box-shadow: 0 4px 10px rgba(0, 255, 153, 0.5);
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }

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

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .section {
        padding: 15px;
    }

    .card {
        padding: 15px;
    }
}

.code-block {
    background: #1a1a1a;
    color: #00ff99;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

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

table th, table td {
    border: 1px solid #333;
    padding: 10px;
    text-align: left;
}

table th {
    background: #2c2c2c;
    color: #00ff99;
}

table td {
    background: #1a1a1a;
    color: #c8c8c8;
}

