/* ============================================================
   HOME V2 - 全新首页样式
   参考 oschina.net 风格
   独立 CSS，不影响原有页面
   所有选择器使用 .v2-page 前缀确保 specificity
   ============================================================ */

/* CSS 变量 */
:root {
    --v2-primary: #DC2626;
    --v2-primary-light: #EF4444;
    --v2-primary-bg: #eef2ff;
    --v2-accent: #059669;
    --v2-accent-bg: #ecfdf5;
    --v2-danger: #ef4444;
    --v2-warning: #f59e0b;
    --v2-text: #1e293b;
    --v2-text-secondary: #64748b;
    --v2-text-muted: #94a3b8;
    --v2-bg: #f1f5f9;
    --v2-card: #ffffff;
    --v2-border: #e2e8f0;
    --v2-border-light: #f1f5f9;
    --v2-radius: 8px;
    --v2-radius-lg: 12px;
    --v2-shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --v2-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --v2-shadow-md: 0 4px 6px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.03);
    --v2-transition: all 0.2s ease;
    --v2-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --v2-max-width: 1300px;
    --v2-bg-hover: #f8fafc;
    --v2-text-light: #cbd5e1;
}

/* 全局重置 */
.v2-page * { box-sizing: border-box; }
.v2-page {
    font-family: var(--v2-font);
    background: var(--v2-bg);
    color: var(--v2-text);
    font-size: 14px;
    line-height: 1.6;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}
.v2-page a:not(.common-footer a) { color: var(--v2-text); text-decoration: none; transition: color 0.15s; }
.v2-page a:not(.common-footer a):hover { color: var(--v2-primary); text-decoration: none; }
.v2-page ul:not(.common-footer ul), .v2-page ol:not(.common-footer ol) { list-style: none; margin: 0; padding: 0; }
.v2-page h1:not(.common-footer h1),.v2-page h2:not(.common-footer h2),.v2-page h3:not(.common-footer h3),.v2-page h4:not(.common-footer h4) { margin: 0; padding: 0; }
.v2-page img { max-width: 100%; }

/* ==================== 顶部导航条 ==================== */
.v2-page .v2-topbar {
    background: linear-gradient(135deg, #DC2626 0%, #991B1B 100%);
    height: 36px;
    display: flex;
    align-items: center;
    font-size: 13px;
    color: rgba(255,255,255,0.75);
}
.v2-page .v2-topbar__inner {
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.v2-page .v2-topbar a { color: rgba(255,255,255,0.85); }
.v2-page .v2-topbar a:hover { color: #fff; }
.v2-page .v2-topbar__left { display: flex; gap: 16px; align-items: center; }
.v2-page .v2-topbar__right { display: flex; gap: 12px; align-items: center; }
.v2-page .v2-topbar__right a {
    padding: 2px 12px;
    border-radius: 3px;
    font-size: 12px;
}
.v2-page .v2-topbar__btn-login { border: 1px solid rgba(255,255,255,0.5); }
.v2-page .v2-topbar__btn-reg { background: rgba(255,255,255,0.2); }

/* ==================== 主导航 ==================== */
.v2-page .v2-header {
    background: var(--v2-card);
    border-bottom: 1px solid var(--v2-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--v2-shadow-sm);
}
.v2-page .v2-header__inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    height: 56px;
    gap: 32px;
}
.v2-page .v2-logo__h1 {
    font-size: inherit;
    font-weight: inherit;
    margin: 0;
    padding: 0;
    line-height: inherit;
}
.v2-page .v2-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--v2-primary);
    white-space: nowrap;
    text-decoration: none;
}
.v2-page .v2-logo:hover { color: var(--v2-primary); }
.v2-page .v2-logo__icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #DC2626, #EF4444);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
}
.v2-page .v2-nav {
    display: flex;
    gap: 0;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}
