
/* 引入Google字体 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&family=Poppins:wght@600;700&family=Open+Sans:wght@400;600&display=swap');

/* CSS变量定义 */
:root {
    --primary-color: #4567b7; /* 深蓝色 */
    --secondary-color: #8c9eff; /* 浅紫色 */
    --accent-color: #ffeb3b; /* 金色 */
    --neutral-color: #f5f5f5; /* 浅灰色 */
    --background-gradient: linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%);
    --font-family-body: 'Open Sans', sans-serif;
    --font-family-heading: 'Poppins', sans-serif;
}

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

body {
    font-family: var(--font-family-body);
    line-height: 1.6;
    background: var(--background-gradient);
    color: #333;
    overflow-x: hidden;
}

/* 背景动态效果 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 87, 34, 0.5), transparent);
    animation: aurora-move 15s linear infinite;
    z-index: -1;
}

@keyframes aurora-move {
    0% { transform: translateY(0); }
    50% { transform: translateY(-50px); }
    100% { transform: translateY(0); }
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 文字标题 */
h1, h2, h3 {
    font-family: var(--font-family-heading);
    color: var(--primary-color);
    margin-bottom: 20px;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

/* 段落 */
p {
    margin-bottom: 15px;
    font-size: 1rem;
    color: #555;
}

/* 代码块 */
pre {
    background: rgba(0, 0, 0, 0.05);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 20px;
}

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

/* 磨砂玻璃效果 */
.frosted-glass {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

/* 按钮样式 */
.button {
    display: inline-block;
    padding: 10px 20px;
    background: var(--accent-color);
    color: #333;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    font-weight: bold;
    transition: background 0.3s ease;
}

.button:hover {
    background: var(--primary-color);
    color: #fff;
}

.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.6s ease, height 0.6s ease, opacity 0.6s ease;
}

.button:active::before {
    width: 200%;
    height: 200%;
    opacity: 0;
}

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

/* 文章样式 */
article {
    background: var(--neutral-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

article h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

article h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

article p {
    margin-bottom: 10px;
}

/* 引用样式 */
blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
    color: #777;
    margin: 20px 0;
    font-style: italic;
}

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

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

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

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.75rem;
    }
    h3 {
        font-size: 1.25rem;
    }
    .button {
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }
    h1 {
        font-size: 1.75rem;
    }
    h2 {
        font-size: 1.5rem;
    }
    h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 320px) {
    body {
        padding: 10px;
    }
    h1 {
        font-size: 1.5rem;
    }
    h2 {
        font-size: 1.25rem;
    }
    h3 {
        font-size: 1rem;
    }
}

/* 清除外部链接样式 */
a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* 确保所有内部链接添加rel="nofollow" via JS or similar */
a[rel="nofollow"] {
    /* No additional styles required */
}

