/* 莫兰迪色系 & 深色模式适配 */
:root {
    /* 浅色模式变量 */
    --bg-body: #F2F4F6;        /* 冷灰背景 */
    --bg-card: #FFFFFF;        /* 纯白卡片 */
    --text-main: #4A5568;      /* 深灰主字 */
    --text-sub: #718096;       /* 浅灰副字 */
    --accent: #8DA399;         /* 莫兰迪绿（强调色） */
    --accent-light: #E6EBE9;   /* 浅绿装饰背景 */
    --shadow: 0 8px 30px rgba(0,0,0,0.04);
    --radius: 20px;
    
    /* 伟大的革命红，用于强调 BA4RSE */
    --supreme-red: #D32F2F;
}

@media (prefers-color-scheme: dark) {
    :root {
        /* 深色模式变量 */
        --bg-body: #1A202C;        /* 深蓝黑背景 */
        --bg-card: #2D3748;        /* 深灰卡片 */
        --text-main: #EDF2F7;      /* 亮白字 */
        --text-sub: #A0AEC0;       /* 灰字 */
        --accent: #81E6D9;         /* 亮青（暗色下提亮） */
        --accent-light: #2C3E50;   /* 深色装饰背景 */
        --shadow: 0 8px 30px rgba(0,0,0,0.3);
        
        --supreme-red: #FF5252;    /* 深色模式下的革命红 */
    }
}

/* 全局重置 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans SC', 'Noto Sans KR', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
    padding-bottom: 4rem;
}

body.no-scroll {
    overflow: hidden;
    height: 100vh;
}

img {
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.container {
    width: 90%;
    max-width: 1000px; /* 首页稍微宽一点 */
    margin: 0 auto;
}

/* ============================
   博客列表样式 (Blog Grid) - 新增
   ============================ */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding-bottom: 2rem;
}

