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

/* 全局字体与背景 */
body {
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    color: #FFFFFF;
    line-height: 1.6;
    padding: 20px;
}

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

h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-top: 40px;
}

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

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

h4 {
    font-size: 1.5rem;
    margin-top: 25px;
}

/* 段落与文本 */
p {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    margin-bottom: 20px;
    color: #D1D5DB;
}

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

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

table th {
    background-color: #374151;
}

table tr:nth-child(even) {
    background-color: #1E293B;
}

/* 按钮样式 */
.button {
    background-color: #6366F1;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.button:hover {
    background-color: #8B5CF6;
}

/* 链接样式 */
a {
    color: #4F46E5;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #8B5CF6;
}

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

.navbar .logo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    color: #FFFFFF;
}

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

.navbar ul li {
    position: relative;
}

.navbar ul li a {
    color: #FFFFFF;
    font-size: 1rem;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.navbar ul li a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* 主内容区样式 */
.container {
    max-width: 1200px;
    margin: 100px auto 50px auto;
    padding: 20px;
}

/* 模块化布局 */
.grid-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 30px;
}

.module {
    background: rgba(30, 41, 59, 0.8);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.module:nth-child(odd) {
    grid-column: span 6;
}

.module:nth-child(even) {
    grid-column: span 6;
}

/* 响应式图片 */
.module img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
}

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

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

/* 动画效果 */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #6366F1;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
}

/* 悬停动画 */
.scroll-animation {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease-in-out;
}

.scrolled {
    opacity: 1;
    transform: translateY(0);
}

/* 粒子特效 */
.particle {
    position: absolute;
    width: 5px;
    height: 5px;
    background: #8B5CF6;
    border-radius: 50%;
    animation: aurora-move 15s linear infinite;
}

@keyframes aurora-move {
    0% {
        transform: translate(0, 0);
        opacity: 1;
    }
    100% {
        transform: translate(1000px, 500px);
        opacity: 0;
    }
}

/* 视差滚动效果 */
.parallax {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

/* 固定顶部导航栏下的偏移 */
body::before {
    content: "";
    display: block;
    height: 80px;
}

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

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

@media (max-width: 1024px) {
    .grid-container {
        grid-template-columns: repeat(8, 1fr);
    }
    .module:nth-child(odd), .module:nth-child(even) {
        grid-column: span 8;
    }
}

@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(4, 1fr);
    }
    .module:nth-child(odd), .module:nth-child(even) {
        grid-column: span 4;
    }
    .navbar ul {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.75rem;
    }
    h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 320px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .navbar ul {
        flex-direction: column;
        width: 100%;
    }
    .navbar ul li a {
        width: 100%;
        text-align: left;
    }
}

/* CTA 按钮样式 */
.cta-button {
    background-color: #34D399;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #10B981;
}

/* 固定返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #6366F1;
    color: white;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.back-to-top:hover {
    background-color: #8B5CF6;
}

/* 半透明蒙版 */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.7));
    border-radius: 10px;
}

/* 图片容器 */
.image-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.image-container:hover img {
    transform: scale(1.05);
}

/* 智能推荐模块 */
.ai-recommendation {
    background: rgba(30, 41, 59, 0.9);
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

.ai-recommendation h3 {
    color: #34D399;
}

.ai-recommendation p {
    color: #D1D5DB;
}


