
/* 基本重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 全局字体和背景 */
body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: #ffffff;
    line-height: 1.6;
    padding: 20px;
    transition: background 0.5s ease;
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: #ffd700;
    margin-bottom: 20px;
}

h1 {
    font-size: 3em;
    text-align: center;
    margin-top: 20px;
}

h2 {
    font-size: 2.5em;
    border-bottom: 2px solid rgba(255, 215, 0, 0.5);
    padding-bottom: 10px;
}

h3 {
    font-size: 2em;
    margin-top: 30px;
}

/* 段落样式 */
p {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

/* 链接样式 */
a {
    color: #ff6f61;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ffd700;
}

/* 代码块样式 */
pre {
    background: rgba(0, 0, 0, 0.6);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 20px;
}

code {
    font-family: 'Source Code Pro', monospace;
    color: #00ffea;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th, td {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px;
    text-align: left;
}

th {
    background: rgba(255, 215, 0, 0.3);
}

tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.1);
}

/* 图片样式 */
img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
}

/* 网格容器 */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

/* 卡片样式 */
.card {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background 0.3s ease;
}

.card:hover {
    transform: scale(1.05);
    background: rgba(255, 215, 0, 0.2);
}

/* 动画效果 */
@keyframes aurora-move {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    animation: aurora-move 15s linear infinite;
}

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

@media (max-width: 1200px) {
    body {
        padding: 15px;
    }
    h1 {
        font-size: 2.5em;
    }
    h2 {
        font-size: 2em;
    }
}

@media (max-width: 1024px) {
    .grid-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    h1 {
        font-size: 2.2em;
    }
    h2 {
        font-size: 1.8em;
    }
}

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

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    h1 {
        font-size: 1.8em;
    }
    h2 {
        font-size: 1.6em;
    }
}

@media (max-width: 320px) {
    h1 {
        font-size: 1.5em;
    }
    h2 {
        font-size: 1.4em;
    }
    p {
        font-size: 1em;
    }
}

/* 界面提示 */
.notice {
    text-align: center;
    font-size: 1.2em;
    margin: 30px 0;
    color: #ffd700;
}

/* 内部链接样式 */
a[rel="nofollow"] {
    /* 无需特别样式，仅确保添加属性 */
}

/* 卡片内的图文布局 */
.card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.card-content img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    margin-bottom: 15px;
}

/* 动态粒子动画 */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    pointer-events: none;
    z-index: -1;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.modal.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, -60%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

/* 按钮样式 */
.button {
    background: #ff6f61;
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.button:hover {
    background: #ffd700;
    transform: scale(1.05);
}

/* 加强代码块可读性 */
pre code {
    display: block;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* 优化代码块滚动条 */
pre {
    scrollbar-width: thin;
    scrollbar-color: #ffd700 rgba(0, 0, 0, 0.5);
}

pre::-webkit-scrollbar {
    height: 8px;
}

pre::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.5);
}

pre::-webkit-scrollbar-thumb {
    background-color: #ffd700;
    border-radius: 4px;
}

/* 额外装饰性元素 */
.decorative {
    position: absolute;
    width: 150px;
    height: 150px;
    background: rgba(255, 215, 0, 0.2);
    border-radius: 50%;
    top: 10%;
    left: 80%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
    100% { transform: translateY(0) rotate(360deg); }
}

