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

body {
    font-family: 'Roboto', sans-serif;
    background: radial-gradient(circle, rgb(30, 41, 59), rgb(17, 24, 39));
    color: #e2e8f0;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
    margin-bottom: 1rem;
}

p {
    color: #cbd5e1;
    margin-bottom: 1.5rem;
}

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

.header {
    position: relative;
    height: 400px;
    background: linear-gradient(to bottom, #00449e, #1a75ff);
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent);
    animation: rotate 10s linear infinite;
}

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

.header h1 {
    font-size: 3rem;
    z-index: 2;
    position: relative;
}

.panel {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

code {
    display: block;
    background: rgba(0, 0, 0, 0.4);
    color: #68d391;
    padding: 1rem;
    border-radius: 5px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    overflow-x: auto;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 1rem;
}

button {
    background-color: #1a75ff;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background-color: #00449e;
    transform: scale(1.05);
}

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

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

    code {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .header {
        height: 300px;
    }

    .panel {
        padding: 1.5rem;
    }

    button {
        padding: 0.8rem 1.5rem;
    }
}