.v2-page .v2-nav__item {
    padding: 0 14px;
    height: 56px;
    display: flex;
    align-items: center;
    font-size: 15px;
    color: var(--v2-text-secondary);
    font-weight: 500;
    position: relative;
    transition: color 0.15s;
    white-space: nowrap;
}
.v2-page .v2-nav__item:hover,
.v2-page .v2-nav__item--active {
    color: var(--v2-primary);
}
.v2-page .v2-nav__item--active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 14px;
    right: 14px;
    height: 2px;
    background: var(--v2-primary);
    border-radius: 1px;
}
.v2-page .v2-search {
    display: flex;
    align-items: center;
    background: var(--v2-bg);
    border-radius: 20px;
    padding: 0 4px 0 14px;
    width: 260px;
    height: 36px;
    border: 1px solid transparent;
    transition: var(--v2-transition);
}
.v2-page .v2-search:focus-within {
    border-color: var(--v2-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(26,86,219,0.1);
}
.v2-page .v2-search input {
    border: none;
    outline: none;
    background: transparent;
    flex: 1;
    font-size: 13px;
    color: var(--v2-text);
}
.v2-page .v2-search input::placeholder { color: var(--v2-text-muted); }
.v2-page .v2-search__btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--v2-primary);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: background 0.15s;
}
.v2-page .v2-search__btn:hover { background: var(--v2-primary-light); }
.v2-page .v2-header__actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}
.v2-page .v2-btn-upload {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 16px;
    background: var(--v2-primary);
    color: #fff;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    transition: background 0.15s;
}
.v2-page .v2-btn-upload:hover { background: var(--v2-primary-light); color: #fff; }

/* ==================== 三栏布局 ==================== */
.v2-page .v2-container {
    max-width: 1300px;
    margin: 16px auto 0;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 200px 1fr 280px;
    gap: 16px;
    align-items: start;
}

/* ==================== 左侧栏 - 分类导航 ==================== */
.v2-page .v2-sidebar-left {
    position: sticky;
    top: 80px;
}
.v2-page .v2-cate-nav {
    background: var(--v2-card);
    border-radius: var(--v2-radius-lg);
    padding: 12px 0;
    box-shadow: var(--v2-shadow-sm);
}
.v2-page .v2-cate-nav__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 18px;
    font-size: 14px;
    color: var(--v2-text-secondary);
    transition: var(--v2-transition);
    cursor: pointer;
}
.v2-page .v2-cate-nav__item:hover {
    background: var(--v2-primary-bg);
    color: var(--v2-primary);
}
.v2-page .v2-cate-nav__item--active {
    background: var(--v2-primary-bg);
    color: var(--v2-primary);
    font-weight: 600;
}
.v2-page .v2-cate-nav__item i {
    font-size: 16px;
    width: 20px;
    text-align: center;
    opacity: 0.6;
}
.v2-page .v2-cate-nav__item:hover i,
.v2-page .v2-cate-nav__item--active i { opacity: 1; }

