/* ── Reset ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── 设计令牌 ── */
:root {
    --primary:        #2563eb;
    --primary-dark:   #1d4ed8;
    --primary-light:  #3b82f6;
    --primary-glow:   rgba(37,99,235,0.12);
    --primary-ultra:  rgba(37,99,235,0.06);
    --text:           #1e293b;
    --text-muted:     #64748b;
    --text-light:     #94a3b8;
    --border:         #e2e8f0;
    --border-light:   #f1f5f9;
    --bg:             #f1f5f9;
    --white:          #ffffff;
    --tag-bg:         #eff6ff;
    --tag-text:       #2563eb;
    --danger:         #ef4444;
    --success:        #22c55e;
    --warn:           #f59e0b;
    --card-shadow:    0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --card-shadow-h:  0 8px 28px rgba(37,99,235,0.10), 0 2px 8px rgba(0,0,0,0.06);
    --nav-h:          54px;
    --radius:         12px;
    --radius-sm:      8px;
    --font:           -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ── 基础 ── */
body {
    font-family: var(--font);
    font-size: 13.5px;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover { color: var(--primary); }

img {
    max-width: 100%;
    display: block;
}

/* 自定义滚动条 */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ── 顶部导航（玻璃态） ── */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: var(--nav-h);
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(226,232,240,0.8);
    box-shadow: 0 1px 12px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.navbar-inner {
    width: 100%;
    max-width: 1100px;
    height: var(--nav-h);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.logo {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.5px;
    white-space: nowrap;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo span {
    font-weight: 500;
    background: linear-gradient(135deg, var(--text-muted), #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-links a {
    padding: 5px 12px;
    border-radius: 7px;
    font-size: 13px;
    color: var(--text-muted);
    transition: background .15s, color .15s;
    font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
    background: var(--tag-bg);
    color: var(--primary);
}

.nav-links a.active {
    font-weight: 600;
}

.nav-search {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    transition: border-color .2s, box-shadow .2s;
}

.nav-search:focus-within {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px var(--primary-ultra);
}

.nav-search input {
    border: none;
    outline: none;
    font-size: 12.5px;
    padding: 5px 11px;
    width: 160px;
    background: transparent;
    color: var(--text);
}

.nav-search button {
    border: none;
    background: var(--primary);
    color: #fff;
    padding: 5px 12px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: background .15s;
}

.nav-search button:hover {
    background: var(--primary-dark);
}

/* ── Hero 统计条 ── */
.hero-strip {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #7c3aed 100%);
    color: #fff;
}

.hero-strip-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 0;
}

.hero-strip-text {
    flex: 1;
}

.hero-strip-text h2 {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.3px;
    margin-bottom: 3px;
}

.hero-strip-text p {
    font-size: 12px;
    opacity: .8;
}

.hero-stats {
    display: flex;
    gap: 28px;
}

.hero-stat {
    text-align: center;
}

.hero-stat strong {
    display: block;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.hero-stat span {
    font-size: 11px;
    opacity: .75;
    letter-spacing: 0.3px;
}

/* ── 页面容器 ── */
.page-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 20px 0;
    display: grid;
    grid-template-columns: 1fr 256px;
    gap: 20px;
    align-items: start;
}

/* ── 分类标签栏 ── */
.cat-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    padding: 12px 14px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
}

.cat-bar a {
    font-size: 12.5px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1.5px solid var(--border);
    color: var(--text-muted);
    transition: border-color .15s, color .15s, background .15s, transform .1s;
}

.cat-bar a:hover {
    border-color: var(--primary-light);
    color: var(--primary);
    background: var(--tag-bg);
    transform: translateY(-1px);
}

.cat-bar a.on {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
    font-weight: 600;
}

.cat-bar-count {
    margin-left: auto;
    font-size: 11.5px;
    color: var(--text-light);
    background: var(--bg);
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid var(--border);
}

/* ── 文章列表 ── */
.post-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 入场动画 */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.post-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    display: flex;
    gap: 14px;
    box-shadow: var(--card-shadow);
    transition: transform .2s ease, border-color .2s, box-shadow .2s;
    animation: fadeUp .35s ease both;
    position: relative;
    overflow: hidden;
}

.post-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary), var(--primary-light));
    opacity: 0;
    transition: opacity .2s;
    border-radius: 3px 0 0 3px;
}

.post-card:hover {
    transform: translateY(-2px);
    border-color: #bfdbfe;
    box-shadow: var(--card-shadow-h);
}

.post-card:hover::before {
    opacity: 1;
}

/* 瀑布动画延迟 */
.post-card:nth-child(1) { animation-delay: .04s; }
.post-card:nth-child(2) { animation-delay: .08s; }
.post-card:nth-child(3) { animation-delay: .12s; }
.post-card:nth-child(4) { animation-delay: .16s; }
.post-card:nth-child(5) { animation-delay: .20s; }
.post-card:nth-child(6) { animation-delay: .24s; }

.post-thumb {
    width: 88px;
    height: 72px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
    background: var(--border);
}

