
/* 夜智金融网页样式设计 */

/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    background: radial-gradient(circle, #1e1e1e, #000000);
    color: #ffffff;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 头部样式 */
header {
    width: 100%;
    padding: 20px;
    background: rgba(0, 0, 0, 0.8);
    position: fixed;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(45deg, #6a11cb, #2575fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 15px;
}

.nav-menu li a {
    text-decoration: none;
    color: #ffffff;
    transition: color 0.3s ease;
}

.nav-menu li a:hover {
    color: #6a11cb;
}

/* 主内容区域 */
.main-content {
    padding: 100px 20px 20px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* 卡片模块 */
.card {
    background: #2c2c2c;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card img {
    width: 100%;
    border-radius: 5px;
    margin-bottom: 15px;
}

.card h3 {
    margin-top: 0;
    color: #00d2ff;
}

.card p {
    color: #dddddd;
}

/* 按钮样式 */
.button {
    display: inline-block;
    background: linear-gradient(45deg, #6a11cb, #2575fc);
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.3s ease;
}

.button:hover {
    background: linear-gradient(45deg, #2575fc, #6a11cb);
    transform: scale(1.05);
}

/* 示例文章区 */
.example-article {
    grid-column: 1 / -1;
    background: #1c1c1c;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.example-article h2 {
    color: #ff9800;
}

.example-article pre {
    background: #333333;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

.example-article code {
    color: #00e676;
    font-family: 'Courier New', Courier, monospace;
}

/* 滚动视差效果 */
.parallax {
    background-image: url('https://images.gptkong.com/demo/sample1.png');
    height: 400px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

/* 动态粒子效果 */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: transparent;
    z-index: -1;
    animation: aurora-move 15s linear infinite;
}

@keyframes aurora-move {
    from { background-position: 0 0; }
    to { background-position: 1000px 1000px; }
}

/* 数据可视化图表 */
.chart {
    width: 100%;
    height: 300px;
    background: linear-gradient(to right, #007bff, #6c757d);
    position: relative;
    border-radius: 5px;
    overflow: hidden;
}

.bar {
    position: absolute;
    bottom: 0;
    width: 20px;
    background-color: #ff5722;
    animation: growBar 1s ease-out forwards;
}

@keyframes growBar {
    from { height: 0; }
    to { height: 50%; }
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .main-content {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 1200px) {
    .header-logo {
        font-size: 20px;
    }
    .nav-menu li a {
        font-size: 14px;
    }
}

@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .header-logo {
        font-size: 18px;
    }
    .nav-menu {
        flex-direction: column;
        align-items: flex-start;
    }
    .main-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header-logo {
        font-size: 16px;
    }
    .nav-menu li a {
        font-size: 12px;
    }
}

@media (max-width: 320px) {
    .header-logo {
        font-size: 14px;
    }
    .nav-menu li a {
        font-size: 10px;
    }
}

/* 提示信息样式 */
.reference-note {
    text-align: center;
    padding: 10px;
    background: rgba(255, 152, 0, 0.8);
    color: #ffffff;
    font-weight: bold;
    border-radius: 5px;
    margin: 20px 0;
}

/* 内部链接样式 */
a[rel="nofollow"] {
    color: #00d2ff;
    text-decoration: none;
}

a[rel="nofollow"]:hover {
    text-decoration: underline;
    color: #ff9800;
}

/* 代码块样式 */
code {
    background: #2c2c2c;
    padding: 2px 4px;
    border-radius: 3px;
    color: #00e676;
}

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

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

/* 页脚样式 */
footer {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    position: relative;
}

