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

/* ===== 全局 ===== */
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-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-dim);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.2s;
    flex-shrink: 0;
}
.nav-toggle:hover,
.nav-toggle.active {
    color: var(--primary);
    border-color: var(--primary);
}

.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;
    overflow-x: auto;
    scrollbar-width: none;
}
.tabs::-webkit-scrollbar {
    display: none;
}

.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;
    white-space: nowrap;
    flex-shrink: 0;
}

.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-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 ===== */
.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: 768px) {
    .container {
        padding: 0 16px;
    }

    .site-nav-inner {
        padding: 0 12px;
        gap: 8px;
        position: relative;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 8px;
        background: var(--nav-solid);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
        z-index: 490;
    }

    .nav-links.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-link {
        padding: 12px 16px;
        border-radius: 8px;
        font-size: 15px;
        width: 100%;
        text-align: left;
    }

    .nav-link.active {
        background: var(--tag-bg);
    }

    .nav-link.active::after {
        display: none;
    }

    .theme-switcher {
        margin-left: auto;
    }

    .site-header {
        padding: 36px 0 24px;
        margin-bottom: 30px;
    }

    .site-header.compact {
        padding: 20px 0 16px;
        margin-bottom: 20px;
    }

    .site-title {
        font-size: 26px;
    }

    .site-subtitle {
        font-size: 14px;
    }

    .header-top {
        gap: 12px;
    }

    .toolbar {
        gap: 10px;
    }

    .search-input {
        padding: 10px 14px;
    }

    .tag-filter {
        gap: 6px;
    }

    .tag-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .plugin-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-bottom: 40px;
    }

    .plugin-card {
        padding: 16px;
    }

    .plugin-card:hover {
        transform: none;
    }

    .plugin-icon,
    .plugin-icon-placeholder {
        width: 42px;
        height: 42px;
    }

    .plugin-icon-placeholder {
        font-size: 18px;
    }

    .plugin-name {
        font-size: 16px;
    }

    .plugin-desc {
        min-height: auto;
        font-size: 13px;
    }

    .plugin-detail-header {
        flex-direction: column;
        gap: 16px;
        padding-bottom: 24px;
        margin-bottom: 24px;
    }

    .plugin-detail-icon,
    .plugin-icon-placeholder {
        width: 72px !important;
        height: 72px !important;
        font-size: 28px !important;
    }

    .plugin-detail-title {
        font-size: 22px;
    }

    .plugin-detail-meta {
        font-size: 13px;
    }

    .plugin-detail-actions {
        gap: 8px;
    }

    .btn {
        padding: 8px 14px;
        font-size: 13px;
    }

    .tabs {
        margin-bottom: 20px;
    }

    .tab-btn {
        padding: 10px 16px;
        font-size: 14px;
    }

    .screenshots {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 30px;
    }

    .screenshot:hover {
        transform: none;
    }

    .readme {
        padding: 20px 16px;
        margin-bottom: 40px;
        font-size: 14px;
    }

    .readme h1 { font-size: 22px; }
    .readme h2 { font-size: 19px; }
    .readme h3 { font-size: 16px; }

    .readme pre {
        padding: 12px;
        font-size: 12px;
    }
    .readme pre code {
        font-size: 12px;
    }

    .readme code {
        font-size: 12px;
        padding: 1px 5px;
    }

    .readme table {
        font-size: 13px;
        display: block;
        overflow-x: auto;
    }
    .readme th, .readme td {
        padding: 6px 10px;
    }

    .post-list {
        gap: 10px;
        margin-bottom: 40px;
    }

    .post-item {
        padding: 12px 14px;
        gap: 10px;
    }

    .post-item:hover {
        transform: none;
    }

    .post-item-icon {
        width: 38px;
        height: 38px;
        border-radius: 8px;
    }

    .post-item-icon svg {
        width: 18px;
        height: 18px;
    }

    .post-item-title {
        font-size: 15px;
    }

    .post-item-summary {
        font-size: 12px;
    }

    .post-item-date {
        display: none;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-bottom: 40px;
    }

    .team-card {
        padding: 18px;
    }

    .team-card:hover {
        transform: none;
    }

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

    .team-name {
        font-size: 16px;
    }

    .team-role {
        font-size: 12px;
    }

    .team-desc {
        font-size: 13px;
    }

    .theme-menu {
        min-width: 160px;
    }

    .theme-toggle {
        width: 38px;
        height: 38px;
    }

    .site-footer {
        padding: 20px 0;
        font-size: 12px;
    }

    .lightbox-close {
        top: 12px;
        right: 16px;
        font-size: 32px;
    }
}

@media (max-width: 380px) {
    .site-title {
        font-size: 22px;
    }
    .site-subtitle {
        font-size: 13px;
    }
    .nav-link {
        font-size: 14px;
        padding: 10px 14px;
    }
    .post-item-icon {
        width: 34px;
        height: 34px;
    }
    .post-item-title {
        font-size: 14px;
    }
}