.post-thumb-placeholder {
    width: 88px;
    height: 72px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    background: linear-gradient(135deg, #e8f0fe 0%, #dbeafe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

/* 每种类型不同渐变背景 */
.post-card:has(.type-pay) .post-thumb-placeholder {
    background: linear-gradient(135deg, #fef9c3 0%, #fef3c7 100%);
}
.post-card:has(.type-link) .post-thumb-placeholder {
    background: linear-gradient(135deg, #f3e8ff 0%, #ede9fe 100%);
}
.post-card:has(.type-tool) .post-thumb-placeholder {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
}

.post-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.post-top {
    display: flex;
    align-items: center;
    gap: 7px;
}

.post-type {
    font-size: 10.5px;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 700;
    flex-shrink: 0;
    letter-spacing: 0.2px;
    border: 1px solid transparent;
}

.type-free  { background: #dcfce7; color: #16a34a; border-color: #bbf7d0; }
.type-pay   { background: #fef3c7; color: #d97706; border-color: #fde68a; }
.type-login { background: #dbeafe; color: #1d4ed8; border-color: #bfdbfe; }
.type-link  { background: #ede9fe; color: #7c3aed; border-color: #ddd6fe; }
.type-tool  { background: #fee2e2; color: #dc2626; border-color: #fecaca; }

.post-title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .15s;
    line-height: 1.4;
}

.post-card:hover .post-title {
    color: var(--primary);
}

.post-desc {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11.5px;
    color: var(--text-light);
    margin-top: auto;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 3px;
}

.post-tags {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.tag {
    font-size: 11px;
    padding: 2px 8px;
    background: var(--tag-bg);
    color: var(--tag-text);
    border-radius: 20px;
    border: 1px solid #bfdbfe;
    font-weight: 500;
    transition: background .15s, color .15s;
}

.tag:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ── 分页 ── */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 20px 0;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 4px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 500;
    border: 1.5px solid var(--border);
    color: var(--text-muted);
    transition: all .15s;
    background: var(--white);
}

.pagination a:hover {
    border-color: var(--primary-light);
    color: var(--primary);
    background: var(--tag-bg);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px var(--primary-glow);
}

.pagination .cur {
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: #fff;
    font-weight: 700;
    box-shadow: 0 2px 10px var(--primary-glow);
}

/* ── 侧边栏 ── */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.widget {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: box-shadow .2s;
}

.widget:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
}

.widget-title {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text);
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-light);
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(to right, var(--primary-ultra), transparent);
}

.widget-title::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 13px;
    background: linear-gradient(to bottom, var(--primary-light), var(--primary));
    border-radius: 3px;
    flex-shrink: 0;
}

.widget-body {
    padding: 12px 14px;
}

/* 公告 */
.notice-text {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.8;
}

/* 热门下载 */
.hot-list {
    list-style: none;
    display: flex;
    flex-direction: column;
}

.hot-list li a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 0;
    border-bottom: 1px dashed var(--border-light);
    font-size: 12.5px;
    color: var(--text);
    transition: color .15s, padding-left .15s;
}

.hot-list li:last-child a {
    border-bottom: none;
}

.hot-list li a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.hot-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 19px;
    height: 19px;
    border-radius: 6px;
    font-size: 10.5px;
    font-weight: 800;
    flex-shrink: 0;
    background: var(--bg);
    color: var(--text-light);
}

.hot-num.top {
    background: linear-gradient(135deg, #60a5fa, var(--primary));
    color: #fff;
    box-shadow: 0 2px 6px var(--primary-glow);
}

.hot-num.top:nth-child(1) { background: linear-gradient(135deg, #f59e0b, #ef4444); }

.hot-title {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hot-count {
    font-size: 11px;
    color: var(--text-light);
    flex-shrink: 0;
    font-weight: 500;
}

/* 标签云 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-cloud a {
    font-size: 11.5px;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1.5px solid var(--border);
    color: var(--text-muted);
    transition: all .15s;
    font-weight: 500;
    background: var(--white);
}

.tag-cloud a:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--tag-bg);
    transform: translateY(-1px);
}

/* ── 友情链接 ── */
.friend-section {
    max-width: 1100px;
    margin: 18px auto 0;
    padding: 0 20px;
}

.section-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
}

.section-head::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 14px;
    background: linear-gradient(to bottom, var(--primary-light), var(--primary));
    border-radius: 3px;
}

.friend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 8px;
}

.friend-item {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: var(--text);
    transition: border-color .15s, color .15s, box-shadow .15s, transform .15s;
    overflow: hidden;
}

.friend-item:hover {
    border-color: var(--primary-light);
    color: var(--primary);
    box-shadow: 0 4px 12px var(--primary-glow);
    transform: translateY(-1px);
}

.friend-ico {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    flex-shrink: 0;
    object-fit: cover;
    background: var(--border);
}

.friend-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

/* ── 底部 Footer ── */
.footer {
    margin-top: 28px;
    border-top: 1px solid var(--border);
    background: #fafbfc;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 20px 18px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
}

.footer-col h4 {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-col h4::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 12px;
    background: var(--primary);
    border-radius: 2px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.footer-col ul li a {
    font-size: 12px;
    color: var(--text-muted);
    transition: color .15s, padding-left .15s;
    display: inline-block;
}

.footer-col ul li a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-col p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.85;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    text-align: center;
    padding: 12px 20px;
    font-size: 11.5px;
    color: var(--text-light);
    background: var(--white);
}

.footer-bottom a {
    color: var(--primary);
    font-weight: 500;
}

/* ── 移动端操作按钮（默认隐藏，移动端显示） ── */
.nav-mobile-actions {
    display: none;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.nav-search-toggle,
.nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 8px;
    color: var(--text-muted);
    flex-shrink: 0;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    transition: background .15s, color .15s;
}

.nav-search-toggle:hover,
.nav-toggle:hover {
    background: var(--tag-bg);
    color: var(--primary);
}

/* 汉堡线条 */
.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform .25s, opacity .25s;
    position: absolute;
}

.nav-toggle span:nth-child(1) { transform: translateY(-5px); }
.nav-toggle span:nth-child(3) { transform: translateY(5px); }

.nav-toggle.open span:nth-child(1) { transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg); }

/* ── 移动端下拉导航（桌面端隐藏） ── */
.mobile-nav {
    display: none;
    flex-direction: column;
    background: rgba(255,255,255,0.96);
    border-top: 1px solid var(--border);
    gap: 8px;
    overflow: hidden;
    max-height: 0;
    padding: 0 16px;
    transition: max-height .3s ease, padding .3s ease;
}

.mobile-nav.open {
    max-height: 400px;
    padding: 12px 16px 16px;
}

.mobile-nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mobile-nav-links a {
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    border: 1.5px solid var(--border);
    transition: background .15s, color .15s, border-color .15s;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
    background: var(--tag-bg);
    color: var(--primary);
    border-color: var(--primary-light);
}

.mobile-search {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: border-color .2s;
}

.mobile-search:focus-within {
    border-color: var(--primary-light);
}

.mobile-search input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 13px;
    padding: 9px 12px;
    background: transparent;
    color: var(--text);
}

.mobile-search button {
    border: none;
    background: var(--primary);
    color: #fff;
    padding: 9px 14px;
    cursor: pointer;
    font-size: 12.5px;
    font-weight: 500;
    transition: background .15s;
    white-space: nowrap;
}

.mobile-search button:hover {
    background: var(--primary-dark);
}

/* Mobile menu defaults (hidden on desktop) */
.mobile-menu-overlay,
.mobile-menu-drawer {
    display: none;
}

