
/* 导入 Google 字体 */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Roboto:wght@400;500;700&display=swap');

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #032B44; /* 深蓝色 */
    --accent-color: #FFC107; /* 金色 */
    --highlight-color: #4CAF50; /* 点缀色 */
    --background-gradient: linear-gradient(135deg, #032B44, #FFC107);
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
}

/* 设置背景及字体颜色 */
body {
    background: var(--background-gradient);
    color: white;
    font-family: var(--font-secondary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 页面提示 */
.notice {
    text-align: center;
    padding: 10px 0;
    background-color: rgba(0, 0, 0, 0.5);
    font-family: var(--font-primary);
    font-size: 16px;
}

/* 头部样式 */
header {
    background: rgba(3, 43, 68, 0.8);
    padding: 20px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header h1 {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 10px;
}

header p {
    font-size: 1.2rem;
    color: #fff;
}

/* 导航 */
nav {
    margin-top: 15px;
}

nav a {
    color: var(--accent-color);
    text-decoration: none;
    margin: 0 15px;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* 主内容样式 */
main {
    padding: 50px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 模块样式 */
section {
    min-height: 100vh;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(3, 43, 68, 0.9);
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

section:nth-child(even) {
    background: rgba(3, 43, 68, 0.95);
}

section h2 {
    font-family: var(--font-primary);
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    text-align: center;
    animation: fadeIn 1s ease-out;
}

section p {
    font-family: var(--font-secondary);
    font-size: 1rem;
    color: #f0f0f0;
    max-width: 800px;
    text-align: center;
    margin-bottom: 20px;
    animation: fadeIn 1s ease-out;
}

/* 按钮样式 */
.button {
    background-color: var(--accent-color);
    color: #032B44;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-family: var(--font-primary);
}

.button:hover {
    background-color: var(--highlight-color);
    transform: translateY(-3px);
}

/* 代码块样式 */
pre {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    overflow: auto;
    max-width: 100%;
    margin: 20px 0;
}

code {
    font-family: 'Roboto Mono', monospace;
    color: #FFC107;
    background: rgba(0, 0, 0, 0.7);
    padding: 2px 4px;
    border-radius: 4px;
}

/* 文章展示样式 */
.article-display {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    max-width: 1000px;
    margin: 40px auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.article-display h2 {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.article-display p {
    font-size: 1rem;
    color: #e0e0e0;
    margin-bottom: 15px;
}

.article-display h3, .article-display h4 {
    font-family: var(--font-primary);
    color: var(--accent-color);
    margin-top: 20px;
    margin-bottom: 10px;
}

.article-display pre {
    background: #1e1e1e;
    border-radius: 5px;
    padding: 15px;
    overflow-x: auto;
}

.article-display a {
    color: var(--accent-color);
    text-decoration: none;
}

.article-display a:hover {
    text-decoration: underline;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* 图表样式 */
.chart-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 200px;
    width: 100%;
    max-width: 600px;
    margin: 20px 0;
}

.chart-bar {
    width: 50px;
    background-color: var(--accent-color);
    margin: 0 10px;
    transition: height 1s ease-out;
    position: relative;
}

.chart-bar::after {
    content: attr(data-value);
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 0.9rem;
}

/* 图片样式 */
.image-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.image-gallery img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

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

/* 客户评价样式 */
.testimonials {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.testimonial {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    max-width: 600px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.testimonial p {
    font-style: italic;
    color: #e0e0e0;
}

.testimonial .user {
    margin-top: 10px;
    font-weight: bold;
    color: var(--accent-color);
}

/* 联系信息样式 */
.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.contact-info .social-links a {
    color: var(--accent-color);
    text-decoration: none;
    margin: 0 10px;
    font-size: 1.2rem;
}

.contact-info .social-links a:hover {
    color: var(--highlight-color);
}

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

@media (max-width: 1200px) {
    main {
        padding: 40px 15px;
    }

    section {
        padding: 50px 15px;
    }

    .chart-container {
        height: 180px;
    }
}

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

    section h2 {
        font-size: 1.8rem;
    }

    .chart-container {
        height: 160px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 40px 10px;
    }

    header h1 {
        font-size: 1.8rem;
    }

    section h2 {
        font-size: 1.6rem;
    }

    nav a {
        margin: 0 10px;
        font-size: 0.9rem;
    }

    .chart-container {
        height: 140px;
    }

    .image-gallery img {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.6rem;
    }

    section h2 {
        font-size: 1.4rem;
    }

    nav a {
        margin: 0 8px;
        font-size: 0.8rem;
    }

    .chart-container {
        height: 120px;
    }

    .image-gallery img {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 320px) {
    header h1 {
        font-size: 1.4rem;
    }

    section h2 {
        font-size: 1.2rem;
    }

    nav a {
        display: none; /* 隐藏导航链接以适配小屏幕 */
    }

    .chart-container {
        height: 100px;
    }

    .image-gallery img {
        width: 70px;
        height: 70px;
    }
}

