/* ============================================================
   OmniPress 主样式
   全能型资源站主题 - 主打自定义、多样化、多功能
   ============================================================ */

/* ---------- 阿里巴巴普惠体（免费商用，OFL 授权） ---------- */
@font-face {
    font-family: 'AlibabaPuHuiTi';
    src: url('../fonts/AlibabaPuHuiTi-3-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'AlibabaPuHuiTi';
    src: url('../fonts/AlibabaPuHuiTi-3-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --op-primary: #2563eb;
    --op-accent: #8b5cf6;
    --op-bg: #ffffff;
    --op-tag-bg: #f3f4f6;
    --op-card: #ffffff;
    --op-border: #e5e7eb;
    --op-text: #1f2937;
    --op-text-2: #6b7280;
    --op-text-3: #9ca3af;
    --op-radius: 12px;
    --op-shadow: 0 1px 3px rgba(0,0,0,.05);
    --op-shadow-lg: 0 8px 24px rgba(0,0,0,.08);
    --op-header-h: 64px;
}
/* ========== 暗黑模式 - 全局变量与基础布局 ========== */
html[data-theme="dark"] {
    --op-bg: #111827;
    --op-tag-bg: #1f2937;
    --op-card: #1f2937;
    --op-border: #374151;
    --op-text: #e5e7eb;
    --op-text-2: #9ca3af;
    --op-text-3: #6b7280;
    --op-shadow: 0 1px 3px rgba(0,0,0,.4);
    --op-shadow-lg: 0 8px 24px rgba(0,0,0,.5);
}
html[data-theme="dark"] body { background: #111827; color: #e5e7eb; }
html[data-theme="dark"] .op-card,
html[data-theme="dark"] .op-article,
html[data-theme="dark"] .op-empty,
html[data-theme="dark"] .op-sidebar .widget,
html[data-theme="dark"] .op-404-inner,
html[data-theme="dark"] .op-comments,
html[data-theme="dark"] .op-search-result,
html[data-theme="dark"] .op-page-links,
html[data-theme="dark"] .op-loadmore-wrap,
html[data-theme="dark"] .op-single-header,
html[data-theme="dark"] .op-post-nav,
html[data-theme="dark"] .op-related,
html[data-theme="dark"] .op-author-box,
html[data-theme="dark"] .op-toc { background: #1f2937 !important; border-color: #374151; }
html[data-theme="dark"] .op-card-title a,
html[data-theme="dark"] .op-post-title a,
html[data-theme="dark"] .op-card-title { color: #e5e7eb; }
html[data-theme="dark"] .op-header { background: rgba(17,24,39,.92); }
html[data-theme="dark"] .op-loadmore { background: #1f2937; border-color: #374151; color: #9ca3af; }
html[data-theme="dark"] .op-loadmore:hover { color: #fff; border-color: var(--op-primary); }
html[data-theme="dark"] .op-page-links a,
html[data-theme="dark"] .op-page-links span { background: #1f2937; border-color: #374151; color: #9ca3af; }
html[data-theme="dark"] .op-page-links span.current { background: var(--op-primary); border-color: var(--op-primary); color: #fff; }
html[data-theme="dark"] .op-list-item { background: #1f2937 !important; }
html[data-theme="dark"] .op-list-cat { background: rgba(59,130,246,.15); border-color: rgba(59,130,246,.3); color: #93c5fd; }
html[data-theme="dark"] .op-list-cat:hover { background: var(--op-primary); border-color: var(--op-primary); color: #fff; }


* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'AlibabaPuHuiTi', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--op-bg);
    color: var(--op-text);
    font-size: 15px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--op-primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--op-accent); }

.op-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ========== 站点头部公告 ========== */
.op-site-notice {
    background: linear-gradient(90deg, var(--op-primary), var(--op-accent));
    color: #fff;
    font-size: 13px;
    padding: 8px 0;
    text-align: center;
}

/* ========== 头部 ========== */
.op-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--op-border);
}

.op-header.is-scrolled { box-shadow: none; }

.op-header-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 0;
    gap: 0;
    flex-wrap: nowrap;
    padding: 6px 0;
}

.op-header-top { display: flex; align-items: center; width: 100%; gap: 10px; flex-wrap: nowrap; }

.op-header-left { display: flex; align-items: center; gap: 6px 10px; min-width: 0; flex: 1 1 auto; }

.op-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.op-logo-img { height: 42px; width: auto; max-width: 200px; object-fit: contain; }
.op-logo-dark { display: none; }
.op-logo-badge {
    width: 40px; height: 40px; border-radius: 10px;
    background: linear-gradient(135deg, var(--op-primary), var(--op-accent));
    color: #fff; font-size: 22px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.op-logo-txt { display: flex; flex-direction: column; line-height: 1.25; }
.op-logo-text { font-size: 19px; font-weight: 700; color: var(--op-text); letter-spacing: .5px; white-space: nowrap; }
.op-logo-url { font-size: 11px; color: var(--op-text-3); white-space: nowrap; }

/* 导航（单行，随 Logo 并排） */
.op-nav {
    display: flex; align-items: center;
    flex: 0 1 auto; min-width: 0;
    overflow: visible;
}
.op-nav-list {
    display: flex; align-items: center; gap: 2px;
    list-style: none; margin: 0; padding: 0;
    flex-wrap: nowrap;
}
.op-nav-list > li { position: relative; flex-shrink: 0; padding-bottom: 0; }
.op-nav-list > li > a {
    display: flex; align-items: center; gap: 5px;
    padding: 10px 9px; border-radius: 8px;
    color: var(--op-text); font-size: 14px; font-weight: 400;
    position: relative; line-height: 1;
    white-space: nowrap; word-break: keep-all;
    text-decoration: none;
}
.op-menu-icon {
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0; line-height: 1;
    color: inherit;
    margin-right: 4px;
    vertical-align: -2px;
    transition: transform .15s ease;
}
.op-menu-icon svg { width: 15px; height: 15px; display: block; }
/* 二级菜单图标：紧凑小图标 */
.op-menu-icon--sub { margin-right: 4px; vertical-align: -1px; }
.op-menu-icon--sub svg { width: 14px; height: 14px; }
.op-nav-list > li > a:hover .op-menu-icon,
.op-nav-list > li.current-menu-item > a .op-menu-icon,
.op-nav-list > li.current-menu-ancestor > a .op-menu-icon { transform: scale(1.1); }
.op-nav-list > li > a:hover { color: var(--op-primary); }
/* 选中项：浅色底 + 主题色文字（清晰可见） */
.op-nav-list > li.current-menu-item > a,
.op-nav-list > li.current-menu-ancestor > a {
    background: rgba(37,99,235,.10);
    color: var(--op-primary);
    font-weight: 700;
}
.op-nav-list > li.current-menu-item > a:hover,
.op-nav-list > li.current-menu-ancestor > a:hover { color: var(--op-primary); }

/* 子菜单（无动画，无缝隙消失问题） */
.op-nav-list .sub-menu {
    position: absolute; top: 100%; left: 0; min-width: 200px;
    background: var(--op-card); border: 1px solid var(--op-border);
    border-radius: var(--op-radius); box-shadow: 0 12px 40px rgba(0,0,0,.12);
    padding: 8px; list-style: none; margin: 0;
    opacity: 0; visibility: hidden;
    z-index: 100;
    max-height: 70vh; overflow-y: auto;
    /* 移开：立即消失，无延迟 */
    transition: opacity 0s ease 0s, visibility 0s linear 0s;
}
/* 靠右的子菜单右对齐，防超出屏幕 */
.op-nav-list > li:last-child > .sub-menu,
.op-nav-list > li:nth-last-child(-n+2) > .sub-menu { left: auto; right: 0; }
.op-nav-list > li:hover > .sub-menu,
.op-nav-list > li:focus-within > .sub-menu {
    opacity: 1; visibility: visible;
    /* 悬停：几乎即时弹出（0.05s，防误触但不觉得慢） */
    transition: opacity .08s ease .05s, visibility 0s linear .05s;
}
.op-nav-list .sub-menu a {
    display: block; padding: 9px 14px; border-radius: 8px;
    color: var(--op-text); font-size: 14px;
}
.op-nav-list .sub-menu a:hover { color: var(--op-primary); }

/* 头部右侧 */
.op-header-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; margin-left: auto; padding-left: 8px; }

/* 搜索：放大镜图标按钮（点击打开全屏弹窗） */
.op-search-wrap { position: relative; }
.op-search-btn {
    width: 34px; height: 34px; border-radius: 50%;
    border: 1px solid var(--op-border); background: var(--op-card);
    color: var(--op-text-2); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.op-search-btn:hover { color: var(--op-primary); border-color: var(--op-primary); }

/* 全屏搜索弹窗（弹窗靠顶部偏上显示，不垂直居中） */
.op-search-modal {
    position: fixed; inset: 0; z-index: 9999;
    display: none; align-items: flex-start; justify-content: center;
    padding: 10vh 20px 20px;
}
.op-search-modal.is-open { display: flex; }
.op-search-modal-overlay {
    position: absolute; inset: 0;
    background: rgba(15, 23, 42, .55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.op-search-modal-box {
    position: relative; width: 100%; max-width: 640px;
    background: var(--op-card);
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(0,0,0,.25);
    padding: 20px 24px 28px;
    border: 1px solid var(--op-border);
}
.op-search-modal-form {
    display: flex; align-items: center; gap: 12px;
    border-bottom: 2px solid var(--op-border);
    padding: 6px 4px 12px;
}
.op-search-modal-icon { color: var(--op-text-3); flex-shrink: 0; }
.op-search-modal-input {
    flex: 1; border: none; outline: none; background: transparent;
    font-size: 18px; color: var(--op-text);
}
.op-search-modal-input::placeholder { color: var(--op-text-3); }
.op-search-modal-close {
    border: none; background: transparent; cursor: pointer;
    color: var(--op-text-3); padding: 6px;
    display: flex; align-items: center;
}
.op-search-modal-close:hover { color: var(--op-text); }
.op-search-modal-hot { margin-top: 20px; }
.op-search-modal-hot-label {
    font-size: 13px; color: var(--op-text-3);
    margin-bottom: 12px;
    display: flex; align-items: center; gap: 6px;
}
.op-search-modal-hot-label::before { content: "🔥"; font-size: 15px; }
.op-search-modal-hot-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.op-search-modal-tag {
    font-size: 14px; padding: 6px 16px; border-radius: 999px;
    background: rgba(37,99,235,.08);
    color: var(--op-text-2);
}
.op-search-modal-tag:hover { background: var(--op-primary); color: #fff; }

/* 深色模式搜索弹窗 */
.omnipress-dark .op-search-modal-box { background: #1e293b; border-color: #334155; }
.omnipress-dark .op-search-modal-form { border-color: #334155; }
.omnipress-dark .op-search-modal-input { color: #e2e8f0; }
.omnipress-dark .op-search-modal-tag { background: rgba(148,163,184,.14); color: #94a3b8; }
.omnipress-dark .op-search-modal-tag:hover { background: var(--op-primary); color: #fff; }

.op-theme-toggle {
    width: 34px; height: 34px; border-radius: 50%;
    border: 1px solid var(--op-border); background: var(--op-card);
    color: var(--op-text-2); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.op-theme-toggle:hover { color: var(--op-primary); border-color: var(--op-primary); }

.op-user-icon-btn {
    width: 34px; height: 34px; border-radius: 50%;
    border: 1px solid var(--op-border); background: var(--op-card);
    color: var(--op-text-2); cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    text-decoration: none; transition: color .2s ease, border-color .2s ease;
}
.op-user-icon-btn:hover { color: var(--op-primary); border-color: var(--op-primary); }
.op-icon-moon { display: none; }
.omnipress-dark .op-icon-sun { display: none; }
.omnipress-dark .op-icon-moon { display: block; }

/* 用户菜单 */
.op-user { position: relative; }
.op-user-avatar-wrap { position: relative; }
  .op-user-avatar {
    width: 34px; height: 34px; border-radius: 50%;
    border: 1px solid var(--op-border); cursor: pointer;
    object-fit: cover; display: block;
    box-sizing: border-box;
    transition: border-color .2s ease;
  }
.op-user-avatar-wrap:hover .op-user-avatar { border-color: var(--op-primary); }
.op-notif-dot {
    position: absolute; top: -4px; right: -4px;
    min-width: 18px; height: 18px; padding: 0 4px;
    background: #ef4444; color: #fff; font-size: 11px;
    border-radius: 9px; display: flex; align-items: center; justify-content: center;
    font-weight: 700; border: 2px solid #fff;
}
.op-user-dropdown {
    position: absolute; top: calc(100% + 8px); right: 0;
    min-width: 240px; background: var(--op-card);
    border: 1px solid var(--op-border); border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0,0,0,.15); padding: 8px;
    opacity: 0; visibility: hidden;
    z-index: 100;
    transition: opacity .22s ease, visibility .22s ease;
    transform-origin: top right;
}
.op-user-avatar-wrap:hover .op-user-dropdown,
.op-user-avatar-wrap.op-user-open .op-user-dropdown { opacity: 1; visibility: visible; }
/* 用伪元素补足头像与下拉之间的空隙，防止 hover 断档 */
.op-user-avatar-wrap::after {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 100%;
    height: 14px;
}
.op-user-avatar-wrap:hover::after,
.op-user-avatar-wrap.op-user-open::after { display: block; }
.op-user-dropdown-head {
    display: flex; align-items: center; gap: 14px;
    padding: 16px 14px; border-bottom: 1px solid var(--op-border); margin-bottom: 10px;
}
.op-user-dropdown-head img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.op-user-name { font-weight: 700; font-size: 15px; color: var(--op-text); margin-bottom: 3px; }
.op-user-email { font-size: 12.5px; color: var(--op-text-3); word-break: break-all; line-height: 1.4; }
.op-user-link {
    display: block; padding: 9px 12px; border-radius: 8px;
    color: var(--op-text-2); font-size: 14px;
}
.op-user-link:hover { color: var(--op-primary); }
.op-dropdown-divider { height: 1px; background: var(--op-border); margin: 6px 8px; }

.op-login-btn {
    padding: 7px 22px; border-radius: 6px;
    background: var(--op-primary);
    color: #fff; font-size: 14px; font-weight: 600;
}
.op-login-btn:hover { color: #fff; filter: brightness(1.08); }
.op-register-btn {
    padding: 7px 22px; border-radius: 6px;
    background: #ef4444;
    color: #fff; font-size: 14px; font-weight: 600;
}
.op-register-btn:hover { color: #fff; filter: brightness(1.08); }

/* 汉堡 */
.op-nav-toggle {
    display: none; flex-direction: column; gap: 4px;
    width: 36px; height: 36px; border: 1px solid var(--op-border);
    border-radius: 8px; background: var(--op-card); cursor: pointer;
    align-items: center; justify-content: center;
}
.op-nav-toggle span { width: 18px; height: 2px; background: var(--op-text); border-radius: 2px; transition: all .3s ease; }
.op-nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.op-nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.op-nav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 热门搜索 */
.op-hot-search {
    background: var(--op-card);
    border-bottom: 1px solid var(--op-border);
    padding: 10px 0;
}
.op-hot-label { font-size: 13px; color: var(--op-text-2); margin-right: 8px; }
.op-hot-tag {
    display: inline-block; font-size: 12px; color: var(--op-text-2);
    background: var(--op-tag-bg); border: 1px solid var(--op-border);
    padding: 3px 12px; border-radius: 999px; margin: 2px 4px 2px 0;
    transition: all .25s ease;
}
.op-hot-tag:hover { background: var(--op-primary); color: #fff; border-color: var(--op-primary); }

/* ========== 主内容 ========== */
.op-main { min-height: calc(100vh - 200px); }

.op-home-layout,
.op-single-layout,
.op-archive-layout {
    display: grid;
    gap: 24px;
    padding: 24px 20px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}
.layout-right-sidebar { grid-template-columns: 1fr 300px; }
.layout-left-sidebar { grid-template-columns: 300px 1fr; }
.layout-no-sidebar { grid-template-columns: 1fr; }
.layout-full-width { grid-template-columns: 1fr; max-width: 1400px; }

.op-home-main, .op-content-main { min-width: 0; }

.op-sidebar { position: sticky; top: 84px; }
/* 侧边栏小工具统一白底（仅对第三方/非主题小工具生效，OmniPress 自带 op-widget 保留自身彩色样式） */
.op-sidebar .widget:not(.op-widget),
.op-sidebar .widget:not(.op-widget) *,
.op-sidebar .wp-widget:not(.op-widget),
.op-sidebar .widget .wp-block-group,
.op-sidebar .widget .wp-block-columns {
    background: transparent !important;
}
.op-sidebar .widget {
    background: var(--op-card) !important;
}
.op-sidebar .widget {
    background: var(--op-card); border: 1px solid var(--op-border);
    border-radius: var(--op-radius); padding: 20px;
    margin-bottom: 20px; box-shadow: var(--op-shadow);
}
.op-sidebar .widget-title { margin: 0 0 14px 0; font-size: 16px; font-weight: 600; color: var(--op-text); }
.op-sidebar .widget-title span { border-left: 3px solid var(--op-primary); padding-left: 10px; }
.op-sidebar ul { list-style: none; margin: 0; padding: 0; }
.op-sidebar ul li { padding: 8px 0; border-bottom: 1px solid var(--op-border); font-size: 14px; }
.op-sidebar ul li:last-child { border-bottom: none; }
.op-sidebar ul li a { color: var(--op-text-2); }
.op-sidebar ul li a:hover { color: var(--op-primary); }

/* 广告 */
.op-ad { background: var(--op-card); border: 1px dashed var(--op-border); border-radius: var(--op-radius); padding: 16px; text-align: center; margin-bottom: 20px; font-size: 13px; color: var(--op-text-3); }

/* ========== 首页幻灯片（焦点图轮播） ========== */
.op-home-slider { margin-bottom: 20px; }
.op-home-slider .op-slider-viewport { position: relative; overflow: hidden; border-radius: var(--op-radius); box-shadow: var(--op-shadow-sm); }
.op-home-slider .op-slider-track { position: relative; }
.op-home-slider .op-slider-slide { display: none; }
.op-home-slider .op-slider-slide.is-active { display: block; }
.op-home-slider .op-slider-slide a { display: block; }
.op-home-slider .op-slider-slide img { display: block; width: 100%; height: 360px; object-fit: cover; }
.op-home-slider .op-slider-caption {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 46px 20px 14px; text-align: left;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,.72));
    color: #fff; font-size: 15px; font-weight: 600; line-height: 1.4;
}
.op-home-slider .op-slider-dots {
    position: absolute; bottom: 14px; right: 16px;
    display: flex; gap: 6px; z-index: 2;
}
.op-home-slider .op-slider-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255,255,255,.5); cursor: pointer; transition: all .25s ease; border: none; padding: 0;
}
.op-home-slider .op-slider-dot.is-active { background: var(--op-primary); transform: scale(1.25); }
.op-home-slider .op-slider-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 36px; height: 36px; border: none; border-radius: 50%;
    background: rgba(0,0,0,.35); color: #fff; font-size: 22px; line-height: 1;
    cursor: pointer; z-index: 2; display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: all .25s ease;
}
.op-home-slider:hover .op-slider-arrow { opacity: 1; }
.op-home-slider .op-slider-prev { left: 12px; }
.op-home-slider .op-slider-next { right: 12px; }
.op-home-slider .op-slider-arrow:hover { background: rgba(0,0,0,.6); }
@media (max-width: 768px) {
    .op-home-slider .op-slider-slide img { height: 200px; }
}

/* ========== 文章卡片 ========== */
.op-section { margin-bottom: 24px; }
.op-section-head {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--op-card); border: 1px solid var(--op-border);
    border-radius: var(--op-radius); padding: 14px 20px; margin-bottom: 16px;
    box-shadow: var(--op-shadow);
}
.op-section-title { margin: 0; font-size: 18px; font-weight: 700; color: var(--op-text); }
.op-section-title span { position: relative; padding-left: 12px; }
.op-section-title span::before {
    content: ""; position: absolute; left: 0; top: 50%;
    transform: translateY(-50%); width: 4px; height: 20px;
    background: linear-gradient(180deg, var(--op-primary), var(--op-accent));
    border-radius: 2px;
}
.op-section-more { font-size: 13px; color: var(--op-text-3); }
.op-section-more:hover { color: var(--op-primary); }

.op-post-list.style-card {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.op-post-list.style-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.op-post-list.style-list { display: flex; flex-direction: column; gap: 16px; }

/* ===== 瀑布流（masonry）===== */
.op-post-list.style-masonry {
    column-count: 3; column-gap: 16px;
}
.op-masonry-item {
    break-inside: avoid; page-break-inside: avoid;
    margin-bottom: 16px;
    background: #ffffff !important; border: 1px solid var(--op-border);
    border-radius: var(--op-radius); overflow: hidden;
    box-shadow: var(--op-shadow); transition: all .3s ease;
}
.op-masonry-item:hover { box-shadow: var(--op-shadow-lg); transform: translateY(-3px); }
.op-masonry-thumb { position: relative; display: block; overflow: hidden; width: 100%; }
.op-masonry-thumb img { width: 100%; display: block; object-fit: cover; transition: transform .4s ease; }
.op-masonry-item:hover .op-masonry-thumb img { transform: scale(1.05); }
.op-masonry-body { padding: 12px 14px 14px; }
.op-masonry-cat {
    display: inline-block; font-size: 11px; font-weight: 600;
    color: var(--op-primary); background: rgba(37,99,235,.1);
    padding: 2px 10px; border-radius: 999px; margin-bottom: 8px;
}
.op-masonry-title { margin: 0 0 6px; font-size: 15px; font-weight: 600; line-height: 1.45; }
.op-masonry-title a { color: var(--op-text); }
.op-masonry-title a:hover { color: var(--op-primary); }
.op-masonry-excerpt { font-size: 13px; color: var(--op-text-2); margin-bottom: 10px; line-height: 1.6; }
.op-masonry-meta {
    display: flex; gap: 14px; font-size: 12px; color: var(--op-text-3);
    border-top: 1px solid var(--op-border); padding-top: 8px;
}
/* 带侧边栏时瀑布流 2 列 */
.op-home-layout.layout-right-sidebar .op-post-list.style-masonry,
.op-home-layout.layout-left-sidebar .op-post-list.style-masonry,
.op-archive-layout.layout-right-sidebar .op-post-list.style-masonry,
.op-archive-layout.layout-left-sidebar .op-post-list.style-masonry { column-count: 2; }

/* 卡片 */
.op-card {
    background: #ffffff !important; border: 1px solid var(--op-border);
    border-radius: var(--op-radius); overflow: hidden;
    box-shadow: var(--op-shadow); transition: all .3s ease;
}
.op-card:hover { box-shadow: var(--op-shadow-lg); transform: translateY(-3px); }
.op-card-thumb { position: relative; display: block; overflow: hidden; aspect-ratio: 5/3; }
.op-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.op-card:hover .op-card-thumb img { transform: scale(1.05); }
.op-card-badge {
    position: absolute; top: 10px; left: 10px;
    font-size: 11px; font-weight: 700; color: #fff;
    padding: 2px 8px; border-radius: 6px;
}
.op-card-badge-top { background: #ef4444; }
.op-card-badge-rec { background: linear-gradient(135deg, var(--op-primary), var(--op-accent)); }
.op-card-cat {
    position: absolute; bottom: 10px; right: 10px;
    font-size: 11px; color: #fff; background: rgba(0,0,0,.55);
    padding: 2px 10px; border-radius: 999px; backdrop-filter: blur(4px);
}
.op-card-body { padding: 14px 16px 16px; }
.op-card-title { margin: 0 0 8px; font-size: 16px; font-weight: 600; line-height: 1.4; }
.op-card-title a { color: var(--op-text); }
.op-card-title a:hover { color: var(--op-primary); }
.op-card-excerpt {
    font-size: 13px; color: var(--op-text-2); margin-bottom: 12px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.op-card-meta {
    display: flex; gap: 14px; font-size: 12px; color: var(--op-text-3);
    border-top: 1px solid var(--op-border); padding-top: 10px;
}

/* 列表（图文横排：左图右文） */
.op-list-item {
    display: flex; gap: 18px;
    background: #ffffff !important; border: 1px solid var(--op-border);
    border-radius: var(--op-radius); padding: 14px;
    box-shadow: var(--op-shadow); transition: all .3s ease;
}
.op-list-item:hover { box-shadow: var(--op-shadow-lg); border-color: var(--op-primary); }
.op-list-thumb { flex-shrink: 0; width: 200px; height: 132px; border-radius: 8px; overflow: hidden; }
.op-list-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.op-list-item:hover .op-list-thumb img { transform: scale(1.05); }
.op-list-body { flex: 1; min-width: 0; }
.op-list-title { margin: 0 0 6px; font-size: 17px; font-weight: 600; line-height: 1.45; }
.op-list-title a { color: var(--op-text); }
.op-list-title a:hover { color: var(--op-primary); }
.op-list-badge {
    display: inline-block; font-size: 11px; font-weight: 700; color: #fff;
    background: #ef4444; padding: 2px 8px; border-radius: 4px; margin-left: 8px; vertical-align: 3px;
}
.op-list-badge-new { background: #ef4444; }
.op-list-excerpt {
    font-size: 14px !important; color: var(--op-text-2); margin-bottom: 8px; line-height: 1.7 !important;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    word-break: break-word;
}
.op-list-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.op-list-cat {
    font-size: 12px; color: var(--op-primary); background: #eff6ff;
    border: 1px solid #dbeafe; padding: 2px 12px; border-radius: 999px;
    transition: all .2s ease;
}
.op-list-cat:hover { background: var(--op-primary); border-color: var(--op-primary); color: #fff; }
.op-list-meta {
    display: flex; align-items: center; gap: 18px; font-size: 13px; color: var(--op-text-3);
    border-top: 1px dashed var(--op-border); padding-top: 8px; flex-wrap: wrap;
}
.op-list-author { font-weight: 600; color: var(--op-text-2); }

/* 网格 */
.op-grid-item {
    background: #ffffff !important; border: 1px solid var(--op-border);
    border-radius: var(--op-radius); overflow: hidden;
    box-shadow: var(--op-shadow); transition: all .3s ease;
}
.op-grid-item:hover { box-shadow: var(--op-shadow-lg); transform: translateY(-3px); }
.op-grid-thumb { position: relative; display: block; overflow: hidden; aspect-ratio: 4/3; }
.op-grid-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.op-grid-item:hover .op-grid-thumb img { transform: scale(1.05); }
.op-grid-badge {
    position: absolute; top: 8px; left: 8px; font-size: 10px; font-weight: 700;
    color: #fff; background: #ef4444; padding: 2px 6px; border-radius: 4px;
}
.op-grid-badge-rec { background: var(--op-primary); }
.op-grid-body { padding: 10px 12px 12px; }
.op-grid-title { margin: 0 0 8px; font-size: 14px; font-weight: 600; line-height: 1.4; }
.op-grid-title a { color: var(--op-text); }
.op-grid-title a:hover { color: var(--op-primary); }
.op-grid-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--op-text-3); }

/* 空状态 */
.op-empty {
    background: var(--op-card); border: 1px solid var(--op-border);
    border-radius: var(--op-radius); padding: 60px 20px;
    text-align: center; color: var(--op-text-3);
}
.op-empty-icon { font-size: 40px; margin-bottom: 10px; }

/* 分页 */
.op-content-main .nav-links { display: flex; justify-content: center; gap: 8px; margin-top: 24px; flex-wrap: wrap; }
.op-content-main .nav-links a,
.op-content-main .nav-links .current {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px; padding: 0 12px;
    border: 1px solid var(--op-border); border-radius: 10px;
    background: var(--op-card); color: var(--op-text-2);
    font-size: 14px; font-weight: 500; transition: all .25s ease;
}
.op-content-main .nav-links a:hover { border-color: var(--op-primary); color: var(--op-primary); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(37,99,235,.15); }
.op-content-main .nav-links .current { background: var(--op-primary); border-color: var(--op-primary); color: #fff; }

/* 加载更多按钮 */
.op-loadmore-wrap { display: flex; justify-content: center; margin-top: 24px; }
.op-loadmore {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 180px; padding: 12px 32px;
    border: 1.5px solid var(--op-primary); border-radius: 999px;
    background: #ffffff; color: var(--op-primary);
    font-size: 15px; font-weight: 600; cursor: pointer;
    transition: all .25s ease;
}
.op-loadmore:hover { background: var(--op-primary); color: #fff; box-shadow: 0 6px 16px rgba(37,99,235,.25); transform: translateY(-1px); }
.op-loadmore.is-loading { opacity: .7; cursor: wait; }
.op-loadmore.is-end { border-color: var(--op-border); color: var(--op-text-3); background: #f8fafc; cursor: default; }
.op-loadmore.is-end:hover { background: #f8fafc; color: var(--op-text-3); box-shadow: none; transform: none; }

/* ========== 文章页 ========== */
.op-article {
    background: var(--op-card); border: 1px solid var(--op-border);
    border-radius: var(--op-radius); padding: 28px;
    box-shadow: var(--op-shadow);
}
.op-breadcrumb { font-size: 13px; color: var(--op-text-3); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--op-border); }
.op-breadcrumb a { color: var(--op-text-2); }
.op-breadcrumb a:hover { color: var(--op-primary); }
.op-breadcrumb .sep { margin: 0 8px; }
.op-breadcrumb .current { color: var(--op-text-3); }

.op-article-header { margin-bottom: 20px; }
.op-article-title { margin: 0 0 14px; font-size: 26px; font-weight: 700; line-height: 1.4; }
.op-article-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--op-text-3); }
.op-meta-item { display: inline-flex; align-items: center; gap: 5px; }
.op-meta-item svg { color: var(--op-text-3); }
.op-meta-cat { color: var(--op-primary); }
.op-article-thumb { border-radius: var(--op-radius); overflow: hidden; margin-bottom: 24px; }
.op-article-content { font-size: 16px; line-height: 1.9; color: var(--op-text); }
.op-article-content h2, .op-article-content h3, .op-article-content h4 { margin-top: 1.8em; }
.op-article-content img { border-radius: 8px; }
.op-article-content blockquote {
    border-left: 4px solid var(--op-primary); margin: 20px 0;
    padding: 12px 20px; background: rgba(37,99,235,.05);
    border-radius: 0 8px 8px 0; color: var(--op-text-2);
}
.op-article-content pre {
    background: #0f172a; color: #e2e8f0; padding: 16px;
    border-radius: 8px; overflow-x: auto; font-size: 14px;
}
.op-article-content code { background: rgba(37,99,235,.08); padding: 2px 6px; border-radius: 4px; font-size: 14px; }
.op-article-content pre code { background: transparent; padding: 0; }
.op-article-tags { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--op-border); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.op-tags-label { font-size: 14px; color: var(--op-text-2); }
.op-tag {
    padding: 4px 12px; background: var(--op-tag-bg); border: 1px solid var(--op-border);
    border-radius: 999px; font-size: 13px; color: var(--op-text-2); transition: all .25s ease;
}
.op-tag:hover { background: var(--op-primary); border-color: var(--op-primary); color: #fff; }

/* 文章操作栏 */
.op-post-actions {
    display: flex; gap: 10px; margin-top: 24px; padding: 14px 0;
    border-top: 1px solid var(--op-border); border-bottom: 1px solid var(--op-border);
}
.op-action {
    display: inline-flex; align-items: center; gap: 6px;
    border: 1px solid var(--op-border); background: var(--op-card);
    color: var(--op-text-2); font-size: 13px; padding: 7px 16px;
    border-radius: 999px; cursor: pointer; transition: all .25s ease;
}
.op-action:hover { border-color: var(--op-primary); color: var(--op-primary); transform: translateY(-1px); }
.op-action.is-active { background: var(--op-primary); border-color: var(--op-primary); color: #fff; }
.op-action.is-active.op-fav { background: var(--op-accent); border-color: var(--op-accent); }
.op-views { cursor: default; }
.op-views:hover { border-color: var(--op-border); color: var(--op-text-2); transform: none; }

/* 下载区 */
.op-download-box {
    margin-top: 24px; border: 1px solid var(--op-border);
    border-radius: var(--op-radius); overflow: hidden;
    background: linear-gradient(135deg, rgba(37,99,235,.04), rgba(139,92,246,.04));
}
.op-download-head {
    display: flex; align-items: center; gap: 14px;
    padding: 18px 20px; border-bottom: 1px solid var(--op-border);
    background: var(--op-card);
}
.op-download-icon {
    width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--op-primary), var(--op-accent));
    display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.op-download-info { flex: 1; min-width: 0; }
.op-download-name { font-size: 16px; font-weight: 700; color: var(--op-text); margin-bottom: 4px; }
.op-download-meta { display: flex; gap: 16px; font-size: 12px; color: var(--op-text-3); flex-wrap: wrap; }
.op-download-body { padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.op-download-pwd { font-size: 14px; color: var(--op-text-2); display: flex; align-items: center; gap: 8px; }
.op-download-pwd code { font-size: 15px; background: rgba(37,99,235,.08); padding: 4px 10px; border-radius: 6px; color: var(--op-primary); }
.op-copy-pwd { border: 1px solid var(--op-border); background: var(--op-card); color: var(--op-text-2); font-size: 12px; padding: 3px 10px; border-radius: 6px; cursor: pointer; }
.op-copy-pwd:hover { border-color: var(--op-primary); color: var(--op-primary); }
.op-download-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg, var(--op-primary), var(--op-accent));
    color: #fff; font-size: 15px; font-weight: 700;
    padding: 12px 28px; border-radius: 999px;
    box-shadow: 0 4px 14px rgba(37,99,235,.3); transition: all .3s ease;
}
.op-download-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(37,99,235,.4); color: #fff; }

/* 相关文章 */
.op-related { margin-top: 24px; }
.op-related-title { font-size: 18px; font-weight: 700; margin: 0 0 14px; color: var(--op-text); }
.op-related-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.op-related-item {
    background: #ffffff !important; border: 1px solid var(--op-border);
    border-radius: var(--op-radius); overflow: hidden; transition: all .3s ease;
}
.op-related-item:hover { box-shadow: var(--op-shadow-lg); transform: translateY(-2px); }
.op-related-thumb { display: block; aspect-ratio: 16/9; overflow: hidden; }
.op-related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.op-related-name {
    display: block; padding: 8px 10px; font-size: 13px; color: var(--op-text);
    line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.op-related-item:hover .op-related-name { color: var(--op-primary); }

/* ========== 归档页 ========== */
.op-archive-header {
    background: var(--op-card); border: 1px solid var(--op-border);
    border-radius: var(--op-radius); padding: 20px 24px; margin-bottom: 20px;
    box-shadow: var(--op-shadow);
}
.op-archive-title { margin: 0; font-size: 20px; font-weight: 700; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.op-archive-badge {
    flex-shrink: 0; display: inline-flex; align-items: center;
    font-size: 12px; font-weight: 600; line-height: 1;
    padding: 6px 12px; border-radius: 999px;
    background: linear-gradient(135deg, var(--op-primary), var(--op-accent));
    color: #fff !important; box-shadow: 0 3px 10px color-mix(in srgb, var(--op-primary) 32%, transparent);
}
.op-archive-name { color: var(--op-text); }
.op-archive-desc { color: var(--op-text-2); font-size: 14px; margin-top: 8px; }

/* ========== 评论 ========== */
.op-comments { margin-top: 28px; background: var(--op-card); border: 1px solid var(--op-border); border-radius: var(--op-radius); padding: 24px; }
.op-comments-title, .op-reply-title { font-size: 18px; font-weight: 600; margin: 0 0 16px; }
.op-comment-list { list-style: none; margin: 0 0 24px; padding: 0; }
.op-comment-list .comment-body { padding: 16px 0; border-bottom: 1px solid var(--op-border); }
.op-comment-list .comment-author { display: flex; align-items: center; gap: 10px; }
.op-comment-list .avatar { border-radius: 50%; }
.op-comment-list .comment-meta { font-size: 12px; color: var(--op-text-3); }
.op-comment-list .comment-content { margin-top: 8px; }
.op-comments-closed { color: var(--op-text-3); }
.op-comment-fields { display: flex; gap: 16px; }
.op-comment-fields p { flex: 1; }
.op-comment-form p label { display: block; font-size: 13px; margin-bottom: 4px; }
.op-comment-form input[type="text"], .op-comment-form input[type="email"], .op-comment-form textarea {
    width: 100%; border: 1px solid var(--op-border); border-radius: 8px;
    padding: 10px 14px; font-size: 14px; background: var(--op-card); color: var(--op-text);
}
.op-comment-form textarea { min-height: 100px; }
.op-comment-form input:focus, .op-comment-form textarea:focus { outline: none; border-color: var(--op-primary); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }

/* ===== 评论区美化（中文界面） ===== */
.op-comments { box-shadow: var(--op-shadow); }
.op-reply-title { display: flex; align-items: center; gap: 8px; }
.op-reply-title::before { content: "✏️"; font-size: 18px; }
.op-comment-logged {
    display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center;
    font-size: 13px; color: var(--op-text-2);
    background: color-mix(in srgb, var(--op-primary) 6%, transparent);
    border: 1px solid color-mix(in srgb, var(--op-primary) 18%, transparent);
    border-radius: 10px; padding: 10px 14px; margin-bottom: 16px;
}
.op-comment-logged strong { color: var(--op-primary); font-weight: 600; }
.op-comment-logged a { color: var(--op-primary); text-decoration: none; }
.op-comment-logged a:hover { text-decoration: underline; }
.op-comment-form .comment-form-comment { margin-bottom: 12px; }
.op-comment-form p label { font-weight: 500; color: var(--op-text); }
.op-comment-form p .required { color: #ef4444; }
.op-comment-form textarea, .op-comment-form input[type="text"], .op-comment-form input[type="email"] {
    background: #f9fafb;
    transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.op-comment-form textarea:focus, .op-comment-form input[type="text"]:focus, .op-comment-form input[type="email"]:focus {
    background: #ffffff;
}
.op-btn-submit {
    min-width: 140px; padding: 12px 28px; font-size: 15px;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--op-primary) 30%, transparent);
}
.op-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px color-mix(in srgb, var(--op-primary) 40%, transparent);
    filter: brightness(1.05);
}
html[data-theme="dark"] .op-comment-form textarea,
html[data-theme="dark"] .op-comment-form input[type="text"],
html[data-theme="dark"] .op-comment-form input[type="email"] {
    background: rgba(255,255,255,.06);
}
html[data-theme="dark"] .op-comment-form textarea:focus,
html[data-theme="dark"] .op-comment-form input[type="text"]:focus,
html[data-theme="dark"] .op-comment-form input[type="email"]:focus {
    background: rgba(255,255,255,.1);
}
html[data-theme="dark"] .op-comment-logged {
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.12);
}

/* ========== 404 ========== */
.op-404 { max-width: 1200px; margin: 0 auto; padding: 60px 20px; }
.op-404-inner { text-align: center; background: var(--op-card); border: 1px solid var(--op-border); border-radius: 16px; padding: 60px 30px; }
.op-404-code { font-size: 80px; font-weight: 800; background: linear-gradient(135deg, var(--op-primary), var(--op-accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.op-404-title { font-size: 24px; margin: 10px 0; }
.op-404-desc { color: var(--op-text-2); margin-bottom: 24px; }
.op-404-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; align-items: center; }
.op-404-search { display: flex; gap: 8px; }
.op-404-search input { border: 1px solid var(--op-border); border-radius: 999px; padding: 10px 18px; width: 240px; font-size: 14px; }
.op-404-search button { border: none; background: var(--op-primary); color: #fff; border-radius: 999px; padding: 10px 20px; cursor: pointer; font-size: 14px; }

/* ========== 通用按钮 ========== */
.op-btn {
    display: inline-block; padding: 10px 24px;
    background: linear-gradient(135deg, var(--op-primary), var(--op-accent));
    color: #fff; border-radius: 999px; font-weight: 600;
    transition: all .3s ease; border: none; cursor: pointer; font-size: 14px;
}
.op-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(37,99,235,.3); color: #fff; }
.op-btn-sm { padding: 6px 16px; font-size: 13px; }
.op-btn-submit { margin-top: 10px; }
.op-page-links { margin-top: 24px; display: flex; gap: 8px; }
.op-page-links span { padding: 6px 12px; border: 1px solid var(--op-border); border-radius: 6px; }

/* ========== 用户中心 ========== */
.op-user-layout { display: grid; grid-template-columns: 270px 1fr; gap: 24px; padding: 24px 20px; max-width: 1200px; margin: 0 auto; align-items: start; }
.op-user-sidebar { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 16px; }

/* 用户信息卡 */
.op-user-card {
    background: linear-gradient(160deg, var(--op-card) 0%, var(--op-card) 100%);
    border: 1px solid var(--op-border);
    border-radius: var(--op-radius);
    padding: 26px 20px 20px;
    text-align: center;
    box-shadow: var(--op-shadow);
    position: relative;
    overflow: hidden;
}
.op-user-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 88px;
    background: linear-gradient(135deg, var(--op-primary), var(--op-accent));
    opacity: .14;
}
.op-user-card-avatar-wrap { position: relative; display: inline-block; margin-top: 8px; }
.op-user-big-avatar {
    width: 84px; height: 84px; border-radius: 50%; object-fit: cover;
    border: 3px solid var(--op-card);
    box-shadow: 0 0 0 2px var(--op-primary), 0 6px 18px rgba(37,99,235,.28);
    position: relative;
}
.op-user-online {
    position: absolute; right: 3px; bottom: 4px;
    width: 14px; height: 14px; border-radius: 50%;
    background: #22c55e; border: 2px solid var(--op-card);
    box-shadow: 0 0 0 2px rgba(34,197,94,.25);
}
.op-user-card-name { font-size: 17px; font-weight: 700; margin-top: 12px; }
.op-user-card-role { margin-top: 8px; display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.op-user-level {
    font-size: 12px; color: #fff; font-weight: 600;
    padding: 3px 12px; border-radius: 999px;
    display: inline-flex; align-items: center; gap: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.op-user-role {
    font-size: 12px; color: var(--op-text-3); background: var(--op-bg);
    padding: 3px 10px; border-radius: 999px; border: 1px solid var(--op-border);
}
/* 等级进度 */
.op-user-level-progress { margin-top: 14px; text-align: left; }
.op-user-level-bar {
    height: 6px; border-radius: 3px; background: var(--op-bg);
    border: 1px solid var(--op-border); overflow: hidden;
}
.op-user-level-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--op-primary), var(--op-accent)); }
.op-user-level-tip { font-size: 11px; color: var(--op-text-3); margin-top: 6px; }
.op-user-level-tip b { color: var(--op-primary); }
/* 统计 */
.op-user-card-stats { display: flex; justify-content: center; gap: 26px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--op-border); }
.op-user-stat { text-align: center; }
.op-user-stat b { display: block; font-size: 19px; color: var(--op-text); }
.op-user-stat span { font-size: 12px; color: var(--op-text-3); }
.op-user-card-info { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--op-border); }
.op-user-info-item { font-size: 11px; color: var(--op-text-3); }

/* 侧边菜单 */
.op-user-menu { background: var(--op-card); border: 1px solid var(--op-border); border-radius: var(--op-radius); padding: 10px; box-shadow: var(--op-shadow); }
.op-user-menu-link {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 14px; border-radius: 8px;
    color: var(--op-text-2); font-size: 14px;
    transition: all .2s ease; position: relative;
}
.op-user-menu-icon { font-size: 16px; width: 20px; text-align: center; flex-shrink: 0; }
.op-user-menu-link:hover { background: rgba(37,99,235,.06); color: var(--op-primary); padding-left: 18px; }
.op-user-menu-link.active {
    background: linear-gradient(135deg, var(--op-primary), var(--op-accent));
    color: #fff; box-shadow: 0 4px 12px rgba(37,99,235,.3);
}
.op-user-menu-badge {
    margin-left: auto; min-width: 20px; height: 20px; line-height: 20px;
    border-radius: 999px; background: #ef4444; color: #fff;
    font-size: 11px; font-style: normal; text-align: center; padding: 0 6px;
}
.op-user-menu-divider { height: 1px; background: var(--op-border); margin: 8px 4px; }
.op-user-menu-logout { color: #ef4444; }
.op-user-menu-logout:hover { background: rgba(239,68,68,.08); color: #ef4444; padding-left: 18px; }

.op-user-main { min-width: 0; }
.op-user-panel {
    background: var(--op-card); border: 1px solid var(--op-border);
    border-radius: var(--op-radius); padding: 26px;
    box-shadow: var(--op-shadow);
    animation: op-user-panel-in .3s ease both;
}
@keyframes op-user-panel-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.op-user-panel-title {
    font-size: 18px; font-weight: 700; margin: 0 0 20px;
    padding-bottom: 14px; border-bottom: 1px solid var(--op-border);
    display: flex; align-items: center; gap: 8px;
}
.op-user-panel-title::before { content: ""; width: 4px; height: 18px; border-radius: 2px; background: linear-gradient(180deg, var(--op-primary), var(--op-accent)); }
.op-user-msg { padding: 10px 16px; border-radius: 8px; margin-bottom: 16px; }
.op-user-msg.success { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
.op-user-msg.error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.op-user-field { margin-bottom: 18px; }
.op-user-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--op-text-2); }
.op-user-field input[type="text"], .op-user-field input[type="email"], .op-user-field input[type="password"], .op-user-field textarea, .op-user-field select {
    width: 100%; border: 1px solid var(--op-border); border-radius: 8px;
    padding: 11px 14px; font-size: 14px; background: var(--op-card); color: var(--op-text);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.op-user-field input:focus, .op-user-field textarea:focus { outline: none; border-color: var(--op-primary); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.op-user-field-disabled { background: var(--op-bg) !important; color: var(--op-text-3) !important; cursor: not-allowed; }
.op-user-save { margin-top: 6px; }

/* 头像上传 */
.op-user-avatar-current { text-align: center; margin-bottom: 18px; }
.op-avatar-preview { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; border: 3px solid var(--op-primary); box-shadow: 0 6px 20px rgba(37,99,235,.25); }
.op-upload-box { position: relative; }
.op-upload-box input[type="file"] { position: absolute; opacity: 0; width: 100%; height: 100%; cursor: pointer; z-index: 2; }
.op-upload-box-inner {
    display: flex; align-items: center; justify-content: center;
    border: 2px dashed var(--op-border); border-radius: 8px;
    padding: 26px; font-size: 14px; color: var(--op-text-3);
    transition: all .2s ease; cursor: pointer;
}
.op-upload-box-inner:hover { border-color: var(--op-primary); color: var(--op-primary); background: rgba(37,99,235,.04); }

/* 我的文章/收藏列表 */
.op-user-posts { margin-top: 14px; }
.op-user-post { display: flex; align-items: center; gap: 12px; padding: 13px 4px; border-bottom: 1px solid var(--op-border); font-size: 14px; }
.op-user-post:last-child { border-bottom: none; }
.op-user-post-title { flex: 1; color: var(--op-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .2s; }
.op-user-post-title:hover { color: var(--op-primary); }
.op-user-post-status { font-size: 11px; padding: 2px 10px; border-radius: 999px; flex-shrink: 0; }
.status-publish { background: #ecfdf5; color: #059669; }
.status-pending { background: #fffbeb; color: #d97706; }
.status-draft { background: #f1f5f9; color: #64748b; }
.op-user-post-date { font-size: 12px; color: var(--op-text-3); flex-shrink: 0; }
.op-user-empty { color: var(--op-text-3); text-align: center; padding: 34px 0; }
.op-user-empty a { color: var(--op-primary); }

/* 我的评论 */
.op-user-comments { margin-top: 10px; }
.op-user-comment {
    padding: 14px 4px; border-bottom: 1px solid var(--op-border);
}
.op-user-comment:last-child { border-bottom: none; }
.op-user-comment-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.op-user-comment-on { font-size: 13px; color: var(--op-text-3); }
.op-user-comment-on a { color: var(--op-primary); font-weight: 500; }
.op-user-comment-date { font-size: 12px; color: var(--op-text-3); flex-shrink: 0; }
.op-user-comment-content {
    font-size: 14px; color: var(--op-text);
    background: var(--op-bg); border-radius: 8px; padding: 12px 14px;
    border-left: 3px solid var(--op-primary);
}

/* 通知列表 */
.op-notify-list { display: flex; flex-direction: column; gap: 8px; }
.op-notify-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--op-border); border-radius: 8px; transition: all .2s ease; }
.op-notify-item:hover { border-color: var(--op-primary); background: rgba(37,99,235,.03); }
.op-notify-item.is-unread { background: rgba(37,99,235,.05); border-color: rgba(37,99,235,.25); }
.op-notify-icon { font-size: 18px; flex-shrink: 0; }
.op-notify-content { flex: 1; font-size: 14px; color: var(--op-text); }
.op-notify-time { font-size: 12px; color: var(--op-text-3); flex-shrink: 0; }
.op-user-notify-read { margin-top: 16px; }

/* 暗黑适配 */
html[data-theme="dark"] .op-user-card-role,
html[data-theme="dark"] .op-user-role { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); }
html[data-theme="dark"] .op-user-level-bar { background: rgba(255,255,255,.06); }
html[data-theme="dark"] .op-user-msg.success { background: rgba(16,185,129,.12); color: #34d399; border-color: rgba(16,185,129,.3); }
html[data-theme="dark"] .op-user-msg.error { background: rgba(239,68,68,.12); color: #f87171; border-color: rgba(239,68,68,.3); }
html[data-theme="dark"] .status-publish { background: rgba(16,185,129,.12); color: #34d399; }
html[data-theme="dark"] .status-pending { background: rgba(217,119,6,.15); color: #fbbf24; }
html[data-theme="dark"] .status-draft { background: rgba(100,116,139,.2); color: #94a3b8; }
html[data-theme="dark"] .op-user-comment-content { background: rgba(255,255,255,.04); }
html[data-theme="dark"] .op-notify-item.is-unread { background: rgba(37,99,235,.12); border-color: rgba(37,99,235,.3); }

/* 移动端 */
@media (max-width: 768px) {
    .op-user-layout { grid-template-columns: 1fr; }
    .op-user-sidebar { position: static; }
    .op-user-card { display: none; }
}
/* ========== 登录/注册 ========== */
.op-auth-wrap { max-width: 440px; margin: 0 auto; padding: 60px 20px; }
.op-auth-box { background: var(--op-card); border: 1px solid var(--op-border); border-radius: 16px; padding: 32px; box-shadow: var(--op-shadow-lg); }
.op-auth-tabs { display: flex; gap: 8px; margin-bottom: 24px; background: var(--op-tag-bg); padding: 5px; border-radius: 12px; }
.op-auth-tab { flex: 1; border: none; background: transparent; padding: 10px; border-radius: 8px; font-size: 15px; font-weight: 600; color: var(--op-text-2); cursor: pointer; transition: all .25s ease; }
.op-auth-tab.active { background: var(--op-card); color: var(--op-primary); box-shadow: var(--op-shadow); }
.op-auth-msg { padding: 10px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.op-auth-msg.success { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
.op-auth-msg.error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.op-auth-field { margin-bottom: 16px; }
.op-auth-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--op-text-2); }
.op-auth-field input, .op-auth-field textarea, .op-auth-field select {
    width: 100%; border: 1px solid var(--op-border); border-radius: 8px;
    padding: 11px 14px; font-size: 14px; background: var(--op-card); color: var(--op-text);
}
.op-auth-field input:focus, .op-auth-field textarea:focus { outline: none; border-color: var(--op-primary); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.op-auth-submit { width: 100%; padding: 13px; font-size: 16px; margin-top: 8px; }
.op-auth-head { text-align: center; margin-bottom: 24px; }
.op-auth-head h2 { font-size: 22px; font-weight: 700; color: var(--op-text); margin: 0 0 8px; }
.op-auth-head p { font-size: 13px; color: var(--op-text-3); margin: 0; }
.op-auth-links { text-align: right; margin-top: 12px; font-size: 13px; }

/* ========== 投稿页 ========== */
.op-submit-wrap { max-width: 800px; margin: 0 auto; padding: 40px 20px; }
.op-submit-box { background: var(--op-card); border: 1px solid var(--op-border); border-radius: 16px; padding: 32px; box-shadow: var(--op-shadow-lg); }
.op-submit-title { margin: 0 0 8px; font-size: 22px; font-weight: 700; }
.op-submit-desc { color: var(--op-text-2); font-size: 14px; margin-bottom: 24px; }

/* ========== 移动端导航 ========== */
.op-mobile-nav {
    position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
    background: var(--op-card); box-shadow: -8px 0 40px rgba(0,0,0,.15);
    z-index: 1001; transition: right .35s ease; overflow-y: auto;
}
.op-mobile-nav.is-open { right: 0; }
.op-mobile-nav-inner { padding: 80px 20px 20px; }
.op-mobile-nav-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--op-border); position: absolute; top: 0; left: 0; right: 0; background: var(--op-card); }
.op-mobile-nav-head .op-logo-text { font-size: 16px; font-weight: 700; }
.op-mobile-close { border: none; background: var(--op-tag-bg); width: 32px; height: 32px; border-radius: 8px; cursor: pointer; color: var(--op-text); font-size: 14px; line-height: 1; }
.op-mobile-close:hover { background: rgba(37,99,235,.1); color: var(--op-primary); }
.op-mobile-nav-user { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--op-border); }
.op-mobile-nav-user a { display: block; padding: 12px; color: var(--op-text-2); font-size: 15px; border-radius: 8px; transition: all .2s ease; }
.op-mobile-nav-user a:hover { background: rgba(37,99,235,.06); color: var(--op-primary); }
.op-mobile-nav-user .op-login-btn { text-align: center; margin-top: 8px; }
.op-mobile-list { list-style: none; margin: 0; padding: 0; }
.op-mobile-list a { display: flex; align-items: center; gap: 8px; padding: 14px 12px; color: var(--op-text); font-size: 15px; border-bottom: 1px solid var(--op-border); border-radius: 8px; transition: all .2s ease; }
.op-mobile-list a:hover { background: rgba(37,99,235,.06); color: var(--op-primary); padding-left: 18px; }
.op-mobile-list .op-menu-icon { margin-right: 0; }
.op-mobile-list .op-menu-icon svg { width: 17px; height: 17px; }
.op-mobile-list .sub-menu { list-style: none; padding-left: 16px; margin: 0; }
.op-mask { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 1000; opacity: 0; visibility: hidden; transition: all .3s ease; }
.op-mask.is-open { opacity: 1; visibility: visible; }

/* ========== 页脚 ========== */
.op-footer { background: #111827; color: #9ca3af; margin-top: 40px; padding: 40px 0 20px; }
.op-footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.op-footer-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid #1f2937; flex-wrap: wrap; }
.op-footer-name { font-size: 18px; font-weight: 700; color: #f9fafb; }
.op-footer-desc { font-size: 14px; margin-top: 4px; }
.op-footer-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; }
.op-footer-menu a { color: #9ca3af; font-size: 14px; }
.op-footer-menu a:hover { color: #fff; }
.op-footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 16px; font-size: 13px; color: #6b7280; flex-wrap: wrap; }
.op-footer-bottom a { color: #6b7280; }
.op-footer-bottom a:hover { color: #fff; }
.op-icp { color: #6b7280; }

/* ========== 深色模式 ========== */
.omnipress-dark {
    --op-bg: #0f172a;
    --op-card: #1e293b;
    --op-border: #334155;
    --op-text: #f1f5f9;
    --op-text-2: #94a3b8;
    --op-text-3: #64748b;
}
.omnipress-dark .op-header { background: rgba(30,41,59,.92); border-bottom-color: var(--op-border); }
.omnipress-dark .op-header.is-scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.4); }
.omnipress-dark .op-nav-list > li > a { color: var(--op-text); }
.omnipress-dark .op-nav-list .sub-menu { background: #1e293b; }
.omnipress-dark .op-nav-search { background: #1e293b; border-color: #3b82f6; box-shadow: none; }
.omnipress-dark .op-nav-search:focus-within { background: #243244; box-shadow: 0 0 0 4px rgba(59,130,246,.2); }
.omnipress-dark .op-hot-search { background: var(--op-card); }
.omnipress-dark .op-footer { background: #0b1120; }
.omnipress-dark .op-logo-light { display: none; }
.omnipress-dark .op-logo-dark { display: block; }
.omnipress-dark .op-list-cat { color: #93c5fd; background: rgba(59,130,246,.15); }
.omnipress-dark .op-card-badge-top { background: #ef4444; }
.omnipress-dark .op-auth-tab { color: var(--op-text-2); }
.omnipress-dark .op-auth-tab.active { background: var(--op-card); }

/* ========== 响应式 ========== */
@media (max-width: 1200px) {
    .op-header-left { gap: 16px; }
    .op-nav-list > li > a { padding: 7px 8px; font-size: 14px; }
    .op-header-inner { gap: 12px; }
}
@media (max-width: 992px) {
    .op-header-inner { min-height: 52px; }
    .op-header-left { gap: 12px; }
    .op-nav-list > li > a { padding: 6px 9px; font-size: 13px; }
    .op-home-layout.layout-right-sidebar,
    .op-home-layout.layout-left-sidebar,
    .op-single-layout, .op-archive-layout { grid-template-columns: 1fr; }
    .op-sidebar { position: static; }
    .op-user-layout { grid-template-columns: 1fr; }
    .op-user-sidebar { position: static; }
    .op-user-menu { display: flex; flex-wrap: wrap; gap: 6px; }
    .op-user-menu-link { flex: 1; min-width: 120px; text-align: center; }
    .op-post-list.style-card { grid-template-columns: repeat(2, 1fr); }
    .op-post-list.style-grid { grid-template-columns: repeat(3, 1fr); }
    .op-post-list.style-masonry { column-count: 2; }
    .op-related-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .op-nav { display: none; }
    .op-nav-toggle { display: flex; }
    .op-header-inner { min-height: 56px; }
    .op-post-list.style-card, .op-post-list.style-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .op-post-list.style-masonry { column-count: 2; column-gap: 10px; }
    .op-masonry-item { margin-bottom: 10px; }
    .op-post-list.style-list .op-list-item { flex-direction: column; padding: 12px; }
    .op-post-list.style-list .op-list-thumb { width: 100%; height: 170px; }
    .op-article { padding: 18px; }
    .op-article-title { font-size: 20px; }
    .op-related-list { grid-template-columns: 1fr 1fr; }
    .op-comment-fields { flex-direction: column; }
    .op-download-body { flex-direction: column; align-items: stretch; }
    .op-download-btn { justify-content: center; }
    .op-404-actions { flex-direction: column; }
    .op-404-search input { width: 100%; }
}

@media (max-width: 480px) {
    .op-post-list.style-card, .op-post-list.style-grid { grid-template-columns: 1fr; }
    .op-post-list.style-masonry { column-count: 1; }
    .op-related-list { grid-template-columns: 1fr; }
    .op-footer-top { flex-direction: column; text-align: center; }
    .op-footer-bottom { flex-direction: column; text-align: center; }
    .op-user-card-stats { gap: 16px; }
}

/* ========== 焦点快讯：标签切换文章列表 ========== */
.tab-article-list {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--op-card, #fff);
    border-radius: 12px;
    margin: 15px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
    overflow: hidden;
    border: 1px solid var(--op-border, #e5e7eb);
}
.tab-article-list .tal-inner { display: flex; min-height: 0; }
.tab-article-list .tal-tabs {
    width: 160px; flex-shrink: 0; padding: 12px 8px;
    border-right: 1px solid var(--op-border, #e5e7eb);
    display: flex; flex-direction: column; gap: 2px;
    background: linear-gradient(180deg, #fbfcfe 0%, #f6f8fb 100%);
}
.tab-article-list .tal-tab-item {
    display: flex; align-items: center; gap: 8px;
    padding: 9px 12px; border-radius: 8px; cursor: pointer;
    transition: all .2s ease; color: #4b5563;
    font-size: 14px; font-weight: 500;
}
.tab-article-list .tal-tab-item:hover { background: #f3f4f6; color: #1f2937; }
.tab-article-list .tal-tab-item.tal-tab-active {
    background: color-mix(in srgb, var(--op-primary, #2563eb) 10%, transparent);
    color: var(--op-primary, #2563eb); font-weight: 600;
}
.tab-article-list .tal-tab-icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tab-article-list .tal-tab-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tab-article-list .tal-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(148, 163, 184, .35), transparent);
    margin: 8px 4px;
}
.tab-article-list .tal-module { margin-top: 2px; padding: 6px 4px; }
.tab-article-list .tal-module-title {
    display: flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 700; color: #64748b;
    margin-bottom: 8px; letter-spacing: .5px;
    padding-left: 8px;
    border-left: 3px solid color-mix(in srgb, var(--op-primary, #2563eb) 70%, transparent);
    border-radius: 0;
}
.tab-article-list .tal-daily-quote {
    position: relative;
    background: linear-gradient(135deg, #fef9c3, #fde68a);
    border-radius: 10px; padding: 12px 12px 12px 14px; margin: 2px 0;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(245, 158, 11, .18);
}
.tab-article-list .tal-daily-quote::before {
    content: "";
    position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
    background: linear-gradient(180deg, #f59e0b, #d97706);
    border-radius: 0 2px 2px 0;
}
.tab-article-list .tal-daily-quote .tal-module-title { color: #92400e; margin-bottom: 6px; }
.tab-article-list .tal-quote-content {
    position: relative; padding: 0 4px; font-size: 13px; color: #78350f;
    line-height: 1.6; font-style: italic;
}
.tab-article-list .tal-quote-mark { font-size: 22px; font-family: Georgia, serif; color: #f59e0b; opacity: .6; line-height: 0; vertical-align: -.3em; }
.tab-article-list .tal-quote-left { margin-right: 2px; }
.tab-article-list .tal-quote-right { margin-left: 2px; }
.tab-article-list .tal-notes-list { display: flex; flex-direction: column; gap: 8px; }
.tab-article-list .tal-note-item { display: flex; gap: 8px; align-items: flex-start; }
.tab-article-list .tal-note-dot {
    width: 8px; height: 8px; border-radius: 3px;
    background: linear-gradient(135deg, var(--op-primary, #2563eb), #8b5cf6);
    flex-shrink: 0; margin-top: 5px;
    transform: rotate(45deg);
    box-shadow: 0 0 6px color-mix(in srgb, var(--op-primary, #2563eb) 45%, transparent);
}
.tab-article-list .tal-note-body { flex: 1; min-width: 0; }
.tab-article-list .tal-note-text { display: block; font-size: 12px; color: #4b5563; line-height: 1.6; }
.tab-article-list .tal-note-date { display: block; font-size: 11px; color: #9ca3af; margin-top: 2px; }
.tab-article-list .tal-links-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.tab-article-list .tal-link-item {
    display: flex; align-items: center; justify-content: center; height: 34px;
    border-radius: 6px; background: #f9fafb; border: 1px solid var(--op-border, #e5e7eb);
    font-size: 12px; color: #4b5563; text-decoration: none;
    transition: all .2s ease;
}
.tab-article-list .tal-link-item:hover { color: var(--op-primary, #2563eb); border-color: color-mix(in srgb, var(--op-primary, #2563eb) 40%, transparent); background: color-mix(in srgb, var(--op-primary, #2563eb) 5%, transparent); }
.tab-article-list .tal-content { flex: 1; padding: 12px 18px; min-width: 0; }
.tab-article-list .tal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--op-border, #e5e7eb); }
.tab-article-list .tal-header-left { display: flex; align-items: center; gap: 10px; }
.tab-article-list .tal-header-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff; font-size: 15px; font-weight: 700; padding: 5px 15px;
    border-radius: 6px; letter-spacing: 1px;
    position: relative;
    border: 2px solid rgba(255, 255, 255, .5);
    animation: tal-badge-glow 1.8s ease-in-out infinite;
}
@keyframes tal-badge-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, .55), 0 0 6px rgba(239, 68, 68, .4);
    }
    50% {
        box-shadow: 0 0 0 7px rgba(239, 68, 68, 0), 0 0 16px rgba(239, 68, 68, .75);
    }
}
.tab-article-list .tal-header-subtitle { font-size: 13px; color: #9ca3af; font-weight: 400; }
.tab-article-list .tal-panel { display: none; }
.tab-article-list .tal-panel.tal-panel-active { display: block; }
.tab-article-list .tal-article-item {
    position: relative; display: flex; align-items: flex-start; gap: 10px; padding: 8px 8px;
    border-bottom: 1px solid var(--op-border, #e5e7eb);
    transition: background-color .2s ease; border-radius: 8px; cursor: pointer; margin: 1px 0;
}
.tab-article-list .tal-article-item:last-child { border-bottom: none; }
.tab-article-list .tal-article-item:hover { background: #f8fafc; }
.tab-article-list .tal-article-item:hover .tal-article-body { transform: translateX(2px); }
.tab-article-list .tal-article-body { transition: transform .2s ease; }
.tab-article-list .tal-rank {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
    margin-top: 2px; font-size: 12px; font-weight: 700; color: #fff; line-height: 1;
}
.tab-article-list .tal-rank-c1 { background: linear-gradient(135deg, #ef4444, #dc2626); box-shadow: 0 2px 8px rgba(239, 68, 68, .35); }
.tab-article-list .tal-rank-c2 { background: linear-gradient(135deg, #f97316, #ea580c); box-shadow: 0 2px 8px rgba(249, 115, 22, .35); }
.tab-article-list .tal-rank-c3 { background: linear-gradient(135deg, #f59e0b, #d97706); box-shadow: 0 2px 8px rgba(245, 158, 11, .35); }
.tab-article-list .tal-rank-c4 { background: linear-gradient(135deg, #22c55e, #16a34a); box-shadow: 0 2px 8px rgba(34, 197, 94, .35); }
.tab-article-list .tal-rank-c5 { background: linear-gradient(135deg, #3b82f6, #2563eb); box-shadow: 0 2px 8px rgba(59, 130, 246, .35); }
.tab-article-list .tal-rank-c6 { background: linear-gradient(135deg, #8b5cf6, #7c3aed); box-shadow: 0 2px 8px rgba(139, 92, 246, .35); }
.tab-article-list .tal-article-title.tal-title-c1 { color: #dc2626; }
.tab-article-list .tal-article-title.tal-title-c2 { color: #ea580c; }
.tab-article-list .tal-article-title.tal-title-c3 { color: #d97706; }
.tab-article-list .tal-article-title.tal-title-c4 { color: #16a34a; }
.tab-article-list .tal-article-title.tal-title-c5 { color: #2563eb; }
.tab-article-list .tal-article-title.tal-title-c6 { color: #7c3aed; }
.tab-article-list .tal-article-title.tal-title-c1:hover, .tab-article-list .tal-article-title.tal-title-c2:hover, .tab-article-list .tal-article-title.tal-title-c3:hover,
.tab-article-list .tal-article-title.tal-title-c4:hover, .tab-article-list .tal-article-title.tal-title-c5:hover, .tab-article-list .tal-article-title.tal-title-c6:hover { color: var(--op-primary, #2563eb); }
.tab-article-list .tal-article-thumb { width: 76px; height: 54px; flex-shrink: 0; border-radius: 8px; overflow: hidden; display: block; }
.tab-article-list .tal-article-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.tab-article-list .tal-article-item:hover .tal-article-thumb img { transform: scale(1.08); }
.tab-article-list .tal-article-body { flex: 1; min-width: 0; }
.tab-article-list .tal-article-title-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 3px; }
.tab-article-list .tal-article-title {
    font-size: 14px; font-weight: 600; text-decoration: none; line-height: 1.45; display: block;
    transition: color .2s ease; flex: 1; min-width: 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--op-text, #1f2937);
}
.tab-article-list .tal-article-title:hover { color: var(--op-primary, #2563eb); }
.tab-article-list .tal-tag {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 20px;
    color: #fff; flex-shrink: 0; letter-spacing: .5px; line-height: 1;
}
.tab-article-list .tal-tag-hot { background: linear-gradient(135deg, #ef4444, #dc2626); box-shadow: 0 2px 8px rgba(239, 68, 68, .3); }
.tab-article-list .tal-tag-latest { background: linear-gradient(135deg, #2563eb, #3b82f6); box-shadow: 0 2px 8px rgba(37, 99, 235, .28); }
.tab-article-list .tal-tag-comment { background: linear-gradient(135deg, #8b5cf6, #a78bfa); box-shadow: 0 2px 8px rgba(139, 92, 246, .28); }
.tab-article-list .tal-article-excerpt {
    font-size: 12.5px; color: #6b7280; line-height: 1.6; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* 打赏区（焦点快讯左侧栏）- 卡片美化 */
.tab-article-list .tal-donate {
    padding: 4px 4px 6px;
}
.tab-article-list .tal-donate .tal-module-title {
    color: #e11d48;
    font-weight: 700;
    letter-spacing: .5px;
}
.tab-article-list .tal-donate .tal-module-title::before {
    content: "❤";
    font-size: 11px;
    margin-right: 4px;
    vertical-align: 1px;
}
.tab-article-list .tal-donate-box {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    justify-content: center;
    align-items: flex-start;
}
.tab-article-list .tal-donate-item {
    position: relative;
    width: 84px;
    text-align: center;
    flex: 0 0 84px;
}
.tab-article-list .tal-donate-item img {
    width: 84px;
    height: 84px;
    border-radius: 12px;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .12), 0 0 0 1px rgba(15, 23, 42, .05);
    object-fit: cover;
    display: block;
    transition: transform .25s ease, box-shadow .25s ease;
}
.tab-article-list .tal-donate-item:hover img {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 16px rgba(15, 23, 42, .16), 0 0 0 1px rgba(15, 23, 42, .06);
}
.tab-article-list .tal-donate-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    margin-top: 5px;
    padding: 3px 0;
    border-radius: 999px;
    letter-spacing: .5px;
}
.tab-article-list .tal-donate-wechat { color: #047857; background: rgba(16, 185, 129, .14); }
.tab-article-list .tal-donate-alipay { color: #1d4ed8; background: rgba(59, 130, 246, .14); }
.tab-article-list .tal-donate-tip {
    text-align: center;
    font-size: 11px;
    color: #94a3b8;
    margin: 8px 0 0 0;
    line-height: 1.5;
}

.tab-article-list .tal-empty { text-align: center; padding: 30px 0; color: #9ca3af; font-size: 14px; }
html[data-theme="dark"] .tab-article-list { background: #1f2937; border-color: #374151; }
html[data-theme="dark"] .tab-article-list .tal-tabs { background: #111827; border-right-color: #374151; }
html[data-theme="dark"] .tab-article-list .tal-tab-item { color: #9ca3af; }
html[data-theme="dark"] .tab-article-list .tal-tab-item:hover { background: #374151; color: #f3f4f6; }
html[data-theme="dark"] .tab-article-list .tal-tab-item.tal-tab-active { background: rgba(59, 130, 246, .15); color: #60a5fa; }
html[data-theme="dark"] .tab-article-list .tal-divider { background: linear-gradient(90deg, transparent, #374151, transparent); }
html[data-theme="dark"] .tab-article-list .tal-daily-quote { background: linear-gradient(135deg, #451a03, #78350f); }
html[data-theme="dark"] .tab-article-list .tal-daily-quote .tal-module-title { color: #fbbf24; }
html[data-theme="dark"] .tab-article-list .tal-quote-content { color: #fde68a; }
html[data-theme="dark"] .tab-article-list .tal-note-text { color: #d1d5db; }
html[data-theme="dark"] .tab-article-list .tal-link-item { background: #374151; border-color: #4b5563; }
html[data-theme="dark"] .tab-article-list .tal-link-text { color: #9ca3af; }
html[data-theme="dark"] .tab-article-list .tal-header { border-bottom-color: #374151; }
html[data-theme="dark"] .tab-article-list .tal-header-subtitle { color: #6b7280; }
html[data-theme="dark"] .tab-article-list .tal-article-item { border-bottom-color: #374151; }
html[data-theme="dark"] .tab-article-list .tal-article-item:hover { background: #374151; }
html[data-theme="dark"] .tab-article-list .tal-article-title { color: #e5e7eb; }
html[data-theme="dark"] .tab-article-list .tal-article-excerpt { color: #9ca3af; }
html[data-theme="dark"] .tab-article-list .tal-module-title { color: #94a3b8; }
html[data-theme="dark"] .tab-article-list .tal-donate .tal-module-title { color: #f87171; }
html[data-theme="dark"] .tab-article-list .tal-donate-item img { border-color: #4b5563; box-shadow: 0 2px 10px rgba(0,0,0,.4); }
html[data-theme="dark"] .tab-article-list .tal-donate-wechat { color: #34d399; background: rgba(16,185,129,.18); }
html[data-theme="dark"] .tab-article-list .tal-donate-alipay { color: #60a5fa; background: rgba(59,130,246,.18); }
html[data-theme="dark"] .tab-article-list .tal-donate-tip { color: #6b7280; }

/* 焦点快讯 - 移动端适配 */
@media (max-width: 768px) {
    .tab-article-list .tal-inner { flex-direction: column; }
    .tab-article-list .tal-tabs { width: 100%; flex-direction: row; flex-wrap: wrap; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--op-border, #e5e7eb); padding: 10px; }
    .tab-article-list .tal-tab-item { flex-shrink: 0; }
    .tab-article-list .tal-module { width: 100%; }
    .tab-article-list .tal-links-grid { grid-template-columns: repeat(3, 1fr); }
    .tab-article-list .tal-content { padding: 16px; }
    .tab-article-list .tal-header { flex-wrap: wrap; gap: 8px; }
}



/* ===== 登录/注册弹窗小卡片（高级版）===== */
.op-login-modal {
    position: fixed; inset: 0; z-index: 100000;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity .28s ease;
}
.op-login-modal[hidden] { display: none; }
.op-login-modal.is-open { opacity: 1; }
.op-login-modal-overlay {
    position: absolute; inset: 0;
    background: rgba(15, 23, 42, .5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: background-color .28s ease;
}
.op-login-modal-box {
    position: relative;
    width: 100%; max-width: 400px;
    background: var(--op-card);
    border: 1px solid var(--op-border);
    border-radius: 18px;
    padding: 34px 30px 30px;
    box-shadow: 0 30px 70px rgba(15,23,42,.3);
    transform: translateY(16px) scale(.97);
    opacity: 0;
    transition: transform .32s cubic-bezier(.34,1.56,.64,1), opacity .28s ease;
}
.op-login-modal.is-open .op-login-modal-box {
    transform: translateY(0) scale(1);
    opacity: 1;
}
.op-login-modal-close {
    position: absolute; top: 16px; right: 16px;
    width: 34px; height: 34px; border-radius: 50%;
    border: none; background: transparent;
    color: var(--op-text-3); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.op-login-modal-close:hover { background: rgba(0,0,0,.06); color: var(--op-text); transform: rotate(90deg); }

/* 欢迎标题 */
.op-login-modal-welcome { text-align: center; margin-bottom: 22px; }
.op-login-modal-title {
    font-size: 24px; font-weight: 700; color: var(--op-text);
    margin: 0 0 6px; letter-spacing: .5px;
}
.op-login-modal-sub {
    font-size: 13px; color: var(--op-text-3); margin: 0;
}

/* Tab 切换 */
.op-login-modal-tabs {
    display: flex; gap: 8px; margin-bottom: 22px;
    background: var(--op-tag-bg); padding: 5px; border-radius: 12px;
}
.op-login-modal-tab {
    flex: 1; border: none; background: transparent;
    padding: 10px; border-radius: 8px;
    font-size: 15px; font-weight: 600;
    color: var(--op-text-2); cursor: pointer;
    transition: all .25s ease;
}
.op-login-modal-tab.is-active {
    background: var(--op-card); color: var(--op-primary);
    box-shadow: var(--op-shadow);
}
.op-login-modal-field { margin-bottom: 15px; }
.op-login-modal-field label {
    display: block; font-size: 13px; font-weight: 600;
    margin-bottom: 7px; color: var(--op-text-2);
}
.op-login-modal-field .op-login-modal-input-wrap {
    position: relative;
}
.op-login-modal-field .op-login-modal-input-icon {
    position: absolute; left: 14px; top: 50%;
    transform: translateY(-50%);
    color: var(--op-text-3);
    display: flex; align-items: center;
    pointer-events: none;
}
.op-login-modal-field input {
    width: 100%; border: 1px solid var(--op-border); border-radius: 10px;
    padding: 12px 14px 12px 42px; font-size: 14px;
    background: var(--op-card); color: var(--op-text);
    transition: border-color .2s ease, box-shadow .2s ease;
    box-sizing: border-box;
}
.op-login-modal-field input:focus {
    outline: none; border-color: var(--op-primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.op-login-modal-field input::placeholder { color: var(--op-text-3); }

/* 记住我 + 忘记密码 */
.op-login-modal-extra {
    display: flex; align-items: center; justify-content: space-between;
    margin: 4px 0 16px;
}
.op-login-modal-remember {
    display: flex; align-items: center; gap: 7px;
    font-size: 13px; color: var(--op-text-2); cursor: pointer;
    user-select: none;
}
.op-login-modal-remember input[type="checkbox"] {
    width: 16px; height: 16px; accent-color: var(--op-primary);
    margin: 0; cursor: pointer;
}
.op-login-modal-links a {
    font-size: 13px; color: var(--op-text-3); text-decoration: none;
    transition: color .2s ease;
}
.op-login-modal-links a:hover { color: var(--op-primary); }

/* 登录按钮（渐变胶囊） */
.op-login-modal-submit {
    width: 100%; padding: 13px; font-size: 15px; font-weight: 600;
    border: none; border-radius: 10px; cursor: pointer;
    background: linear-gradient(135deg, var(--op-primary), color-mix(in srgb, var(--op-primary) 60%, #8b5cf6));
    color: #fff;
    box-shadow: 0 6px 18px color-mix(in srgb, var(--op-primary) 35%, transparent);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.op-login-modal-submit:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px color-mix(in srgb, var(--op-primary) 45%, transparent);
}
.op-login-modal-submit:active { transform: translateY(0); }

.op-login-modal-msg {
    padding: 10px 14px; border-radius: 8px; margin-bottom: 14px;
    font-size: 14px; display: none;
}
.op-login-modal-msg.is-ok { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
.op-login-modal-msg.is-err { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
html[data-theme="dark"] .op-login-modal-msg.is-ok { background: rgba(5,150,105,.15); color: #34d399; border-color: rgba(52,211,153,.3); }
html[data-theme="dark"] .op-login-modal-msg.is-err { background: rgba(220,38,38,.15); color: #f87171; border-color: rgba(248,113,113,.3); }
body.op-modal-lock { overflow: hidden; }

