:root { 
    --bg: #ffffff; --text: #000000; --text-dim: #888; --line: #f2f2f2; 
    --accent: #44bd82; --side-w: 360px; --admin-side-w: 280px;
    --font-serif: "Georgia", serif; --font-sans: -apple-system, system-ui, sans-serif;
    --login-bg: #e9f5ee; --card-bg: #ffffff;
}
[data-theme="dark"] { 
    --bg: #0a0a0a; --text: #eeeeee; --text-dim: #666; --line: #1a1a1a; 
    --login-bg: #0a1410; --card-bg: #111111;
}

/* 彻底取消所有下划线、边框 */
* { 
    box-sizing: border-box; 
    text-decoration: none !important; 
    border: none !important; 
    outline: none !important;
}

body { 
    font-family: var(--font-sans); 
    margin: 0; 
    background: var(--bg); 
    color: var(--text); 
    line-height: 1.8; 
    overflow-x: hidden; 
    transition: background 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
                color 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 平滑主题切换 */
body, .nav-bar, .admin-sidebar, .fixed-side, .bs-overlay, .bs-card, 
.post-row, .admin-menu a, .page-btn, .input-minimal, .btn-black {
    transition: background-color 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                color 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 导航 */
.nav-bar { 
    position: fixed; 
    top: 0; 
    width: 100%; 
    height: 90px; 
    background: var(--bg); 
    border-bottom: 1px solid var(--line) !important; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 0 5%; 
    z-index: 1000;
    backdrop-filter: blur(10px);
}
.logo-icon { 
    width: 34px; 
    height: 34px; 
    background: var(--text); 
    color: var(--bg); 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-weight: bold; 
    font-size: 0.9rem; 
    transition: all 0.4s ease;
}

/* 搜索面板 */
#search-overlay { 
    position: fixed; 
    top: -110%; 
    left: 0; 
    width: 100%; 
    min-height: 450px; 
    background: var(--bg); 
    z-index: 1100; 
    padding: 120px 10% 50px; 
    transition: 0.7s cubic-bezier(0.19, 1, 0.22, 1); 
    box-shadow: 0 40px 100px rgba(0,0,0,0.05);
}
#search-overlay.active { top: 0; }
.search-input-big { 
    width: 100%; 
    border-bottom: 2px solid var(--text) !important; 
    background: transparent; 
    color: var(--text); 
    font-size: 3.5rem; 
    font-family: var(--font-serif); 
    padding: 20px 0; 
    transition: border-color 0.4s ease;
}
.search-hl { color: var(--accent); background: rgba(68, 189, 130, 0.1); padding: 0 2px; }

/* 后台侧边栏 */
.admin-layout { display: flex; min-height: 100vh; padding-top: 90px; }
.admin-sidebar { 
    width: var(--admin-side-w); 
    border-right: 1px solid var(--line) !important; 
    padding: 60px 40px; 
    position: fixed; 
    height: 100%;
}
.admin-main { flex: 1; margin-left: var(--admin-side-w); padding: 80px 100px; max-width: 1300px; }
.admin-menu a { 
    display: flex; 
    align-items: center; 
    padding: 18px 25px; 
    margin-bottom: 15px; 
    border-radius: 15px; 
    font-size: 1rem; 
    color: var(--text-dim);
}
.admin-menu a.active { background: var(--line); color: var(--text); font-weight: bold; }
.admin-menu a:hover { background: var(--line); color: var(--text); }

/* 文章卡片流 */
.sapphire-layout { 
    display: flex; 
    max-width: 1440px; 
    margin: 90px auto 0; 
    min-height: 100vh;
}
.fixed-side { 
    width: var(--side-w); 
    position: sticky; 
    top: 90px; 
    height: calc(100vh - 90px); 
    padding: 80px 60px; 
    border-right: 1px solid var(--line) !important;
}
.fixed-side-nav { 
    margin-top: 40px; 
    border-top: 1px solid var(--line) !important; 
    padding-top: 30px;
}
.fixed-side-nav a { 
    display: block; 
    padding: 12px 0; 
    color: var(--text-dim); 
    font-weight: 500; 
    font-size: 1rem;
}
.fixed-side-nav a:hover { 
    color: var(--text);
}
.main-feed { flex: 1; }
.post-row { 
    display: flex; 
    height: 420px; 
    border-bottom: 1px solid var(--line) !important; 
    overflow: hidden;
}
.post-row .img { flex: 1; overflow: hidden; background: var(--line); }
.post-row .img img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    filter: grayscale(1); 
    transition: 0.8s; 
    opacity: 0.85;
}
.post-row:hover img { filter: grayscale(0); opacity: 1; transform: scale(1.04); }
.post-row .info { flex: 1.2; padding: 80px; display: flex; flex-direction: column; justify-content: center; }
.post-row h2 { font-family: var(--font-serif); font-size: 2.6rem; margin: 15px 0; letter-spacing: -1px; line-height: 1.2; }

