/* ===== 基础 ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ===== 主题：星夜蓝 ===== */
:root, .theme-blue {
    --bg: #0a1628;
    --bg-card: #12213a;
    --bg-card-hover: #172a48;
    --border: #1e3355;
    --text: #e0e8f5;
    --text-dim: #7a8ba8;
    --primary: #4a9eff;
    --primary-hover: #6ab0ff;
    --glow: rgba(74, 158, 255, 0.15);
    --glow-strong: rgba(74, 158, 255, 0.4);
    --pre-bg: #060f1c;
    --code-color: #7ec8ff;
    --tag-bg: rgba(74, 158, 255, 0.14);
    --tag-color: #7ec8ff;
    --radius: 10px;
    --nav-bg: rgba(10, 22, 40, 0.85);
}

/* ===== 主题：幻紫 ===== */
.theme-purple {
    --bg: #160a26;
    --bg-card: #221038;
    --bg-card-hover: #2c1548;
    --border: #3a1e5c;
    --text: #ede0ff;
    --text-dim: #9a7fba;
    --primary: #b166ff;
    --primary-hover: #c488ff;
    --glow: rgba(177, 102, 255, 0.18);
    --glow-strong: rgba(177, 102, 255, 0.45);
    --pre-bg: #0c0517;
    --code-color: #d8b4fe;
    --tag-bg: rgba(177, 102, 255, 0.14);
    --tag-color: #d8b4fe;
    --nav-bg: rgba(22, 10, 38, 0.85);
}

/* ===== 主题：翠竹 ===== */
.theme-green {
    --bg: #061a12;
    --bg-card: #0d281c;
    --bg-card-hover: #133526;
    --border: #1a4832;
    --text: #dcf0e5;
    --text-dim: #6d9c85;
    --primary: #22d38a;
    --primary-hover: #4ade9f;
    --glow: rgba(34, 211, 138, 0.15);
    --glow-strong: rgba(34, 211, 138, 0.42);
    --pre-bg: #030d08;
    --code-color: #6ee7b7;
    --tag-bg: rgba(34, 211, 138, 0.14);
    --tag-color: #6ee7b7;
    --nav-bg: rgba(6, 26, 18, 0.85);
}

/* ===== 主题：橙霞 ===== */
.theme-orange {
    --bg: #1a0e05;
    --bg-card: #2a1708;
    --bg-card-hover: #3a200c;
    --border: #4d2b10;
    --text: #f5e4d2;
    --text-dim: #b08d6a;
    --primary: #ff8a3d;
    --primary-hover: #ffa565;
    --glow: rgba(255, 138, 61, 0.15);
    --glow-strong: rgba(255, 138, 61, 0.42);
    --pre-bg: #0d0602;
    --code-color: #fdba74;
    --tag-bg: rgba(255, 138, 61, 0.14);
    --tag-color: #fdba74;
    --nav-bg: rgba(26, 14, 5, 0.85);
}

/* ===== 主题：玫红 ===== */
.theme-pink {
    --bg: #1c0812;
    --bg-card: #2b0e1c;
    --bg-card-hover: #3d1428;
    --border: #521a35;
    --text: #f5dce8;
    --text-dim: #b37e98;
    --primary: #ff3d8f;
    --primary-hover: #ff6baa;
    --glow: rgba(255, 61, 143, 0.16);
    --glow-strong: rgba(255, 61, 143, 0.42);
    --pre-bg: #0e0409;
    --code-color: #f9a8d4;
    --tag-bg: rgba(255, 61, 143, 0.14);
    --tag-color: #f9a8d4;
    --nav-bg: rgba(28, 8, 18, 0.85);
}

/* ===== 主题：天青 ===== */
.theme-cyan {
    --bg: #04181e;
    --bg-card: #082630;
    --bg-card-hover: #0d3542;
    --border: #134855;
    --text: #d6ecf2;
    --text-dim: #6e9ba8;
    --primary: #22d4e8;
    --primary-hover: #56e1f2;
    --glow: rgba(34, 212, 232, 0.15);
    --glow-strong: rgba(34, 212, 232, 0.42);
    --pre-bg: #020a0d;
    --code-color: #67e8f9;
    --tag-bg: rgba(34, 212, 232, 0.14);
    --tag-color: #67e8f9;
    --nav-bg: rgba(4, 24, 30, 0.85);
}

