/* ========== 全局重置与基础 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #e6edf3;
    color: #333;
    line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
svg { width: 20px; height: 20px; }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ========== 通用按钮组件 ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 18px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    font-weight: 400;
    font-family: inherit;
}
.btn-primary { background: #3b82f6; color: #fff; }
.btn-primary:hover { background: #2563eb; }
.btn-outline {
    background: transparent;
    color: #3b82f6;
    border: 1px solid #3b82f6;
}
.btn-outline:hover { background: #eff6ff; }
.btn-block { width: 100%; }
.btn-large { padding: 14px 24px; font-size: 16px; }

/* ========== 顶部导航栏 ========== */
.site-header {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 600;
    color: #3b82f6;
}
.logo-icon { width: 24px; height: 24px; }
.nav-menu { display: flex; gap: 30px; align-items: center; }
.nav-link {
    color: #555;
    cursor: pointer;
    padding: 20px 0;
    font-size: 15px;
}
.nav-link:hover, .nav-link.active { color: #3b82f6; }
.user-name { margin-right: 10px; color: #666; font-size: 14px; }

/* 导航下拉菜单 */
.nav-dropdown { position: relative; cursor: pointer; }
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 140px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 8px 0;
    display: none;
    z-index: 200;
}
.nav-dropdown.open .dropdown-menu { display: block; }
.dropdown-menu a {
    display: block;
    padding: 8px 16px;
    color: #555;
    font-size: 14px;
}
.dropdown-menu a:hover {
    background: #f3f4f6;
    color: #3b82f6;
}

/* ========== 首页首屏横幅 ========== */
.hero-banner {
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    color: #fff;
    padding: 60px 0 80px;
    text-align: center;
}
.hero-title { font-size: 36px; margin-bottom: 12px; }
.hero-subtitle { font-size: 16px; opacity: 0.9; margin-bottom: 32px; }

.search-box {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.search-icon {
    width: 20px;
    height: 20px;
    color: #999;
    margin-left: 12px;
    flex-shrink: 0;
}
.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    padding: 10px 0;
    background: transparent;
    color: #333;
    font-family: inherit;
}
.btn-search { padding: 12px 30px; border-radius: 8px; font-size: 15px; }

.hot-tags { margin-top: 24px; }
.tag-label { opacity: 0.9; margin-right: 8px; }
.tag-item {
    display: inline-block;
    padding: 5px 14px;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    margin: 0 4px;
    font-size: 14px;
    transition: background 0.2s;
}
.tag-item:hover { background: rgba(255,255,255,0.3); }

/* ========== 通用区块 ========== */
.section { padding: 40px 0; }
.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    margin-bottom: 20px;
    color: #111;
    font-weight: 600;
}
.title-icon { color: #3b82f6; width: 22px; height: 22px; }

/* ========== 首页分类网格 ========== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}
.category-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
    display: block;
}
.category-card:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59,130,246,0.1);
}
.cat-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    background: #eff6ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
}
.cat-icon svg { width: 24px; height: 24px; }
.cat-name { font-size: 15px; color: #333; }

/* ========== 资源列表 ========== */
.resource-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.resource-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
}
.resource-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59,130,246,0.08);
}
.resource-icon {
    width: 40px;
    height: 40px;
    background: #eff6ff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    flex-shrink: 0;
}
.resource-cover {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f3f4f6;
}
.resource-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.resource-info { flex: 1; min-width: 0; }
.resource-title {
    font-size: 16px;
    font-weight: 500;
    color: #111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.resource-meta {
    display: flex;
    gap: 12px;
    margin-top: 6px;
    font-size: 13px;
    color: #999;
}
.meta-tag {
    padding: 2px 8px;
    background: #f3f4f6;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
}
.resource-views {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #999;
    font-size: 14px;
    flex-shrink: 0;
}
.resource-views svg { width: 16px; height: 16px; }

