/* ===== 设计系统 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #fafafa;
    --card: #ffffff;
    --text: #111111;
    --text-secondary: #555555;
    --text-muted: #999999;
    --border: #eeeeee;
    --border-light: #f5f5f5;
    --accent: #111111;
    --radius: 14px;
    --radius-sm: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.08);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

/* ===== 导航栏 ===== */
.top-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    height: 60px;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-logo {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.5px;
    opacity: 0.7;
    transition: opacity 0.2s;
    flex-shrink: 0;
}
.nav-logo:hover { opacity: 1; }

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

.nav-btn {
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 450;
    color: var(--text-secondary);
    background: transparent;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    letter-spacing: 0.3px;
}
.nav-btn:hover {
    color: var(--text);
    background: var(--border-light);
}
.nav-btn.active {
    color: var(--text);
    background: var(--text);
    color: #fff;
    font-weight: 500;
}
.nav-free-badge {
    display: inline-block;
    font-size: 9px;
    font-style: normal;
    font-weight: 600;
    color: #2E7D32;
    background: #E8F5E9;
    padding: 1px 4px;
    border-radius: 3px;
    margin-left: 3px;
    vertical-align: middle;
    line-height: 1.3;
}
.nav-btn.active .nav-free-badge {
    color: #fff;
    background: rgba(76, 175, 80, 0.6);
}
.nav-btn {
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text);
    padding: 4px;
}

/* ===== 页面容器 ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.page-content {
    padding-top: 100px;
    padding-bottom: 80px;
    min-height: calc(100vh - 60px);
}

/* ===== 页面标题 ===== */
.page-header {
    margin-bottom: 48px;
}
.page-title {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: var(--text);
    margin-bottom: 8px;
}
.page-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    font-weight: 400;
}

/* ===== 面包屑 ===== */
.breadcrumb {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 32px;
    display: flex;
    gap: 8px;
    align-items: center;
}
.breadcrumb a {
    color: var(--text-secondary);
    transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--text); }
.breadcrumb .sep {
    color: #ddd;
    font-size: 11px;
}

/* ===== 分类标题 ===== */
.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 24px;
}
.section-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.5px;
}
.section-count {
    font-size: 13px;
    color: var(--text-muted);
}

/* ===== 子分类标签 ===== */
.subcat-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}
.subcat-tab {
    padding: 7px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 450;
    color: #555;
    background: transparent;
    border: 1px solid #e0e0e0;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    letter-spacing: 0.3px;
}
.subcat-tab:hover {
    color: #111;
    background: #f5f5f5;
    border-color: #c0c0c0;
}
.subcat-tab.active {
    color: #fff;
    background: #111;
    border-color: #111;
    font-weight: 500;
}

/* ===== 卡片网格 ===== */
.grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 860px)  { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }

/* ===== 分类页卡片网格 ===== */
.resource-grid {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 14px !important;
}
@media (max-width: 1100px) { .resource-grid { grid-template-columns: repeat(4, 1fr) !important; } }
@media (max-width: 860px)  { .resource-grid { grid-template-columns: repeat(3, 1fr) !important; } }
@media (max-width: 640px)  { .resource-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; } }

.resource-card {
    background: var(--card);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
}
.resource-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: #d0d0d0;
}
.resource-card .card-cover {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f5f5f5;
}
.resource-card .card-cover.solid-cover {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 10px !important;
    height: 160px;
}
.resource-card .solid-cover-text {
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    text-shadow: 0 1px 6px rgba(0,0,0,0.5) !important;
    writing-mode: horizontal-tb !important;
    letter-spacing: 0 !important;
    word-break: break-all !important;
    text-align: center !important;
}
.resource-card .card-cover-img {
    width: 100% !important;
    height: 160px !important;
    object-fit: cover !important;
    display: block;
    transition: transform 0.4s ease;
}
.resource-card:hover .card-cover-img {
    transform: scale(1.05);
}
.resource-card .card-info {
    padding: 10px 10px 8px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}