/* ===== 主题：白昼 ===== */
.theme-light {
    --bg: #f5f7fa;
    --bg-card: #ffffff;
    --bg-card-hover: #eef3fa;
    --border: #dfe5ed;
    --text: #0f1a2e;
    --text-dim: #64748b;
    --primary: #3b82f6;
    --primary-hover: #60a5fa;
    --glow: rgba(59, 130, 246, 0.06);
    --glow-strong: rgba(59, 130, 246, 0.28);
    --pre-bg: #f0f4f9;
    --code-color: #d6336c;
    --tag-bg: rgba(59, 130, 246, 0.1);
    --tag-color: #2563eb;
    --nav-bg: rgba(255, 255, 255, 0.85);
}

/* ===== 全局 ===== */
html {
    overflow-y: scroll;
    scrollbar-gutter: stable;
}

html, body {
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    min-height: 100vh;
}

body {
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(ellipse 800px 500px at 50% -100px, var(--glow) 0%, transparent 70%),
        radial-gradient(ellipse 600px 400px at 100% 100%, var(--glow) 0%, transparent 70%),
        var(--bg);
    background-attachment: fixed;
    transition: background 0.5s ease, color 0.4s ease;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.15s;
}
a:hover {
    color: var(--primary-hover);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* ===== 滚动条跟随主题 ===== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg);
}
::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 5px;
    transition: background 0.2s;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ===== 鼠标拖尾 ===== */
#cursorTrail {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;
}

/* ===== 顶部导航栏 ===== */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 500;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: background 0.4s ease, border-color 0.4s ease;
}

.site-nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    height: 56px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.nav-link {
    color: var(--text-dim);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 6px;
    position: relative;
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--text);
    background: var(--bg-card);
}

.nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 2px;
    height: 2px;
    background: var(--primary);
    box-shadow: 0 0 8px var(--glow-strong);
    border-radius: 1px;
}

/* ===== 头部 ===== */
.site-header {
    padding: 50px 0 30px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 40px;
    position: relative;
    transition: border-color 0.4s ease;
}
.site-header::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -1px;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.6;
}

.site-header.compact {
    padding: 30px 0 20px;
    margin-bottom: 30px;
}
.site-header.compact::after {
    display: none;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.site-title {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-subtitle {
    color: var(--text-dim);
    margin-top: 8px;
    font-size: 15px;
}

.back-link {
    color: var(--text-dim);
    font-size: 14px;
}

/* ===== 主题切换器 ===== */
.theme-switcher {
    position: relative;
    flex-shrink: 0;
    z-index: 600;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-dim);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    padding: 0;
}
.theme-toggle:hover {
    color: var(--primary);
    border-color: var(--primary);
    transform: rotate(15deg);
    box-shadow: 0 0 20px var(--glow-strong);
}

.theme-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 170px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 6px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--glow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
    z-index: 999999;
}

.theme-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    z-index: 999999;
}

.theme-menu-title {
    font-size: 12px;
    color: var(--text-dim);
    padding: 6px 10px 8px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.15s;
    color: var(--text);
}

.theme-option:hover {
    background: var(--bg-card-hover);
}

.theme-option.active {
    background: var(--tag-bg);
    color: var(--primary);
    font-weight: 500;
}

.theme-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px var(--bg-card), 0 0 0 3px rgba(255, 255, 255, 0.06);
}

/* ===== 工具栏 ===== */
.toolbar {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 30px;
    align-items: stretch;
}

.search-input {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 16px;
    color: var(--text);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.4s ease;
}
.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--glow);
}
.search-input::placeholder {
    color: var(--text-dim);
}

.tag-filter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.tag-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-dim);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}
.tag-btn:hover {
    border-color: var(--primary);
    color: var(--text);
    box-shadow: 0 0 12px var(--glow);
}
.tag-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 16px var(--glow-strong);
}

