* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --light-bg: #ffffff;
    --card-bg: rgba(0, 0, 0, 0.02);
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-tertiary: #6a6a6a;
    --border-color: rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', 'Noto Sans SC', sans-serif;
    background: var(--light-bg);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

header {
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: underline;
}

.back-link {
    color: var(--text-secondary);
    text-decoration: underline;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: var(--card-bg);
}

.back-link:hover {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.05);
    transform: translateX(-5px);
}

main {
    flex: 1;
    padding: 4rem 0 0;
}

article {
    padding: 4rem 0;
}

.article-header {
    margin-bottom: 3rem;
}

.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.article-date {
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

.article-tag {
    background: var(--accent-gradient);
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--text-primary);
}

h2 {
    font-size: 1.75rem;
    color: var(--text-primary);
    margin: 2.5rem 0 1rem;
    font-weight: 600;
}

h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 2rem 0 1rem;
    font-weight: 600;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    color: var(--text-secondary);
}

ul,
ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

li {
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
    color: var(--text-secondary);
}

code {
    background: rgba(0, 0, 0, 0.05);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--text-primary);
}

strong {
    color: var(--text-primary);
    font-weight: 600;
}

.article-intro {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.8;
    padding: 1.5rem;
    background: var(--card-bg);
    border-left: 3px solid #667eea;
    border-radius: 8px;
}

.article-content {
    color: var(--text-secondary);
}

.highlight-box {
    background: rgba(102, 126, 234, 0.05);
    border: 1px solid rgba(102, 126, 234, 0.2);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.highlight-box h3 {
    margin-top: 0;
}

/* 首页特定样式 */
.site-header {
    text-align: center;
    padding: 3rem 0 2rem;
}

.site-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
    line-height: 1.1;
    text-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    position: relative;
    display: inline-block;
}

.site-title::before {
    content: '✨';
    position: absolute;
    left: -2.5rem;
    top: 0;
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
}

.site-title::after {
    content: '✨';
    position: absolute;
    right: -2.5rem;
    top: 0;
    font-size: 2rem;
    animation: float 3s ease-in-out infinite 1.5s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
        opacity: 0.7;
    }

    50% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

.site-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.article-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.content-section {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.content-section:last-child {
    border-bottom: none;
}

.content-section h3 {
    margin-top: 0;
}

footer {
    padding: 2rem 0;
    text-align: center;
    color: var(--text-tertiary);
    border-top: 1px solid var(--border-color);
    margin-top: 0.5rem;
}

.beian-link {
    color: #000000;
    text-decoration: underline;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .site-title {
        font-size: 2rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }
}