/* ============================================
   爱盘搜索 - aipans原版UI风格
   ============================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: #f8f9fa;
    color: #333;
    line-height: 1.6;
    font-size: 14px;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
.hidden { display: none !important; }

/* ===== 顶部 ===== */
.site-header-v2 {
    padding: 30px 20px 10px;
    text-align: center;
}
.header-top {
    max-width: 1200px;
    margin: 0 auto;
    text-align: right;
    padding-right: 10px;
}
.join-group {
    font-size: 14px;
    color: #666;
}
.join-group:hover { color: #2932E1; }

.header-center {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0 30px;
}
.logo-v2 {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.logo-icon-v2 {
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo-text-v2 {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, #2932E1 0%, #9333ea 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}
.logo-subtitle {
    color: #999;
    font-size: 14px;
    margin-bottom: 28px;
}

/* 搜索框 */
.search-box-v2 {
    max-width: 560px;
    margin: 0 auto;
}
.search-box-v2 form {
    display: flex;
    background: #fff;
    border-radius: 50px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    border: 1px solid #eee;
}
.search-input-v2 {
    flex: 1;
    border: none;
    outline: none;
    padding: 16px 24px;
    font-size: 15px;
    background: transparent;
    color: #333;
}
.search-input-v2::placeholder { color: #bbb; }
.search-btn-v2 {
    border: none;
    background: transparent;
    color: #2932E1;
    padding: 0 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}
.search-btn-v2:hover { color: #9333ea; }

/* ===== 主内容 ===== */
.site-main-v2 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px 40px;
}

/* ===== 每日更新卡片 ===== */
.daily-card {
    background: #fff;
    border-radius: 14px;
    padding: 24px 28px 20px;
    margin-bottom: 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.daily-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 10px;
}
.daily-title-group {
    display: flex;
    align-items: baseline;
    gap: 12px;
}
.daily-title {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, #2932E1, #9333ea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.daily-time {
    font-size: 13px;
    color: #aaa;
}
.daily-tabs {
    display: flex;
    gap: 0;
    background: #f5f5f5;
    border-radius: 20px;
    padding: 3px;
}
.daily-tab {
    border: none;
    background: transparent;
    padding: 6px 18px;
    border-radius: 18px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}
.daily-tab.active {
    background: linear-gradient(135deg, #2932E1, #ec4899);
    color: #fff;
    font-weight: 600;
}

/* 每日更新列表 */
.daily-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 30px;
}
.daily-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 0;
    border-bottom: 1px solid #f8f8f8;
    font-size: 14px;
    color: #1e40af;
    transition: color 0.15s;
}
.daily-item:hover { color: #9333ea; }
.daily-fire { font-size: 13px; flex-shrink: 0; }
.daily-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.daily-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 30px;
    color: #999;
}

/* 查看更多按钮 */
.daily-more-btn {
    display: block;
    text-align: center;
    margin-top: 18px;
    padding: 12px;
    background: linear-gradient(135deg, #2932E1 0%, #9333ea 50%, #ec4899 100%);
    color: #fff !important;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    transition: opacity 0.2s;
}
.daily-more-btn:hover { opacity: 0.9; }

/* ===== 分类海报墙 ===== */
.poster-card {
    background: #fff;
    border-radius: 14px;
    padding: 22px 24px 26px;
    margin-bottom: 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.poster-category-title {
    font-size: 17px;
    font-weight: 700;
    color: #222;
    margin-bottom: 16px;
    padding-left: 10px;
    border-left: 3px solid #2932E1;
}
.poster-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 14px;
}
.poster-item {
    display: block;
    text-align: center;
}
.poster-cover {
    position: relative;
    width: 100%;
    padding-top: 142%;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
    transition: transform 0.2s, box-shadow 0.2s;
}
.poster-item:hover .poster-cover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}
.poster-cover img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.poster-placeholder {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    background: linear-gradient(135deg, #e8eaf6, #f5f5f5);
}
.poster-quality {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(0,0,0,0.65);
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
}
.poster-name {
    margin-top: 8px;
    font-size: 13px;
    color: #444;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.poster-item:hover .poster-name { color: #2932E1; }

/* ===== 搜索结果页 ===== */
.search-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}
.search-result-title {
    font-size: 16px;
    color: #555;
}
.search-result-title .keyword { color: #2932E1; font-weight: 600; }
.search-result-title .count { color: #ec4899; font-weight: 600; }
.sort-tabs-v2 {
    display: flex;
    gap: 6px;
}
.sort-tabs-v2 a {
    padding: 5px 14px;
    border-radius: 15px;
    font-size: 13px;
    background: #fff;
    color: #666;
    border: 1px solid #eee;
}
.sort-tabs-v2 a.active {
    background: #2932E1;
    color: #fff;
    border-color: #2932E1;
}

/* 搜索结果海报网格 */
.search-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 14px;
}

/* ===== 详情页 ===== */
.detail-card-v2 {
    background: #fff;
    border-radius: 14px;
    padding: 30px;
    margin-bottom: 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.detail-top-v2 {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
}
.detail-cover-v2 {
    width: 200px;
    flex-shrink: 0;
}
.detail-cover-v2 img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}
.detail-cover-placeholder-v2 {
    width: 100%;
    padding-top: 140%;
    background: linear-gradient(135deg, #e8eaf6, #f5f5f5);
    border-radius: 10px;
    position: relative;
}
.detail-cover-placeholder-v2 span {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
}
.detail-info-v2 { flex: 1; min-width: 0; }
.detail-title-v2 {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    margin-bottom: 14px;
    line-height: 1.4;
}
.detail-meta-v2 {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}
.meta-tag-v2 {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 4px;
    background: #f5f5f5;
    color: #666;
}
.meta-tag-v2.quality { background: #fff3e0; color: #ff6b00; }
.meta-tag-v2.cat { background: #eef0ff; color: #2932E1; }
.detail-desc-v2 {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 16px;
}
.detail-tags-v2 {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.detail-tags-v2 a {
    font-size: 12px;
    padding: 3px 10px;
    background: #f5f7fa;
    color: #888;
    border-radius: 12px;
}
.detail-tags-v2 a:hover { background: #2932E1; color: #fff; }

/* 详情页网盘链接 */
.pan-section-v2 {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #f0f0f0;
}
.pan-section-title-v2 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #333;
}
.pan-cards-v2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.pan-card-v2 {
    background: #fafbfc;
    border-radius: 10px;
    padding: 18px;
    border-left: 4px solid #2932E1;
}
.pan-card-header-v2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: 600;
}
.pan-url-row-v2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 13px;
}
.pan-url-label-v2 { color: #888; flex-shrink: 0; width: 55px; }
.pan-url-text-v2 {
    flex: 1;
    background: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid #eee;
    color: #444;
    word-break: break-all;
    font-family: monospace;
    font-size: 12px;
    min-width: 0;
}
.copy-btn-v2 {
    background: #fff;
    border: 1px solid #ddd;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    color: #555;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
}
.copy-btn-v2:hover { border-color: #2932E1; color: #2932E1; }
.copy-btn-v2.copied { background: #52c41a; color: #fff; border-color: #52c41a; }
.go-pan-btn-v2 {
    display: block;
    text-align: center;
    margin-top: 12px;
    padding: 9px;
    border-radius: 6px;
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    transition: opacity 0.2s;
}
.go-pan-btn-v2:hover { opacity: 0.9; }

/* 面包屑 */
.breadcrumb-v2 {
    font-size: 13px;
    color: #999;
    margin-bottom: 16px;
}
.breadcrumb-v2 a { color: #666; }
.breadcrumb-v2 a:hover { color: #2932E1; }
.breadcrumb-v2 .sep { margin: 0 6px; }

/* ===== 分页 ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 25px;
    flex-wrap: wrap;
}
.page-btn {
    padding: 7px 13px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 13px;
    color: #666;
    background: #fff;
    cursor: pointer;
}
.page-btn:hover { border-color: #2932E1; color: #2932E1; }
.page-btn.active { background: #2932E1; color: #fff; border-color: #2932E1; }
.page-dots { padding: 7px 4px; color: #999; }

/* ===== 空状态 ===== */
.empty-tip {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    background: #fff;
    border-radius: 14px;
}
.empty-icon { font-size: 48px; margin-bottom: 12px; }
.empty-tip p { margin-bottom: 6px; }
.empty-sub { font-size: 13px; }
.empty-sub a { color: #2932E1; }

/* ===== 页脚 ===== */
.site-footer-v2 {
    text-align: center;
    padding: 30px 20px;
    color: #aaa;
    font-size: 13px;
    line-height: 2;
}
.footer-links {
    margin-top: 6px;
}
.footer-links a { color: #999; }
.footer-links a:hover { color: #2932E1; }
.footer-sep { margin: 0 10px; color: #ddd; }
.footer-icp a { color: #bbb; }

/* ===== 回到顶部 ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #2932E1;
    color: #fff;
    border: none;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(41,50,225,0.3);
    display: none;
    z-index: 99;
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .poster-grid, .search-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 768px) {
    .site-header-v2 { padding: 20px 15px 5px; }
    .logo-text-v2 { font-size: 28px; }
    .logo-subtitle { font-size: 12px; margin-bottom: 20px; }
    .search-input-v2 { padding: 13px 18px; font-size: 14px; }
    .site-main-v2 { padding: 10px 12px 30px; }
    .daily-card { padding: 18px 16px 16px; }
    .daily-list { grid-template-columns: 1fr; }
    .daily-title { font-size: 17px; }
    .poster-grid, .search-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
    .poster-name { font-size: 12px; }
    .detail-card-v2 { padding: 20px 16px; }
    .detail-top-v2 { flex-direction: column; gap: 18px; }
    .detail-cover-v2 { width: 140px; margin: 0 auto; }
    .detail-title-v2 { font-size: 19px; text-align: center; }
    .pan-cards-v2 { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .poster-grid, .search-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================
   搜索结果页 - aipans原版列表布局
   ============================================ */
.search-page { max-width: 1200px; margin: 0 auto; padding: 20px 16px 40px; }

/* 搜索源切换 */
.search-source-tabs {
    display: flex; align-items: center; gap: 16px;
    margin-bottom: 16px; font-size: 15px;
}
.source-label { color: #333; font-weight: 500; }
.source-tab {
    color: #666; text-decoration: none; padding: 4px 0;
    border-bottom: 2px solid transparent;
}
.source-tab.active { color: #1a56db; border-bottom-color: #1a56db; font-weight: 600; }
.source-tab.disabled { color: #999; cursor: not-allowed; }

/* 左右布局 */
.search-layout { display: flex; gap: 24px; align-items: flex-start; }
.search-main { flex: 1; min-width: 0; }
.search-sidebar { width: 280px; flex-shrink: 0; }

/* 网盘源tab */
.pan-tabs {
    display: flex; gap: 24px; margin-bottom: 12px;
    border-bottom: 1px solid #eee; padding-bottom: 0;
}
.pan-tab {
    color: #666; text-decoration: none; font-size: 15px;
    padding: 8px 0; border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}
.pan-tab.active { color: #1a56db; border-bottom-color: #1a56db; font-weight: 600; }
.pan-tab:hover { color: #1a56db; }

/* 搜索统计 */
.search-stats {
    color: #999; font-size: 14px; margin-bottom: 16px;
}
.stats-keyword { color: #1a56db; font-weight: 600; }
.stats-count { color: #1a56db; font-weight: 700; }

/* 结果列表 */
.result-list { display: flex; flex-direction: column; gap: 0; }
.result-item {
    padding: 18px 0; border-bottom: 1px solid #f0f0f0;
}
.result-title { font-size: 17px; margin-bottom: 8px; }
.result-title a { color: #1a56db; text-decoration: none; font-weight: 500; }
.result-title a:hover { text-decoration: underline; }
.result-title .highlight { color: #ff4d4f; font-style: normal; font-weight: 700; }
.result-hot { margin-left: 6px; }
.result-desc {
    color: #666; font-size: 14px; line-height: 1.7;
    margin-bottom: 10px;
}
.result-meta {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    font-size: 13px; color: #999;
}
.result-source { display: flex; align-items: center; gap: 4px; }
.result-quality {
    background: #f0f5ff; color: #1a56db; padding: 2px 8px;
    border-radius: 3px; font-size: 12px;
}
.result-cat { color: #999; }
.get-resource-btn {
    margin-left: auto; background: #1a56db; color: #fff;
    padding: 6px 18px; border-radius: 4px; text-decoration: none;
    font-size: 13px; font-weight: 500;
}
.get-resource-btn:hover { background: #1e40af; }

/* 搜索结果直接显示链接 */
.result-pan-links {
    margin: 10px 0; padding: 10px 12px;
    background: #f8f9fa; border-radius: 6px;
}
.result-pan-row {
    display: flex; align-items: center; gap: 8px;
    padding: 4px 0; font-size: 13px; flex-wrap: wrap;
}
.result-pan-icon { font-size: 14px; }
.result-pan-name { color: #555; font-weight: 500; flex-shrink: 0; width: 60px; }
.result-pan-url {
    color: #1a56db; text-decoration: none;
    flex: 1; min-width: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.result-pan-url:hover { text-decoration: underline; }
.result-pan-code {
    color: #ff4d4f; font-weight: 500; flex-shrink: 0;
    background: #fff1f0; padding: 2px 8px; border-radius: 3px;
}
.result-pan-empty { color: #999; font-size: 13px; }

/* 右侧排行榜 */
.rank-card {
    background: #fff; border-radius: 10px; padding: 16px;
    margin-bottom: 16px;
}
.rank-title {
    font-size: 16px; font-weight: 700; color: #333;
    margin-bottom: 12px; padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}
.rank-list { list-style: none; }
.rank-item {
    display: flex; align-items: center; gap: 10px;
    padding: 7px 0; font-size: 14px;
}
.rank-num {
    width: 20px; height: 20px; line-height: 20px; text-align: center;
    font-size: 12px; color: #999; font-weight: 600; flex-shrink: 0;
}
.rank-item.top1 .rank-num { background: #ff4d4f; color: #fff; border-radius: 3px; }
.rank-item.top2 .rank-num { background: #ff7a45; color: #fff; border-radius: 3px; }
.rank-item.top3 .rank-num { background: #ffa940; color: #fff; border-radius: 3px; }
.rank-link { color: #333; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-link:hover { color: #1a56db; }
.rank-empty { color: #ccc; font-size: 13px; padding: 7px 0; }

/* 响应式 */
@media (max-width: 900px) {
    .search-layout { flex-direction: column; }
    .search-sidebar { width: 100%; }
}
@media (max-width: 600px) {
    .pan-tabs { gap: 14px; overflow-x: auto; }
    .pan-tab { white-space: nowrap; font-size: 14px; }
    .get-resource-btn { margin-left: 0; }
    .result-meta { gap: 10px; }
}

/* ============================================
   内页顶部导航栏
   ============================================ */
.inner-header {
    background: #fff; border-bottom: 1px solid #eee;
    position: sticky; top: 0; z-index: 100;
}
.inner-header-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 16px;
    height: 60px; display: flex; align-items: center; gap: 24px;
}
.inner-logo {
    display: flex; align-items: center; gap: 8px;
    text-decoration: none; flex-shrink: 0;
}
.inner-logo-icon {
    width: 36px; height: 36px; border-radius: 8px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex; align-items: center; justify-content: center;
}
.inner-logo-text {
    font-size: 20px; font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.inner-search { flex: 1; max-width: 500px; }
.inner-search form { display: flex; }
.inner-search-input {
    flex: 1; height: 38px; padding: 0 16px;
    border: 1px solid #ddd; border-right: none;
    border-radius: 20px 0 0 20px; font-size: 14px;
    outline: none; background: #f8f9fa;
}
.inner-search-input:focus { border-color: #667eea; background: #fff; }
.inner-search-btn {
    width: 44px; height: 38px; border: none;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff; border-radius: 0 20px 20px 0;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.inner-join-group {
    color: #666; text-decoration: none; font-size: 14px;
    flex-shrink: 0;
}
.inner-join-group:hover { color: #667eea; }

@media (max-width: 600px) {
    .inner-header-inner { gap: 10px; }
    .inner-logo-text { display: none; }
    .inner-join-group { display: none; }
}

/* ============================================
   实时搜索下拉
   ============================================ */
.live-search-wrap { position: relative; }
.live-search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 200;
    display: none;
    overflow: hidden;
    margin-top: -2px;
}
.live-search-dropdown.show { display: block; }
.live-search-list { max-height: 360px; overflow-y: auto; }
.live-search-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    text-decoration: none;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.15s;
}
.live-search-item:hover { background: #f8f9ff; }
.live-search-title {
    color: #333;
    font-size: 14px;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 12px;
}
.live-search-item:hover .live-search-title { color: #667eea; }
.live-search-meta {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.live-search-cat {
    font-size: 12px;
    color: #999;
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 3px;
}
.live-search-pans {
    font-size: 12px;
    color: #667eea;
    background: #f0f2ff;
    padding: 2px 8px;
    border-radius: 3px;
}
.live-search-more {
    display: block;
    text-align: center;
    padding: 12px;
    color: #667eea;
    font-size: 13px;
    text-decoration: none;
    background: #fafbff;
    border-top: 1px solid #f0f0f0;
}
.live-search-more:hover { background: #f0f2ff; }
.live-search-empty {
    padding: 24px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* 内页搜索框下拉宽度适配 */
.inner-search .live-search-dropdown {
    border-radius: 0 0 8px 8px;
}
.inner-search .live-search-item { padding: 10px 14px; }
.inner-search .live-search-title { font-size: 13px; }

/* ============================================
   弹窗通用样式
   ============================================ */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.modal-overlay.show { display: flex; }
.modal-dialog {
    background: #fff;
    border-radius: 12px;
    max-width: 520px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    animation: modalIn 0.25s ease;
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-close {
    position: absolute; top: 12px; right: 16px;
    font-size: 24px; color: #999; cursor: pointer;
    width: 32px; height: 32px; line-height: 28px; text-align: center;
    border-radius: 50%; transition: all 0.2s; z-index: 10;
}
.modal-close:hover { background: #f5f5f5; color: #333; }

/* 获取资源弹窗 */
.resource-modal { max-width: 560px; }
.modal-header {
    padding: 20px 24px 12px;
    border-bottom: 1px solid #f0f0f0;
}
.modal-header h3 {
    font-size: 17px; font-weight: 600; color: #333;
    padding-right: 30px;
}
.modal-body { padding: 16px 24px; }
.modal-loading { text-align: center; padding: 30px; color: #999; }
.modal-error { text-align: center; padding: 30px; color: #ff4d4f; }
.modal-pan-list { display: flex; flex-direction: column; gap: 14px; }
.modal-pan-item {
    border-left: 3px solid #ddd;
    background: #fafbfc;
    border-radius: 0 8px 8px 0;
    padding: 14px;
}
.modal-pan-header {
    font-weight: 600; font-size: 14px; color: #333;
    margin-bottom: 10px;
}
.modal-pan-content { display: flex; gap: 14px; }
.modal-pan-qr {
    width: 160px; flex-shrink: 0;
    background: #fff; border: 1px solid #eee;
    border-radius: 6px; padding: 8px;
    display: flex; align-items: center; justify-content: center;
}
.modal-pan-qr img { width: 100%; height: auto; display: block; }
.modal-pan-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.modal-url-row {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px;
}
.modal-url-label { color: #999; flex-shrink: 0; width: 50px; }
.modal-url-text {
    flex: 1; background: #fff; border: 1px solid #eee;
    padding: 6px 10px; border-radius: 4px;
    font-size: 12px; color: #555;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.modal-copy-btn {
    flex-shrink: 0; padding: 5px 12px;
    background: #f0f2f5; border: none; border-radius: 4px;
    font-size: 12px; color: #555; cursor: pointer;
}
.modal-copy-btn:hover { background: #e4e7ed; }
.modal-go-btn {
    display: block; text-align: center;
    padding: 8px; color: #fff; text-decoration: none;
    border-radius: 6px; font-size: 13px; font-weight: 500;
    margin-top: auto;
}
.modal-warning {
    background: #fff7e6; color: #d46b08;
    padding: 10px 24px; font-size: 13px;
    border-top: 1px solid #ffe7ba;
}
.modal-statement {
    padding: 14px 24px 20px;
    font-size: 12px; color: #999; line-height: 1.7;
}
.modal-statement p { margin-bottom: 4px; }

/* 详情页获取资源按钮 */
.get-resource-section { text-align: center; padding: 20px 0; }
.get-resource-main-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 48px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff; border: none; border-radius: 30px;
    font-size: 16px; font-weight: 600; cursor: pointer;
    box-shadow: 0 4px 15px rgba(102,126,234,0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}
.get-resource-main-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102,126,234,0.5);
}

/* 加入群聊弹窗 */
.group-modal-content {
    padding: 30px 24px; text-align: center;
}
.group-modal-icon { font-size: 40px; margin-bottom: 10px; }
.group-modal-content h3 { font-size: 18px; margin-bottom: 8px; color: #333; }
.group-modal-tip { color: #999; font-size: 14px; margin-bottom: 20px; }
.group-qrcode {
    width: 200px; height: 200px; margin: 0 auto 16px;
    border: 1px solid #eee; border-radius: 8px; padding: 10px;
    background: #fff;
}
.group-qrcode img { width: 100%; height: 100%; object-fit: contain; }
.group-qrcode-placeholder {
    width: 100%; height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: #ccc; font-size: 14px;
}
.group-number { font-size: 15px; color: #666; }
.group-number strong { color: #667eea; font-size: 18px; }

/* 提交需求弹窗 */
.demand-modal-content {
    padding: 24px;
}
.demand-modal-content h3 { font-size: 17px; margin-bottom: 8px; color: #333; }
.demand-tip { color: #999; font-size: 13px; margin-bottom: 16px; }
.demand-modal-content textarea {
    width: 100%; padding: 12px; border: 1px solid #ddd;
    border-radius: 8px; font-size: 14px; resize: vertical;
    outline: none; font-family: inherit;
}
.demand-modal-content textarea:focus { border-color: #667eea; }
.demand-submit-btn {
    width: 100%; margin-top: 16px; padding: 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff; border: none; border-radius: 8px;
    font-size: 15px; font-weight: 500; cursor: pointer;
}
.demand-submit-btn:hover { opacity: 0.9; }

/* 公告弹窗 */
.announcement-modal {
    max-width: 380px; text-align: center;
    padding: 30px 24px 24px;
}
.announcement-icon { font-size: 40px; margin-bottom: 12px; }
.announcement-modal h3 { font-size: 18px; margin-bottom: 12px; color: #333; }
.announcement-content {
    color: #666; font-size: 14px; line-height: 1.8;
    margin-bottom: 20px;
}
.announcement-close-btn {
    width: 100%; padding: 11px;
    background: #f0f2f5; border: none; border-radius: 8px;
    font-size: 14px; color: #555; cursor: pointer;
}
.announcement-close-btn:hover { background: #e4e7ed; }

/* 弹窗响应式 */
@media (max-width: 600px) {
    .modal-dialog { max-width: 100%; border-radius: 10px; }
    .modal-pan-content { flex-direction: column; }
    .modal-pan-qr { width: 140px; margin: 0 auto; }
    .modal-header, .modal-body, .modal-warning, .modal-statement { padding-left: 16px; padding-right: 16px; }
    .get-resource-main-btn { padding: 12px 36px; font-size: 15px; }
}

/* 全网搜loading */
.loading-spinner {
    width: 36px; height: 36px;
    border: 3px solid #f0f0f0;
    border-top-color: #667eea;
    border-radius: 50%;
    margin: 0 auto 12px;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