/* ===== 插件卡片 ===== */
.plugin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.plugin-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
    display: block;
    color: inherit;
    position: relative;
    overflow: hidden;
}
.plugin-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--glow) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.plugin-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), 0 0 24px var(--glow);
}
.plugin-card:hover::before {
    opacity: 1;
}

.plugin-card-header {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.plugin-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: var(--bg);
    object-fit: cover;
    flex-shrink: 0;
}

.plugin-icon-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px var(--glow-strong);
}

.plugin-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 2px;
}

.plugin-meta {
    font-size: 13px;
    color: var(--text-dim);
}

.plugin-desc {
    color: var(--text-dim);
    font-size: 14px;
    margin-bottom: 14px;
    min-height: 42px;
    position: relative;
    z-index: 1;
}

.plugin-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.plugin-tag {
    background: var(--tag-bg);
    color: var(--tag-color);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
}

/* ===== 公告 / 网站更新记录列表（长条）===== */
.post-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 60px;
}

.post-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px 22px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: inherit;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.25s;
}

.post-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary), var(--primary-hover));
    opacity: 0;
    transition: opacity 0.25s;
}

.post-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    transform: translateX(4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 20px var(--glow);
}
.post-item:hover::before {
    opacity: 1;
}
.post-item:hover .post-item-arrow {
    color: var(--primary);
    transform: translateX(3px);
}
.post-item:hover .post-item-icon {
    color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 16px var(--glow);
}

.post-item-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    flex-shrink: 0;
    transition: all 0.25s;
}

.post-item-body {
    flex: 1;
    min-width: 0;
}

.post-item-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-item-summary {
    font-size: 13px;
    color: var(--text-dim);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-item-date {
    font-size: 13px;
    color: var(--text-dim);
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

.post-item-arrow {
    color: var(--text-dim);
    flex-shrink: 0;
    transition: all 0.25s;
    display: flex;
    align-items: center;
}

/* ===== 运营团队 ===== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.team-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}
.team-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--glow) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.team-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), 0 0 24px var(--glow);
}
.team-card:hover::before {
    opacity: 1;
}

.team-card-top {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

.team-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--border);
    transition: border-color 0.3s, box-shadow 0.3s;
}
.team-card:hover .team-avatar {
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--glow-strong);
}

.team-avatar-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 26px;
    flex-shrink: 0;
    border: none;
}

.team-card-info {
    flex: 1;
    min-width: 0;
}

.team-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text);
}

.team-role {
    font-size: 13px;
    color: var(--primary);
    font-weight: 500;
}

.team-desc {
    color: var(--text-dim);
    font-size: 14px;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

.team-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
    position: relative;
    z-index: 1;
}

.team-link {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 14px;
    background: var(--tag-bg);
    color: var(--tag-color);
    border: 1px solid transparent;
    transition: all 0.2s;
    cursor: pointer;
}
.team-link:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 12px var(--glow);
}

.team-link-static {
    cursor: default;
}
.team-link-static:hover {
    border-color: transparent;
    box-shadow: none;
}

/* ===== 详情页头部 ===== */
.plugin-detail-header {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.plugin-detail-icon {
    width: 96px;
    height: 96px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 8px 24px var(--glow);
}

.plugin-detail-info {
    flex: 1;
}

.plugin-detail-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 6px;
    background: linear-gradient(135deg, var(--text) 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.plugin-detail-meta {
    color: var(--text-dim);
    font-size: 14px;
    margin-bottom: 14px;
}

.plugin-detail-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
    text-align: center;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: white;
    box-shadow: 0 4px 16px var(--glow-strong);
}
.btn-primary:hover {
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 6px 24px var(--glow-strong);
}
.btn-outline {
    background: transparent;
    border-color: var(--border);
    color: var(--text);
}
.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 16px var(--glow);
}

/* ===== Tab 标签栏（详情页内）===== */
.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 28px;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-dim);
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: color 0.15s;
    font-family: inherit;
}

.tab-btn:hover {
    color: var(--text);
}

