
/* 全局设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --main-bg-color: #0A192F;
    --accent-color: #6C5CE7;
    --gradient-purple: linear-gradient(135deg, #6C5CE7, #A29BFE);
    --highlight-color: #FFC300;
    --text-color: #FFFFFF;
    --secondary-text-color: #E5E5E5;
    --font-title: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --transition-speed: 0.3s;
}

/* 背景与基本颜色 */
body {
    background: var(--gradient-purple);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    padding: 20px;
    animation: aurora-move 15s linear infinite;
}

@keyframes aurora-move {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 导航栏样式 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(10, 25, 47, 0.8);
    border-radius: 10px;
    margin-bottom: 40px;
}

.navbar a {
    color: var(--text-color);
    text-decoration: none;
    margin: 0 15px;
    font-family: var(--font-title);
    font-weight: 700;
    transition: color var(--transition-speed);
}

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

/* 主容器 */
.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
}

/* 服务介绍区 */
.service-section {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.service-section h2 {
    font-family: var(--font-title);
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--highlight-color);
}

.service-section p {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--secondary-text-color);
}

.service-section ul {
    list-style: none;
}

.service-section ul li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.service-section ul li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: var(--highlight-color);
}

/* 案例展示区 */
.case-section {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.case-section h2 {
    font-family: var(--font-title);
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--highlight-color);
}

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

.case-grid img {
    width: 100%;
    border-radius: 10px;
    transition: transform var(--transition-speed);
}

.case-grid img:hover {
    transform: scale(1.05);
}

/* 文章展示区 */
.article-section {
    grid-column: span 2;
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.article-section h2 {
    font-family: var(--font-title);
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--highlight-color);
}

.article-section p {
    margin-bottom: 15px;
}

.article-section h3, .article-section h4 {
    color: var(--highlight-color);
    margin-top: 20px;
    margin-bottom: 10px;
}

.article-section ul {
    list-style: disc inside;
    margin-bottom: 15px;
}

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

.article-section table, .article-section th, .article-section td {
    border: 1px solid var(--secondary-text-color);
}

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

.article-section pre {
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    margin-bottom: 15px;
}

.article-section code {
    color: var(--highlight-color);
}

/* 代码展示优化 */
.code-block {
    background: rgba(0,0,0,0.7);
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    margin-bottom: 20px;
}

.code-block pre {
    margin: 0;
    color: var(--text-color);
}

.code-block code {
    display: block;
}

/* 提示信息 */
.reference-note {
    text-align: center;
    font-size: 18px;
    margin: 30px 0;
    color: var(--highlight-color);
    font-family: var(--font-title);
}

/* 自适应布局 */
@media (max-width: 1440px) {
    .navbar {
        padding: 15px 30px;
    }
    .service-section, .case-section, .article-section {
        padding: 20px;
    }
}

@media (max-width: 1200px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .navbar a {
        margin: 5px 0;
    }
}

@media (max-width: 1024px) {
    .container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 10px 20px;
    }
    .service-section, .case-section, .article-section {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .navbar a {
        font-size: 14px;
    }
    .service-section h2, .case-section h2, .article-section h2 {
        font-size: 24px;
    }
    .article-section h3, .article-section h4 {
        font-size: 20px;
    }
}

@media (max-width: 320px) {
    .navbar {
        padding: 8px 10px;
    }
    .service-section h2, .case-section h2, .article-section h2 {
        font-size: 20px;
    }
    .article-section h3, .article-section h4 {
        font-size: 18px;
    }
}

/* 按钮样式与动画 */
.button {
    display: inline-block;
    padding: 10px 20px;
    background: var(--accent-color);
    color: var(--text-color);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-title);
    font-weight: 700;
    position: relative;
    overflow: hidden;
    transition: background var(--transition-speed);
}

.button:hover {
    background: var(--highlight-color);
}

.button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease-out, height 0.5s ease-out;
}

.button:hover::before {
    width: 200px;
    height: 200px;
}

/* 图片样式 */
.image-gallery img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    opacity: 0.9;
    transition: opacity var(--transition-speed);
}

.image-gallery img:hover {
    opacity: 1;
}

/* 链接样式 */
a[rel="nofollow"] {
    color: var(--highlight-color);
    text-decoration: underline;
}

a[rel="nofollow"]:hover {
    color: var(--secondary-text-color);
}

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

th, td {
    padding: 12px;
    border: 1px solid var(--secondary-text-color);
    text-align: left;
}

th {
    background: var(--accent-color);
    color: var(--text-color);
}

td {
    background: rgba(255, 255, 255, 0.1);
    color: var(--secondary-text-color);
}

/* 代码块预览效果 */
.code-preview {
    background: rgba(0,0,0,0.8);
    padding: 20px;
    border-radius: 10px;
    font-family: 'Courier New', Courier, monospace;
    color: var(--highlight-color);
    overflow-x: auto;
    margin-bottom: 20px;
}

/* 强调文本 */
strong {
    color: var(--highlight-color);
}

/* 图片描述空 */
img[alt=""] {
    alt: "";
}

/* 其他视觉冲击元素 */
.hero-section {
    text-align: center;
    padding: 50px 20px;
    background: var(--gradient-purple);
    border-radius: 15px;
    margin-bottom: 40px;
}

.hero-section h1 {
    font-family: var(--font-title);
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--highlight-color);
}

.hero-section p {
    font-size: 18px;
    color: var(--secondary-text-color);
}

.footer {
    text-align: center;
    padding: 20px;
    background: rgba(10, 25, 47, 0.8);
    border-radius: 10px;
    margin-top: 40px;
}

.footer p {
    color: var(--secondary-text-color);
    font-size: 16px;
}

/* 音效与粒子效果 */
.particle-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: transparent;
}

/* 图片动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

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