/* 侧边栏广告 */
@keyframes adShimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}
.v2-page .v2-sidebar-ad {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 12px;
    padding: 22px 14px 18px;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #1a365d 100%);
    border-radius: 14px;
    color: #fff;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 2px 12px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.06);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
}
.v2-page .v2-sidebar-ad::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; right: 0; bottom: 0;
    width: 300%;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%, transparent 100%);
    animation: adShimmer 4s ease-in-out infinite;
    pointer-events: none;
}
.v2-page .v2-sidebar-ad:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 12px 28px rgba(30,58,95,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.15);
    color: #fff;
    text-decoration: none;
}
.v2-page .v2-sidebar-ad__chip {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(4px);
}
.v2-page .v2-sidebar-ad__title {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 2.5px;
    margin-bottom: 4px;
    color: #fff;
    background: linear-gradient(180deg, #fff 30%, rgba(255,255,255,0.75) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.v2-page .v2-sidebar-ad__desc {
    font-size: 10.5px;
    color: rgba(255,255,255,0.55);
    margin-bottom: 14px;
    letter-spacing: 0.5px;
}
.v2-page .v2-sidebar-ad__btn {
    font-size: 11px;
    font-weight: 600;
    padding: 5px 18px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    color: rgba(255,255,255,0.9);
    transition: all 0.3s;
    letter-spacing: 0.5px;
}
.v2-page .v2-sidebar-ad:hover .v2-sidebar-ad__btn {
    background: rgba(255,255,255,0.22);
    border-color: rgba(255,255,255,0.4);
    color: #fff;
}
/* 工具箱广告配色 */
.v2-page .v2-sidebar-ad--tools {
    background: linear-gradient(135deg, #0b2a1a 0%, #155e3d 50%, #1a7a50 100%);
    border-color: rgba(52,211,153,0.1);
}
.v2-page .v2-sidebar-ad--tools:hover {
    box-shadow: 0 12px 28px rgba(21,94,61,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
    border-color: rgba(52,211,153,0.2);
}
.v2-page .v2-sidebar-ad--tools .v2-sidebar-ad__chip {
    background: rgba(52,211,153,0.12);
    border-color: rgba(52,211,153,0.18);
}

/* ==================== 主内容区 ==================== */
.v2-page .v2-main { min-width: 0; }

/* 内容卡片通用 */
.v2-page .v2-card {
    background: var(--v2-card);
    border-radius: var(--v2-radius-lg);
    box-shadow: var(--v2-shadow-sm);
    margin-bottom: 16px;
    overflow: hidden;
}
.v2-page .v2-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid var(--v2-border-light);
}
.v2-page .v2-card__title {
    font-size: 16px;
    font-weight: 600;
    color: var(--v2-text);
    display: flex;
    align-items: center;
    gap: 8px;
}
.v2-page .v2-card__title i { color: var(--v2-primary); font-size: 16px; }
.v2-page .v2-card__more {
    font-size: 13px;
    color: var(--v2-text-muted);
    display: flex;
    align-items: center;
    gap: 3px;
}
.v2-page .v2-card__more:hover { color: var(--v2-primary); }

/* Tab 导航 */
.v2-page .v2-tabs {
    display: flex;
    gap: 0;
    padding: 0 20px;
    background: var(--v2-card);
    border-bottom: 1px solid var(--v2-border-light);
}
.v2-page .v2-tabs__item {
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--v2-text-secondary);
    cursor: pointer;
    position: relative;
    transition: color 0.15s;
    border: none;
    background: none;
}
.v2-page .v2-tabs__item:hover { color: var(--v2-primary); }
.v2-page .v2-tabs__item--active {
    color: var(--v2-primary);
    font-weight: 600;
}
.v2-page .v2-tabs__item--active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--v2-primary);
    border-radius: 1px;
}

