
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&family=Roboto:wght@400&display=swap');

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

body {
    font-family: 'Roboto', sans-serif;
    background: radial-gradient(circle, rgb(255, 87, 34), transparent);
    animation: 15s linear 0s infinite normal none running aurora-move;
    color: #333333;
    line-height: 1.6;
    padding: 20px;
}

h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: #1A2B42;
    margin-bottom: 16px;
}

p {
    margin-bottom: 16px;
}

a {
    color: #6A1B9A;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #FFA000;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

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

.header h1 {
    font-size: 2.5em;
    color: #1A2B42;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    position: relative;
    perspective: 1000px;
}

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

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    backface-visibility: hidden;
    padding: 20px;
}

.card-front {
    background: #ffffff;
}

.card-back {
    background: #f0f0f0;
    transform: rotateY(180deg);
}

.card img {
    width: 100%;
    height: auto;
    border-bottom: 1px solid #e0e0e0;
}

.card h3 {
    margin-top: 15px;
    margin-bottom: 10px;
    color: #1A2B42;
}

.card p {
    font-size: 0.95em;
    color: #555555;
}

.card .tags {
    margin: 15px 0;
}

.card .tags span {
    display: inline-block;
    background: #6A1B9A;
    color: #ffffff;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8em;
    margin-right: 5px;
    margin-bottom: 5px;
}

.card .buttons {
    margin-top: 15px;
}

.card .buttons a {
    display: inline-block;
    background: #FFA000;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    margin-right: 10px;
    transition: background 0.3s ease;
}

.card .buttons a:hover {
    background: #FFB300;
}

.footer {
    text-align: center;
    padding: 20px;
    background: #1A2B42;
    color: #ffffff;
    border-radius: 8px;
}

.code-block {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

.code-block code {
    font-family: 'Courier New', Courier, monospace;
    color: #d63384;
}

.article-section {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.article-section h2 {
    margin-bottom: 20px;
    color: #1A2B42;
}

.article-section pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 20px;
}

.article-section ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

@keyframes aurora-move {
    0% { background: radial-gradient(circle, rgb(255, 87, 34), transparent); }
    50% { background: radial-gradient(circle, rgb(34, 193, 195), transparent); }
    100% { background: radial-gradient(circle, rgb(255, 87, 34), transparent); }
}

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

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

@media (max-width: 1024px) {
    .grid {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 1.8em;
    }
    .card {
        margin: 0 auto;
    }
}

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

@media (max-width: 320px) {
    .header h1 {
        font-size: 1.5em;
    }
    .card h3 {
        font-size: 1.1em;
    }
    .card p {
        font-size: 0.85em;
    }
}