.tab-btn.active {
    color: var(--primary);
    text-shadow: 0 0 12px var(--glow-strong);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    box-shadow: 0 0 12px var(--glow-strong);
}

/* ===== Tab 内容 ===== */
.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* ===== 截图 ===== */
.screenshots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.screenshot {
    width: 100%;
    border-radius: var(--radius);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border);
    display: block;
}
.screenshot:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 24px var(--glow);
}

/* ===== README / CHANGELOG / 公告内容 ===== */
.readme {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    margin-bottom: 60px;
    overflow-x: auto;
    transition: background 0.4s ease, border-color 0.4s ease;
}

.readme h1, .readme h2, .readme h3, .readme h4 {
    margin-top: 28px;
    margin-bottom: 14px;
    font-weight: 600;
    line-height: 1.3;
}
.readme h1 { font-size: 26px; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.readme h2 { font-size: 22px; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.readme h3 { font-size: 18px; }
.readme h1:first-child, .readme h2:first-child, .readme h3:first-child {
    margin-top: 0;
}

.readme p {
    margin-bottom: 14px;
    color: var(--text);
}

.readme ul, .readme ol {
    margin-bottom: 14px;
    padding-left: 24px;
}
.readme li {
    margin-bottom: 6px;
}

.readme code {
    background: var(--bg);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: "JetBrains Mono", Consolas, Monaco, monospace;
    font-size: 13px;
    color: var(--code-color);
    border: 1px solid var(--border);
}

.readme pre {
    background: var(--pre-bg);
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 16px;
    border: 1px solid var(--border);
    transition: background 0.4s ease, border-color 0.4s ease;
}
.readme pre code {
    background: transparent;
    padding: 0;
    color: inherit;
    font-size: 13px;
    line-height: 1.5;
    border: none;
}

.readme table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 16px;
    font-size: 14px;
}
.readme th, .readme td {
    border: 1px solid var(--border);
    padding: 8px 12px;
    text-align: left;
}
.readme th {
    background: var(--tag-bg);
    font-weight: 600;
    color: var(--primary);
}

.readme blockquote {
    border-left: 3px solid var(--primary);
    padding-left: 16px;
    color: var(--text-dim);
    margin-bottom: 16px;
}

.readme img {
    max-width: 100%;
    border-radius: 8px;
}

.readme hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 24px 0;
}

/* ===== 灯箱 ===== */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(6px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}
.lightbox.active {
    display: flex;
}
.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    line-height: 1;
    transition: color 0.15s;
}
.lightbox-close:hover {
    color: var(--primary);
}

/* ===== 加载和空状态 ===== */
.loading, .empty {
    text-align: center;
    color: var(--text-dim);
    padding: 60px 0;
    font-size: 14px;
}

/* ===== 底部 ===== */
.site-footer {
    margin-top: auto;
    padding: 30px 0;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-dim);
    font-size: 13px;
    transition: border-color 0.4s ease;
}

/* ===== 响应式 ===== */
@media (max-width: 640px) {
    .site-title { font-size: 24px; }
    .plugin-detail-header { flex-direction: column; }
    .plugin-detail-icon { width: 72px; height: 72px; }
    .plugin-detail-title { font-size: 22px; }
    .readme { padding: 20px; }
    .tab-btn { padding: 10px 14px; font-size: 14px; }
    .header-top { flex-direction: row; align-items: flex-start; }

    .site-nav-inner {
        padding: 0 12px;
        gap: 4px;
        overflow-x: auto;
    }
    .nav-link {
        padding: 8px 10px;
        font-size: 13px;
    }
    .theme-toggle { width: 36px; height: 36px; }

    .team-avatar { width: 56px; height: 56px; }
    .team-avatar-placeholder { width: 56px; height: 56px; font-size: 22px; }
    .team-name { font-size: 16px; }

    .post-item {
        padding: 14px 16px;
        gap: 12px;
    }
    .post-item-icon {
        width: 38px;
        height: 38px;
    }
    .post-item-title { font-size: 15px; }
    .post-item-summary { font-size: 12px; }
    .post-item-date { display: none; }
}