/* ── 响应式：768px 平板/手机 ── */
@media (max-width: 768px) {
    /* 导航 */
    .nav-links          { display: none; }
    .nav-search         { display: none; }
    .nav-user           { display: none; }
    .nav-mobile-actions { display: flex; }
    .mobile-nav         { display: flex; }

    /* 汉堡菜单按钮 */
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 36px;
        height: 36px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 6px;
        border-radius: 8px;
        transition: background 0.2s;
    }

    .hamburger:hover {
        background: var(--tag-bg);
    }

    .hamburger span {
        display: block;
        width: 20px;
        height: 2px;
        background: var(--text);
        border-radius: 2px;
        margin: 2.5px 0;
        transition: all 0.3s ease;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    /* 移动端菜单遮罩 */
    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 90;
        opacity: 0;
        transition: opacity 0.3s;
    }

    .mobile-menu-overlay.active {
        display: block;
        opacity: 1;
    }

    /* 移动端抽屉菜单 */
    .mobile-menu-drawer {
        /* keep hidden until active */
        position: fixed;
        top: 0;
        right: -280px;
        width: 280px;
        height: 100vh;
        background: #fff;
        z-index: 95;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
        transition: right 0.3s ease;
        overflow-y: auto;
    }

    .mobile-menu-drawer.active {
        display: block;
        right: 0;
    }

    .mobile-menu-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px;
        border-bottom: 1px solid var(--border-light);
    }

    .mobile-menu-close {
        width: 32px;
        height: 32px;
        border: none;
        background: var(--tag-bg);
        border-radius: 8px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        color: var(--text-muted);
    }

    .mobile-menu-user {
        padding: 16px;
        background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(124, 58, 237, 0.08));
        border-bottom: 1px solid var(--border-light);
    }

    .mobile-menu-user-info {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .mobile-menu-avatar {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--primary), #7c3aed);
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        font-weight: 700;
    }

    .mobile-menu-username {
        font-size: 14px;
        font-weight: 600;
        color: var(--text);
    }

    .mobile-menu-user-btn {
        margin-top: 10px;
        display: flex;
        gap: 8px;
    }

    .mobile-menu-user-btn a {
        flex: 1;
        text-align: center;
        padding: 8px;
        border-radius: 8px;
        font-size: 12px;
        font-weight: 500;
        text-decoration: none;
        transition: background 0.2s;
    }

    .mobile-menu-user-btn .btn-login {
        background: var(--primary);
        color: #fff;
    }

    .mobile-menu-user-btn .btn-register {
        background: var(--tag-bg);
        color: var(--text);
    }

    .mobile-menu-links {
        padding: 12px 0;
    }

    .mobile-menu-links a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 16px;
        color: var(--text);
        text-decoration: none;
        font-size: 14px;
        transition: background 0.2s;
    }

    .mobile-menu-links a:hover {
        background: var(--tag-bg);
        color: var(--primary);
    }

    .mobile-menu-links a.active {
        background: rgba(37, 99, 235, 0.1);
        color: var(--primary);
        font-weight: 600;
    }

    .mobile-menu-search {
        padding: 12px 16px;
        border-top: 1px solid var(--border-light);
    }

    .mobile-menu-search form {
        display: flex;
        gap: 8px;
    }

    .mobile-menu-search input {
        flex: 1;
        padding: 10px 12px;
        border: 1.5px solid var(--border);
        border-radius: 8px;
        font-size: 13px;
        outline: none;
    }

    .mobile-menu-search input:focus {
        border-color: var(--primary-light);
    }

    .mobile-menu-search button {
        padding: 10px 16px;
        background: var(--primary);
        color: #fff;
        border: none;
        border-radius: 8px;
        font-size: 13px;
        cursor: pointer;
    }

    /* Hero */
    .hero-strip-inner {
        flex-direction: column;
        gap: 14px;
        padding: 16px 12px;
        text-align: center;
    }
    .hero-stats { justify-content: center; gap: 20px; }

    /* 页面布局：单列 */
    .page-wrap {
        grid-template-columns: 1fr;
        padding: 12px 12px 0;
        gap: 14px;
    }

    /* 分类标签 */
    .cat-bar { padding: 10px 12px; }

    /* 侧边栏横向双列 */
    .sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    /* 友情链接 */
    .friend-section { margin-top: 12px; padding: 0 12px; }
    .friend-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }

    /* Footer */
    .footer-col-brand { display: none; }
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        padding: 14px 12px 12px;
    }

    /* 个人中心 */
    .nav-uname          { display: none; }
    .nav-btn-reg        { display: none; }
    .profile-body       { padding: 12px 12px 0; }
    .profile-banner-inner { flex-wrap: wrap; gap: 12px; }
    .profile-logout-btn { margin-left: auto; }
    .profile-stats-row  { grid-template-columns: 1fr 1fr; }
    .profile-grid       { grid-template-columns: 1fr; }
}

/* ── 响应式：480px 小屏手机 ── */
@media (max-width: 480px) {
    .logo span { display: none; }

    .page-wrap { padding: 10px 10px 0; }

    /* Hero */
    .hero-stat strong { font-size: 17px; }
    .hero-stats { gap: 14px; }

    /* 文章卡片纵向堆叠 */
    .post-card {
        flex-direction: column;
        padding: 12px;
        gap: 10px;
    }

    .post-thumb {
        width: 100%;
        height: 120px;
        border-radius: var(--radius-sm);
    }

    .post-thumb-placeholder {
        width: 100%;
        height: 80px;
        border-radius: var(--radius-sm);
        font-size: 30px;
    }

    .post-title {
        white-space: normal;
        line-height: 1.5;
    }

    .post-desc {
        white-space: normal;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* 侧边栏单列 */
    .sidebar { grid-template-columns: 1fr; }

    /* Footer */
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 12px 10px 10px;
    }
    .footer-col h4 { margin-bottom: 7px; }
    .footer-col ul { gap: 5px; }

    /* 友情链接 */
    .friend-section { padding: 0 10px; }
    .friend-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }

    /* 分页 —— 放大触控区 */
    .pagination a,
    .pagination span {
        min-width: 38px;
        height: 38px;
        font-size: 13px;
    }

    /* 分类栏触控区 */
    .cat-bar a { padding: 6px 13px; min-height: 34px; }

    /* 个人中心 */
    .profile-body        { padding: 10px 10px 0; }
    .profile-avatar-lg   { width: 52px; height: 52px; font-size: 20px; }
    .profile-name        { font-size: 16px; }
    .profile-banner      { padding: 18px 0 16px; }
    .profile-stats-row   { grid-template-columns: 1fr 1fr; gap: 8px; }
    .pstat-card          { padding: 12px; gap: 10px; }
    .pstat-icon          { width: 38px; height: 38px; }
    .pstat-info strong   { font-size: 19px; }
    .profile-list-item   { padding: 8px 12px; gap: 9px; }
    .pil-row             { padding: 8px 12px; }
    .psl-row             { padding: 10px 12px; }
    .profile-section-head{ padding: 9px 12px; }
    .profile-edit-btn    { margin: 10px 12px 12px; }

    /* Auth */
    .auth-body  { padding: 16px 12px 32px; justify-content: flex-start; padding-top: 40px; }
    .auth-card  { padding: 20px 16px 18px; }
    .auth-title { font-size: 16px; margin-bottom: 14px; }
    .auth-submit{ font-size: 13.5px; padding: 11px; }
    .form-input { padding: 10px 12px; font-size: 13px; }
    .form-input-wrap .form-input { padding-right: 40px; }
}

