
/* 引入字体 */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700&family=Roboto+Mono&display=swap');

/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto Mono', monospace;
    background: linear-gradient(135deg, #000428, #004e92);
    color: #ffffff;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* 容器 */
.container {
    width: 90%;
    max-width: 1200px;
    padding: 20px;
}

/* 标题样式 */
h1, h2, h3, h4 {
    font-family: 'Orbitron', sans-serif;
    color: #00ff99;
    margin-top: 20px;
    margin-bottom: 10px;
}

h1 {
    font-size: 2.5em;
    text-align: center;
}

h2 {
    font-size: 2em;
}

h3 {
    font-size: 1.75em;
}

h4 {
    font-size: 1.5em;
}

/* 段落样式 */
p {
    font-size: 1em;
    margin-bottom: 15px;
    color: #e0e0e0;
}

/* 代码块样式 */
pre {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 0.9em;
    color: #00ff99;
}

code {
    font-family: 'Roboto Mono', monospace;
    color: #00ff99;
}

/* 列表样式 */
ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 15px;
}

li {
    margin-bottom: 10px;
}

/* 卡片样式 */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 255, 153, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 10px 20px rgba(0, 255, 153, 0.5);
}

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

.card h4 {
    margin: 10px 0;
    font-size: 1.25em;
    color: #00ff99;
    text-align: center;
}

.card p {
    font-size: 0.95em;
    text-align: center;
    color: #c0c0c0;
    margin-bottom: 10px;
}

.card .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
}

.card .tags span {
    background: #00ff99;
    color: #000428;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8em;
}

/* 文章内图片样式 */
article img {
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 8px;
    margin: 10px 0;
}

/* 链接样式 */
a {
    color: #00ff99;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* 提示信息样式 */
.reference-note {
    background: rgba(0, 255, 153, 0.2);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 5px;
    text-align: center;
    margin: 20px 0;
    font-size: 1em;
}

/* 代码翻转效果 */
.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;
}

.card-back {
    transform: rotateY(180deg);
    background: rgba(0, 255, 153, 0.1);
    color: #ffffff;
    padding: 20px;
    border-radius: 10px;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    h1 {
        font-size: 2.2em;
    }
    h2 {
        font-size: 1.8em;
    }
    h3 {
        font-size: 1.6em;
    }
    h4 {
        font-size: 1.3em;
    }
}

@media (max-width: 1200px) {
    .container {
        width: 95%;
    }
}

@media (max-width: 1024px) {
    .card-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2em;
    }
    h2 {
        font-size: 1.6em;
    }
    .card-container {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8em;
    }
    h2 {
        font-size: 1.4em;
    }
    .card-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 320px) {
    h1 {
        font-size: 1.5em;
    }
    .container {
        padding: 10px;
    }
}

