﻿/* ===== MoreTu 摩图图库 全局样式 ===== */
* { 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: #f5f6fa;
    color: #333;
    line-height: 1.6;
}
a { color: #4a6cf7; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== 导航栏 ===== */
.navbar {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    height: 60px;
    gap: 16px;
}
.nav-logo {
    font-size: 22px;
    font-weight: 700;
    color: #4a6cf7;
    white-space: nowrap;
}
.nav-logo span { font-size: 14px; color: #999; font-weight: 400; }
.nav-search {
    display: flex;
    flex: 1;
    max-width: 400px;
}
.nav-search input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    outline: none;
}
.nav-search button {
    padding: 8px 16px;
    background: #4a6cf7;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}
.nav-search-img { margin: 0; }
.img-search-btn {
    display: inline-block;
    padding: 8px 14px;
    background: #f0f2ff;
    color: #4a6cf7;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
    border: 1px solid #d0d7ff;
}
.img-search-btn:hover { background: #e0e6ff; }
.nav-menu {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}
.nav-menu a {
    color: #555;
    font-size: 14px;
    white-space: nowrap;
}
.nav-menu a:hover { color: #4a6cf7; text-decoration: none; }
.nav-points {
    background: #fff3e0;
    color: #ff9800;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
}
.nav-admin { color: #e53935 !important; font-weight: 600; }
.nav-username {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px 4px 4px;
    background: #f0f4ff;
    border-radius: 20px;
    font-weight: 600;
    color: #4a6cf7 !important;
}
.nav-username:hover { background: #e0e8ff; }
.nav-user-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #4a6cf7, #6a8cff);
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
}
.nav-user-name { font-size: 14px; }
.nav-register {
    background: #4a6cf7;
    color: #fff !important;
    padding: 6px 14px;
    border-radius: 4px;
}

/* ===== Flash 消息 ===== */
.flash-container {
    max-width: 1400px;
    margin: 16px auto 0;
    padding: 0 20px;
}
.flash {
    padding: 12px 20px;
    border-radius: 6px;
    margin-bottom: 8px;
    font-size: 14px;
}
.flash-success { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.flash-error { background: #ffebee; color: #c62828; border: 1px solid #ef9a9a; }

/* ===== 主内容 ===== */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 20px 80px;
    min-height: calc(100vh - 140px);
}

/* ===== 轮播图 ===== */
.carousel {
    position: relative;
    height: 480px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
    background: #fff;
}
.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
}
.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}
.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background: transparent;
}
.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
}
.carousel-caption h3 { font-size: 20px; margin-bottom: 8px; }
.carousel-caption .badge { margin-right: 8px; }
.carousel-caption .price { color: #ffd54f; font-weight: 600; }
.carousel-prev, .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
}
.carousel-prev { left: 16px; }
.carousel-next { right: 16px; }
.carousel-prev:hover, .carousel-next:hover { background: rgba(0,0,0,0.6); }

/* ===== 筛选栏 ===== */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.filter-types { display: flex; gap: 8px; }
.filter-types a {
    padding: 6px 16px;
    border-radius: 20px;
    background: #fff;
    color: #666;
    font-size: 14px;
    border: 1px solid #e0e0e0;
}
.filter-types a.active {
    background: #4a6cf7;
    color: #fff;
    border-color: #4a6cf7;
}
.filter-result { color: #999; font-size: 14px; }

/* ===== 资源网格 ===== */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

/* 瀑布流布局 */
/* JS瀑布流：多列flex容器，新卡片只追加到最短列，不重排已有元素 */
.masonry-grid {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.masonry-grid .masonry-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}
.masonry-grid .masonry-column .resource-card {
    width: 100%;
    margin-bottom: 0;
}

/* 搜索结果少量时的横向布局 */
.search-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.search-grid .resource-card {
    flex: 0 0 calc(20% - 12px);
    min-width: 200px;
    margin-bottom: 0;
}
@media (max-width: 1400px) {
    .search-grid .resource-card { flex: 0 0 calc(25% - 12px); }
}
@media (max-width: 1200px) {
    .search-grid .resource-card { flex: 0 0 calc(33.333% - 12px); }
}
@media (max-width: 768px) {
    .search-grid .resource-card { flex: 0 0 calc(50% - 12px); }
}
@media (max-width: 480px) {
    .search-grid .resource-card { flex: 0 0 100%; }
}

.masonry-grid .resource-card {
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    display: block;
    width: 100%;
}
.masonry-grid .resource-card.new-card {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.masonry-grid .resource-card.new-card.show {
    opacity: 1;
    transform: translateY(0);
}
.masonry-grid .resource-thumb {
    padding-top: 0;
    height: auto;
}
.masonry-grid .resource-thumb {
    position: relative;
    width: 100%;
    background: #fff;
    overflow: hidden;
}
.masonry-grid .resource-thumb img {
    position: static;
    width: 100%;
    height: auto;
    display: block;
}
/* 只有新加载的卡片中的图片才渐显 */
.masonry-grid .resource-card.new-card .resource-thumb img {
    opacity: 0;
    transition: opacity 0.3s ease;
}
.masonry-grid .resource-card.new-card.show .resource-thumb img {
    opacity: 1;
}
.masonry-grid .resource-thumb .no-image {
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 13px;
}
.resource-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}
.resource-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.resource-thumb {
    display: block;
    position: relative;
    width: 100%;
    padding-top: 75%;
    overflow: hidden;
    background: #fff;
}
.resource-thumb img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #fff;
}
.resource-thumb .similarity {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(74,108,247,0.9);
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}
.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #bbb;
    font-size: 14px;
}
.resource-info { padding: 8px; }
.resource-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #333;
}
.resource-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}
.price { color: #ff6b35; font-weight: 600; }
.downloads { color: #999; }

/* ===== Badge ===== */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}
.badge-hd { background: #e3f2fd; color: #1565c0; }
.badge-cad { background: #f3e5f5; color: #7b1fa2; }
.badge-3d { background: #e8f5e9; color: #2e7d32; }
.badge-status { background: #f5f5f5; color: #666; }

/* ===== 按钮 ===== */
.btn {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    text-align: center;
    transition: all 0.2s;
}
.btn:hover { text-decoration: none; opacity: 0.9; }
.btn-primary { background: #4a6cf7; color: #fff; }
.btn-success { background: #43a047; color: #fff; }
.btn-danger { background: #e53935; color: #fff; }
.btn-outline { background: #fff; color: #4a6cf7; border: 1px solid #4a6cf7; }
.btn-disabled { background: #ccc; color: #fff; cursor: not-allowed; }
.btn-large { padding: 12px 32px; font-size: 16px; }
.btn-small { padding: 4px 12px; font-size: 12px; }
.btn-block { width: 100%; }

/* ===== 分页 ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
}
.pagination a {
    padding: 8px 16px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}
.page-info { color: #999; font-size: 14px; }

/* ===== 空状态 ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}
.empty-state p { margin-bottom: 16px; font-size: 16px; }

/* ===== 认证页面 ===== */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
}
.auth-card {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 420px;
}
.auth-card h2 { text-align: center; margin-bottom: 24px; color: #333; }
.auth-switch { text-align: center; margin-top: 16px; font-size: 14px; color: #666; }
.auth-hint { text-align: center; margin-top: 12px; font-size: 12px; color: #999; }

/* ===== 表单 ===== */
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: #555;
    font-weight: 500;
}
.required { color: #e53935; }
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="file"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: #4a6cf7;
}
.form-group textarea { resize: vertical; }
.hint { font-size: 12px; color: #999; margin-top: 4px; }
.captcha-row { display: flex; gap: 10px; }
.captcha-row input { flex: 1; }
.captcha-box {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    background: #f0f2ff;
    border: 1px solid #d0d7ff;
    border-radius: 6px;
    font-weight: 700;
    color: #4a6cf7;
    letter-spacing: 2px;
    min-width: 100px;
}
.captcha-img {
    height: 40px;
    width: 120px;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid #ddd;
    flex-shrink: 0;
    transition: opacity 0.2s;
}
.captcha-img:hover {
    opacity: 0.8;
    border-color: #4a6cf7;
}

/* ===== 资源详情 ===== */
.resource-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    align-items: start;
}
/* 描述缩略 */
.detail-desc-short {
    width: 100%;
    font-size: 13px;
    color: #888;
    line-height: 1.6;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
.detail-desc-short .desc-label {
    color: #666;
    font-weight: 500;
}

/* 详情页轮播 */
.detail-gallery {
    width: 100%;
}
.detail-carousel {
    position: relative;
    width: 100%;
    padding-top: 75%;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}
.detail-carousel .carousel-slide-item {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.detail-carousel .carousel-slide-item.active {
    display: block;
}
.detail-carousel .carousel-slide-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}
.detail-carousel .carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 18px;
    z-index: 10;
}
.detail-carousel .carousel-nav.prev { left: 10px; }
.detail-carousel .carousel-nav.next { right: 10px; }
.detail-carousel .carousel-nav:hover { background: rgba(0,0,0,0.7); }
.detail-carousel .carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.detail-carousel .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
}
.detail-carousel .dot.active { background: #fff; }

.main-image {
    width: 100%;
    padding-top: 75%;
    position: relative;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
}
.main-image img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: contain;
}
.main-image img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: contain;
}
.no-image-large {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
    color: #bbb;
}
.thumb-list {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
}
.thumb.active { border-color: #4a6cf7; }
.detail-info h1 { font-size: 24px; margin-bottom: 12px; }
.detail-tags {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.meta-item { font-size: 13px; color: #888; }
.detail-price-box {
    background: #fff8f0;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.price-label { color: #888; font-size: 14px; }
.price-value { font-size: 32px; color: #ff6b35; font-weight: 700; }
.price-unit { color: #ff6b35; font-size: 14px; }
.detail-desc { margin-bottom: 20px; }
.detail-desc h4 { margin-bottom: 8px; color: #555; }
.detail-meta { font-size: 13px; color: #888; line-height: 2; }
.detail-actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
/* 紧凑信息布局 - 单行显示 */
.compact-info { padding: 0; margin-bottom: 16px; }
.detail-single-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 14px;
    line-height: 1.5;
}
.detail-id { font-size: 18px; font-weight: 700; color: #222; }
.detail-single-row .meta-item { font-size: 13px; color: #888; white-space: nowrap; }
.desc-inline { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.desc-label { color: #888; font-weight: 500; }
.warning-box {
    margin-top: 16px;
    padding: 12px;
    background: #fff3e0;
    border-radius: 6px;
    font-size: 14px;
    color: #e65100;
}

/* ===== 上传页面 ===== */
.upload-container {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    padding: 32px;
    border-radius: 12px;
}
.upload-container h2 { margin-bottom: 24px; }

/* ===== 任务页面 ===== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.task-list { display: flex; flex-direction: column; gap: 16px; }
.task-card {
    display: flex;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.task-images {
    width: 160px;
    min-height: 120px;
    background: #f0f0f0;
    flex-shrink: 0;
}
.task-images img { width: 100%; height: 100%; object-fit: cover; }
.task-body { flex: 1; padding: 16px; }
.task-body h3 { margin-bottom: 8px; font-size: 18px; }
.task-desc { color: #666; font-size: 14px; margin-bottom: 12px; }
.task-meta { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.task-price { color: #ff6b35; font-weight: 700; font-size: 16px; }
.task-footer { display: flex; justify-content: space-between; font-size: 12px; color: #999; }
.task-status {
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 12px;
}
.status-pending { background: #fff3e0; color: #ef6c00; }
.status-open { background: #e3f2fd; color: #1565c0; }
.status-working { background: #f3e5f5; color: #7b1fa2; }
.status-submitted { background: #e8f5e9; color: #2e7d32; }
.status-completed { background: #e0e0e0; color: #616161; }
.status-approved { background: #e8f5e9; color: #2e7d32; }
.status-rejected { background: #ffebee; color: #c62828; }
.status-expired { background: #ffebee; color: #c62828; }

/* ===== 任务详情 ===== */
.task-detail-header { margin-bottom: 24px; }
.task-detail-header h1 { margin-bottom: 12px; }
.task-detail-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.task-price-large { font-size: 24px; color: #ff6b35; font-weight: 700; }
.task-detail-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    background: #fff;
    padding: 24px;
    border-radius: 12px;
}
.task-image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 12px;
}
.task-image { width: 100%; border-radius: 6px; }
.task-full-desc { color: #555; margin: 12px 0; }
.task-info-grid { font-size: 13px; color: #888; line-height: 2; margin-bottom: 20px; }
.task-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.submission-note {
    margin-top: 20px;
    padding: 16px;
    background: #f5f5f5;
    border-radius: 8px;
}

/* ===== 个人中心 ===== */
.profile-page {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
}
.profile-sidebar { position: sticky; top: 80px; align-self: start; }
.profile-user-card {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 16px;
}
.avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4a6cf7, #7c4dff);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    margin: 0 auto 12px;
}
.profile-user-card h3 { margin-bottom: 4px; }
.user-email { font-size: 13px; color: #999; margin-bottom: 16px; }
.user-points { margin-bottom: 16px; }
.points-num { font-size: 28px; font-weight: 700; color: #ff6b35; }
.points-label { font-size: 13px; color: #999; margin-left: 4px; }
.points-locked { display: block; font-size: 12px; color: #ff9800; margin-top: 4px; }
.profile-nav {
    background: #fff;
    border-radius: 12px;
    padding: 8px 0;
}
.profile-nav a {
    display: block;
    padding: 12px 24px;
    color: #555;
    font-size: 14px;
}
.profile-nav a:hover { background: #f5f6fa; text-decoration: none; }
.profile-nav a.active { background: #f0f2ff; color: #4a6cf7; border-left: 3px solid #4a6cf7; }
.profile-content {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    min-height: 500px;
}
.profile-content h3 { margin-bottom: 20px; }
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    font-size: 14px;
}
.info-grid span { color: #999; }
.password-form { max-width: 400px; }

/* ===== 数据表格 ===== */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.data-table th, .data-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}
.data-table th { background: #fafafa; font-weight: 600; color: #555; }
.data-table tr:hover { background: #f9f9f9; }
.empty-row { text-align: center; color: #999; padding: 30px !important; }
.text-green { color: #43a047; }
.text-red { color: #e53935; }
.text-muted { color: #bbb; }

/* ===== 充值页面 ===== */
.recharge-page { max-width: 700px; margin: 0 auto; }
.recharge-balance {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 24px;
    font-size: 16px;
}
.balance-num { font-size: 28px; color: #ff6b35; font-weight: 700; }
.recharge-page h3 { margin: 20px 0 12px; }
.recharge-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.recharge-card {
    background: #fff;
    padding: 24px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid #eee;
    transition: border-color 0.2s;
}
.recharge-card:hover { border-color: #4a6cf7; }
.recharge-amount { font-size: 32px; font-weight: 700; color: #4a6cf7; }
.recharge-label { color: #999; margin-bottom: 12px; }
.custom-recharge {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}
.custom-recharge input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
}
.payment-methods {
    background: #fff;
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 16px;
}
.pay-icon {
    display: inline-block;
    padding: 6px 16px;
    margin-right: 10px;
    border-radius: 4px;
    font-size: 14px;
}
.pay-icon:first-of-type { background: #e8f5e9; color: #2e7d32; }
.pay-icon:last-of-type { background: #e3f2fd; color: #1565c0; }
.recharge-notice {
    background: #fff8e1;
    padding: 16px;
    border-radius: 8px;
    font-size: 13px;
    color: #f57f17;
}

/* ===== 以图搜图页面 ===== */
.search-image-page { max-width: 900px; margin: 0 auto; }
.search-image-page h2 { margin-bottom: 20px; }
.upload-area {
    border: 2px dashed #ccc;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    background: #fafafa;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.upload-area.drag-over { border-color: #4a6cf7; background: #f0f2ff; }
#previewContainer { text-align: center; margin-bottom: 20px; }
#previewContainer img {
    max-width: 300px;
    max-height: 300px;
    border-radius: 8px;
    margin-bottom: 12px;
}
.search-query-img {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 12px;
    background: #fff;
    border-radius: 8px;
}
.search-query-img img { width: 80px; height: 80px; object-fit: cover; border-radius: 6px; }

/* ===== 管理后台 ===== */
.admin-page {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
}
.admin-sidebar {
    background: #fff;
    border-radius: 12px;
    padding: 20px 0;
    position: sticky;
    top: 80px;
    align-self: start;
}
.admin-sidebar h3 { padding: 0 20px 16px; font-size: 16px; border-bottom: 1px solid #eee; }
.admin-nav a {
    display: block;
    padding: 12px 20px;
    color: #555;
    font-size: 14px;
}
.admin-nav a:hover { background: #f5f6fa; text-decoration: none; }
.admin-nav a.active { background: #f0f2ff; color: #4a6cf7; }
.admin-content {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    min-height: 500px;
}
.admin-content h2 { margin-bottom: 20px; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.stat-card {
    background: #f8f9ff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}
.stat-num { font-size: 36px; font-weight: 700; color: #4a6cf7; }
.stat-label { color: #888; font-size: 14px; margin: 4px 0; }
.stat-sub { font-size: 12px; color: #aaa; }
.stat-link { font-size: 13px; }
.admin-info { padding: 16px; background: #fafafa; border-radius: 8px; }
.admin-info ul { list-style: none; line-height: 2; font-size: 14px; color: #666; }

/* 审核列表 */
.review-list { display: flex; flex-direction: column; gap: 16px; }
.review-card {
    display: flex;
    gap: 16px;
    padding: 16px;
    border: 1px solid #eee;
    border-radius: 10px;
}
.review-thumb {
    width: 120px;
    height: 90px;
    flex-shrink: 0;
    background: #f0f0f0;
    border-radius: 6px;
    overflow: hidden;
}
.review-thumb img { width: 100%; height: 100%; object-fit: cover; }
.review-body { flex: 1; }
.review-body h4 { margin-bottom: 6px; }
.review-body p { color: #666; font-size: 13px; margin-bottom: 8px; }
.review-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #999;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.review-actions { display: flex; gap: 8px; }

/* 批量发布 */
.batch-info {
    background: #f5f6fa;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
}
.batch-info ul { margin: 8px 0 0 20px; line-height: 1.8; }
.batch-info code {
    background: #e8eaf6;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 13px;
}
.batch-form { max-width: 600px; }
.batch-result {
    margin-top: 24px;
    padding: 20px;
    background: #e8f5e9;
    border-radius: 8px;
}

/* 会员管理 */
.role-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}
.role-badge.super { background: #ffebee; color: #c62828; }
.role-badge.admin { background: #fff3e0; color: #ef6c00; }
.role-badge.user { background: #f5f5f5; color: #757575; }
.user-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

/* ===== 评论区 ===== */
.comment-section {
    margin-top: 32px;
    background: #fff;
    padding: 24px;
    border-radius: 12px;
}
.comment-title {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}
.comment-form-box {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px;
    background: #fafafa;
    border-radius: 8px;
}
.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4a6cf7, #7c4dff);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}
.comment-input-area { flex: 1; }
.comment-input-area textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    resize: vertical;
    outline: none;
    font-family: inherit;
}
.comment-input-area textarea:focus { border-color: #4a6cf7; }
.comment-form-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    flex-wrap: wrap;
    gap: 8px;
}
.comment-image-upload { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.comment-upload-btn {
    display: inline-block;
    padding: 6px 12px;
    background: #f0f2ff;
    color: #4a6cf7;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    border: 1px solid #d0d7ff;
}
.comment-upload-btn:hover { background: #e0e6ff; }
.comment-image-count { font-size: 12px; color: #999; }
.comment-image-preview { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.comment-preview-thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ddd;
}
.comment-submit-area { display: flex; align-items: center; gap: 10px; }
.comment-char-count { font-size: 12px; color: #999; }
.comment-login-tip {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 14px;
}

/* 评论列表 */
.comment-list { display: flex; flex-direction: column; gap: 16px; }
.comment-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #f0f0f0;
}
.comment-item.comment-pinned {
    background: #fffbf0;
    border-color: #ffe082;
}
.comment-body { flex: 1; min-width: 0; }
.comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.comment-username { font-weight: 600; color: #333; font-size: 14px; }
.comment-time { font-size: 12px; color: #999; }
.comment-pin-badge {
    background: #fff3e0;
    color: #ef6c00;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}
.comment-content {
    font-size: 14px;
    color: #444;
    line-height: 1.7;
    word-break: break-word;
    margin-bottom: 8px;
}
.comment-images {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.comment-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid #eee;
    transition: transform 0.2s;
}
.comment-image:hover { transform: scale(1.05); }
.comment-empty {
    text-align: center;
    padding: 40px;
    color: #bbb;
    font-size: 14px;
}

/* 管理员评论管理 */
.comment-admin-list { display: flex; flex-direction: column; gap: 12px; }
.comment-admin-item {
    padding: 16px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
}
.comment-admin-item.pinned { border-color: #ffe082; background: #fffbf0; }
.comment-admin-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
    font-size: 13px;
}
.comment-admin-user { font-weight: 600; color: #333; }
.comment-admin-resource { color: #666; }
.comment-admin-time { color: #999; }
.comment-admin-content {
    font-size: 14px;
    color: #444;
    line-height: 1.6;
    margin-bottom: 10px;
    word-break: break-word;
}
.comment-admin-images {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.comment-admin-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid #ddd;
}
.comment-admin-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}
.comment-edit-form {
    margin-bottom: 10px;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}
.comment-edit-form textarea {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    resize: vertical;
    font-family: inherit;
}
.comment-edit-form button { flex-shrink: 0; }

/* ===== 页脚 ===== */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    text-align: center;
    padding: 16px 24px;
    color: #999;
    font-size: 13px;
    border-top: 1px solid #eee;
    background: #fff;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.06);
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
    .resource-detail, .task-detail-body { grid-template-columns: 1fr; }
    .profile-page, .admin-page { grid-template-columns: 1fr; }
    .profile-sidebar, .admin-sidebar { position: static; }
    .recharge-options { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .nav-menu { gap: 8px; }
    .nav-menu a { font-size: 12px; }
}

/* ===== 弹窗 ===== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.modal-box {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}
.modal-header h3 { margin: 0; font-size: 16px; }
.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    line-height: 1;
    padding: 0;
}
.modal-close:hover { color: #333; }
.modal-body { padding: 20px; }
.modal-footer {
    padding: 12px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ===== 权限标签 ===== */
.perm-tag {
    display: inline-block;
    padding: 2px 6px;
    margin: 1px;
    background: #e3f2fd;
    color: #1565c0;
    border-radius: 3px;
    font-size: 11px;
}
.perm-tag.perm-all {
    background: #ffebee;
    color: #c62828;
    font-weight: 600;
}

/* ===== 权限分配表单 ===== */
.perm-section { margin-bottom: 16px; }
.perm-main-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    padding: 10px 12px;
    background: #f5f6fa;
    border-radius: 6px;
}
.perm-main-label input { width: 18px; height: 18px; }
.perm-checks {
    margin-top: 12px;
    padding: 12px;
    background: #fafafa;
    border-radius: 6px;
}
.perm-hint {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}
.perm-check-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 14px;
    cursor: pointer;
}
.perm-check-label input { width: 16px; height: 16px; }

/* ===== 评论验证码 ===== */
.comment-captcha-row {
    display: flex;
    align-items: center;
    gap: 6px;
}
.comment-captcha-input {
    width: 80px;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    text-align: center;
    outline: none;
}
.comment-captcha-input:focus { border-color: #4a6cf7; }
.comment-captcha-img {
    height: 32px;
    width: 90px;
    cursor: pointer;
    border-radius: 4px;
    border: 1px solid #ddd;
}

/* ===== 资源包 ===== */
.package-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.package-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 14px;
}
.package-count {
    font-size: 13px;
    color: #999;
    font-weight: normal;
}
.package-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}
.package-card {
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 14px;
    background: #fafbfc;
    transition: box-shadow 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
}
.package-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-color: #4a6cf7;
}
.package-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.package-images-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}
.package-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid #e0e0e0;
    transition: transform 0.2s, border-color 0.2s;
}
.package-thumb:hover {
    transform: scale(1.05);
    border-color: #4a6cf7;
}
.package-type-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    flex-shrink: 0;
}
.package-type-badge.type-hd { background: #4caf50; }
.package-type-badge.type-cad { background: #2196f3; }
.package-type-badge.type-3d { background: #ff9800; }
.package-type-badge.type-source { background: #9c27b0; }
.package-type-badge.type-other { background: #607d8b; }
.package-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.package-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.package-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}
.package-meta span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.package-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #eee;
}
.package-price {
    display: flex;
    align-items: baseline;
    gap: 2px;
}
.package-price .price-num {
    font-size: 20px;
    font-weight: 700;
    color: #ff6b35;
}
.package-price .price-unit {
    font-size: 12px;
    color: #999;
}
.free-tag {
    display: inline-block;
    padding: 2px 8px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
}

/* 资源包上传表单 */
.package-upload-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.package-upload-form {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
}
.package-upload-form .form-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}
.package-upload-form .form-group {
    margin-bottom: 12px;
}
.package-upload-form label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    margin-bottom: 4px;
}
.package-upload-form input[type="text"],
.package-upload-form input[type="number"],
.package-upload-form select,
.package-upload-form textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    box-sizing: border-box;
}
.package-upload-form input[type="file"] {
    font-size: 13px;
}
.package-upload-form textarea {
    resize: vertical;
    font-family: inherit;
}

/* 管理后台资源包列表 */
.admin-package-list {
    margin-top: 12px;
    padding: 10px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #4a6cf7;
}
.admin-package-title {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
}
.admin-package-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px dashed #e0e0e0;
}
.admin-package-item:last-child { border-bottom: none; }
.admin-package-item.pending { background: #fff8e1; padding: 8px; border-radius: 4px; margin-bottom: 4px; }
.admin-package-item.rejected { background: #ffebee; padding: 8px; border-radius: 4px; margin-bottom: 4px; }
.admin-package-info {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}
.admin-pkg-name { font-weight: 600; color: #333; }
.admin-pkg-desc { color: #666; font-size: 12px; }
.admin-pkg-meta { color: #888; font-size: 12px; }
.status-tag {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
}
.status-tag.status-pending { background: #fff3e0; color: #e65100; }
.status-tag.status-approved { background: #e8f5e9; color: #2e7d32; }
.status-tag.status-rejected { background: #ffebee; color: #c62828; }
.admin-package-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

/* 暂无资源包提示 */
.no-package-tip {
    text-align: center;
    padding: 30px;
    color: #999;
    background: #fafafa;
    border-radius: 8px;
}
.no-package-tip p { margin: 4px 0; }

/* ===== 资源管理表格 ===== */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}
.stat-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 16px 20px;
    text-align: center;
}
.stat-card .stat-num {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}
.stat-card .stat-label {
    font-size: 13px;
    color: #888;
}
.stat-card.stat-green .stat-num { color: #2e7d32; }
.stat-card.stat-orange .stat-num { color: #e65100; }
.stat-card.stat-red .stat-num { color: #c62828; }

.filter-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.filter-input {
    padding: 7px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    width: 200px;
    outline: none;
}
.filter-input:focus { border-color: #4a6cf7; }
.filter-select {
    padding: 7px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    outline: none;
    background: #fff;
}

.table-container {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 16px;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.data-table thead {
    background: #f5f7fa;
}
.data-table th {
    padding: 12px 10px;
    text-align: left;
    font-weight: 600;
    color: #555;
    border-bottom: 2px solid #e8e8e8;
    white-space: nowrap;
}
.data-table td {
    padding: 10px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}
.data-table tbody tr:hover {
    background: #f8f9ff;
}
.data-table .table-title a {
    color: #333;
    font-weight: 500;
    text-decoration: none;
}
.data-table .table-title a:hover { color: #4a6cf7; }
.data-table .table-desc {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}
.data-table .table-time {
    color: #888;
    font-size: 12px;
    white-space: nowrap;
}
.data-table .table-actions {
    white-space: nowrap;
}
.data-table .empty-row {
    text-align: center;
    padding: 40px;
    color: #999;
}
.table-thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #eee;
}
.table-thumb-placeholder {
    width: 50px;
    height: 50px;
    background: #f0f0f0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #999;
}

.btn-xs {
    padding: 3px 8px;
    font-size: 12px;
    border-radius: 3px;
}
.btn-warning {
    background: #ff9800;
    color: #fff;
    border: 1px solid #ff9800;
}
.btn-warning:hover { background: #f57c00; }

/* 分页 */
.pagination {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    margin-top: 16px;
    flex-wrap: wrap;
}
.page-link {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #555;
    font-size: 13px;
    background: #fff;
}
.page-link:hover {
    border-color: #4a6cf7;
    color: #4a6cf7;
}
.page-link.active {
    background: #4a6cf7;
    color: #fff;
    border-color: #4a6cf7;
}
.page-ellipsis {
    padding: 6px 4px;
    color: #999;
}
.page-info {
    margin-left: 12px;
    font-size: 13px;
    color: #888;
}

/* 编辑弹窗 */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.modal-content {
    background: #fff;
    border-radius: 8px;
    width: 500px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}
.modal-header h3 { margin: 0; font-size: 16px; }
.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    line-height: 1;
}
.modal-close:hover { color: #333; }
.modal-body {
    padding: 20px;
}
.modal-body .form-group {
    margin-bottom: 16px;
}
.modal-body label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    margin-bottom: 6px;
}
.modal-body input[type="text"],
.modal-body input[type="number"],
.modal-body textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    box-sizing: border-box;
}
.modal-body textarea {
    resize: vertical;
    font-family: inherit;
}
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

/* 搜索结果匹配类型标签 */
.match-type-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    z-index: 1;
}

/* 批量发布结果统计 */
.result-stats {
    display: flex;
    gap: 24px;
    margin: 16px 0;
}
.result-stat {
    text-align: center;
    background: #f5f7fa;
    padding: 16px 24px;
    border-radius: 8px;
}
.result-num {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #4a6cf7;
}
.result-label {
    font-size: 13px;
    color: #888;
}
.example-box {
    margin-top: 12px;
    padding: 12px 16px;
    background: #f0f4ff;
    border-left: 3px solid #4a6cf7;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.8;
    color: #444;
}
.example-box code {
    background: #fff;
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 12px;
}

/* 资源管理表格 - 可供下载压缩包标签 */
.table-packages {
    max-width: 220px;
}
.pkg-tag {
    display: inline-block;
    padding: 2px 6px;
    margin: 2px 3px 2px 0;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    line-height: 1.4;
}
.pkg-type-hd { background: #4caf50; }
.pkg-type-cad { background: #2196f3; }
.pkg-type-3d { background: #ff9800; }
.pkg-type-source { background: #9c27b0; }
.pkg-type-other { background: #607d8b; }

/* 资源管理表格 - 压缩包价格可编辑行 */
.pkg-edit-row {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 4px;
    flex-wrap: nowrap;
}
.pkg-edit-row .pkg-tag {
    flex-shrink: 0;
    margin: 0;
    min-width: 52px;
    text-align: center;
}
.pkg-price-input {
    width: 56px;
    padding: 2px 4px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 12px;
    text-align: center;
    flex-shrink: 0;
}
.pkg-price-input:focus {
    border-color: #4a90d9;
    outline: none;
    box-shadow: 0 0 0 2px rgba(74,144,217,0.2);
}
.pkg-save-btn {
    flex-shrink: 0;
    padding: 2px 6px !important;
    font-size: 11px !important;
}
.pkg-delete-form {
    display: inline;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
}
.pkg-delete-form {
    display: inline;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
}
.pkg-type-select {
    flex-shrink: 0;
    width: 72px;
    padding: 2px 4px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 12px;
    background: #fff;
    cursor: pointer;
}
.pkg-type-select:focus {
    border-color: #4a90d9;
    outline: none;
    box-shadow: 0 0 0 2px rgba(74,144,217,0.2);
}

/* 首页资源卡片 - ID显示和滚动描述 */
.resource-id-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}
.resource-id-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}
.resource-desc-scroll {
    width: 100%;
    height: 20px;
    line-height: 20px;
    overflow: hidden;
    position: relative;
    margin-bottom: 4px;
}
.resource-desc-scroll .scroll-text {
    display: inline-block;
    white-space: nowrap;
    color: #666;
    font-size: 12px;
    padding-left: 100%;
    animation: scroll-left 12s linear infinite;
}
@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}
.resource-desc-scroll:hover .scroll-text {
    animation-play-state: paused;
}

/* 上传页面 - 多压缩包 */
.packages-section {
    margin-bottom: 20px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.section-header label {
    margin-bottom: 0;
    font-weight: 600;
}
.package-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 12px;
    overflow: hidden;
}
.package-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f0f2f5;
    border-bottom: 1px solid #e0e0e0;
}
.package-item-title {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}
.package-item-body {
    padding: 12px;
}
.form-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.form-row .form-group {
    margin-bottom: 10px;
}
.form-row .form-group label {
    font-size: 13px;
    margin-bottom: 4px;
}
.form-row input[type="text"],
.form-row input[type="number"],
.form-row select,
.form-row input[type="file"] {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    box-sizing: border-box;
}

/* 图片放大弹窗 */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.image-modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    cursor: default;
}
.image-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    z-index: 10000;
}
.image-modal-close:hover {
    color: #ff4444;
}


/* 面包屑导航 */
.breadcrumb {
    max-width: 1200px;
    margin: 15px auto 0;
    padding: 10px 20px;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #4a90d9;
    text-decoration: none;
}
.breadcrumb a:hover {
    text-decoration: underline;
}
.breadcrumb .sep {
    margin: 0 8px;
    color: #ccc;
}
.breadcrumb .current {
    color: #333;
    font-weight: 500;
}


/* ========== 下载进度模态框 ========== */
.download-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}
.download-modal-box {
    background: #fff;
    border-radius: 12px;
    width: 440px;
    max-width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
    animation: downloadModalIn 0.25s ease;
}
@keyframes downloadModalIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.download-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}
.download-modal-header h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
}
.download-modal-close {
    font-size: 24px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}
.download-modal-close:hover { color: #333; }
.download-modal-body { padding: 24px 20px; }
.download-file-name {
    font-size: 14px;
    color: #555;
    margin-bottom: 16px;
    word-break: break-all;
    background: #f7f7f7;
    padding: 8px 12px;
    border-radius: 6px;
}
.download-progress-bar {
    width: 100%;
    height: 10px;
    background: #e8e8e8;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}
.download-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #4a90d9, #357abd);
    border-radius: 5px;
    transition: width 0.2s ease;
}
.download-progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #888;
}
.download-result {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.download-success-icon {
    width: 56px;
    height: 56px;
    line-height: 56px;
    border-radius: 50%;
    background: #e8f5e9;
    color: #4caf50;
    font-size: 28px;
    margin: 0 auto 12px;
}
.download-success-text {
    font-size: 14px;
    color: #555;
    margin: 0 0 16px;
}
.download-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}
.download-error {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.download-error-text {
    color: #e53935;
    font-size: 14px;
    margin-bottom: 16px;
}


/* ===== 悬赏任务卡片网格 ===== */
.task-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.task-card-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}
.task-card-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.task-card-cover {
    position: relative;
    width: 100%;
    height: 160px;
    background: #f0f0f0;
    overflow: hidden;
}
.task-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.task-card-noimg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa, #e4e8ec);
}
.task-card-noimg-icon {
    font-size: 48px;
    opacity: 0.4;
}
.task-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    backdrop-filter: blur(4px);
}
.badge-open { background: rgba(255,107,53,0.9); }
.badge-working { background: rgba(33,150,243,0.9); }
.badge-submitted { background: rgba(156,39,176,0.9); }
.badge-completed { background: rgba(76,175,80,0.9); }
.task-card-info {
    padding: 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.task-card-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.4;
}
.task-card-title a {
    color: #333;
    text-decoration: none;
}
.task-card-title a:hover {
    color: #ff6b35;
}
.task-card-desc {
    font-size: 13px;
    color: #888;
    line-height: 1.5;
    margin-bottom: 10px;
    flex: 1;
}
.task-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.task-card-type {
    font-size: 12px;
    color: #666;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 4px;
}
.task-card-price {
    font-size: 16px;
    font-weight: 700;
    color: #ff6b35;
}
.task-card-action {
    margin-top: auto;
}
.btn-block {
    display: block;
    width: 100%;
    text-align: center;
    padding: 8px 0;
}
.btn-accept {
    background: linear-gradient(135deg, #ff6b35, #ff8c5a);
    border: none;
}
.btn-download {
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    border: none;
}
.task-card-hint {
    display: block;
    text-align: center;
    font-size: 13px;
    color: #999;
    padding: 8px 0;
}
.task-countdown {
    text-align: center;
    background: #f8f9ff;
    border-radius: 8px;
    padding: 10px;
}
.task-countdown-label {
    font-size: 12px;
    color: #888;
    margin-bottom: 4px;
}
.task-countdown-timer {
    font-size: 22px;
    font-weight: 700;
    color: #2196f3;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}
.btn-submit-inline {
    margin-top: 8px;
    display: inline-block;
}
.status-icon {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 4px;
    vertical-align: middle;
}
.status-icon-open { background: #ff6b35; }
.status-icon-working { background: #2196f3; }
.status-icon-completed { background: #4caf50; }


/* ========== 众筹任务样式 ========== */
.crowdfunding-section {
    margin-top: 24px;
    padding: 20px;
    background: #f8f9ff;
    border-radius: 12px;
    border: 1px solid #e0e7ff;
}
.crowdfunding-list {
    margin-top: 12px;
}
.crowdfunding-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid #e5e7eb;
    transition: box-shadow 0.2s;
}
.crowdfunding-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.crowdfunding-info {
    flex: 1;
    margin-right: 16px;
}
.crowdfunding-content {
    font-size: 14px;
    color: #333;
    margin-bottom: 6px;
    line-height: 1.5;
}
.crowdfunding-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #888;
    flex-wrap: wrap;
}
.crowdfunding-action {
    flex-shrink: 0;
}
.no-crowdfunding-tip {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 14px;
}
.crowdfunding-create-form {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed #d0d5dd;
}
.crowdfunding-create-form .form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}
.crowdfunding-create-form .form-group {
    display: flex;
    flex-direction: column;
}
.crowdfunding-create-form label {
    font-size: 13px;
    color: #555;
    margin-bottom: 4px;
    font-weight: 500;
}
.crowdfunding-create-form textarea,
.crowdfunding-create-form input[type="number"] {
    padding: 8px 12px;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
}
.crowdfunding-create-form textarea:focus,
.crowdfunding-create-form input[type="number"]:focus {
    outline: none;
    border-color: #4a6cf7;
    box-shadow: 0 0 0 3px rgba(74,108,247,0.1);
}

/* 弹窗通用样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}
.modal-content {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    animation: modalFadeIn 0.2s ease;
}
@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
}
.modal-header h4 {
    margin: 0;
    font-size: 16px;
    color: #333;
}
.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}
.modal-close:hover {
    background: #f3f4f6;
    color: #333;
}
.modal-body {
    padding: 20px;
}
.modal-footer {
    padding: 16px 20px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}


/* 折叠标题样式 */
.collapsible-header {
    transition: background 0.2s;
    border-radius: 6px;
    padding: 8px 12px;
    margin: 0 -12px;
}
.collapsible-header:hover {
    background: rgba(74, 108, 247, 0.05);
}
.arrow-icon {
    display: inline-block;
    transition: transform 0.3s ease;
    font-size: 12px;
    color: #4a6cf7;
    margin-right: 6px;
}

/* 文本截断通用类 */
.text-clamp-1 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    word-break: break-all;
}
.text-clamp-2 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-all;
}
.text-clamp-3 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    word-break: break-all;
}
.text-nowrap {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 滚动公告栏 */
.announcement-bar {
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, #fff8e1, #fff3cd);
    border-bottom: 1px solid #ffe082;
    padding: 8px 20px;
    gap: 12px;
}
.announcement-icon {
    font-size: 16px;
    flex-shrink: 0;
}
.announcement-scroll {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
}
.announcement-text {
    display: inline-block;
    padding-left: 100%;
    animation: announcement-scroll 40s linear infinite;
    color: #e65100;
    font-size: 14px;
}
.announcement-text:hover {
    animation-play-state: paused;
}
.announcement-close {
    flex-shrink: 0;
    background: none;
    border: none;
    font-size: 20px;
    color: #e65100;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    opacity: 0.7;
}
.announcement-close:hover {
    opacity: 1;
}
@keyframes announcement-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* ===== 组件化样式 ===== */

/* Modal 弹窗 */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
.modal {
    background: #fff;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.modal.sm { max-width: 360px; }
.modal.lg { max-width: 720px; }
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}
.modal-header h3 { margin: 0; font-size: 18px; }
.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    line-height: 1;
}
.modal-close:hover { color: #333; }
.modal-body { padding: 20px; }
.modal-footer {
    padding: 12px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Lightbox 图片大图查看 */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}
.lightbox-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}
.lightbox-close {
    position: absolute;
    top: 20px; right: 30px;
    background: none;
    border: none;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    z-index: 2001;
}

/* 进度条 */
.progress-bar {
    width: 100%;
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 10px;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    transition: width 0.3s ease;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 30px 0;
    flex-wrap: wrap;
}
.page-link {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
}
.page-link:hover:not(.disabled):not(.active) {
    border-color: #4CAF50;
    color: #4CAF50;
}
.page-link.active {
    background: #4CAF50;
    color: #fff;
    border-color: #4CAF50;
}
.page-link.disabled {
    color: #ccc;
    cursor: not-allowed;
}
.page-ellipsis {
    padding: 8px 4px;
    color: #999;
}

/* 验证码 */
.captcha-group .captcha-row {
    display: flex;
    gap: 10px;
    align-items: center;
}
.captcha-group input {
    flex: 1;
}
.form-hint {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #999;
}

/* 新卡片动画 */
.resource-card.new-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.resource-card.new-card.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ===== 任务卡片组件 ===== */
.task-center-page { max-width: 1100px; margin: 0 auto; padding: 20px; }
.page-header { margin-bottom: 24px; }
.page-header h2 { margin: 0 0 8px 0; font-size: 24px; color: #222; }
.page-subtitle { margin: 0; color: #888; font-size: 14px; }
.task-stats { display: flex; gap: 16px; margin-bottom: 24px; }
.stat-card { flex: 1; background: #fff; border-radius: 12px; padding: 20px; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.stat-number { font-size: 32px; font-weight: 700; color: #4a6cf7; }
.stat-label { font-size: 13px; color: #888; margin-top: 4px; }
.task-list { display: flex; flex-direction: column; gap: 16px; }
.task-card { background: #fff; border-radius: 12px; padding: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); border-left: 4px solid #ddd; transition: box-shadow 0.2s; }
.task-card-layout { display: flex; gap: 20px; }
.task-thumbnail { flex-shrink: 0; width: 120px; height: 120px; border-radius: 8px; overflow: hidden; background: #f5f5f5; }
.task-thumb-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.task-thumb-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; font-size: 14px; font-weight: 600; }
.task-info { flex: 1; min-width: 0; }
.task-participants { margin-top: 10px; padding: 8px 12px; background: #f8f9ff; border-radius: 6px; font-size: 13px; }
.participants-label { color: #666; font-weight: 500; margin-right: 8px; }
.participants-list { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.participant-tag { display: inline-block; padding: 2px 10px; background: #e8ecff; color: #4a6cf7; border-radius: 12px; font-size: 12px; font-weight: 500; }
.task-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.task-card.status-pending { border-left-color: #ff9800; }
.task-card.status-accepted { border-left-color: #2196f3; }
.task-card.status-completed { border-left-color: #4caf50; }
.task-card.status-cancelled { border-left-color: #999; }
.task-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.task-id { font-weight: 600; color: #555; font-size: 14px; }
.task-content { font-size: 15px; color: #333; line-height: 1.6; margin-bottom: 12px; }
.task-meta { display: flex; gap: 20px; flex-wrap: wrap; font-size: 13px; color: #888; margin-bottom: 16px; }
.task-meta a { color: #4a6cf7; text-decoration: none; }
.task-meta a:hover { text-decoration: underline; }
.task-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px solid #f0f0f0; }
.task-price { display: flex; align-items: baseline; gap: 6px; }
.price-label { font-size: 13px; color: #888; }
.price-value { font-size: 28px; font-weight: 700; color: #ff6b35; }
.task-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.task-countdown { font-size: 13px; color: #2196f3; font-weight: 600; }

/* ===== 轮播图组件（carousel-component，避免与首页轮播图冲突） ===== */
.carousel-component { position: relative; width: 100%; overflow: hidden; background: #fff; border-radius: 8px; }
.carousel-component .carousel-track { position: relative; width: 100%; height: 100%; }
.carousel-component .carousel-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.4s ease; display: flex; align-items: center; justify-content: center; }
.carousel-component .carousel-slide.active { opacity: 1; position: relative; }
.carousel-component .carousel-slide img { max-width: 100%; max-height: 100%; object-fit: contain; }
.carousel-component .carousel-prev, .carousel-component .carousel-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.5); color: #fff; border: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 18px; z-index: 10; transition: background 0.2s; }
.carousel-component .carousel-prev:hover, .carousel-component .carousel-next:hover { background: rgba(0,0,0,0.8); }
.carousel-component .carousel-prev { left: 10px; }
.carousel-component .carousel-next { right: 10px; }
.carousel-component .carousel-dots { position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10; }
.carousel-component .carousel-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: background 0.2s; }
.carousel-component .carousel-dot.active { background: #fff; }

/* ===== 管理后台组件样式 ===== */
.admin-stats-row {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.admin-stats-row .stat-card {
    flex: 1;
    min-width: 150px;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.admin-stats-row .stat-icon {
    font-size: 28px;
    margin-bottom: 8px;
}
.admin-stats-row .stat-number {
    font-size: 32px;
    font-weight: 700;
}
.admin-stats-row .stat-label {
    font-size: 13px;
    color: #888;
    margin-top: 4px;
}

/* 状态标签 */
.status-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}
.status-tag.status-success { background: #e8f5e9; color: #2e7d32; }
.status-tag.status-warning { background: #fff3e0; color: #e65100; }
.status-tag.status-danger { background: #ffebee; color: #c62828; }
.status-tag.status-info { background: #e3f2fd; color: #1565c0; }
.status-tag.status-secondary { background: #f5f5f5; color: #666; }

/* 表单控件 */
.form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}
.form-control:focus {
    outline: none;
    border-color: #4a6cf7;
    box-shadow: 0 0 0 3px rgba(74,108,247,0.1);
}
.form-group .required {
    color: #f44336;
}

/* 资源详情页缩略图 */
.detail-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}
.detail-thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid #ddd;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s;
    background: #fff;
}
.detail-thumb:hover {
    border-color: #4a90d9;
    transform: scale(1.05);
}
.detail-thumb.active {
    border-color: #4a90d9;
    box-shadow: 0 0 0 1px #4a90d9;
}

/* ===== 站内留言页四个操作按钮：统一大小与字体高度 ===== */
.message-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}
.message-tabs a,
.message-tabs button.msg-tab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    font-size: 15px;
    line-height: 1.2;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    border: 1px solid #e0e0e0;
    background: #fff;
    color: #555;
}
.message-tabs a:hover,
.message-tabs button.msg-tab-btn:hover {
    background: #f0f4ff;
    color: #4a6cf7;
    border-color: #4a6cf7;
}
.message-tabs a.active {
    background: #4a6cf7;
    color: #fff;
    border-color: #4a6cf7;
}

/* ===== 众筹确认弹窗：全屏遮罩并居中（原 .modal 无定位规则导致不居中） ===== */
#crowdfundingModal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

