
/* 
整体页面样式 
使用HTML5和CSS3技术，包括响应式设计和高级视觉效果。主色调采用冷色系，如深蓝和浅灰，辅色使用金色点缀，营造科技感和专业感。添加磨砂玻璃效果、渐变背景、阴影和动态动画，提升页面的层次感和互动性。
*/

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #1E3A8A, #D1D5DB);
    color: #333;
    overflow-x: hidden;
    transition: background 0.5s ease, color 0.5s ease;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar a {
    color: #FFD700;
    text-decoration: none;
    margin: 0 15px;
    font-size: 16px;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #FFC107;
}

/* 侧边栏导航样式 */
.sidebar {
    position: fixed;
    left: 0;
    top: 60px;
    width: 250px;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    padding-top: 20px;
}

.sidebar a {
    display: block;
    color: #FFFFFF;
    padding: 10px 20px;
    text-decoration: none;
    font-size: 16px;
    transition: background 0.3s ease;
}

.sidebar a:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 侧边栏打开状态 */
.sidebar.open {
    transform: translateX(0);
}

/* 内容区域样式 */
.content {
    padding: 100px 40px 40px 300px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 标题样式 */
h1, h2, h3, h4 {
    color: #FFD700;
    margin-bottom: 20px;
}

h1 {
    font-size: 36px;
}

h2 {
    font-size: 28px;
}

h3 {
    font-size: 22px;
}

h4 {
    font-size: 18px;
}

/* 段落样式 */
p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* 代码块样式 */
pre {
    background: rgba(0, 0, 0, 0.7);
    color: #FFD700;
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
    font-size: 14px;
    margin-bottom: 20px;
}

code {
    font-family: 'Courier New', Courier, monospace;
}

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

img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

/* 卡片样式 */
.card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 20px;
    margin-bottom: 40px;
    transition: all 0.3s ease;
}

.card:hover {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 6px 40px rgba(0, 0, 0, 0.2);
}

/* 导航链接样式 */
.nav-link {
    color: #FFD700;
    text-decoration: none;
    margin-right: 15px;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #FFC107;
}

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

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

/* 金色点缀样式 */
.accent {
    color: #FFD700;
}

/* 磨砂玻璃效果 */
.frosted-glass {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 20px;
    transition: all 0.3s ease;
}

/* 悬停效果 */
.frosted-glass:hover {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 6px 40px rgba(0, 0, 0, 0.2);
}

/* 动态光点闪烁 */
.light-particles {
    position: absolute;
    width: 5px;
    height: 5px;
    background: #FFD700;
    border-radius: 50%;
    animation: twinkle 2s infinite ease-in-out;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}

/* 网格系统布局 */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 40px 0;
}

.grid-item {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    transition: transform 0.3s ease;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .content {
        padding: 100px 20px 20px 20px;
    }
    
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .sidebar {
        width: 200px;
    }
    
    .grid-container {
        grid-template-columns: 1fr;
        padding: 20px 0;
    }
    
    h1 {
        font-size: 28px;
    }
    
    h2 {
        font-size: 24px;
    }
    
    h3 {
        font-size: 20px;
    }
    
    h4 {
        font-size: 16px;
    }
}

/* 主题切换样式 */
:root {
    --background-color: #1E3A8A;
    --text-color: #FFFFFF;
    --accent-color: #FFD700;
}

[data-theme="dark"] {
    --background-color: #121212;
    --text-color: #E0E0E0;
    --accent-color: #FFA500;
}

body.dark-mode {
    background: var(--background-color);
    color: var(--text-color);
}

.accent {
    color: var(--accent-color);
}

/* 锚点导航样式 */
.anchor-nav {
    position: fixed;
    top: 80px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.anchor-nav a {
    display: block;
    color: #FFD700;
    text-decoration: none;
    margin-bottom: 10px;
    font-size: 14px;
    transition: color 0.3s ease;
}

.anchor-nav a:hover {
    color: #FFC107;
}

/* 提示文字样式 */
.reference-note {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    border-radius: 10px;
    text-align: center;
    font-size: 18px;
    color: #FFD700;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* 按钮动画 */
.button-animate {
    position: relative;
    overflow: hidden;
}

.button-animate::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%) rotate(45deg);
    transition: all 0.5s ease;
    opacity: 0;
}

.button-animate:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(45deg) scale(1);
}

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

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

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

tr:hover {
    background-color: rgba(255, 215, 0, 0.1);
}

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

.animated-background {
    background: linear-gradient(-45deg, #1E3A8A, #D1D5DB, #1E3A8A);
    background-size: 400% 400%;
    animation: flow 15s ease infinite;
}