/* ════════════════════════════════════════
   导航栏 —— 用户区域
════════════════════════════════════════ */
.nav-user {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nav-auth-btns {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-btn-login {
    font-size: 12.5px;
    font-weight: 500;
    padding: 5px 13px;
    border-radius: 7px;
    color: var(--text-muted);
    border: 1.5px solid var(--border);
    background: var(--white);
    transition: all .15s;
}
.nav-btn-login:hover { border-color: var(--primary); color: var(--primary); }

.nav-btn-reg {
    font-size: 12.5px;
    font-weight: 600;
    padding: 5px 13px;
    border-radius: 7px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border: 1.5px solid transparent;
    transition: opacity .15s, transform .15s;
}
.nav-btn-reg:hover { opacity: .88; transform: translateY(-1px); color: #fff; }

/* 用户下拉按钮 */
.nav-user-wrap { position: relative; }

.nav-user-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 4px 8px 4px 4px;
    border-radius: 20px;
    border: 1.5px solid var(--border);
    transition: border-color .15s, background .15s;
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
}
.nav-user-btn:hover { border-color: var(--primary-light); background: var(--tag-bg); }

.nav-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    user-select: none;
}

.nav-avatar-mobile {
    width: 30px;
    height: 30px;
    font-size: 13px;
    text-decoration: none;
}

.nav-uname {
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12.5px;
}

.nav-chevron {
    color: var(--text-muted);
    transition: transform .2s;
    flex-shrink: 0;
}
.nav-user-btn[aria-expanded="true"] .nav-chevron { transform: rotate(180deg); }

/* 下拉菜单 */
.nav-user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 152px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 8px 28px rgba(0,0,0,0.10);
    padding: 5px;
    display: none;
    flex-direction: column;
    z-index: 200;
    animation: fadeUp .15s ease;
}
.nav-user-dropdown.show { display: flex; }

.nav-user-dropdown a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 12.5px;
    color: var(--text);
    transition: background .12s, color .12s;
    font-weight: 500;
}
.nav-user-dropdown a:hover { background: var(--bg); color: var(--primary); }
.nav-user-dropdown a.dropdown-danger { color: var(--danger); }
.nav-user-dropdown a.dropdown-danger:hover { background: #fef2f2; color: var(--danger); }

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 6px;
}

/* ════════════════════════════════════════
   登录 / 注册 —— 认证页面
════════════════════════════════════════ */
.auth-body {
    background: linear-gradient(135deg, #e8f0fe 0%, #f1f5f9 60%, #f3e8ff 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px 40px;
}

.auth-wrap {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.auth-logo {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.auth-sub {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-bottom: 22px;
}

.auth-card {
    width: 100%;
    background: var(--white);
    border: 1.5px solid rgba(226,232,240,0.8);
    border-radius: 16px;
    padding: 28px 28px 24px;
    box-shadow: 0 4px 32px rgba(37,99,235,0.08), 0 1px 4px rgba(0,0,0,0.06);
}

.auth-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 18px;
    letter-spacing: -0.3px;
}

/* 错误提示 */
.auth-alert {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 12.5px;
    margin-bottom: 14px;
}
.auth-alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: var(--danger);
}

/* 测试账号提示框 */
.auth-hint {
    background: linear-gradient(to right, #eff6ff, #f5f3ff);
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 10px 13px;
    margin-bottom: 16px;
    font-size: 12px;
}
.auth-hint-title {
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}
.auth-hint-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    color: var(--text-muted);
}
.auth-hint-row code {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 1px 6px;
    font-size: 12px;
    color: var(--primary);
    font-family: "SFMono-Regular", Consolas, monospace;
}
.auth-hint-badge {
    margin-left: auto;
    font-size: 10.5px;
    font-weight: 600;
    padding: 1px 7px;
    border-radius: 20px;
    background: #e0f2fe;
    color: #0369a1;
}
.auth-hint-badge.admin {
    background: #fae8ff;
    color: #7c3aed;
}

/* 表单 */
.auth-form { display: flex; flex-direction: column; gap: 14px; }

.form-group { display: flex; flex-direction: column; gap: 5px; }

.form-label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.form-label-link { font-weight: 400; color: var(--primary); font-size: 12px; }
.form-label-link:hover { text-decoration: underline; }

.form-input-wrap { position: relative; }

.form-input {
    width: 100%;
    border: 1.5px solid var(--border);
    border-radius: 9px;
    padding: 9px 12px;
    font-size: 13px;
    color: var(--text);
    background: var(--white);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    font-family: var(--font);
}
.form-input-wrap .form-input { padding-right: 40px; }
.form-input:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px var(--primary-ultra);
}
.form-input::placeholder { color: #cbd5e1; }

.pwd-eye {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    cursor: pointer;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    padding: 2px;
    transition: color .15s;
}
.pwd-eye:hover { color: var(--text-muted); }

.form-check {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    color: var(--text-muted);
    cursor: pointer;
    user-select: none;
}
.form-check input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--primary); cursor: pointer; }
.form-check a { color: var(--primary); }