/* 极简输入框 */
.input-minimal { 
    width: 100%; 
    border-bottom: 1px solid var(--line) !important; 
    background: transparent; 
    color: var(--text); 
    padding: 18px 0; 
    font-size: 1.2rem; 
    margin-bottom: 50px;
    transition: border-color 0.3s ease;
}
.input-minimal:focus { border-bottom: 2px solid var(--text) !important; }

/* 详情导航 */
.post-nav { 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-start; 
    margin-top: 100px; 
    padding: 80px 0; 
    border-top: 1px solid var(--line) !important; 
    width: 100%;
}
.nav-item { flex: 1; display: flex; flex-direction: column; width: 45%; }
.nav-item.next { text-align: right; margin-left: auto; }
.nav-item strong { font-family: var(--font-serif); font-size: 1.5rem; color: var(--text); margin-top: 10px; }

/* 动效 */
.reveal { opacity: 0; transform: translateY(40px); }
.reveal.active { 
    opacity: 1; 
    transform: translateY(0); 
    transition: 1.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* BonSante 登录 */
.bs-overlay { 
    position: fixed; 
    inset: 0; 
    background: var(--login-bg); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    z-index: 2000;
}
.bs-card { 
    width: 1100px; 
    height: 750px; 
    background: var(--card-bg); 
    border-radius: 75px; 
    display: flex; 
    overflow: hidden; 
    box-shadow: 0 60px 150px rgba(0,0,0,0.1);
}
.bs-left { 
    flex: 1; 
    padding: 100px; 
    color: var(--text); 
    display: flex; 
    flex-direction: column; 
    justify-content: center;
}
.bs-input { 
    width: 100%; 
    padding: 22px; 
    border-radius: 20px; 
    background: var(--line); 
    margin-bottom: 20px; 
    font-size: 1.1rem; 
    color: var(--text);
}
.bs-right { 
    flex: 1.3; 
    background-position: center; 
    background-size: cover; 
    display: flex; 
    align-items: center; 
    justify-content: center;
}
.bs-glass { 
    width: 85%; 
    padding: 55px; 
    background: rgba(255,255,255,0.1); 
    backdrop-filter: blur(30px); 
    border-radius: 50px; 
    color: #fff;
}

.btn-black { 
    background: var(--text); 
    color: var(--bg); 
    padding: 15px 45px; 
    border-radius: 60px; 
    font-weight: bold; 
    cursor: pointer; 
    display: inline-block; 
    font-size: 0.9rem;
}
#progress-bar { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 0; 
    height: 4px; 
    background: var(--accent); 
    z-index: 1300;
}
.svg-btn { 
    background: none; 
    cursor: pointer; 
    padding: 12px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 50%; 
    color: var(--text);
}
.pagination { 
    padding: 80px; 
    display: flex; 
    gap: 20px; 
    justify-content: center; 
    align-items: center;
}
.page-btn { 
    padding: 14px 24px; 
    border: 1px solid var(--line) !important; 
    font-weight: bold; 
    border-radius: 12px; 
    color: var(--text-dim);
}
.page-btn.active { 
    background: var(--text); 
    color: var(--bg); 
    border-color: var(--text) !important;
}
.instant-results { 
    transition: opacity 0.3s ease;
}