
/* 全局样式 */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom, #00008B, #4682B4);
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Roboto', sans-serif;
    color: #FFA500;
}

p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

a {
    color: #00FFFF;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

.card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
}

.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.tabs a {
    background: rgba(0, 0, 0, 0.2);
    padding: 10px 20px;
    border-radius: 5px;
    margin: 0 10px;
    transition: background 0.3s ease;
}

.tabs a.active {
    background: #FFA500;
}

pre {
    background: #000;
    color: #00FF00;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

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

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

th {
    background: #FFA500;
    color: #000;
}

.content {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.content.in-view {
    opacity: 1;
    transform: translateY(0);
}

.button {
    position: relative;
    background: #FFA500;
    color: #000;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    transition: background 0.3s ease;
}

.button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    0% { width: 0; height: 0; opacity: 1; }
    100% { width: 200%; height: 200%; opacity: 0; }
}

.chart {
    animation: refreshData 5s infinite;
}

@keyframes refreshData {
    from { opacity: 1; }
    to { opacity: 0.5; }
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }

    .tabs {
        flex-direction: column;
        align-items: center;
    }

    .tabs a {
        margin-bottom: 10px;
    }
}