.auth-submit {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .15s, transform .15s, box-shadow .15s;
    letter-spacing: 2px;
    box-shadow: 0 4px 14px var(--primary-glow);
    margin-top: 2px;
}
.auth-submit:hover {
    opacity: .9;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--primary-glow);
}
.auth-submit:active { transform: translateY(0); }

.auth-switch {
    text-align: center;
    font-size: 12.5px;
    color: var(--text-muted);
    margin-top: 18px;
}
.auth-switch a { color: var(--primary); font-weight: 600; }

.auth-footer {
    margin-top: 20px;
    font-size: 12px;
    color: #94a3b8;
    text-align: center;
}
.auth-footer a { color: var(--text-muted); }
.auth-footer a:hover { color: var(--primary); }

/* ════════════════════════════════════════
   个人中心页面
════════════════════════════════════════ */
.profile-page { padding-bottom: 40px; }

/* 横幅 */
.profile-banner {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 55%, #7c3aed 100%);
    color: #fff;
    padding: 32px 0 28px;
}

.profile-banner-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap;   /* 桌面端不换行；移动端通过媒体查询覆盖 */
}

.profile-avatar-lg {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    border: 3px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

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

.profile-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2px;
    flex-wrap: wrap;
}

.profile-name {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.profile-role {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 20px;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    letter-spacing: 0.3px;
}
.profile-role.admin {
    background: rgba(250,232,255,0.25);
    border-color: rgba(216,180,254,0.5);
}

.profile-at { font-size: 12.5px; opacity: .75; margin-bottom: 6px; }

.profile-bio { font-size: 13px; opacity: .9; margin-bottom: 8px; }

.profile-joined {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    opacity: .7;
}

.profile-logout-btn {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 500;
    padding: 7px 16px;
    border-radius: 8px;
    border: 1.5px solid rgba(255,255,255,0.35);
    color: rgba(255,255,255,0.85);
    transition: background .15s, border-color .15s;
    align-self: flex-start;
}
.profile-logout-btn:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border-color: rgba(255,255,255,0.6);
}

/* 欢迎条 */
.profile-welcome {
    background: linear-gradient(to right, #dcfce7, #f0fdf4);
    border: 1px solid #bbf7d0;
    border-radius: var(--radius);
    padding: 12px 16px;
    font-size: 13.5px;
    color: #16a34a;
    font-weight: 500;
    margin-bottom: 18px;
}

/* 主体 */
.profile-body {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 20px 0;
}

/* 统计卡片行 */
.profile-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.pstat-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 13px;
    box-shadow: var(--card-shadow);
    transition: transform .2s, box-shadow .2s;
}
.pstat-card:hover { transform: translateY(-2px); box-shadow: var(--card-shadow-h); }

.pstat-icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pstat-info strong {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.5px;
    line-height: 1.1;
}
.pstat-info span {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 2px;
    display: block;
}

/* 主内容两栏 */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 16px;
    align-items: start;
}

/* 通用区块 */
.profile-section {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    margin-bottom: 14px;
}

.profile-section:last-child { margin-bottom: 0; }

.profile-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 16px;
    border-bottom: 1px solid var(--border-light);
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    background: linear-gradient(to right, var(--primary-ultra), transparent);
}

.ps-more {
    font-size: 11.5px;
    font-weight: 500;
    color: var(--primary);
}
.ps-more:hover { text-decoration: underline; }

/* 列表项 */
.profile-list { padding: 6px 0; }

.profile-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 16px;
    border-bottom: 1px solid var(--border-light);
    transition: background .12s;
}
.profile-list-item:last-child { border-bottom: none; }
.profile-list-item:hover { background: var(--bg); }

.pli-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: linear-gradient(135deg, #e8f0fe, #dbeafe);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.pli-info { flex: 1; min-width: 0; }
.pli-title {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pli-meta { font-size: 11px; color: var(--text-light); margin-top: 2px; }

/* 账号信息表 */
.profile-info-list { padding: 4px 0; }

.pil-row {
    display: flex;
    align-items: center;
    padding: 9px 16px;
    border-bottom: 1px solid var(--border-light);
    font-size: 12.5px;
    gap: 12px;
}
.pil-row:last-child { border-bottom: none; }
.pil-label { width: 72px; flex-shrink: 0; color: var(--text-muted); font-size: 12px; }
.pil-val   { flex: 1; color: var(--text); font-weight: 500; }

.profile-edit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 12px 16px 14px;
    padding: 8px;
    border-radius: 9px;
    border: 1.5px solid var(--border);
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-muted);
    transition: all .15s;
}
.profile-edit-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--tag-bg);
}

/* 安全设置 */
.profile-security-list { padding: 4px 0; }

.psl-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 16px;
    border-bottom: 1px solid var(--border-light);
    gap: 12px;
}
.psl-row:last-child { border-bottom: none; }
.psl-name { font-size: 12.5px; font-weight: 500; color: var(--text); margin-bottom: 2px; }
.psl-desc { font-size: 11.5px; color: var(--text-light); }
.psl-btn {
    font-size: 11.5px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 6px;
    border: 1.5px solid var(--border);
    color: var(--text-muted);
    flex-shrink: 0;
    transition: all .15s;
}
.psl-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--tag-bg); }

/* ── 响应式：360px 超小屏（折叠屏/老机型） ── */
@media (max-width: 360px) {
    .navbar-inner { padding: 0 12px; gap: 8px; }

    .hero-stats       { gap: 10px; }
    .hero-stat strong { font-size: 15px; }
    .hero-strip-inner { padding: 12px 10px; }

    .profile-stats-row { grid-template-columns: 1fr 1fr; gap: 6px; }
    .pstat-icon        { width: 32px; height: 32px; border-radius: 8px; }
    .pstat-info strong { font-size: 16px; }

    .auth-body  { padding: 12px 10px 28px; padding-top: 28px; }
    .auth-card  { padding: 16px 14px 16px; border-radius: 14px; }
    .auth-logo  { font-size: 20px; }
    .auth-hint-row { flex-wrap: wrap; }
    .auth-hint-badge { margin-left: 0; }

    .friend-grid { grid-template-columns: 1fr 1fr; }
    .footer-inner { grid-template-columns: 1fr; gap: 12px; }
}

/* ════════════════════════════════════════
   响应式终稿覆盖层
   （修正：nav-user / auth / profile 基础样式声明在媒体查询之后，
     需在文件末尾重新声明，确保移动端规则真正生效）
════════════════════════════════════════ */