.resource-card .card-title {
    font-size: 12px;
    font-weight: 500;
    color: var(--text);
    margin: 0 0 6px 0;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    word-break: break-all;
}
.resource-card .card-meta {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
.resource-card .card-coin {
    font-size: 12px;
    color: #ff9500;
    font-weight: 600;
}
.resource-card .card-coin.card-coin-free {
    color: #2E7D32;
}
.resource-card .free-tag {
    color: #2E7D32;
    font-size: 11px;
    font-weight: 600;
    margin-left: 2px;
}

/* ===== 资源卡片 ===== */
.card {
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
    display: block;
    box-shadow: var(--shadow);
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: #e0e0e0;
}

.card-cover-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
}
.card-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.card:hover .card-cover {
    transform: scale(1.05);
}

/* 纯色封面 */
.solid-cover {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px;
}
.solid-cover-text {
    color: #fff;
    font-size: clamp(18px, 5vw, 28px);
    font-weight: 800;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
    writing-mode: vertical-rl;
    letter-spacing: 0.15em;
    text-align: center;
}

/* 卡片封面图片 */
.card-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card:hover .card-cover-img {
    transform: scale(1.05);
}

.card-info {
    padding: 16px;
}
.card-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: -0.2px;
}
.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.card-coin {
    font-size: 13px;
    font-weight: 600;
    color: #B8860B;
}
.card-coin-free {
    color: #2E7D32;
}
.free-tag {
    color: #2E7D32;
    font-size: 13px;
    font-weight: 600;
    margin-left: 4px;
}
.card-price {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.3px;
}
.card-tag {
    font-size: 11px;
    color: var(--text-muted);
    background: var(--border-light);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 450;
}

/* ===== 详情页 ===== */
.detail-wrapper {
    max-width: 650px;
    margin: 0 auto;
}

.detail-layout {
    display: flex;
    gap: 0;
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 355px;
}

.detail-left {
    flex: 0 0 250px;
    min-width: 0;
    overflow: hidden;
    display: flex;
}
.detail-cover {
    width: 250px;
    height: 355px;
    display: block;
    position: relative;
    overflow: hidden;
}
.solid-cover-detail {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 14px;
    width: 250px;
    height: 355px;
}
.detail-cover-img {
    width: 250px;
    height: 355px;
    object-fit: contain;
    display: block;
}
.solid-cover-text-detail {
    color: #fff;
    font-size: clamp(11px, 1.8vw, 13px);
    font-weight: 700;
    line-height: 1.4;
    text-shadow: 0 2px 14px rgba(0,0,0,0.5);
    writing-mode: horizontal-tb;
    letter-spacing: 0.02em;
    text-align: center;
    word-break: break-all;
}

.detail-right {
    flex: 1;
    padding: 12px 14px 10px 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .detail-layout {
        height: auto !important;
        flex-direction: column !important;
    }
    .detail-left {
        flex: none !important;
        width: 100% !important;
    }
    .detail-cover {
        min-height: auto !important;
        aspect-ratio: 3/4 !important;
    }
    .detail-right {
        padding: 16px !important;
        overflow: visible !important;
    }
    .detail-title {
        font-size: 18px !important;
        -webkit-line-clamp: unset !important;
        display: block !important;
    }
    .detail-desc {
        -webkit-line-clamp: unset !important;
        display: block !important;
        overflow: visible !important;
    }
    .pay-lock {
        padding: 16px !important;
    }
    .pay-lock p {
        font-size: 13px !important;
    }
    .btn-buy {
        padding: 10px 24px !important;
        font-size: 14px !important;
    }
    .coin-pay-box {
        margin-bottom: 12px !important;
    }
    .pan-section {
        margin-top: 16px !important;
        padding-top: 12px !important;
    }
    .pan-buttons {
        justify-content: center !important;
    }
    .pan-btn {
        padding: 8px 16px !important;
        font-size: 13px !important;
    }
    .detail-guide-outside {
        margin-top: 16px !important;
        padding: 0 16px !important;
    }
    .detail-guide-outside-content {
        font-size: 13px !important;
        line-height: 1.7 !important;
    }
    .btn-recharge {
        display: block !important;
        text-align: center !important;
        padding: 12px 24px !important;
        font-size: 14px !important;
    }
}