/* ========== 分类页横幅 ========== */
.category-banner {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: #fff;
    padding: 40px 0;
}
.cat-banner-inner {
    display: flex;
    align-items: center;
    gap: 20px;
}
.cat-banner-icon {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.cat-banner-icon svg { width: 40px; height: 40px; }
.cat-banner-info h1 { font-size: 32px; margin-bottom: 4px; }
.cat-banner-info p { opacity: 0.85; }
.cat-count {
    margin-left: auto;
    background: rgba(255,255,255,0.2);
    padding: 8px 20px;
    border-radius: 8px;
    flex-shrink: 0;
}

/* Tab标签栏 */
.tab-bar {
    display: flex;
    gap: 8px;
    padding: 20px 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.tab-bar::-webkit-scrollbar { display: none; }
.tab-item {
    padding: 8px 18px;
    border-radius: 8px;
    color: #666;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s;
}
.tab-item.active {
    background: #eff6ff;
    color: #3b82f6;
    font-weight: 500;
}
.tab-item:hover { color: #3b82f6; }

/* ========== 分页组件 ========== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    flex-wrap: wrap;
}
.page-btn {
    padding: 8px 14px;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    color: #555;
    min-width: 36px;
    text-align: center;
}
.page-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}
.page-btn.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
}
.page-info, .page-dots {
    color: #888;
    font-size: 14px;
    padding: 0 8px;
}

/* 空状态 */
.empty-tip {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

/* ========== 通用表单 ========== */
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: #555;
    font-weight: 500;
}
.form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    background: #fff;
    font-family: inherit;
}
.form-input:focus { border-color: #3b82f6; }
textarea.form-input { resize: vertical; min-height: 80px; }
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-tip {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

/* 提示框 */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}
.alert-success { background: #dcfce7; color: #166534; }
.alert-error { background: #fee2e2; color: #991b1b; }

/* ========== 登录注册页 ========== */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 60px - 60px);
    padding: 40px 20px;
}
.auth-box {
    width: 380px;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.auth-box h2 {
    text-align: center;
    margin-bottom: 24px;
    color: #333;
    font-size: 22px;
}
.auth-tip {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    color: #888;
}
.auth-tip a { color: #3b82f6; }

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #f1f5f9;
}
.login-box {
    width: 380px;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.login-box h2 {
    text-align: center;
    margin-bottom: 24px;
    color: #333;
}

/* ========== 详情页整体 ========== */
.detail-container {
    padding: 24px 20px;
    max-width: 900px;
    margin: 0 auto;
}

/* 外层加深背景，突出白色内容卡 */
.detail-content-card {
    background: #ffffff;
    border: 2px solid #dfe3e8;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
}

/* 顶部标题信息区，放进边框内 */
.detail-header-box {
    background: #fafbfc;
    border: 1px solid #eef1f5;
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 24px;
}

.back-link {
    display: inline-block;
    color: #6b7280;
    margin-bottom: 14px;
    font-size: 14px;
    text-decoration: none;
}

.back-link:hover {
    color: #3b82f6;
}

.detail-title {
    font-size: 25px;
    margin-bottom: 12px;
    line-height: 1.45;
    color: #111827;
    font-weight: 700;
}

.detail-meta {
    display: flex;
    gap: 16px;
    color: #9ca3af;
    font-size: 14px;
    flex-wrap: wrap;
}

.detail-meta .meta-tag {
    padding: 2px 10px;
    background: #eef2ff;
    color: #4f46e5;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

/* ========== 描述卡片 ========== */
.detail-desc-card {
    background: #f9fafb;
    border: 1px solid #eef0f3;
    border-radius: 14px;
    padding: 22px 24px;
    margin-bottom: 24px;
}

.desc-title {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
}

.desc-content {
    color: #374151;
    line-height: 1.85;
    font-size: 14.5px;
    white-space: pre-wrap;
    word-break: break-word;
}

/* ========== 网盘信息卡片 ========== */
.pan-card {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(59, 130, 246, 0.22);
}

.pan-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.12);
}

.pan-type-row {
    display: flex;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.pan-label {
    opacity: 0.85;
}

.pan-value {
    font-weight: 500;
}

.qrcode-box {
    text-align: center;
    padding: 24px;
}

.qrcode-img {
    width: 160px;
    height: 160px;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    display: inline-block;
}

.qrcode-tip {
    margin-top: 12px;
    font-size: 14px;
    opacity: 0.9;
}

.pan-code {
    text-align: center;
    padding: 0 24px 20px;
    font-size: 14px;
    opacity: 0.95;
}

.pan-code strong {
    font-size: 16px;
}

/* ========== 轮播图 ========== */
.swiper-container {
    position: relative;
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    background: #f3f4f6;
    margin-bottom: 24px;
    user-select: none;
    border: 1px solid #eef0f3;
}

.swiper-wrapper {
    position: relative;
    width: 100%;
    height: 420px;
}

.swiper-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide.active {
    opacity: 1;
    z-index: 2;
}

.swiper-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    background: #ffffff;
    pointer-events: none;
}

.swiper-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s;
}

.swiper-btn:hover {
    background: rgba(0, 0, 0, 0.65);
}

.swiper-btn svg {
    width: 18px;
    height: 18px;
}

.swiper-prev {
    left: 14px;
}

.swiper-next {
    right: 14px;
}

.swiper-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 7px;
    z-index: 10;
}

.swiper-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.2s;
}

.swiper-dot.active {
    background: #fff;
    width: 22px;
    border-radius: 5px;
}

/* ========== 移动端适配 ========== */
@media (max-width: 768px) {
    .detail-container {
        padding: 16px;
    }

    .detail-content-card {
        padding: 16px;
        border-width: 1px;
        border-radius: 14px;
    }

    .detail-header-box {
        padding: 14px 16px;
    }

    .detail-title {
        font-size: 21px;
    }

    .swiper-wrapper {
        height: 260px;
    }

    .swiper-btn {
        width: 34px;
        height: 34px;
    }

    .swiper-prev {
        left: 10px;
    }

    .swiper-next {
        right: 10px;
    }

    .detail-desc-card {
        padding: 16px;
    }

    .desc-content {
        font-size: 14px;
        line-height: 1.8;
    }
}
}