/* ── ≤768px ── */
@media (max-width: 768px) {
    /* 导航：隐藏桌面用户区，避免与移动端 actions 重叠 */
    .nav-user     { display: none; }
    .nav-btn-reg  { display: none; }
    .nav-uname    { display: none; }

    /* 个人中心横幅 */
    .profile-banner-inner {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
        align-items: center;
    }
    .profile-info  { min-width: 0; }
    .profile-logout-btn {
        margin-left: auto;
        align-self: flex-start;
        font-size: 11.5px;
        padding: 6px 12px;
    }

    /* 个人中心主体 */
    .profile-body       { padding: 14px 12px 0; }
    .profile-stats-row  { grid-template-columns: 1fr 1fr; gap: 10px; }
    .profile-grid       { grid-template-columns: 1fr; gap: 12px; }

    /* Auth 页面在平板时居中 */
    .auth-body { justify-content: center; }
}

/* ── ≤480px ── */
@media (max-width: 480px) {
    /* 导航 */
    .nav-user { display: none; }

    /* 个人中心横幅：头像 + 信息纵向堆叠，退出按钮独占一行 */
    .profile-banner-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .profile-avatar-lg   { width: 52px; height: 52px; font-size: 20px; border-width: 2px; }
    .profile-banner      { padding: 18px 0 16px; }
    .profile-name        { font-size: 16px; }
    .profile-name-row    { gap: 7px; }
    .profile-logout-btn  {
        align-self: stretch;
        text-align: center;
        margin-left: 0;
        padding: 8px;
    }

    /* 个人中心统计卡 */
    .profile-body       { padding: 10px 10px 0; }
    .profile-stats-row  { gap: 8px; }
    .pstat-card         { padding: 11px 12px; gap: 9px; }
    .pstat-icon         { width: 36px; height: 36px; border-radius: 9px; }
    .pstat-info strong  { font-size: 18px; }
    .pstat-info span    { font-size: 11px; }

    /* 个人中心内容列表 */
    .profile-section-head { padding: 9px 12px; font-size: 12.5px; }
    .profile-list-item  { padding: 8px 12px; gap: 8px; }
    .pli-icon           { width: 32px; height: 32px; font-size: 15px; }
    .pil-row            { padding: 8px 12px; }
    .psl-row            { padding: 9px 12px; }
    .profile-edit-btn   { margin: 8px 12px 12px; }

    /* Auth 页 */
    .auth-body   { padding: 32px 12px 28px; justify-content: flex-start; }
    .auth-card   { padding: 20px 16px 18px; border-radius: 14px; }
    .auth-title  { font-size: 16px; margin-bottom: 14px; }
    .auth-submit { padding: 11px; font-size: 13.5px; letter-spacing: 1.5px; }
    .form-input  { padding: 10px 12px; }
    .form-input-wrap .form-input { padding-right: 40px; }
}

/* ── ≤360px ── */
@media (max-width: 360px) {
    .nav-user { display: none; }

    /* 个人中心统计卡极限压缩 */
    .pstat-card        { padding: 9px 10px; gap: 7px; }
    .pstat-icon        { width: 30px; height: 30px; border-radius: 7px; }
    .pstat-info strong { font-size: 16px; }

    /* Auth */
    .auth-card  { padding: 16px 14px; }
    .auth-submit { letter-spacing: 1px; }
}

/* ════════════════════════════════════════
   详情页 (detail.php)
════════════════════════════════════════ */

/* 外层容器 */
.det-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px 20px 40px;
}

/* 面包屑 */
.det-breadcrumb {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    color: var(--text-muted);
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.det-breadcrumb a { color: var(--text-muted); transition: color .15s; }
.det-breadcrumb a:hover { color: var(--primary); }
.bc-sep { color: var(--border); font-size: 14px; }
.det-breadcrumb span:last-child { color: var(--text); font-weight: 500; }

/* 主体两栏布局 */
.det-grid {
    display: grid;
    grid-template-columns: 1fr 256px;
    gap: 20px;
    align-items: start;
}

/* ── 资源头部卡片 ── */
.det-header-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    gap: 18px;
    box-shadow: var(--card-shadow);
    margin-bottom: 14px;
    animation: fadeUp .3s ease both;
}

/* 图标区域 */
.det-icon-wrap {
    width: 76px;
    height: 76px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #e8f0fe, #dbeafe);
}
.det-icon-free  { background: linear-gradient(135deg, #d1fae5, #dcfce7); }
.det-icon-pay   { background: linear-gradient(135deg, #fef9c3, #fef3c7); }
.det-icon-link  { background: linear-gradient(135deg, #f3e8ff, #ede9fe); }
.det-icon-tool  { background: linear-gradient(135deg, #fee2e2, #fecaca); }

.det-header-info { flex: 1; min-width: 0; }

.det-badges {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.det-cat-badge {
    font-size: 10.5px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    background: var(--bg);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.det-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.3px;
    line-height: 1.4;
    margin-bottom: 6px;
}

.det-desc-text {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 12px;
}

.det-meta-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.det-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-light);
}

.det-tags { display: flex; gap: 5px; flex-wrap: wrap; }

/* ── 通用卡片 ── */
.det-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    margin-bottom: 14px;
    overflow: hidden;
    animation: fadeUp .35s ease both;
}
.det-card:nth-child(2) { animation-delay: .05s; }
.det-card:nth-child(3) { animation-delay: .10s; }
.det-card:nth-child(4) { animation-delay: .15s; }
.det-card:nth-child(5) { animation-delay: .20s; }

.det-card-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    background: linear-gradient(to right, var(--primary-ultra), transparent);
}

/* 特性列表 */
.det-feature-list {
    list-style: none;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.det-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: var(--text);
    line-height: 1.6;
}
.det-feature-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
    margin-top: 6px;
}

/* 详细内容富文本 */
.det-content {
    padding: 14px 16px;
    font-size: 13.5px;
    color: var(--text);
    line-height: 1.85;
}
.det-content p  { margin-bottom: 12px; }
.det-content h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin: 18px 0 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.det-content h3::before {
    content: '';
    width: 3px;
    height: 14px;
    background: var(--primary);
    border-radius: 2px;
    display: inline-block;
    flex-shrink: 0;
}
.det-content ul, .det-content ol {
    padding-left: 20px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.det-content li { font-size: 13.5px; line-height: 1.7; }
.det-content code {
    font-family: "SFMono-Regular", Consolas, monospace;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 1px 6px;
    font-size: 12.5px;
    color: var(--primary);
}
.det-content blockquote {
    border-left: 3px solid var(--warn);
    background: #fffbeb;
    padding: 10px 14px;
    border-radius: 0 8px 8px 0;
    font-size: 12.5px;
    color: #92400e;
    margin: 12px 0;
}
.det-content strong { font-weight: 700; color: var(--text); }

/* 环境要求 */
.det-require-list {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.det-req-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}
.det-req-item svg { color: var(--success); flex-shrink: 0; }

/* ── 下载区 ── */
.det-dl-card { border-color: #bfdbfe; }

.det-free-block,
.det-pay-block  { padding: 16px; }

.det-free-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.det-free-badge {
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    background: #dcfce7;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}
.det-free-size { font-size: 12px; color: var(--text-muted); }

.det-free-tip {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: var(--text-muted);
    background: var(--bg);
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 14px;
    border: 1px solid var(--border);
}

/* 价格 */
.det-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 6px;
}
.det-price-symbol { font-size: 16px; font-weight: 700; color: var(--danger); }
.det-price-num    { font-size: 32px; font-weight: 800; color: var(--danger); letter-spacing: -1px; }
.det-price-orig   { font-size: 13px; color: var(--text-light); text-decoration: line-through; }
.det-pay-desc     { font-size: 12.5px; color: var(--text-muted); margin-bottom: 16px; }

/* 下载按钮区 */
.det-dl-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.det-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 22px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: #fff;
    border-radius: 9px;
    font-size: 13.5px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: opacity .15s, transform .15s, box-shadow .15s;
    box-shadow: 0 4px 14px var(--primary-glow);
    text-decoration: none;
}
.det-btn-primary:hover {
    opacity: .88;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--primary-glow);
    color: #fff;
}

.det-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 18px;
    border: 1.5px solid var(--border);
    border-radius: 9px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--white);
    cursor: pointer;
    transition: all .15s;
    text-decoration: none;
}
.det-btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--tag-bg);
}