.detail-category {
    display: inline-block;
    font-size: 9px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.2px;
    margin-bottom: 2px;
}

.detail-title {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.1px;
    color: var(--text);
    margin-bottom: 4px;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-all;
}

.detail-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
    letter-spacing: -0.3px;
}

.detail-desc {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 6px;
    white-space: pre-wrap;
    flex-shrink: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ===== 游戏攻略 ===== */
.detail-guide {
    background: #f8f8f8;
    border-radius: var(--radius-sm);
    padding: 8px;
    margin-bottom: 6px;
    border: 1px solid var(--border);
    flex-shrink: 0;
    overflow: hidden;
}

.detail-guide-title {
    font-size: 10px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 3px;
    padding-bottom: 3px;
    border-bottom: 1px solid var(--border);
}

.detail-guide-content {
    font-size: 10px;
    color: var(--text-secondary);
    line-height: 1.5;
    white-space: pre-wrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.detail-guide-content p {
    margin-bottom: 3px;
}

.detail-guide-content p:last-child {
    margin-bottom: 0;
}

/* ===== 攻略栏（详情页外部） ===== */
.detail-guide-outside {
    max-width: 650px;
    margin: 20px auto 0;
    padding: 0;
}
.detail-guide-outside-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
.detail-guide-outside-content {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    word-break: break-word;
    overflow-wrap: break-word;
    word-wrap: break-word;
    white-space: normal;
    overflow: hidden;
}
.detail-guide-outside-content p {
    margin-bottom: 12px;
}
.detail-guide-outside-content p:last-child {
    margin-bottom: 0;
}

/* 攻略栏图片固定尺寸 */
.detail-guide-outside-content img,
.detail-guide-content img {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
    margin: 8px 0;
    border-radius: 6px;
}

/* ===== 网盘区域 ===== */
.pan-section {
    border-top: 1px solid var(--border);
    padding-top: 8px;
    margin-top: auto;
}
.pan-section-title {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 6px;
}
.pan-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.pan-btn {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 500;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
}
.pan-btn:hover {
    background: var(--text);
    color: #fff;
    border-color: var(--text);
    transform: translateY(-1px);
}

.pay-lock {
    padding: 8px 8px;
    text-align: center;
    background: var(--border-light);
    border-radius: var(--radius-sm);
    border: 1px dashed var(--border);
}
.pay-lock p {
    font-size: 10px;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.btn-buy {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 5px 14px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    background: var(--text);
    border: 1px solid var(--text);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}
.btn-buy:hover {
    background: #333;
    border-color: #333;
    transform: translateY(-1px);
}
.pay-btns {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
}
.btn-alipay {
    background: #1677FF;
    border-color: #1677FF;
}
.btn-alipay:hover {
    background: #0958d9;
    border-color: #0958d9;
}
.btn-wxpay {
    background: #07C160;
    border-color: #07C160;
}
.btn-wxpay:hover {
    background: #06ad56;
    border-color: #06ad56;
}

/* ===== 网盘弹窗 ===== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background: var(--card);
    border-radius: var(--radius);
    width: 100%;
    max-width: 420px;
    padding: 32px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15);
    transform: scale(0.96) translateY(10px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border);
}
.modal-overlay.show .modal-box {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
    transition: color 0.2s;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.modal-close:hover {
    color: var(--text);
    background: var(--border-light);
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text);
    letter-spacing: -0.3px;
}
.modal-info-row {
    margin-bottom: 16px;
}
.modal-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
    font-weight: 500;
}
.modal-value {
    font-size: 14px;
    color: var(--text);
    word-break: break-all;
    background: var(--bg);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    font-family: "SF Mono", Monaco, "Cascadia Code", monospace;
    line-height: 1.5;
}

.modal-copy-all {
    display: block;
    width: 100%;
    padding: 14px;
    margin-top: 24px;
    background: var(--text);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    letter-spacing: 0.3px;
}
.modal-copy-all:hover {
    background: #333;
    transform: translateY(-1px);
}

/* ===== 导航栏搜索 & 用户区 ===== */
.nav-search {
    margin-left: auto;
}
.nav-search form {
    display: flex;
    gap: 6px;
}
.nav-search input {
    width: 160px;
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    background: var(--bg);
    color: var(--text);
    outline: none;
    transition: var(--transition);
}
.nav-search input:focus {
    border-color: #aaa;
    width: 200px;
}
.nav-search button {
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--card);
    cursor: pointer;
    font-size: 13px;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 16px;
}
.user-coins {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: #FFF8E7;
    border: 1px solid #F5D06B;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #B8860B;
    cursor: pointer;
    transition: var(--transition);
}
.user-coins:hover {
    background: #FFF1CC;
}
.coin-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #F5A623;
    border-radius: 50%;
}
.user-name {
    font-size: 13px;
    color: var(--text-secondary);
}
.user-logout {
    font-size: 12px;
    color: var(--text-muted);
}
.user-logout:hover {
    color: var(--text);
}
.user-login {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 5px 14px;
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: var(--transition);
}
.user-login:hover {
    border-color: var(--text);
    color: var(--text);
}

/* ===== 金币支付 ===== */
.coin-tag {
    display: inline-block;
    padding: 4px 16px;
    background: #FFF8E7;
    border: 1px solid #F5D06B;
    border-radius: 6px;
    font-size: 22px;
    font-weight: 700;
    color: #B8860B;
}
.coin-tag-free {
    background: #E8F5E9;
    border-color: #4CAF50;
    color: #2E7D32;
}
.original-price {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 10px;
}
.coin-pay-box {
    margin-bottom: 16px;
}
.btn-coin {
    background: #F5A623 !important;
    border-color: #F5A623 !important;
}
.btn-coin:hover {
    background: #E6951A !important;
    border-color: #E6951A !important;
}
.btn-recharge {
    background: #4a90d9 !important;
    border-color: #4a90d9 !important;
}
.btn-recharge:hover {
    background: #357abd !important;
    border-color: #357abd !important;
}

/* ===== 分页 ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 40px;
    padding: 20px 0;
}
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border-radius: 8px;
    font-size: 14px;
    color: #555;
    background: #fff;
    border: 1px solid #e0e0e0;
    text-decoration: none;
    transition: all 0.2s ease;
}
.pagination a:hover {
    color: #111;
    border-color: #111;
    background: #f5f5f5;
}
.pagination .current {
    color: #fff;
    background: #111;
    border-color: #111;
    font-weight: 600;
}
.pagination .page-info {
    border: none;
    background: transparent;
    color: #999;
    font-size: 13px;
    margin-left: 8px;
    min-width: auto;
    padding: 0 4px;
}
.pagination .page-jump {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: none;
    background: transparent;
    font-size: 13px;
    color: #999;
    min-width: auto;
    padding: 0;
    margin-left: 4px;
}
.pagination .page-jump input {
    width: 50px;
    height: 32px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    text-align: center;
    font-size: 13px;
    color: #111;
    outline: none;
    background: #fff;
}
.pagination .page-jump input:focus {
    border-color: #111;
}
.pagination .page-jump button {
    height: 32px;
    padding: 0 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fff;
    color: #555;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.pagination .page-jump button:hover {
    background: #111;
    color: #fff;
    border-color: #111;
}

/* ===== 底部 ===== */
.site-footer {
    background: var(--card);
    border-top: 1px solid var(--border);
    padding: 30px 24px;
    text-align: center;
}
.footer-inner {
    max-width: 600px;
    margin: 0 auto;
}
.footer-links {
    margin-bottom: 10px;
}
.footer-links a {
    font-size: 13px;
    color: var(--text-secondary);
    transition: color 0.2s;
}
.footer-links a:hover {
    color: var(--text);
}
.footer-sep {
    margin: 0 12px;
    color: var(--border);
}
.footer-text {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}

/* ===== 空状态 ===== */
.empty-state {
    text-align: center;
    padding: 100px 20px;
}
.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.3;
}
.empty-state-text {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 400;
}
.empty-state-sub {
    font-size: 13px;
    color: #bbb;
    margin-top: 6px;
}