/* ========== 后台管理布局 ========== */
.admin-page { background: #f8fafc; }
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 220px;
    background: #1e293b;
    color: #fff;
    padding: 20px 0;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}
.admin-logo {
    padding: 0 20px 20px;
    font-size: 18px;
    border-bottom: 1px solid #334155;
    margin-bottom: 10px;
    font-weight: 600;
}
.admin-nav {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.admin-nav .nav-item {
    padding: 12px 20px;
    color: #cbd5e1;
    cursor: pointer;
    display: block;
    transition: all 0.2s;
    font-size: 14px;
}
.admin-nav .nav-item:hover,
.admin-nav .nav-item.active {
    background: #334155;
    color: #fff;
}
.admin-nav .nav-item.logout {
    margin-top: auto;
    color: #f87171;
}
.admin-nav .nav-item.logout:hover {
    background: #7f1d1d;
    color: #fff;
}

.admin-main {
    flex: 1;
    padding: 24px;
    overflow-x: auto;
}
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.admin-header h1 {
    font-size: 22px;
    color: #1e293b;
}

.search-bar {
    background: #fff;
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    display: flex;
    gap: 10px;
}
.search-bar form {
    display: flex;
    gap: 10px;
    flex: 1;
}
.search-bar .form-input { max-width: 300px; }

/* 后台表格 */
.admin-table {
    width: 100%;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border-collapse: collapse;
}
.admin-table th,
.admin-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
}
.admin-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #475569;
}
.admin-table tr:hover { background: #f8fafc; }
.title-cell {
    max-width: 400px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.actions .btn-link {
    margin-right: 12px;
    color: #3b82f6;
    cursor: pointer;
    font-size: 14px;
}
.actions .btn-link.danger { color: #ef4444; }
.actions .btn-link:hover { text-decoration: underline; }

.status-ok { color: #16a34a; }
.status-no { color: #dc2626; }

.admin-form {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    max-width: 800px;
}

/* 后台图片管理 */
.image-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.image-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #fff;
}
.image-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    display: block;
}
.image-del {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 12px;
    cursor: pointer;
}

/* 设置页面 */
.settings-form {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    max-width: 700px;
}
.setting-item { margin-bottom: 20px; }
.setting-item label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}
.switch-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}
.switch-wrap input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* ========== 底部 ========== */
.site-footer {
    background: #fff;
    padding: 20px 0;
    text-align: center;
    color: #999;
    font-size: 13px;
    border-top: 1px solid #eee;
    margin-top: 40px;
}

/* ========== 响应式适配 ========== */
@media (max-width: 992px) {
    .category-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
    .nav-menu { display: none; }
    .hero-banner { padding: 40px 0 50px; }
    .hero-title { font-size: 26px; }
    .hero-subtitle { font-size: 14px; }
    
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    .category-card { padding: 16px 10px; }
    .cat-icon { width: 40px; height: 40px; }
    .cat-icon svg { width: 20px; height: 20px; }
    .cat-name { font-size: 13px; }
    
    .resource-item { padding: 14px; gap: 12px; }
    .resource-title { font-size: 15px; }
    .resource-cover { width: 50px; height: 50px; }
    
    .cat-banner-inner { flex-direction: column; text-align: center; }
    .cat-count { margin: 10px 0 0; }
    .cat-banner-info h1 { font-size: 24px; }
    .cat-banner-icon { width: 60px; height: 60px; }
    .cat-banner-icon svg { width: 30px; height: 30px; }
    
    .detail-title { font-size: 20px; }
    
    /* 轮播移动端 */
    .swiper-wrapper { height: 260px; }
    .swiper-btn { width: 34px; height: 34px; }
    .swiper-prev { left: 10px; }
    .swiper-next { right: 10px; }
    
    /* 描述卡片移动端 */
    .detail-desc-card { padding: 16px; }
    .desc-content { font-size: 14px; line-height: 1.8; }
    
    .form-row { grid-template-columns: 1fr; }
    
    /* 后台移动端 */
    .admin-sidebar { width: 60px; }
    .admin-logo { display: none; }
    .admin-nav .nav-item {
        text-align: center;
        padding: 12px 8px;
        font-size: 12px;
    }
    .admin-main { padding: 16px; }
    .admin-table { font-size: 12px; }
    .title-cell { max-width: 150px; }
    .admin-form { padding: 20px; }
    
    .image-list { grid-template-columns: repeat(2, 1fr); }
    
    .auth-box, .login-box {
        width: 100%;
        max-width: 360px;
    }
}

@media (max-width: 480px) {
    .category-grid { grid-template-columns: repeat(3, 1fr); }
    .search-box { flex-wrap: wrap; }
    .btn-search { width: 100%; }
    .hero-title { font-size: 22px; }
    .hero-subtitle { font-size: 14px; }
}
.detail-top-ad {
    margin-bottom: 24px;
}
.detail-top-ad img {
    width: 100%;
    border-radius: 10px;
    display: block;
}
/* 移动端热门分类标签自动换行，解决错位 */
.hot-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    margin-top:24px;
}
.hot-tags .tag-label {
    white-space: nowrap;
}
.tag-item {
    padding:6px 14px;
    border-radius:20px;
}

