
/* 基础样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', 'Open Sans', sans-serif;
    background: radial-gradient(circle, rgb(25, 118, 210), transparent);
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 颜色变量 */
:root {
    --primary-color: #0D47A1; /* 深蓝色 */
    --secondary-color: #9E9E9E; /* 中性灰色 */
    --cta-gradient: linear-gradient(135deg, #8BC34A, #388E3C); /* 绿色渐变 */
    --background-gradient: radial-gradient(circle, rgb(25, 118, 210), transparent);
    --font-title: 'Poppins', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

/* 头部样式 */
header {
    background: var(--primary-color);
    color: white;
    padding: 20px;
    text-align: center;
    font-family: var(--font-title);
}

header h1 {
    margin: 0;
    font-size: 2.5em;
}

header p {
    margin: 10px 0 0;
    font-size: 1.2em;
}

/* 导航栏 */
nav {
    display: flex;
    justify-content: center;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

nav a {
    color: var(--primary-color);
    padding: 15px 20px;
    text-decoration: none;
    font-family: var(--font-title);
    transition: background 0.3s, color 0.3s;
}

nav a:hover {
    background: var(--cta-gradient);
    color: white;
}

/* 主内容区 */
.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
}

article {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

article h2 {
    font-family: var(--font-title);
    color: var(--primary-color);
    font-size: 2em;
    margin-bottom: 10px;
}

article h3 {
    font-family: var(--font-title);
    color: var(--primary-color);
    font-size: 1.5em;
    margin-top: 20px;
    margin-bottom: 10px;
}

article h4 {
    font-family: var(--font-title);
    color: var(--primary-color);
    font-size: 1.2em;
    margin-top: 15px;
    margin-bottom: 10px;
}

article p {
    margin-bottom: 15px;
}

article table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

article table, th, td {
    border: 1px solid #ddd;
}

article th, td {
    padding: 10px;
    text-align: left;
}

article pre {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
}

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

/* 按钮样式 */
.cta-button, .hover-button {
    display: inline-block;
    padding: 10px 20px;
    background: var(--cta-gradient);
    color: white;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-family: var(--font-title);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover, .hover-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* 模块化布局 */
.grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.module {
    flex: 1 1 calc(33.33% - 20px);
    background: #fafafa;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (max-width: 1024px) {
    .module {
        flex: 1 1 calc(50% - 20px);
    }
}

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

/* 表单样式 */
.chatbot input {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.chatbot span {
    display: block;
    margin-bottom: 5px;
}

/* 图像样式 */
.hero img {
    width: 100%;
    max-width: 320px;
    height: auto;
    margin: 10px;
    border-radius: 8px;
}

.dashboard {
    display: flex;
    flex-direction: column;
}

.dashboard .desktop-view, .dashboard .mobile-view {
    background: #f0f0f0;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 10px;
}

/* 动画效果 */
@keyframes aurora-move {
    0% { background: radial-gradient(circle, rgb(255, 87, 34), transparent); }
    50% { background: radial-gradient(circle, rgb(255, 140, 0), transparent); }
    100% { background: radial-gradient(circle, rgb(255, 87, 34), transparent); }
}

body {
    animation: aurora-move 15s linear infinite;
}

/* 暗黑模式 */
.dark-mode {
    background: #121212;
    color: #e0e0e0;
}

.dark-mode header {
    background: #1f1f1f;
}

.dark-mode nav {
    background: #1f1f1f;
}

.dark-mode nav a {
    color: #e0e0e0;
}

.dark-mode nav a:hover {
    background: var(--cta-gradient);
    color: white;
}

.dark-mode article {
    background: #1e1e1e;
    color: #e0e0e0;
}

.dark-mode table, .dark-mode th, .dark-mode td {
    border: 1px solid #444;
}

.dark-mode pre {
    background: #2c2c2c;
    color: #e0e0e0;
}

/* 其他元素 */
footer {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 20px;
    font-family: var(--font-title);
}

.footer-links a {
    color: white;
    margin: 0 10px;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* 提示信息样式 */
.reference-note {
    text-align: center;
    font-size: 1em;
    margin: 20px 0;
    color: #555;
}

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

@media (max-width: 1200px) {
    .container {
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    nav a {
        padding: 10px 15px;
        font-size: 0.9em;
    }
    
    header h1 {
        font-size: 1.8em;
    }
}

