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

/* 根元素字体和背景 */
body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0F2027, #203A43, #2C5364);
    color: #BDC3C7;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.5s ease;
}

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

/* 页面提示 */
.reference-note {
    text-align: center;
    padding: 10px 0;
    background: rgba(52, 199, 89, 0.8);
    color: #fff;
    font-size: 1.2em;
    border-radius: 5px;
    margin-bottom: 20px;
}

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

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

h2 {
    font-size: 2em;
    margin-top: 40px;
}

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

/* 段落样式 */
p {
    margin-bottom: 15px;
    font-size: 1em;
    color: #BDC3C7;
}

/* 代码块样式 */
pre {
    background: #1e1e1e;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 20px;
}

code {
    color: #34C759;
    font-family: 'Courier New', Courier, monospace;
}

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

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

th {
    background: #2C3E50;
    color: #ECF0F1;
}

td {
    background: #34495E;
    color: #ECF0F1;
}

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

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

@media (max-width: 1024px) {
    h1 {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.8em;
    }
    h2 {
        font-size: 1.75em;
    }
    h3 {
        font-size: 1.5em;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.6em;
    }
    h2 {
        font-size: 1.5em;
    }
    h3 {
        font-size: 1.3em;
    }
    p {
        font-size: 0.9em;
    }
}

@media (max-width: 320px) {
    h1 {
        font-size: 1.4em;
    }
    h2 {
        font-size: 1.3em;
    }
    h3 {
        font-size: 1.1em;
    }
    p {
        font-size: 0.8em;
    }
}

/* 按钮样式 */
button, .btn {
    background: linear-gradient(45deg, #BDC3C7, #34C759);
    border: none;
    padding: 10px 20px;
    color: #fff;
    font-size: 1em;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

button:hover, .btn:hover {
    background: linear-gradient(45deg, #34C759, #FFA500);
    transform: scale(1.05);
}

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

/* 模块化网格系统 */
.section {
    padding: 60px 0;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    margin-bottom: 40px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.grid-item {
    background: #2C3E50;
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 2s ease-in-out;
}

/* 按需添加更多样式以增强视觉效果和互动性 */

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 32, 39, 0.9);
    padding: 15px 0;
    z-index: 1000;
    transition: background 0.3s ease;
}

.navbar.scrolled {
    background: rgba(15, 32, 39, 1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    color: #34C759;
    font-size: 1.5em;
    text-decoration: none;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.navbar ul li a {
    color: #BDC3C7;
    text-decoration: none;
    font-size: 1em;
    transition: color 0.3s ease;
}

.navbar ul li a:hover {
    color: #FFA500;
}

/* 底部样式 */
.footer {
    background: rgba(15, 32, 39, 0.9);
    color: #BDC3C7;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

.footer a {
    color: #34C759;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #FFA500;
}

/* 卡片样式 */
.card {
    background: #34495E;
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* 视差效果 */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 400px;
    position: relative;
}

.parallax::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 32, 39, 0.6);
}

/* 动态按钮 */
.dynamic-btn {
    position: relative;
    overflow: hidden;
}

.dynamic-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: #fff;
    opacity: 0;
    transform: translate(-50%, -50%) rotate(45deg);
    transition: opacity 0.5s ease;
}

.dynamic-btn:hover::after {
    opacity: 0.1;
}

/* 粒子效果 */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

/* 数据流动效果 */
.data-flow {
    position: relative;
    overflow: hidden;
}

.data-flow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, #34C759, transparent);
    animation: flow 5s linear infinite;
}

@keyframes flow {
    from { left: -100%; }
    to { left: 100%; }
}

/* 高亮文本 */
.highlight {
    color: #34C759;
    font-weight: bold;
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background: #FFA500;
    bottom: -5px;
    left: 0;
}

/* 视差滚动触发动画 */
.scroll-trigger {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease-out;
}

.scroll-trigger.active {
    opacity: 1;
    transform: translateY(0);
}

/* 表单隐藏 */
form, input, textarea, select, button[type="submit"] {
    display: none;
}

