/* Emotional Theme - 情感驿站 */
/* A warm, readable theme for emotional content */

:root {
    --primary: #e74c3c;
    --primary-light: #ff6b6b;
    --primary-dark: #c0392b;
    --bg: #faf8f5;
    --bg-card: #ffffff;
    --text: #2d3436;
    --text-light: #636e72;
    --text-muted: #b2bec3;
    --border: #f0ece6;
    --shadow: 0 2px 15px rgba(0,0,0,0.06);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 12px;
    --font-serif: 'Noto Serif SC', 'Songti SC', 'STSong', serif;
    --font-sans: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.8;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Header ===== */
.site-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.95);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 65px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 20px;
}

.logo-icon {
    font-size: 28px;
}

.site-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.site-nav a {
    text-decoration: none;
    color: var(--text-light);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.2s;
    white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.active {
    background: var(--primary);
    color: white;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

/* ===== Hero ===== */
.hero {
    text-align: center;
    padding: 60px 20px 40px;
    background: linear-gradient(135deg, #fff5f5 0%, #fff8f0 50%, #f0f8ff 100%);
    border-radius: var(--radius);
    margin: 30px 0;
}

.hero h1 {
    font-family: var(--font-serif);
    font-size: 36px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.hero p {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.8;
}

/* ===== Articles Grid ===== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    padding: 20px 0 40px;
}

.article-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.card-content {
    padding: 20px;
}

.card-title {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 10px;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-summary {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 13px;
}

/* ===== Pagination ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 40px 0;
}

.pagination a {
    text-decoration: none;
    color: var(--primary);
    padding: 8px 20px;
    border: 1px solid var(--primary);
    border-radius: 20px;
    transition: all 0.2s;
}

.pagination a:hover {
    background: var(--primary);
    color: white;
}

.page-info {
    color: var(--text-muted);
}

/* ===== Article Detail ===== */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 0 60px;
}

.article-header {
    margin-bottom: 40px;
}

.article-header-inner {
    padding: 0 0 30px;
}

.article-category {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    margin-bottom: 15px;
}

.article-title {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.4;
    margin: 15px 0;
    color: var(--text);
}

.article-meta {
    display: flex;
    gap: 20px;
    color: var(--text-muted);
    font-size: 14px;
}

.article-cover {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.article-cover img {
    width: 100%;
    display: block;
}

/* ===== Article Body ===== */
.article-body {
    font-family: var(--font-serif);
    font-size: 18px;
    line-height: 2;
    color: var(--text);
}

.article-body p {
    margin-bottom: 25px;
}

.article-body strong {
    color: var(--primary);
    font-weight: 600;
}

.article-body h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 45px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}

.article-body h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 35px 0 15px;
}

.article-body blockquote {
    background: #fff9f9;
    border-left: 4px solid var(--primary);
    padding: 20px 25px;
    margin: 30px 0;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--text-light);
}

.article-body ul, .article-body ol {
    padding-left: 25px;
    margin-bottom: 25px;
}

.article-body li {
    margin-bottom: 10px;
}

.article-body hr {
    border: none;
    height: 1px;
    background: var(--border);
    margin: 40px 0;
}

/* ===== Article Actions ===== */
.article-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin: 40px 0;
    padding: 25px;
    background: linear-gradient(135deg, #fff5f5 0%, #fff8f0 100%);
    border-radius: var(--radius);
}

.btn-copy, .btn-copy-html {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-sans);
}

.btn-copy {
    background: var(--primary);
    color: white;
}

.btn-copy:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-copy-html {
    background: white;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-copy-html:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.copy-hint {
    width: 100%;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 5px;
}

/* ===== Tags ===== */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 30px 0;
}

.tag {
    background: #f5f5f5;
    color: var(--text-light);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 13px;
}

/* ===== Article Navigation ===== */
.article-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 40px 0;
}

.article-nav a {
    text-decoration: none;
    padding: 20px;
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all 0.2s;
}

.article-nav a:hover {
    box-shadow: var(--shadow-hover);
}

.nav-label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.nav-title {
    display: block;
    font-size: 15px;
    color: var(--text);
    font-weight: 500;
}

.nav-next {
    text-align: right;
}

/* ===== CTA ===== */
.article-cta {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--radius);
    color: white;
    margin: 40px 0;
}

.article-cta p:first-child {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

/* ===== Footer ===== */
.site-footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid var(--border);
    margin-top: 60px;
}

.site-footer p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 5px;
}

.footer-note {
    font-size: 12px !important;
    color: var(--text-muted) !important;
}

/* ===== Toast ===== */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--text);
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 15px;
    z-index: 1000;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .site-nav {
        display: none;
        position: absolute;
        top: 65px;
        left: 0;
        right: 0;
        background: white;
        padding: 15px;
        box-shadow: var(--shadow);
        flex-direction: column;
    }
    
    .site-nav.open {
        display: flex;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 26px;
    }
    
    .article-body {
        font-size: 17px;
    }
    
    .article-nav {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 40px 15px 30px;
        margin: 20px 0;
    }
    
    .hero h1 {
        font-size: 24px;
    }
    
    .article-title {
        font-size: 22px;
    }
    
    .article-actions {
        flex-direction: column;
    }
    
    .btn-copy, .btn-copy-html {
        width: 100%;
        justify-content: center;
    }
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.stat {
    background: rgba(255,255,255,0.8);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
}