/* 移动端导航栏基础适配，防止顶部布局塌陷 */
@media (max-width:768px){
    .header-inner {
        padding:0 16px;
    }
    .logo {
        font-size:18px;
    }
    .btn {
        padding:8px 12px;
        font-size:13px;
    }
}
.hamburger {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}
@media (max-width:768px){
    .header-inner {
        position: relative;
    }
    .nav-menu {
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        padding: 16px 20px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        display: none;
        z-index: 99;
    }
    .nav-menu.show {
        display: flex;
    }
    .hamburger {
        display: block;
    }
}
.hot-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px 14px;
    margin-top: 28px;
}
.hot-tags .tag-label {
    white-space: nowrap;
    font-size: 16px;
}
.tag-item {
    padding: 8px 18px;
    border-radius: 24px;
    background: rgba(255,255,255,0.2);
    color: #fff;
    text-decoration: none;
    transition: 0.2s;
}
.tag-item:hover {
    background: rgba(255,255,255,0.35);
}
.pan-card {
    background: #3478e8;
    border-radius: 14px;
    overflow: hidden;
    color: #fff;
    margin-top:24px;
}
.pan-header {
    display:flex;
    align-items:center;
    gap:8px;
    padding:14px 20px;
    font-size:17px;
    font-weight:500;
    background: #2b68d0;
}
.pan-type-row {
    display:flex;
    justify-content:space-between;
    padding:20px 20px 10px;
    font-size:17px;
}
.qrcode-box {
    text-align:center;
    padding:10px 20px 16px;
}
.qrcode-img {
    width:140px;
    background:#fff;
    padding:12px;
    border-radius:12px;
}
.qrcode-tip {
    margin-top:10px;
    font-size:14px;
    opacity:0.92;
}
.pan-link-btn {
    display:block;
    width:calc(100% - 40px);
    margin:18px 20px 16px;
    text-align:center;
    padding:12px;
    border:2px solid #fff;
    background:#fff;
    color:#3478e8;
    border-radius:10px;
    text-decoration:none;
    font-weight:500;
    font-size:16px;
    box-sizing:border-box;
}
.pan-link-btn:hover {
    background:#f7faff;
}
.text-mobile {
    display:none;
}
@media (max-width:768px){
    .qrcode-box {
        display:none !important;
    }
    .text-pc {
        display:none;
    }
    .text-mobile {
        display:inline;
    }
}
/* 二维码弹窗样式 */
.qrcode-modal {
    display: none;
    position: fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    z-index:999;
}
.qrcode-modal.show {
    display:block;
}
.modal-mask {
    position:absolute;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.55);
}
.modal-box {
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    background: linear-gradient(180deg,#6382f0,#9078e8);
    border-radius:14px;
    padding:36px 28px;
    text-align:center;
    min-width:280px;
}
.modal-close {
    position:absolute;
    top:16px;
    right:18px;
    font-size:26px;
    color:#fff;
    cursor:pointer;
    user-select:none;
}
.modal-title {
    color:#fff;
    font-size:24px;
    margin:0 0 24px;
}
.modal-qrcode-wrap {
    background:#fff;
    display:inline-block;
    padding:16px;
    border-radius:10px;
}
.modal-qrcode-wrap img {
    width:160px;
    height:160px;
    display:block;
}
.modal-tip {
    color:#fff;
    margin-top:16px;
    font-size:14px;
}