/* 收藏按钮 */
.det-btn-fav {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    background: #fff;
    cursor: pointer;
    transition: all .15s;
    text-decoration: none;
}
.det-btn-fav:hover {
    border-color: #f43f5e;
    color: #f43f5e;
    background: #fff1f2;
}
.det-btn-fav.active {
    border-color: #f43f5e;
    color: #f43f5e;
    background: #fff1f2;
}
.det-btn-fav.active svg {
    fill: #f43f5e;
}

.det-btn-fav {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border: 1.5px solid var(--border);
    border-radius: 9px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--white);
    cursor: pointer;
    transition: all .15s;
}
.det-btn-fav:hover { border-color: #f472b6; color: #ec4899; background: #fdf2f8; }
.det-btn-fav.faved { border-color: #ec4899; color: #ec4899; background: #fdf2f8; }

.det-disclaimer {
    margin-top: 12px;
    font-size: 11.5px;
    color: var(--text-light);
    padding: 8px 12px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 7px;
    line-height: 1.6;
}
.det-disclaimer a { color: var(--primary); }

/* ── 评论区 ── */
.det-comment-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    margin-left: 2px;
}

.det-comments { padding: 8px 0; }

/* 一级评论 - 列表卡片式 */
.det-comment {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease;
}

.det-comment:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.det-comment:last-child { margin-bottom: 0; }

/* 用户头像 */
.det-comment-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}

/* 评论主体 */
.det-comment-body { flex: 1; min-width: 0; }

/* 用户信息行 */
.det-comment-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.det-comment-user {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.det-comment-time {
    font-size: 12px;
    color: var(--text-light);
}

.det-comment-reply-btn {
    font-size: 12px;
    color: var(--primary);
    text-decoration: none;
    margin-left: auto;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 6px;
    transition: background 0.2s;
}

.det-comment-reply-btn:hover {
    background: rgba(37, 99, 235, 0.08);
    text-decoration: none;
}

/* 评论内容 */
.det-comment-text {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.75;
    word-break: break-word;
}

.det-reply-form { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--border-light); }
.det-reply-form .det-comment-input { min-height: 70px; }
.det-comment-cancel {
    background: #e2e8f0;
    color: #64748b;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    margin-left: 8px;
    transition: all 0.2s;
}
.det-comment-cancel:hover { background: #cbd5e1; color: #475569; }

.det-no-comment { padding: 40px 20px; text-align: center; color: var(--text-light); }

/* 二级评论容器 */
.det-comment-replies {
    margin-left: 60px;
    margin-top: 0;
    margin-bottom: 0;
    padding: 16px 0 16px 24px;
    border-left: 2px solid var(--primary);
    background: transparent;
    border-radius: 0;
}

.det-comment-replies {
    margin-left: 56px;
    margin-top: 20px;
    margin-bottom: 24px;
    padding: 20px 0 20px 28px;
    border-left: 3px solid var(--primary);
    background: linear-gradient(to right, rgba(37, 99, 235, 0.03) 0%, transparent 100%);
    border-radius: 0 12px 12px 0;
}

.det-comment-replies-title {
    margin-bottom: 18px;
}

.det-comment-replies-count {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
}

.det-comment-replies .det-comment {
    border-bottom: none;
    padding: 0 0 20px 0 !important;
}

.det-comment-replies .det-comment:last-child {
    padding-bottom: 0 !important;
}

.det-comment-reply {
    display: flex;
    gap: 16px;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 20px 22px;
    margin-bottom: 16px;
    margin-left: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.det-comment-reply:last-child {
    margin-bottom: 0;
}

.det-comment-reply .det-comment-head {
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 10px;
    align-items: center;
}

.det-comment-reply .det-comment-user {
    font-size: 13px;
    font-weight: 600;
}

.det-comment-reply .det-comment-time {
    font-size: 11px;
    color: var(--text-light);
}

.det-comment-reply .det-comment-text {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 6px 0 0 0;
}

.det-comment-avatar-sm {
    width: 32px;
    height: 32px;
    font-size: 12px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #94a3b8, #64748b);
}

.det-comment-reply-badge {
    font-size: 11px;
    color: var(--primary);
    background: rgba(37, 99, 235, 0.1);
    padding: 3px 8px;
    border-radius: 6px;
    margin-left: 0;
    font-weight: 500;
}

.det-comment-text {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.65;
}

/* 评论输入框 */
.det-comment-form {
    padding: 20px;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    margin-top: 20px;
}

.det-comment-form-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 14px;
}

.det-comment-input {
    width: 100%;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    color: var(--text);
    font-family: var(--font);
    resize: vertical;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    line-height: 1.6;
    min-height: 100px;
}
.det-comment-input:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px var(--primary-ultra);
}

