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

/* 根元素定义CSS变量 */
:root {
    --primary-color: #0047AB; /* 深蓝色 */
    --secondary-color: #6A1B9A; /* 渐变紫色 */
    --highlight-color: #FFC107; /* 暖橙色 */
    --background-gradient: linear-gradient(135deg, #6A1B9A, #0047AB);
    --font-primary: 'Roboto', sans-serif;
    --font-heading: 'Bebas Neue', cursive;
    --transition-speed: 0.3s;
    --background-color: #F5F5F5; /* 浅灰色背景 */
    --text-color: #333333;
    --link-color: #FFC107;
}

/* 全局样式 */
body {
    font-family: var(--font-primary);
    background: var(--background-gradient);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
    background-attachment: fixed;
    background-size: cover;
    padding: 20px;
}

/* 样式参考提示 */
.reference-note {
    text-align: center;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 18px;
    color: var(--primary-color);
}

/* 头部样式 */
header {
    text-align: center;
    padding: 50px 20px;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    margin-bottom: 40px;
}

header h1 {
    font-family: var(--font-heading);
    font-size: 48px;
    margin-bottom: 20px;
    animation: fadeIn 2s ease-in-out;
}

header .cta-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--highlight-color);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
    text-decoration: none;
}

header .cta-button:hover {
    background-color: #FFA000;
    transform: scale(1.05);
}

/* 文章内容样式 */
article {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 40px;
}

article h2 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    font-size: 36px;
    margin-bottom: 20px;
}

article h3 {
    font-family: var(--font-heading);
    color: var(--highlight-color);
    font-size: 28px;
    margin-top: 30px;
    margin-bottom: 15px;
}

article p {
    margin-bottom: 15px;
}

article pre {
    background-color: #2d2d2d;
    color: #f8f8f2;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    margin-bottom: 20px;
}

article code {
    font-family: 'Courier New', Courier, monospace;
    background-color: #f4f4f4;
    padding: 2px 4px;
    border-radius: 4px;
}

article table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

article table, article th, article td {
    border: 1px solid #dddddd;
}

article th, article td {
    padding: 12px;
    text-align: left;
}

article th {
    background-color: var(--secondary-color);
    color: white;
}

article td {
    background-color: #fafafa;
}

.article-footer {
    margin-top: 30px;
    font-style: italic;
    text-align: right;
}

/* 数据展示样式 */
.section-data {
    background-color: rgba(255, 255, 255, 0.85);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 40px;
}

.section-data h3 {
    font-family: var(--font-heading);
    color: var(--highlight-color);
    margin-bottom: 15px;
}

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

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

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

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

.image-gallery img {
    width: 100%;
    max-width: 320px;
    border-radius: 8px;
    transition: transform var(--transition-speed);
}

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

/* 按钮样式 */
.button {
    display: inline-block;
    padding: 10px 20px;
    background: var(--highlight-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
}

.button:hover {
    background-color: #FFA000;
    transform: translateY(-2px);
}

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

@media (max-width: 1200px) {
    header h1 {
        font-size: 36px;
    }

    .article-footer {
        font-size: 14px;
    }
}

@media (max-width: 1024px) {
    article {
        padding: 25px;
    }

    .section-data {
        padding: 15px;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 30px;
    }

    .image-gallery {
        flex-direction: column;
        align-items: center;
    }

    article pre {
        font-size: 14px;
    }
}

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

    .cta-button {
        padding: 10px 20px;
        font-size: 16px;
    }

    article h2 {
        font-size: 28px;
    }

    article h3 {
        font-size: 22px;
    }
}

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

    .cta-button {
        padding: 8px 16px;
        font-size: 14px;
    }

    article h2 {
        font-size: 24px;
    }

    article h3 {
        font-size: 18px;
    }

    article p, article ul, article table, .section-data ul {
        font-size: 14px;
    }

    .image-gallery img {
        max-width: 100%;
    }
}

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

/* 内部链接无follow */
a {
    color: var(--link-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: #FF9800;
}

a[rel="nofollow"]::after {
    content: "";
}