.blog-card {
    background-color: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.card-image-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    position: relative;
    overflow: hidden;
    background-color: var(--accent-light);
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .card-image-wrapper img {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
}

.blog-card:hover .card-overlay {
    opacity: 1;
}

.read-more-btn {
    background: var(--supreme-red);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: bold;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.blog-card:hover .read-more-btn {
    transform: translateY(0);
}

.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-meta {
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-weight: 700;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--text-main);
    line-height: 1.4;
    font-family: 'Noto Serif SC', serif;
}

.card-excerpt {
    font-size: 0.9rem;
    color: var(--text-sub);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================
   通用样式 (Modal, Hero, etc.)
   ============================ */

/* 模糊效果 */
.blur-effect {
    filter: blur(20px);
    transition: filter 0.8s ease-out;
    pointer-events: none;
    user-select: none;
}

/* 弹窗背景 */
#disclaimer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

/* 弹窗内容 */
.modal-content {
    background-color: var(--bg-card);
    width: 100%;
    max-width: 600px;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
    animation: modalFadeIn 0.5s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.modal-icon { font-size: 3rem; margin-bottom: 1rem; }
.modal-title { font-size: 1.5rem; color: var(--text-main); margin-bottom: 1.5rem; font-weight: 700; }
.modal-text { text-align: left; margin-bottom: 1.2rem; color: var(--text-main); }
.modal-text.zh { font-size: 1rem; line-height: 1.6; font-weight: 500; margin-bottom: 1.5rem; }
.modal-text.en { font-size: 0.85rem; line-height: 1.5; color: var(--text-sub); border-top: 1px solid rgba(0,0,0,0.1); padding-top: 1rem; }
@media (prefers-color-scheme: dark) { .modal-text.en { border-top: 1px solid rgba(255,255,255,0.1); } }

/* 按钮 */
.modal-actions { display: flex; gap: 1rem; justify-content: center; margin-top: 2rem; }
.btn-modal { border: none; padding: 12px 24px; border-radius: 50px; font-size: 1rem; font-weight: bold; cursor: pointer; transition: transform 0.2s, opacity 0.2s; font-family: inherit; flex: 1; max-width: 200px; }
.btn-modal:active { transform: scale(0.95); }
.btn-modal.decline { background-color: #e2e8f0; color: #718096; }
@media (prefers-color-scheme: dark) { .btn-modal.decline { background-color: #4a5568; color: #cbd5e0; } }
.btn-modal.accept { background-color: var(--supreme-red); color: white; box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3); }
.btn-modal.accept:hover { background-color: #b71c1c; }

/* BA4RSE 关键词 */
.supreme-keyword {
    display: inline-block;
    font-weight: 900;
    font-size: 1.3em;
    color: var(--text-main); 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    margin: 0 2px;
    position: relative;
    z-index: 10;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}
@media (hover: hover) {
    .supreme-keyword:hover {
        transform: scale(2.5) !important;
        color: var(--supreme-red); 
        text-shadow: 2px 2px 10px rgba(211, 47, 47, 0.5);
        z-index: 100;
    }
}
.supreme-keyword.mobile-active {
    transform: scale(2.5) !important;
    color: var(--supreme-red);
    text-shadow: 2px 2px 10px rgba(211, 47, 47, 0.5);
    z-index: 100;
}

/* Navbar */
.navbar { background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 90; padding: 1rem 0; margin-bottom: 2rem; border-bottom: 1px solid rgba(0,0,0,0.05); }
@media (prefers-color-scheme: dark) { .navbar { background: rgba(45, 55, 72, 0.8); border-bottom: 1px solid rgba(255,255,255,0.05); } }
.nav-inner { display: flex; justify-content: space-between; align-items: center; }
.logo { font-weight: 700; font-size: 1.2rem; display: flex; align-items: center; gap: 0.5rem; }
.meta { font-size: 0.9rem; color: var(--text-sub); }

/* Hero */
.hero { text-align: center; padding: 3rem 0 4rem; }
.tag { display: inline-block; background-color: var(--supreme-red); color: white; padding: 4px 12px; border-radius: 50px; font-size: 0.8rem; margin-bottom: 1.5rem; text-transform: uppercase; letter-spacing: 1px; font-weight: bold; }
.title-zh { font-family: 'Noto Serif SC', serif; font-size: 2.5rem; margin-bottom: 0.5rem; color: var(--text-main); font-weight: 800; }
.title-kr { font-family: 'Noto Sans KR', sans-serif; font-size: 1.2rem; font-weight: 700; color: var(--accent); margin-bottom: 2rem; }
.subtitle-zh { font-size: 1.1rem; color: var(--text-sub); font-weight: 500; }
.subtitle-kr { font-family: 'Noto Sans KR', sans-serif; font-size: 0.9rem; color: var(--text-sub); opacity: 0.8; }

/* Footer */
.footer { text-align: center; color: var(--text-sub); font-size: 0.9rem; margin-top: 4rem; }
.footer .small { font-size: 0.8rem; opacity: 0.6; margin-top: 0.5rem; }

/* 旧文章页面卡片样式兼容 (Card Layout for Articles) */
.card { background-color: var(--bg-card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 3rem; display: flex; flex-direction: column; }
@media (min-width: 768px) { .card { flex-direction: row; align-items: stretch; min-height: 320px; } .card.reverse { flex-direction: row-reverse; } .card-image { flex: 1; position: relative; } .card-image img { position: absolute; width: 100%; height: 100%; object-fit: cover; } .card-text { flex: 1; padding: 3rem; display: flex; flex-direction: column; justify-content: center; } }
@media (max-width: 767px) { .card-image img { width: 100%; height: auto; display: block; } .card-text { padding: 2rem; } .title-zh { font-size: 1.8rem; } }
.section-title { font-size: 1.4rem; color: var(--text-main); margin-bottom: 0.3rem; font-weight: 800; }
.section-subtitle { font-family: 'Noto Sans KR', sans-serif; font-size: 0.9rem; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1.5rem; font-weight: 700; }
.text-block .zh { font-size: 1.05rem; margin-bottom: 1rem; text-align: justify; }
.text-block .kr { font-family: 'Noto Sans KR', sans-serif; font-size: 0.9rem; color: var(--text-sub); line-height: 1.5; text-align: justify; }