.det-comment-form-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}
.det-comment-tip { font-size: 11.5px; color: var(--text-light); }

.det-comment-submit {
    padding: 7px 18px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
        font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, transform .15s;
}
.det-comment-submit:hover { background: var(--primary-dark); transform: translateY(-1px); }

.det-login-tip {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: var(--text-muted);
    padding: 10px 12px;
    background: var(--bg);
    border-radius: 8px;
    border: 1px solid var(--border);
}
.det-login-tip a { color: var(--primary); font-weight: 600; }

/* ── 右侧边栏 ── */
.det-sidebar { display: flex; flex-direction: column; gap: 14px; }

/* 资源信息行 */
.det-info-row {
    display: flex;
    align-items: center;
    padding: 9px 14px;
    border-bottom: 1px solid var(--border-light);
    font-size: 12.5px;
    gap: 8px;
}
.det-info-row:last-child { border-bottom: none; }
.det-info-key { color: var(--text-muted); width: 40px; flex-shrink: 0; }
.det-info-val { color: var(--text); font-weight: 500; flex: 1; word-break: break-all; }

/* 相关资源 */
.det-related-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border-bottom: 1px solid var(--border-light);
    transition: background .12s;
}
.det-related-item:last-child { border-bottom: none; }
.det-related-item:hover { background: var(--bg); }

.det-related-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #e8f0fe, #dbeafe);
}

.det-related-info { flex: 1; min-width: 0; }
.det-related-title {
    font-size: 12px;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
    transition: color .15s;
}
.det-related-item:hover .det-related-title { color: var(--primary); }
.det-related-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-light);
}

/* ── 详情页响应式 ── */
@media (max-width: 768px) {
    .det-wrap { padding: 12px 12px 32px; }

    .det-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .det-header-card { flex-direction: column; gap: 14px; }

    .det-icon-wrap {
        width: 56px;
        height: 56px;
        font-size: 26px;
        border-radius: 12px;
    }

    .det-title { font-size: 16px; }

    .det-meta-row { gap: 10px; }

    .det-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .det-wrap { padding: 10px 10px 28px; }

    .det-header-card { padding: 14px; gap: 12px; }

    .det-icon-wrap { width: 48px; height: 48px; font-size: 22px; border-radius: 10px; }

    .det-title { font-size: 15px; }

    .det-card-title { padding: 10px 12px; font-size: 12.5px; }
    .det-feature-list { padding: 10px 12px; }
    .det-content { padding: 12px; }
    .det-require-list { padding: 10px 12px; }
    .det-free-block, .det-pay-block { padding: 12px; }

    .det-dl-btns { flex-direction: column; }
    .det-btn-primary,
    .det-btn-secondary,
    .det-btn-fav { width: 100%; justify-content: center; }

    .det-sidebar { grid-template-columns: 1fr; }

    /* 移动端评论样式优化 */
    .det-comment {
        padding: 14px;
        gap: 12px;
        align-items: flex-start;
        border-radius: 10px;
        margin-bottom: 12px;
    }

    .det-comment-avatar {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }

    .det-comment-head {
        gap: 8px;
        margin-bottom: 8px;
        flex-wrap: wrap;
    }

    .det-comment-user {
        font-size: 13px;
        font-weight: 600;
    }

    .det-comment-time {
        font-size: 11px;
    }

    .det-comment-reply-btn {
        font-size: 11px;
        margin-left: 0;
        padding: 3px 8px;
    }

    .det-comment-text {
        font-size: 13px;
        line-height: 1.65;
    }

    .det-comment-form {
        padding: 14px;
        margin-top: 14px;
        border-radius: 10px;
    }

    .det-comment-form-title {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .det-comment-input {
        min-height: 80px;
        font-size: 13px;
    }

    .det-comment-form-foot { flex-direction: column; gap: 8px; align-items: flex-end; }

    /* 二级评论移动端适配 */
    .det-comment-replies {
        margin-left: 24px;
        margin-top: 0;
        margin-bottom: 0;
        padding: 12px 0 12px 16px;
    }

    .det-comment-replies-title {
        margin-bottom: 10px;
        padding-bottom: 8px;
    }

    .det-comment-replies-count {
        font-size: 11px;
    }

    .det-comment-replies .det-comment {
        padding: 0 0 10px 0 !important;
        border-radius: 8px;
    }

    .det-comment-reply {
        gap: 10px;
        background: #f9fafb;
        border-radius: 8px;
        padding: 12px;
        margin-bottom: 10px;
    }

    .det-comment-reply .det-comment-head {
        gap: 6px;
        margin-bottom: 4px;
    }

    .det-comment-reply .det-comment-user {
        font-size: 12px;
        font-weight: 600;
    }

    .det-comment-reply .det-comment-time {
        font-size: 10px;
        color: #9ca3af;
    }

    .det-comment-reply .det-comment-text {
        font-size: 13px;
        line-height: 1.6;
        color: #4b5563;
        margin: 4px 0 0 0;
        word-break: break-word;
    }

    .det-comment-avatar-sm {
        width: 28px;
        height: 28px;
        font-size: 11px;
        border-radius: 50%;
        flex-shrink: 0;
    }

    .det-comment-reply-badge {
        font-size: 10px;
        padding: 2px 6px;
        background: rgba(37, 99, 235, 0.08);
        border-radius: 4px;
        white-space: nowrap;
    }

    .det-comment-reply-btn {
        font-size: 10px;
        margin-left: auto;
    }
}

/* ── Download login required ── */
.det-login-required {
    text-align: center;
    padding: 18px;
    background: #f8fafc;
    border-radius: 8px;
    margin-top: 12px;
}

.det-login-required p {
    color: #64748b;
    font-size: 13.5px;
    margin: 0 0 12px;
}

.det-login-required .det-btn-primary,
.det-login-required .det-btn-secondary {
    display: inline-flex;
    margin: 0 4px;
}