/* ===== 首页 Hero 搜索区 ===== */
.hero-search {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 60px - 80px);
    text-align: center;
    padding: 60px 20px 50px;
}
.hero-logo-wrap {
    margin-bottom: 20px;
    animation: heroFadeIn 0.6s ease;
}
.hero-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10), 0 0 0 4px rgba(255,255,255,0.8);
    transition: transform 0.3s ease;
}
.hero-logo:hover {
    transform: scale(1.05);
}
.hero-title {
    font-size: 38px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 2px;
    margin-bottom: 10px;
    animation: heroFadeIn 0.6s ease 0.1s both;
}
.hero-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 36px;
    font-weight: 400;
    letter-spacing: 0.5px;
    animation: heroFadeIn 0.6s ease 0.2s both;
}
.hero-form {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 580px;
    gap: 0;
    border: 1.5px solid var(--border);
    border-radius: 28px;
    background: var(--card);
    padding: 5px 5px 5px 18px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    animation: heroFadeIn 0.6s ease 0.3s both;
}
.hero-form:focus-within {
    box-shadow: 0 8px 32px rgba(0,0,0,0.10);
    border-color: #c0c0c0;
}
.hero-form-icon {
    font-size: 16px;
    opacity: 0.4;
    margin-right: 8px;
    flex-shrink: 0;
}
.hero-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 13px 0;
    font-size: 15px;
    color: var(--text);
    outline: none;
}
.hero-input::placeholder {
    color: #bbb;
}
.hero-btn {
    padding: 12px 36px;
    border-radius: 24px;
    border: none;
    background: var(--text);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 1px;
    flex-shrink: 0;
}
.hero-btn:hover {
    background: #333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.hero-stats {
    margin-top: 28px;
    display: flex;
    align-items: baseline;
    gap: 6px;
    animation: heroFadeIn 0.6s ease 0.5s both;
}
.hero-stat-num {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.5px;
}
.hero-stat-label {
    font-size: 13px;
    color: var(--text-muted);
}
@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===== 响应式 ===== */

