
/* 根元素变量定义 */
:root {
    --moss-green: #8BC34A;
    --sand-brown: #A1887F;
    --mist-gray: #B0BEC5;
    --neon-blue: #00BCD4;
    --neon-purple: #9C27B0;
    --background-gradient-start: #8BC34A;
    --background-gradient-middle: #FFC107;
    --background-gradient-end: #673AB7;
    --font-primary: 'Baskerville', sans-serif;
    --font-secondary: 'Arial', sans-serif;
    --transition-speed: 0.3s;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, var(--background-gradient-start), var(--background-gradient-middle), var(--background-gradient-end));
    background-size: 200% 200%;
    animation: gradient-animation 15s ease infinite;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

/* 背景渐变动画 */
@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 容器样式 */
.container {
    max-width: 1200px;
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 16px var(--shadow-color);
    position: relative;
    overflow: hidden;
}

/* 页眉样式 */
header {
    text-align: center;
    margin-bottom: 20px;
}

header h1 {
    font-size: 3rem;
    color: var(--moss-green);
    margin-bottom: 10px;
}

header p {
    font-size: 1.2rem;
    color: var(--sand-brown);
}

/* 文章样式 */
article h2, article h3, article h4 {
    color: var(--neon-purple);
    margin-bottom: 15px;
}

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

article pre {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 15px;
}

article code {
    font-family: 'Courier New', Courier, monospace;
    color: var(--neon-blue);
}

/* 列表样式 */
article ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 15px;
}

article li {
    margin-bottom: 10px;
}

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

/* 链接样式 */
a {
    color: var(--neon-blue);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--neon-purple);
}

/* 按钮样式 */
.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--neon-blue);
    color: #fff;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
    text-align: center;
}

.button:hover {
    background-color: var(--neon-purple);
    transform: scale(1.05);
}

/* 代码块样式 */
.code-block {
    background: #272822;
    color: #f8f8f2;
    padding: 20px;
    border-radius: 8px;
    font-family: 'Courier New', Courier, monospace;
    overflow-x: auto;
    margin-bottom: 20px;
}

.code-block code {
    color: #f8f8f2;
}

/* 动态背景装饰 */
.vine-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.gptkong.com/demo/sample1.png') repeat;
    opacity: 0.1;
    animation: vine-move 20s linear infinite;
}

@keyframes vine-move {
    from { background-position: 0 0; }
    to { background-position: 100px 100px; }
}

/* 微动画效果 */
.floating-element {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translatey(0px); }
    50% { transform: translatey(-20px); }
}

/* 自适应布局 */
@media (max-width: 1440px) {
    .container {
        max-width: 1000px;
    }
}

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

@media (max-width: 1024px) {
    .container {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2.5rem;
    }
    article p, article ul, article li {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 2rem;
    }
    .button {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 320px) {
    header h1 {
        font-size: 1.8rem;
    }
    article p, article ul, article li {
        font-size: 0.85rem;
    }
}

/* 装饰性图形 */
.decorative-flowers {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 100px;
    height: 100px;
    background: url('https://images.gptkong.com/demo/sample2.png') no-repeat center center;
    background-size: contain;
    opacity: 0.7;
    animation: flower-pulse 10s infinite;
}

@keyframes flower-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* 高亮显示 */
.highlight {
    background-color: var(--mist-gray);
    padding: 2px 4px;
    border-radius: 4px;
}

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

table, th, td {
    border: 1px solid var(--mist-gray);
}

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

th {
    background-color: var(--moss-green);
    color: #fff;
}

/* 内部链接nofollow */
a[rel="nofollow"] {
    /* 特殊样式可在此添加 */
}

