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

/* :root 变量定义 */
:root {
    --deep-blue: #003366;
    --black-gray: #2c3e50;
    --ice-blue: #00966f;
    --silver-white: #ecf0f1;
    --bright-orange: #ff5722;
    --fluorescent-green: #39ff14;
    --background-gradient: linear-gradient(to bottom, rgba(0, 150, 255, 0.8), rgba(0, 50, 100, 0.8));
    --card-background: rgba(255, 255, 255, 0.7);
    --transition-duration: 0.3s;
    --font-primary: 'Inter', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
    --max-width: 1200px;
}

/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    font-family: var(--font-secondary);
    background: var(--background-gradient);
    color: var(--black-gray);
    opacity: 0;
    animation: fadeIn 2s forwards;
    line-height: 1.6;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 容器 */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px;
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    color: var(--deep-blue);
    margin-top: 20px;
    margin-bottom: 10px;
}

h1 {
    font-size: 2.5em;
    font-weight: 700;
    letter-spacing: 1px;
}

h2 {
    font-size: 2em;
    font-weight: 700;
    letter-spacing: 1px;
}

h3 {
    font-size: 1.75em;
    font-weight: 700;
    letter-spacing: 0.5px;
}

h4 {
    font-size: 1.5em;
    font-weight: 700;
    letter-spacing: 0.5px;
}

h5 {
    font-size: 1.25em;
    font-weight: 700;
    letter-spacing: 0.5px;
}

h6 {
    font-size: 1em;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* 段落样式 */
p {
    font-size: 1em;
    margin-bottom: 15px;
    color: var(--black-gray);
}

/* 代码块样式 */
pre {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Roboto Mono', monospace;
    margin-bottom: 20px;
}

code {
    font-family: 'Roboto Mono', monospace;
}

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

th, td {
    border: 1px solid #bdc3c7;
    padding: 10px;
    text-align: left;
}

th {
    background-color: var(--ice-blue);
    color: #fff;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

/* 按钮样式 */
button {
    background-color: var(--silver-white);
    color: var(--deep-blue);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all var(--transition-duration) ease;
    font-family: var(--font-primary);
    font-size: 1em;
}

button:hover {
    transform: scale(1.1);
    background-color: var(--bright-orange);
    color: #fff;
}

/* 卡片样式 */
.card {
    background: var(--card-background);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    transition: transform var(--transition-duration) ease, box-shadow var(--transition-duration) ease;
}

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

/* 导航栏样式 */
.navbar {
    background-color: var(--deep-blue);
    padding: 15px 20px;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

.navbar ul {
    list-style: none;
    display: flex;
    justify-content: flex-start;
    margin: 0;
    padding: 0;
}

.navbar li {
    margin-right: 20px;
}

.navbar a {
    color: #ecf0f1;
    text-decoration: none;
    font-family: var(--font-primary);
    transition: color var(--transition-duration) ease;
}

.navbar a:hover {
    color: var(--bright-orange);
}

/* 主要内容样式 */
.main-content {
    margin-top: 80px;
}

/* 图片样式 */
img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* 表示参考样式 */
.reference-note {
    background: var(--ice-blue);
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .container {
        max-width: 1100px;
    }
}

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

@media (max-width: 1024px) {
    .container {
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    .navbar ul {
        flex-direction: column;
    }
    
    .navbar li {
        margin-bottom: 10px;
    }
    
    .card {
        width: 100%;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2em;
    }
    
    h2 {
        font-size: 1.75em;
    }
    
    h3 {
        font-size: 1.5em;
    }
    
    button {
        width: 100%;
        padding: 15px;
    }
}

@media (max-width: 320px) {
    h1 {
        font-size: 1.75em;
    }
    
    h2 {
        font-size: 1.5em;
    }
    
    h3 {
        font-size: 1.25em;
    }
    
    .navbar ul {
        flex-direction: column;
    }
}