/* ==================== 资源列表 ==================== */
.v2-page .v2-res-list { padding: 0; }
.v2-page .v2-res-item {
    display: flex;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--v2-border-light);
    transition: background 0.15s;
}
.v2-page .v2-res-item:last-child { border-bottom: none; }
.v2-page .v2-res-item:hover { background: #fafbff; }

.v2-page .v2-res-item__icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #fff;
    background: linear-gradient(135deg, #818cf8, #6366f1);
    margin-top: 2px;
}
.v2-page .v2-res-item__icon--pdf { background: linear-gradient(135deg, #f87171, #ef4444); }
.v2-page .v2-res-item__icon--zip { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.v2-page .v2-res-item__icon--doc { background: linear-gradient(135deg, #60a5fa, #EF4444); }
.v2-page .v2-res-item__icon--code { background: linear-gradient(135deg, #34d399, #10b981); }
.v2-page .v2-res-item__icon--circuit { background: linear-gradient(135deg, #a78bfa, #8b5cf6); }
.v2-page .v2-res-item__icon--ebook { background: linear-gradient(135deg, #22d3ee, #06b6d4); }

.v2-page .v2-res-item__body {
    flex: 1;
    min-width: 0;
}
.v2-page .v2-res-item__title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    margin: 0 0 2px;
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.v2-page .v2-res-item__title a {
    color: var(--v2-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}
.v2-page .v2-res-item__title a:hover { color: var(--v2-primary); }
.v2-page .v2-res-item__desc {
    font-size: 13px;
    color: var(--v2-text-secondary);
    line-height: 1.5;
    margin: 0 0 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.v2-page .v2-res-item__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.v2-page .v2-res-item__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    flex: 1;
    min-width: 0;
}
.v2-page .v2-res-item__tag {
    display: inline-block;
    padding: 1px 8px;
    background: var(--v2-primary-bg);
    border-radius: 10px;
    font-size: 11px;
    color: var(--v2-primary);
    font-weight: 500;
    white-space: nowrap;
    transition: var(--v2-transition);
}
.v2-page .v2-res-item__tag:hover {
    background: var(--v2-primary);
    color: #fff;
}
.v2-page .v2-res-item__infos {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 12px;
    color: var(--v2-text-muted);
}
.v2-page .v2-res-item__infos i {
    margin-right: 3px;
    font-size: 12px;
}
.v2-page .v2-badge-new {
    display: inline-block;
    padding: 0 5px;
    background: var(--v2-danger);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    border-radius: 3px;
    line-height: 1.5;
    flex-shrink: 0;
}
.v2-page .v2-badge-user {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--v2-text-muted);
}
.v2-page .v2-badge-user i { font-size: 12px; }

/* ==================== 右侧栏 ==================== */
.v2-page .v2-sidebar-right {
    position: sticky;
    top: 80px;
}

/* 统计面板 - 横向4列（在主内容区） */
/* 滚动动态条 */
.v2-page .v2-ticker {
    display: flex;
    align-items: center;
    padding: 0;
    overflow: hidden;
    height: 42px;
}
.v2-page .v2-ticker__label {
    flex-shrink: 0;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--v2-primary);
    display: flex;
    align-items: center;
    gap: 6px;
    height: 100%;
    border-right: 1px solid var(--v2-border);
}
.v2-page .v2-ticker__label i {
    font-size: 14px;
}
.v2-page .v2-ticker__wrapper {
    flex: 1;
    overflow: hidden;
    height: 100%;
    position: relative;
}
.v2-page .v2-ticker__track {
    display: flex;
    align-items: center;
    height: 100%;
    white-space: nowrap;
    animation: tickerScrollH 40s linear infinite;
}
.v2-page .v2-ticker__wrapper:hover .v2-ticker__track {
    animation-play-state: paused;
}
.v2-page .v2-ticker__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 24px;
    height: 100%;
    flex-shrink: 0;
    font-size: 13px;
    white-space: nowrap;
    border-right: 1px solid var(--v2-border-light);
}
.v2-page .v2-ticker__item:last-child { border-right: none; }
.v2-page .v2-ticker__user {
    color: var(--v2-text);
    font-weight: 500;
}
.v2-page .v2-ticker__user i {
    color: var(--v2-text-muted);
    font-size: 12px;
}
.v2-page .v2-ticker__time {
    color: var(--v2-text-muted);
    font-size: 12px;
}
.v2-page .v2-ticker__action {
    color: var(--v2-text-secondary);
}
.v2-page .v2-ticker__res {
    color: var(--v2-primary);
    font-weight: 500;
    text-decoration: none;
}
.v2-page .v2-ticker__res:hover {
    text-decoration: underline;
}
@keyframes tickerScrollH {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* 排行榜 */
.v2-page .v2-rank-list { padding: 0; }
.v2-page .v2-rank-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    font-size: 13px;
    transition: background 0.15s;
}
.v2-page .v2-rank-item:hover { background: var(--v2-bg); }
.v2-page .v2-rank-num {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--v2-bg);
    color: var(--v2-text-muted);
}
.v2-page .v2-rank-num--1 { background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; }
.v2-page .v2-rank-num--2 { background: linear-gradient(135deg, #f97316, #ea580c); color: #fff; }
.v2-page .v2-rank-num--3 { background: linear-gradient(135deg, #eab308, #ca8a04); color: #fff; }
.v2-page .v2-rank-title {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.v2-page .v2-rank-count {
    flex-shrink: 0;
    font-size: 12px;
    color: var(--v2-text-muted);
}

/* 贡献榜 */
.v2-page .v2-contrib-list { padding: 6px 0; }
.v2-page .v2-contrib-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px;
    font-size: 13px;
}
.v2-page .v2-contrib-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--v2-primary);
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
    text-transform: uppercase;
}
/* 头像颜色变体 */
.v2-page .v2-avatar--blue { background: linear-gradient(135deg, #FEE2E2, #93c5fd); color: #B91C1C; }
.v2-page .v2-avatar--green { background: linear-gradient(135deg, #d1fae5, #6ee7b7); color: #047857; }
.v2-page .v2-avatar--purple { background: linear-gradient(135deg, #ede9fe, #c4b5fd); color: #6d28d9; }
.v2-page .v2-avatar--orange { background: linear-gradient(135deg, #ffedd5, #fdba74); color: #c2410c; }
.v2-page .v2-avatar--pink { background: linear-gradient(135deg, #fce7f3, #f9a8d4); color: #be185d; }
.v2-page .v2-avatar--teal { background: linear-gradient(135deg, #ccfbf1, #5eead4); color: #0f766e; }
.v2-page .v2-avatar--red { background: linear-gradient(135deg, #fee2e2, #fca5a5); color: #b91c1c; }
.v2-page .v2-avatar--indigo { background: linear-gradient(135deg, #e0e7ff, #a5b4fc); color: #4338ca; }
.v2-page .v2-contrib-name { flex: 1; font-weight: 500; }
.v2-page .v2-contrib-count {
    font-size: 12px;
    color: var(--v2-primary);
    font-weight: 600;
}

/* ==================== 推荐栏目格子 ==================== */
/* ==================== 并排双卡片（电路图+电子书） ==================== */
.v2-page .v2-dual-cards {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}
.v2-page .v2-dual-cards__item {
    flex: 1;
    min-width: 0;
    margin-bottom: 0 !important;
}
.v2-page .v2-simple-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.v2-page .v2-simple-list li {
    border-bottom: 1px solid var(--v2-border-light);
}
.v2-page .v2-simple-list li:last-child {
    border-bottom: none;
}
.v2-page .v2-simple-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    transition: background 0.15s;
    gap: 12px;
}
.v2-page .v2-simple-list a:hover {
    background: var(--v2-bg-hover);
    text-decoration: none;
}
.v2-page .v2-simple-list__title {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    color: var(--v2-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.v2-page .v2-simple-list a:hover .v2-simple-list__title {
    color: var(--v2-primary);
}
.v2-page .v2-simple-list__meta {
    flex-shrink: 0;
    font-size: 12px;
    color: var(--v2-text-muted);
}

/* ==================== 热门标签云 ==================== */
.v2-page .v2-tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 16px;
}
.v2-page .v2-tagcloud__item {
    display: inline-block;
    padding: 4px 12px;
    background: var(--v2-bg);
    border-radius: 14px;
    font-size: 12px;
    color: var(--v2-text-secondary);
    font-weight: 500;
    transition: var(--v2-transition);
}
.v2-page .v2-tagcloud__item:hover {
    background: var(--v2-primary);
    color: #fff;
}

/* ===== 友情链接（独立区块，对齐内容区） ===== */
.v2-page .v2-friendship-row {
    max-width: 1300px;
    margin: 20px auto 0;
    padding: 0 20px;
}
.v2-page .v2-friendship-row__inner {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    padding: 14px 20px;
    background: var(--v2-card);
    border-radius: var(--v2-radius);
    box-shadow: var(--v2-shadow-sm);
    font-size: 13px;
}
.v2-page .v2-friendship-row__label {
    color: var(--v2-text-secondary);
    font-weight: 500;
    white-space: nowrap;
}
.v2-page .v2-friendship-row__label .fa {
    color: var(--v2-primary);
    margin-right: 4px;
}
.v2-page .v2-friendship-row a {
    color: var(--v2-text-muted);
    transition: color 0.2s;
}
.v2-page .v2-friendship-row a:hover {
    color: var(--v2-primary);
}

/* ==================== 隐藏/工具 ==================== */
.v2-page .v2-hidden { display: none !important; }
.v2-page .v2-tab-panel { display: none; }
.v2-page .v2-tab-panel--active { display: block; }

/* ==================== 动画 ==================== */
@keyframes v2-fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
.v2-page .v2-animate-in { animation: v2-fadeIn 0.3s ease; }

/* 文章列表 */
.v2-page .v2-article-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 20px;
    font-size: 13px;
    border-bottom: 1px solid var(--v2-border-light);
    transition: background 0.15s;
}
.v2-page .v2-article-item:last-child { border-bottom: none; }
.v2-page .v2-article-item:hover { background: #fafbff; }
.v2-page .v2-article-item__dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--v2-primary);
    flex-shrink: 0;
    opacity: 0.5;
}
.v2-page .v2-article-item__title {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.v2-page .v2-article-item__date {
    flex-shrink: 0;
    font-size: 12px;
    color: var(--v2-text-muted);
}

/* ==================== 专辑列表 - 3列卡片（在主内容区内） ==================== */
.v2-page .v2-specials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding: 14px 20px;
}
.v2-page .v2-special-card {
    display: block;
    text-decoration: none;
    color: var(--v2-text);
    transition: transform 0.2s;
}
.v2-page .v2-special-card:hover {
    transform: translateY(-2px);
    color: var(--v2-text);
}
.v2-page .v2-special-card__img {
    width: 100%;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}
.v2-page .v2-special-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.v2-page .v2-special-card:hover .v2-special-card__img img {
    transform: scale(1.05);
}
.v2-page .v2-special-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(135deg, #EF4444, #B91C1C);
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
}
.v2-page .v2-special-card__placeholder i {
    font-size: 22px;
    opacity: 0.7;
}
.v2-page .v2-special-card__name {
    font-size: 13px;
    color: var(--v2-text-secondary);
    margin-top: 6px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ==================== 响应式 ==================== */
@media (max-width: 1024px) {
    .v2-page .v2-container {
        grid-template-columns: 1fr 260px;
    }
    .v2-page .v2-sidebar-left { display: none; }
    .v2-page .v2-specials-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    /* 三栏变单栏 */
    .v2-page .v2-container {
        grid-template-columns: 1fr;
        padding: 0 12px;
        margin-top: 10px;
        gap: 10px;
    }
    .v2-page .v2-sidebar-right { position: static; }

    /* topbar 移动端优化（与header.css一致，不隐藏） */
    .v2-page .v2-topbar { height: auto; min-height: 34px; padding: 5px 0; }
    .v2-page .v2-topbar__inner { padding: 0 12px; justify-content: center; }
    .v2-page .v2-topbar__left { display: none !important; }
    .v2-page .v2-topbar__right { width: auto; gap: 6px; flex-wrap: nowrap; justify-content: center; }
    .v2-page .v2-topbar__right a { padding: 3px 8px; font-size: 12px; white-space: nowrap; }
    .v2-page .v2-topbar__right .toolbar-btn.user-btn { max-width: 120px; overflow: hidden; text-overflow: ellipsis; }

    /* Header 移动端重组 */
    .v2-page .v2-header__inner {
        flex-wrap: wrap;
        height: auto;
        padding: 10px 12px;
        gap: 8px;
    }

    /* Logo缩小 */
    .v2-page .v2-logo { font-size: 18px; gap: 7px; }
    .v2-page .v2-logo__icon { width: 32px; height: 32px; font-size: 16px; border-radius: 7px; }

    /* 上传按钮紧凑 */
    .v2-page .v2-btn-upload { padding: 6px 12px; font-size: 12px; }

    /* 搜索框独占一行 */
    .v2-page .v2-search {
        order: 3;
        width: 100%;
        flex: 0 0 100%;
        margin: 2px 0;
    }

    /* 导航横向滚动 */
    .v2-page .v2-nav {
        order: 4;
        flex: 0 0 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }
    .v2-page .v2-nav::-webkit-scrollbar { display: none; }
    .v2-page .v2-nav__item {
        padding: 0 12px;
        height: 38px;
        font-size: 14px;
        flex-shrink: 0;
    }

    /* 专辑2列 */
    .v2-page .v2-specials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 12px 14px;
    }
    .v2-page .v2-special-card__img { height: 100px; }
    .v2-page .v2-special-card__name { font-size: 12px; }

    /* 滚动动态条移动端 */
    .v2-page .v2-ticker__label { padding: 0 10px; font-size: 12px; }
    .v2-page .v2-ticker__item { padding: 0 10px; font-size: 12px; }
    .v2-page .v2-ticker__res { max-width: 200px; }

    /* 双卡片改竖排 */
    .v2-page .v2-dual-cards { flex-direction: column; }

    /* 资源列表紧凑 */
    .v2-page .v2-res-item { padding: 12px 14px; gap: 10px; }
    .v2-page .v2-res-item__title { font-size: 14px; }
    .v2-page .v2-res-item__desc { display: none; }
    .v2-page .v2-res-item__infos { gap: 8px; font-size: 11px; }

    /* 卡片间距 */
    .v2-page .v2-card { margin-bottom: 10px; }
    .v2-page .v2-card__header { padding: 12px 14px; }
    .v2-page .v2-card__title { font-size: 14px; }

    /* 友情链接 */
    .v2-page .v2-friendship-row { padding: 0 12px; margin-top: 10px; }
    .v2-page .v2-friendship-row__inner { padding: 10px 14px; font-size: 12px; gap: 10px; }
}

@media (max-width: 480px) {
    .v2-page .v2-container { padding: 0 10px; gap: 8px; }

    /* topbar 进一步精简 */
    .v2-page .v2-topbar { padding: 3px 0; min-height: 30px; }
    .v2-page .v2-topbar__right { gap: 4px; }
    .v2-page .v2-topbar__right a { padding: 2px 6px; font-size: 11px; }
    .v2-page .v2-topbar__right .toolbar-btn.user-btn { max-width: 90px; }

    /* Header更紧凑 */
    .v2-page .v2-header__inner { padding: 8px 10px; gap: 6px; }
    .v2-page .v2-logo { font-size: 16px; gap: 5px; }
    .v2-page .v2-logo__icon { width: 28px; height: 28px; font-size: 14px; border-radius: 6px; }
    .v2-page .v2-btn-upload { padding: 5px 10px; font-size: 11px; gap: 3px; }
    .v2-page .v2-search input { font-size: 12px; }
    .v2-page .v2-nav__item { padding: 0 10px; height: 34px; font-size: 13px; }

    /* 专辑单列 */
    .v2-page .v2-specials-grid { grid-template-columns: 1fr; gap: 8px; padding: 10px 12px; }

    /* 统计面板4列但文字小 */
    /* ticker desktop */
    .v2-page .v2-ticker { height: 38px; }
    .v2-page .v2-ticker__item { height: 38px; font-size: 12px; }

    /* 资源列表 */
    .v2-page .v2-res-item { padding: 10px 12px; }
    .v2-page .v2-res-item__icon { width: 32px; height: 32px; font-size: 14px; border-radius: 8px; }
    .v2-page .v2-res-item__title { font-size: 13px; }
    .v2-page .v2-res-item__tag { font-size: 10px; padding: 0 6px; }
    .v2-page .v2-res-item__infos { font-size: 10px; gap: 6px; }

    /* 排行/贡献等 */
    .v2-page .v2-rank-item { padding: 6px 12px; font-size: 12px; }
    .v2-page .v2-contrib-item { padding: 5px 12px; font-size: 12px; }
    .v2-page .v2-contrib-avatar { width: 24px; height: 24px; font-size: 10px; }

    .v2-page .v2-card__header { padding: 10px 12px; }
    .v2-page .v2-card__title { font-size: 13px; }
    .v2-page .v2-tabs__item { padding: 10px 12px; font-size: 13px; }

    /* 文章 */
    .v2-page .v2-article-item { padding: 6px 12px; font-size: 12px; }
}