/* ===== 相关推荐 ===== */
.related-section {
    max-width: 1200px;
    margin: 48px auto 0;
    padding: 0 24px;
}
.related-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}
.related-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: var(--card);
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
}
.related-card:hover {
    border-color: #ddd;
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}
.related-card-cover {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--border-light);
}
.related-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.related-card:hover .related-card-cover img {
    transform: scale(1.05);
}
.related-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #999;
    text-align: center;
    padding: 8px;
    word-break: break-all;
}
.related-card-info {
    padding: 8px 10px;
}
.related-card-name {
    font-size: 12px;
    color: var(--text);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 4px;
}
.related-card-meta {
    font-size: 11px;
    color: var(--text-muted);
}

@media (max-width: 1000px) {
    .related-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
    .related-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .related-section { margin-top: 32px; padding: 0 16px; }
    .related-title { font-size: 16px; margin-bottom: 14px; }
    .related-card-name { font-size: 11px; }
}

@media (max-width: 1000px) {
    .nav-toggle { display: block; }
    .nav-menu {
        position: fixed;
        top: 60px; left: 0; right: 0;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 12px 20px;
        gap: 2px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.06);
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        pointer-events: none;
        border-bottom: 1px solid var(--border);
    }
    .nav-menu.show {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    .nav-btn {
        width: 100%;
        text-align: left;
        padding: 12px 16px;
        border-radius: var(--radius-sm);
    }
}

