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

/* CSS变量定义 */
:root {
    --primary-color: #000066; /* 深蓝色 */
    --secondary-color: #1E90FF; /* 霓虹蓝 */
    --accent-color: #8A2BE2; /* 亮紫色 */
    --background-gradient: linear-gradient(135deg, #000066, #1E90FF);
    --text-color: #FFFFFF;
    --border-color: rgba(255, 255, 255, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.5);
    --font-primary: 'Roboto Mono', monospace;
    --font-secondary: 'Inter', sans-serif;
    --transition-speed: 0.3s;
}

/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    background: var(--background-gradient);
    color: var(--text-color);
    font-family: var(--font-secondary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-primary);
    text-shadow: 2px 2px 5px var(--shadow-color);
    color: var(--text-color);
}

p, span, a {
    font-family: var(--font-secondary);
    color: var(--text-color);
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--accent-color);
}

/* 容器样式 */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 模块化网格系统 */
.grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.grid-item {
    flex: 1 1 calc(50% - 40px);
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px var(--shadow-color);
    transition: transform var(--transition-speed), background-color var(--transition-speed);
}

.grid-item:hover {
    transform: scale(1.05);
    background-color: rgba(255, 255, 255, 0.2);
}

/* 按钮样式 */
button {
    padding: 10px 20px;
    background-color: var(--secondary-color);
    border: none;
    border-radius: 5px;
    color: var(--text-color);
    font-family: var(--font-primary);
    cursor: pointer;
    transition: transform var(--transition-speed), background-color var(--transition-speed);
}

button:hover {
    transform: scale(1.1);
    background-color: var(--accent-color);
}

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

th, td {
    border: 1px solid var(--border-color);
    padding: 10px;
    text-align: left;
}

th {
    background-color: rgba(255, 255, 255, 0.2);
}

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

/* 代码块样式 */
pre {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: var(--font-primary);
    color: #00FF00;
}

code {
    font-family: var(--font-primary);
    color: #00FF00;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .grid-item {
        flex: 1 1 calc(50% - 40px);
    }
}

@media (max-width: 1200px) {
    .grid-item {
        flex: 1 1 calc(50% - 40px);
    }
}

@media (max-width: 1024px) {
    .grid-item {
        flex: 1 1 calc(50% - 40px);
    }
}

@media (max-width: 768px) {
    .grid-item {
        flex: 1 1 100%;
    }

    h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .grid-item {
        flex: 1 1 100%;
    }

    h1 {
        font-size: 1.5rem;
    }

    button {
        width: 100%;
    }
}

@media (max-width: 320px) {
    .grid-item {
        flex: 1 1 100%;
    }

    h1 {
        font-size: 1.2rem;
    }

    button {
        padding: 8px 16px;
    }
}

/* 背景动画 */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,87,34,0.3), transparent);
    animation: aurora-move 15s linear infinite;
    z-index: -1;
}

@keyframes aurora-move {
    0% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-50px) translateX(50px);
    }
    100% {
        transform: translateY(0) translateX(0);
    }
}

/* 导航栏样式 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.navbar a {
    margin: 0 10px;
    position: relative;
}

.navbar a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    left: 0;
    bottom: -5px;
    transition: width var(--transition-speed);
}

.navbar a:hover::after {
    width: 100%;
}

/* 文章样式 */
article {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px var(--shadow-color);
    margin: 20px 0;
}

article h2, article h3, article h4 {
    color: var(--secondary-color);
}

article ul {
    list-style: disc inside;
}

article table {
    background: rgba(255, 255, 255, 0.2);
}

/* 提示信息样式 */
.notice {
    background-color: rgba(255, 215, 0, 0.3);
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
    text-align: center;
    font-weight: bold;
}