@media (max-width: 768px) {
    .page-content { padding-top: 80px; }
    .page-title { font-size: 22px; }

    .nav-search input { width: 120px; }
    .nav-search input:focus { width: 140px; }
    .nav-user { gap: 8px; margin-left: 8px; }
    .user-name { display: none; }

    .modal-box { padding: 24px; }

    .hero-search { padding: 40px 16px 30px; }
    .hero-title { font-size: 28px; letter-spacing: 1px; }
    .hero-subtitle { font-size: 13px; margin-bottom: 28px; }
    .hero-form { max-width: 92%; padding: 4px 4px 4px 14px; }
    .hero-input { padding: 11px 0; font-size: 14px; }
    .hero-btn { padding: 10px 24px; font-size: 13px; }
    .hero-logo { width: 64px; height: 64px; }
    .hero-logo-wrap { margin-bottom: 16px; }
    .hero-stat-num { font-size: 17px; }
    .hero-stat-label { font-size: 12px; }
    .home-section { margin-bottom: 36px; }
    .home-section-title { font-size: 16px; }
}

/* === 首页热门搜索 === */
.hot-keywords {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    align-items: center;
    animation: heroFadeIn 0.6s ease 0.4s both;
}
.hot-keywords .hot-label {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-right: 4px;
}
.hot-keywords a {
    color: #666;
    text-decoration: none;
    padding: 5px 14px;
    border-radius: 16px;
    background: #f5f5f5;
    transition: all 0.2s;
    font-size: 13px;
    border: 1px solid transparent;
}
.hot-keywords a:hover {
    color: var(--text);
    background: #fff;
    border-color: #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* === 首页区块 === */
.home-section {
    margin-bottom: 50px;
}
.home-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}
.home-section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.3px;
}
.home-section-bar {
    display: inline-block;
    width: 4px;
    height: 18px;
    background: var(--text);
    border-radius: 2px;
    flex-shrink: 0;
}
.home-section-more {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
    letter-spacing: 0.3px;
}
.home-section-more:hover {
    color: var(--text);
}

/* ===== 首页分类导航 ===== */
.cat-nav-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}
.cat-nav-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 28px 12px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
    text-align: center;
}
.cat-nav-card:hover {
    border-color: var(--text);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}
.cat-nav-icon {
    font-size: 32px;
    line-height: 1;
}
.cat-nav-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.5px;
}
.cat-nav-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}
.cat-sub-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 16px 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}
.cat-sub-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    padding-right: 10px;
    border-right: 2px solid var(--border);
    flex-shrink: 0;
}
.cat-sub-tag {
    display: inline-block;
    padding: 5px 16px;
    font-size: 13px;
    color: var(--text-secondary);
    background: var(--border-light);
    border-radius: 20px;
    transition: var(--transition);
    white-space: nowrap;
}
.cat-sub-tag:hover {
    color: var(--card);
    background: var(--text);
}

@media (max-width: 768px) {
    .cat-nav-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    .cat-nav-card {
        padding: 20px 8px;
    }
    .cat-nav-icon {
        font-size: 26px;
    }
    .cat-nav-name {
        font-size: 13px;
    }
    .cat-nav-desc {
        font-size: 11px;
    }
    .cat-sub-row {
        padding: 12px 14px;
        gap: 8px;
    }
    .cat-sub-tag {
        padding: 4px 12px;
        font-size: 12px;
    }
}
