/* ============================================================
   绳艺行业服务平台 - 主样式表
   ============================================================ */

:root {
    /* 品牌色系：朱红 + 深紫（源自界面优化设计稿） */
    --primary: #e85a4f;
    --primary-dark: #d14a40;
    --primary-light: #fdecea;
    --secondary: #6b3580;
    --secondary-light: #f1e8f5;
    --success: #059669;
    --success-light: #d1fae5;
    --danger: #dc2626;
    --danger-light: #fee2e2;
    --warning: #d97706;
    --warning-light: #fef3c7;
    --info: #3b82f6;
    --info-light: #dbeafe;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #1a1a2e;
    --bg: #f7f7fa;
    --card-bg: #ffffff;
    --text: #1a1a2e;
    --text-light: #6b7280;
    --border: #e8eaf0;
    --radius: 10px;
    --radius-sm: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 2px rgba(26, 26, 46, 0.04);
    --shadow: 0 1px 3px rgba(26, 26, 46, 0.05), 0 2px 8px rgba(26, 26, 46, 0.04);
    --shadow-md: 0 4px 10px rgba(26, 26, 46, 0.07), 0 2px 4px rgba(26, 26, 46, 0.04);
    --shadow-lg: 0 10px 24px rgba(26, 26, 46, 0.10), 0 4px 8px rgba(26, 26, 46, 0.04);
    /* 经典衬线字体（导航专用） */
    --font-serif: Georgia, "Times New Roman", "Songti SC", "STSong", "SimSun", "Noto Serif SC", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }

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

/* Topbar（黑底 + 白色衬线字） */
.topbar {
    background: #16161f;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    font-family: var(--font-serif);
}
.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}
.logo {
    font-size: 40px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}
.nav-right {
    display: flex;
    align-items: center;
    gap: 0;
}
.nav-link {
    color: rgba(255, 255, 255, 0.72);
    padding: 8px 6px;
    border-radius: 999px;
    font-size: 19px;
    transition: all 0.2s;
    position: relative;
    display: inline-block;
    white-space: nowrap;
}
.nav-link.active {
  color: #fff;
  background: linear-gradient(135deg, #ff8a4a, #e85a4f);
  font-weight: 700;
  box-shadow: 0 3px 12px rgba(232, 90, 79, 0.45);
}
.nav-link.active:hover {
  background: linear-gradient(135deg, #ff9a5e, #ec6559);
  box-shadow: 0 4px 14px rgba(232, 90, 79, 0.55);
}
.nav-link:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.nav-register {
    background: var(--primary);
    color: #fff !important;
    border-radius: var(--radius);
    padding: 8px 18px;
    box-shadow: 0 2px 8px rgba(232, 90, 79, 0.3);
}
.nav-register:hover { background: var(--primary-dark); color: #fff !important; }
.nav-logout { color: #ff9a91 !important; }
.nav-credits {
    color: #fbbf24;
    font-weight: 600;
    margin-left: 8px;
    background: rgba(251, 191, 36, 0.14);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 18px;
    white-space: nowrap;
}
.nav-badge .badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--danger);
    color: #fff;
    font-size: 10px;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* Main content */
.main-content { min-height: calc(100vh - 64px - 80px); padding: 24px 0; }

/* Hero（首页首屏：深底 + 径向光晕，设计稿样式） */
.hero-section {
    background: linear-gradient(135deg, #e85a4f 0%, #6b3580 100%);
    color: #fff;
    padding: 60px 20px;
    text-align: center;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    margin-bottom: 32px;
}
.hero-content h1 { font-size: 36px; font-weight: 800; margin-bottom: 12px; }
.hero-subtitle { font-size: 18px; opacity: 0.9; margin-bottom: 24px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; }

.home-hero {
    position: relative;
    background: #1a1a2e;
    color: #fff;
    overflow: hidden;
    padding: 56px 48px;
    border-radius: 20px;
    margin-bottom: 40px;
    box-shadow: 0 16px 40px rgba(26, 26, 46, 0.18);
}
.home-hero::before,
.home-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.home-hero::before {
    width: 640px;
    height: 640px;
    left: -220px;
    top: -260px;
    background: radial-gradient(circle, rgba(232, 90, 79, 0.28) 0%, transparent 68%);
}
.home-hero::after {
    width: 640px;
    height: 640px;
    right: -220px;
    bottom: -300px;
    background: radial-gradient(circle, rgba(107, 53, 128, 0.34) 0%, transparent 68%);
}
.home-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 48px;
    align-items: center;
}
.home-hero.no-slider .home-hero-inner { grid-template-columns: 1fr; }
.home-hero.no-slider .hero-copy { max-width: 720px; }
@media (max-width: 992px) {
    .home-hero { padding: 44px 24px; }
    .home-hero-inner { grid-template-columns: 1fr; gap: 36px; }
}
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 13px;
    letter-spacing: 1px;
    margin-bottom: 20px;
}
.hero-tag::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 10px rgba(232, 90, 79, 0.9);
}
.home-hero h1 {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 18px;
    letter-spacing: 0.5px;
}
.home-hero h1 .hero-title-accent {
    background: linear-gradient(90deg, #f2837a, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.home-hero .hero-lead {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.66);
    line-height: 1.8;
    margin-bottom: 30px;
    max-width: 560px;
}
.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #e85a4f, #d14a40);
    color: #fff;
    padding: 13px 30px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(232, 90, 79, 0.38);
    transition: transform 0.2s, box-shadow 0.2s;
}
.hero-cta-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(232, 90, 79, 0.48); color: #fff; }
.hero-cta-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    padding: 13px 30px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}
.hero-cta-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.hero-stats {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.hero-stat {
    flex: 1;
    padding-right: 20px;
}
.hero-stat + .hero-stat {
    padding-left: 24px;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}
.hero-stat .stat-num { font-size: 26px; font-weight: 800; color: #fff; display: block; line-height: 1.2; }
.hero-stat .stat-label { font-size: 12px; color: rgba(255, 255, 255, 0.55); letter-spacing: 1px; }
@media (max-width: 480px) {
    .home-hero h1 { font-size: 30px; }
    .hero-stat .stat-num { font-size: 20px; }
    .hero-stat + .hero-stat { padding-left: 14px; }
    .hero-stat { padding-right: 8px; }
}

/* Home slider（嵌入 Hero 右栏的精选作品轮播卡片） */
.home-slider {
    position: relative;
    width: 100%;
    height: 440px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.38);
    background: #232338;
}
.home-slider .slides {
    display: flex;
    transition: transform .5s ease;
    height: 100%;
}
.home-slider .slide {
    position: relative;
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
}
.home-slider .slide-work {
    background-size: cover;
    background-position: center;
}
.home-slider .slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .68), rgba(0, 0, 0, .12) 62%, transparent);
}
.home-slider .slide-caption {
    position: relative;
    z-index: 2;
    color: #fff;
    padding: 24px 28px;
    max-width: 100%;
}
.home-slider .slide-caption h2 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .35);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.home-slider .slide-caption p {
    font-size: 14px;
    opacity: .95;
    margin-bottom: 16px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .3);
}
.home-slider .slide-caption .slide-btn {
    padding: 10px 22px;
    font-size: 14px;
    border-radius: 10px;
}
.home-slider .slide-actions { display: flex; gap: 12px; }
.home-slider .slide-tag {
    display: inline-block;
    background: rgba(255, 255, 255, .2);
    border: 1px solid rgba(255, 255, 255, .4);
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 12px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.home-slider .slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .85);
    color: #333;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: background .2s, transform .2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}
.home-slider .slider-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.home-slider .slider-arrow.prev { left: 12px; }
.home-slider .slider-arrow.next { right: 12px; }
.home-slider .slider-dots {
    position: absolute;
    bottom: 14px;
    right: 18px;
    display: flex;
    gap: 8px;
    z-index: 3;
}
.home-slider .slider-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, .5);
    cursor: pointer;
    padding: 0;
    transition: background .2s, width .2s;
}
.home-slider .slider-dots .dot.active { background: #fff; width: 22px; border-radius: 6px; }
@media (max-width: 992px) {
    .home-slider { height: 320px; }
}
@media (max-width: 480px) {
    .home-slider { height: 230px; }
    .home-slider .slide-caption { padding: 16px 18px; }
    .home-slider .slide-caption h2 { font-size: 18px; }
    .home-slider .slider-arrow { width: 34px; height: 34px; }
}

/* Feature section（五色图标卡片，设计稿样式） */
.feature-section { margin-bottom: 48px; }
.feature-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}
@media (max-width: 768px) {
    .feature-grid { grid-template-columns: repeat(3, 1fr); }
}
.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    color: var(--text);
    text-decoration: none;
    display: block;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; color: var(--text); }
.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-icon.fi-red    { background: #fdecea; }
.feature-icon.fi-blue   { background: #e8f0fe; }
.feature-icon.fi-yellow { background: #fef5e3; }
.feature-icon.fi-green  { background: #e6f6ef; }
.feature-icon.fi-purple { background: #f1e8f5; }
.feature-icon.fi-teal   { background: #e0f5f5; }
.feature-card h3 { font-size: 16px; margin-bottom: 6px; }
.feature-card p { color: var(--text-light); font-size: 13px; line-height: 1.6; }

/* Home sections */
.home-section { margin-bottom: 48px; }
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}
.section-header h2 { font-size: 22px; font-weight: 700; position: relative; padding-left: 14px; }
.section-header h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    border-radius: 2px;
    background: linear-gradient(180deg, #e85a4f, #6b3580);
}
.link-more { font-size: 14px; }

/* Home CTA banner（设计稿深底横幅） */
.home-cta {
    background: #1a1a2e;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    padding: 56px 40px;
    text-align: center;
    color: #fff;
    margin-bottom: 48px;
}
.home-cta::before {
    content: "";
    position: absolute;
    width: 480px;
    height: 480px;
    left: -160px;
    top: -220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 90, 79, 0.24) 0%, transparent 68%);
}
.home-cta::after {
    content: "";
    position: absolute;
    width: 480px;
    height: 480px;
    right: -160px;
    bottom: -240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(107, 53, 128, 0.3) 0%, transparent 68%);
}
.home-cta-inner { position: relative; z-index: 1; }
.home-cta h2 { font-size: 30px; font-weight: 800; margin-bottom: 12px; }
.home-cta p { color: rgba(255, 255, 255, 0.6); font-size: 15px; margin-bottom: 28px; }
@media (max-width: 768px) {
    .home-cta { padding: 40px 20px; }
    .home-cta h2 { font-size: 22px; }
}

/* Card grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}
.card-grid.grid-3 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.card-grid.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card-grid.grid-1 { grid-template-columns: 1fr; }
/* ===== 列表视图（参考 works 大卡片布局：桌面左图右文 / 移动端上图下文） ===== */
.list-view { display: flex; flex-direction: column; gap: 16px; }
.list-view > .card { display: flex; flex-direction: row; align-items: stretch; }
/* 图容器：models/studios/tasks/crowdfunding 外层是 a.card-img-link；venues 直接是 .card-img */
.list-view > .card > .card-img-link,
.list-view > .card > .card-img { flex: 0 0 240px; max-width: 240px; }
.list-view > .card > .card-img-link .card-img,
.list-view > .card > .card-img { aspect-ratio: auto; height: 100%; }
.list-view > .card > .card-img-link .card-img img,
.list-view > .card > .card-img img { height: 100%; }
.list-view > .card > .card-body { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; padding: 16px 18px; }
.list-view > .card > .card-body > .btn-block { margin-top: auto; }
@media (max-width: 768px) {
    .card-grid, .card-grid.grid-3, .card-grid.grid-4 { grid-template-columns: repeat(3, 1fr); }
    .card-grid.grid-1 { grid-template-columns: 1fr; }
    /* 列表视图：移动端恢复上图下文 */
    .list-view > .card { flex-direction: column; }
    .list-view > .card > .card-img-link,
    .list-view > .card > .card-img { flex: 0 0 auto; max-width: 100%; }
    .list-view > .card > .card-img-link .card-img,
    .list-view > .card > .card-img { aspect-ratio: 4 / 3; height: auto; }
    .list-view > .card > .card-body { justify-content: flex-start; padding: 12px 16px; }
    /* 众筹卡片：图片铺满整行（覆盖 line 2209 的 flex:0 0 260px / max-width:260px） */
    body .list-view > .card.crowdfunding-card > .card-img-link {
        flex: 0 0 auto;
        max-width: 100%;
        width: 100%;
        aspect-ratio: 16 / 9;
    }
    body .list-view > .card.crowdfunding-card > .card-img-link .card-img {
        width: 100%;
        height: 100%;
    }
}

/* ===== 作品列表 - 竖向列表（信息密集，详情页式） ===== */
.work-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
/* ===== 作品列表页 - 主区 + 侧栏（仿 weibo 风格） ===== */
.works-layout{
    display:flex;gap:24px;align-items:flex-start;
    margin:0;
}
.works-main{
    flex:1 1 auto;min-width:0;
}
.works-side{
    flex:0 0 300px;
    display:flex;flex-direction:column;gap:16px;
    position:sticky;top:14px;
}
.side-card{
    background:#fff;
    border:1px solid #eef0f4;
    border-radius:12px;
    padding:16px 16px 12px;
    box-shadow:0 2px 10px rgba(26,26,46,.04);
}
.side-card-head{
    display:flex;align-items:center;gap:8px;
    margin-bottom:12px;
    padding-bottom:10px;
    border-bottom:1px solid #f1f3f6;
}
.side-card-bar{
    width:4px;height:16px;border-radius:2px;
    background:linear-gradient(180deg,#e85a4f,#d14a40);
    flex:none;
}
.side-card-title{
    margin:0;font-size:15px;font-weight:700;color:#1a1a2e;letter-spacing:.3px;
    flex:1 1 auto;min-width:0;
}
.side-card-more{
    font-size:12px;color:#9aa0ad;text-decoration:none;flex:0 0 auto;
    transition:color .15s;
}
.side-card-more:hover{color:#e85a4f}
.side-card-list{
    list-style:none;margin:0;padding:0;
    display:flex;flex-direction:column;gap:10px;
}
.side-card-list--avatar{gap:12px}
.side-card-item{
    display:flex;align-items:flex-start;gap:10px;
    min-width:0;
}
.side-card-item--avatar{align-items:center}
.side-rank{
    flex:0 0 22px;height:22px;
    display:inline-flex;align-items:center;justify-content:center;
    border-radius:6px;
    font-size:12px;font-weight:700;line-height:1;
    background:#f3f4f7;color:#8a8e99;
}
.side-rank--top{
    background:linear-gradient(135deg,#e85a4f,#d14a40);color:#fff;
}
.side-avatar{
    flex:0 0 40px;width:40px;height:40px;
    border-radius:50%;overflow:hidden;
    background:#f3f4f7;display:inline-flex;align-items:center;justify-content:center;
    flex:none;
}
.side-avatar img{width:100%;height:100%;object-fit:cover}
.side-avatar-fallback{
    font-size:16px;font-weight:700;color:#9aa0ad;
}
.side-card-link{
    display:flex;flex-direction:column;gap:2px;
    min-width:0;flex:1 1 auto;
    text-decoration:none;color:#1a1a2e;
    transition:color .15s;
}
.side-card-link:hover .side-card-name{color:#e85a4f}
.side-card-name{
    font-size:14px;font-weight:500;line-height:1.4;
    overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.side-card-sub{
    font-size:11px;color:#9aa0ad;line-height:1.4;
}
.side-card-empty{
    text-align:center;padding:14px 0;font-size:12px;color:#b0b6c1;
}
/* 平板/手机：侧栏放到主区下方（不丢失内容） */
@media (max-width:1100px){
    /* 单列堆叠：align-items 必须改 stretch，否则 column 下子元素宽度会被内容撑成 283px 而非满宽 */
    .works-layout{flex-direction:column;align-items:stretch}
    .works-main{width:100%;min-width:0}
    .works-side{flex:1 1 auto;width:100%;position:static}
}
@media (max-width:600px){
    .works-side{gap:12px}
    .side-card{padding:14px 14px 10px;border-radius:10px}
}
.work-list-item {
    display: flex;
    flex-direction: row;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}
.work-list-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.work-list-thumb-link {
    flex: 0 0 280px;
    max-width: 280px;
    text-decoration: none;
    display: block;
}
.work-list-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--gray-100);
}
.work-list-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}
.work-list-thumb-link:hover .work-list-thumb img { transform: scale(1.05); }
.work-list-info {
    flex: 1;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}
.work-list-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}
.work-list-title a { color: var(--text); text-decoration: none; }
.work-list-title a:hover { color: var(--primary); }
.work-list-desc {
    color: var(--gray-600);
    font-size: 13px;
    line-height: 1.55;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.work-list-meta {
    font-size: 13px;
    color: var(--gray-600);
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.work-list-meta .meta-chip { font-size: 12px; padding: 1px 10px; }
.work-list-author-links {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-left: 10px;
}
.meta-pill {
    display: inline-block;
    padding: 2px 10px;
    font-size: 12px;
    background: #c25f52;           /* 淡朱红（品牌色柔化版），淡色背景 */
    color: #fff;                   /* 白色字体 */
    border: 1px solid #c25f52;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.15s;
    line-height: 1.4;
    font-weight: 500;
}
.meta-pill:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
}
.work-list-files {
    font-size: 13px;
    color: var(--gray-700);
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}
.work-list-files .meta-item { display: inline-flex; align-items: center; gap: 4px; }
.work-list-foot {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px dashed var(--border);
}
.work-list-meta-counts {
    font-size: 12px;
    color: var(--gray-500);
    margin-right: auto;
}
.work-list-price { font-size: 18px; font-weight: 700; color: var(--primary); }
.work-list-price .price-free { color: var(--success); font-weight: 600; }
@media (max-width: 720px) {
    .work-list-thumb-link { flex: 0 0 180px; max-width: 180px; }
    .work-list-info { padding: 12px 14px; }
    .work-list-title { font-size: 16px; }
    .work-list-desc { -webkit-line-clamp: 1; }
    /* 作品列表：作者/关注/∨/粉丝/照片·视频·blog 尽量压在同一行 */
    .work-list-meta { gap: 6px; font-size: 12px; }
    .work-list-meta .meta-chip { font-size: 12px; padding: 1px 8px; }
    .work-list-author-links { margin-left: 6px; gap: 5px; }
    .meta-pill { font-size: 12px; padding: 2px 9px; }
    .follow-btn { padding: 2px 10px; font-size: 12px; }
    .follow-caret { width: 20px; height: 20px; font-size: 13px; }
    .follow-count { font-size: 12px; }
}
@media (max-width: 480px) {
    .work-list-item { flex-direction: column; }
    .work-list-thumb-link { flex: 0 0 auto; max-width: 100%; }
    .work-list-thumb { aspect-ratio: 16/9; }
    .work-list-foot { flex-wrap: wrap; }
    /* 作品列表：作者/关注/∨/粉丝/照片·视频·blog 全部挤到同一行（≤480px） */
    .work-list-meta { gap: 4px; font-size: 11px; }
    .work-list-meta .meta-chip { font-size: 11px; padding: 1px 6px; }
    .work-list-author-links { margin-left: 4px; gap: 4px; }
    .meta-pill { font-size: 11px; padding: 1px 7px; }
    .follow-btn { padding: 2px 8px; font-size: 11px; }
    .follow-caret { width: 18px; height: 18px; font-size: 12px; }
    .follow-count { font-size: 11px; }
    /* 窄屏省掉「作者:」前缀，把空间让给关注按钮与照片/视频/blog */
    .work-list-meta .meta-label { display: none; }
}
/* 超窄屏（≤380px，如 360px 安卓机）再压一档，保证仍是一行 */
@media (max-width: 380px) {
    .work-list-meta { gap: 3px; font-size: 10px; }
    .work-list-meta .meta-chip { font-size: 10px; padding: 1px 5px; }
    .work-list-author-links { margin-left: 2px; gap: 3px; }
    .meta-pill { font-size: 10px; padding: 1px 6px; }
    .follow-btn { padding: 2px 6px; font-size: 10px; }
    .follow-caret { width: 16px; height: 16px; font-size: 11px; }
    .follow-count { font-size: 10px; }
}
/* 极窄屏（≤340px，iPhone SE1 等老机型）：让出「粉丝 N」的位置，其余仍保持一行 */
@media (max-width: 340px) {
    .work-list-meta .follow-count { display: none; }
    .work-list-meta { gap: 2px; }
    .work-list-author-links { margin-left: 2px; gap: 2px; }
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
    display: block;
    color: var(--text);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); color: var(--text); }
.card-img {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--gray-100);
}
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: var(--gray-400); font-size: 14px;
    background: var(--gray-100);
}
.work-badge {
    position: absolute; top: 10px; left: 10px;
    background: rgba(0,0,0,0.6); color: #fff;
    font-size: 12px; padding: 3px 10px; border-radius: 20px;
    backdrop-filter: blur(2px);
}
.work-badge-video { background: rgba(220,38,38,0.85); }
.card-img { position: relative; }
.card-img-link { display: block; text-decoration: none; color: inherit; }
.card-img-link .card-img { position: relative; }
.card-img-overlay {
    position: absolute; inset: 0;
    background: rgba(26,26,46,0);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 14px; font-weight: 600;
    opacity: 0; transition: opacity 0.25s, background 0.25s;
    pointer-events: none;
}
.card-img-link:hover .card-img-overlay {
    opacity: 1;
    background: rgba(26,26,46,0.45);
}
.card-img-link:hover img { transform: scale(1.05); }
.card-img-link img { transition: transform 0.3s ease; }
.card-rank-badge {
    position: absolute; top: 8px; left: 8px; z-index: 2;
    background: rgba(26,26,46,0.72); color: #fff;
    font-size: 12px; font-weight: 600; line-height: 1;
    padding: 4px 8px; border-radius: 6px;
}
.card-boost-badge {
    position: absolute; top: 8px; right: 8px; z-index: 2;
    background: var(--warning); color: #fff;
    font-size: 12px; font-weight: 600; line-height: 1;
    padding: 4px 8px; border-radius: 6px;
}
.boost-status-box { display: flex; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.boost-badge { font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 20px; }
.boost-badge-on { background: var(--warning-light); color: var(--warning); }
.boost-badge-off { background: var(--gray-100); color: var(--text-light); }
.boost-remain { font-size: 13px; color: var(--text-light); }
.card-body { padding: 12px 16px; }
.card-body h4 { font-size: 15px; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-meta { font-size: 12px; color: var(--text-light); margin-bottom: 4px; }
.card-price { margin-top: 6px; }
.price { color: var(--danger); font-weight: 700; font-size: 15px; }
.price-free { color: var(--success); font-weight: 600; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    line-height: 1.5;
}
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-danger { background: transparent; border-color: var(--danger); color: var(--danger); }
.btn-danger:hover { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-outline { background: transparent; border-color: var(--gray-300); color: var(--gray-700); }
.btn-outline:hover { background: var(--gray-50); border-color: var(--primary); color: var(--primary); }
.btn-warning { background: var(--warning); border-color: var(--warning); color: #fff; }
.btn-warning:hover { background: #d97706; border-color: #d97706; color: #fff; }
.btn-lg { padding: 12px 28px; font-size: 16px; }
.btn-sm { padding: 4px 12px; font-size: 12px; }
.btn-block { display: block; width: 100%; }

/* 大气下载按钮：黑底白字、全宽、加粗、浮起阴影 */
.btn-download-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px 22px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
    background: #141414;
    border: none;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    text-decoration: none;
}
.btn-download-hero:hover {
    color: #fff;
    background: #2c2c2c;
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.38);
}
.btn-download-hero:active {
    background: #000;
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.btn-download-hero .hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    font-size: 15px;
    animation: hero-bounce 1.6s ease-in-out infinite;
}
@keyframes hero-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(3px); }
}

/* Forms */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; color: var(--gray-700); }
.radio-group { display: flex; gap: 20px; flex-wrap: wrap; }
.form-group .radio-inline { display: inline-flex; align-items: center; font-weight: 400; color: var(--text); cursor: pointer; margin-bottom: 0; }
.form-group .radio-inline input { width: auto; margin-right: 6px; }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: border-color 0.2s;
    background: #fff;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}
.form-group textarea { resize: vertical; }

/* 开关切换（前台展示开关） */
/* 前台展示开关（个人中心设置行） */
.form-switch-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--gray-50);
}
.form-switch-text-wrap { flex: 1; min-width: 0; }
.form-switch-title { display: block; font-weight: 600; color: var(--gray-800); margin-bottom: 4px; }
.form-switch-desc { font-size: 12px; color: var(--text-light); line-height: 1.5; margin: 0; }
.form-group .form-switch { display: inline-flex; align-items: center; flex: 0 0 auto; margin: 0; cursor: pointer; }
.form-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.form-switch-slider { position: relative; display: block; width: 44px; height: 24px; background: var(--gray-300); border-radius: 24px; transition: background 0.2s; }
.form-switch-slider::before { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; background: #fff; border-radius: 50%; transition: transform 0.2s; box-shadow: 0 1px 2px rgba(0,0,0,0.2); }
.form-switch input:checked + .form-switch-slider { background: var(--success); }
.form-switch input:checked + .form-switch-slider::before { transform: translateX(20px); }
.form-switch input:focus-visible + .form-switch-slider { box-shadow: 0 0 0 3px var(--info-light); }
.form-hint { font-size: 12px; color: var(--text-light); margin-top: 4px; }
.target-calc-box { padding: 10px 14px; border: 1px dashed var(--text-light); border-radius: 8px; font-weight: 600; color: var(--primary); background: var(--primary-light); font-size: 15px; transition: border-color .2s; }
.required { color: var(--danger); }
.form-check label { display: flex; align-items: center; gap: 6px; }
.form-check input { width: auto; }
.form-wide { max-width: 600px; }
.form-row { display: flex; gap: 16px; }
.form-row .form-group { flex: 1; }
.form-inline { display: flex; gap: 8px; align-items: end; flex-wrap: wrap; }
.form-inline .form-group { margin-bottom: 0; }

/* Auth */
.auth-wrap {
    display: flex;
    justify-content: center;
    padding: 20px;
}
.auth-box {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 420px;
}
.auth-box-wide { max-width: 640px; }
.auth-box h2 { margin-bottom: 20px; text-align: center; }
.auth-form .btn { margin-top: 8px; }
.auth-link { text-align: center; margin-top: 16px; color: var(--text-light); }
.demo-account { margin-top: 12px; text-align: center; }
.membership-info { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.membership-info h3 { font-size: 16px; margin-bottom: 12px; }

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 14px;
}
.alert-success { background: var(--success-light); color: #065f46; border: 1px solid #6ee7b7; }
.alert-error { background: var(--danger-light); color: #991b1b; border: 1px solid #fca5a5; }
.alert-info { background: var(--info-light); color: #1e40af; border: 1px solid #93c5fd; }
.alert-warning { background: var(--warning-light); color: #92400e; border: 1px solid #fcd34d; }

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.table th, .table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}
.table th {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--gray-600);
    white-space: nowrap;
}
.table-sm th, .table-sm td { padding: 6px 10px; font-size: 12px; }
.table-detail td:first-child { font-weight: 600; width: 120px; color: var(--gray-600); }
.table-bordered { border: 1px solid var(--border); }
.table-bordered th, .table-bordered td { border: 1px solid var(--border); }
.table-bordered th { background: var(--gray-50); }

/* Status badges */
.status-pending, .status-success, .status-error {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}
.status-pending { background: var(--warning-light); color: #92400e; }
.status-success { background: var(--success-light); color: #065f46; }
.status-error { background: var(--danger-light); color: #991b1b; }
.status-badge { padding: 2px 8px; border-radius: 12px; font-size: 12px; font-weight: 500; }

/* Pagination */
.pagination-nav { margin-top: 24px; text-align: center; }
.pagination { list-style: none; display: inline-flex; gap: 4px; }
.page-item { display: inline-block; }
.page-link {
    display: block;
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--gray-700);
    font-size: 13px;
}
.page-link:hover { background: var(--gray-50); border-color: var(--primary); }
.page-item.active .page-link { background: var(--primary); color: #fff; border-color: var(--primary); }
.page-item.disabled .page-link { color: var(--gray-400); cursor: not-allowed; }

/* Empty state */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
    font-size: 14px;
}

/* Page header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}
.page-header h1 { font-size: 24px; font-weight: 700; }
.page-header .page-subtitle { margin: 4px 0 12px; color: var(--gray-600, #6b7280); font-size: 14px; }
.result-count { margin: 12px 0; color: var(--gray-600, #6b7280); font-size: 13px; }
.result-count strong { color: var(--primary, #d6336c); }
.badge { display: inline-block; padding: 2px 8px; border-radius: 12px; font-size: 12px; font-weight: 500; line-height: 1.5; }
.badge-success { background: var(--success-light, #d1fae5); color: #065f46; }
.badge-warning { background: var(--warning-light, #fef3c7); color: #92400e; }
.badge-error { background: var(--danger-light, #fee2e2); color: #991b1b; }
.badge-muted { background: var(--gray-100, #f3f4f6); color: var(--gray-600, #6b7280); }
.status-tabs { display: flex; gap: 8px; margin: 12px 0 4px; flex-wrap: wrap; }
.status-tab { padding: 6px 14px; border: 1px solid var(--border, #e5e7eb); border-radius: 999px; font-size: 13px; color: var(--gray-700, #374151); text-decoration: none; }
.status-tab:hover { border-color: var(--primary, #d6336c); color: var(--primary, #d6336c); }
.status-tab.active { background: var(--primary, #d6336c); border-color: var(--primary, #d6336c); color: #fff; }
.filter-bar { display: flex; gap: 8px; align-items: center; }
.filter-form { display: flex; gap: 8px; align-items: center; }
.filter-input, .filter-select {
    padding: 6px 12px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 13px;
}

/* Detail layout */
.detail-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
}
@media (max-width: 768px) { .detail-layout { grid-template-columns: 1fr; } }

.detail-main h1 { font-size: 24px; margin-bottom: 12px; }
.work-meta { display: flex; flex-wrap: wrap; gap: 16px; color: var(--text-light); font-size: 13px; margin-bottom: 16px; }
.work-author { display: inline-flex; align-items: center; gap: 6px; }
/* 作者高亮 chip：点击进入作者全部作品页 */
.author-chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 12px 2px 4px; border-radius: 999px; background: var(--primary-light); color: var(--primary-dark); border: 1px solid var(--primary); font-weight: 700; text-decoration: none; transition: background 0.2s, color 0.2s, box-shadow 0.2s; }
.author-chip:hover { background: var(--primary); color: #fff; box-shadow: 0 2px 8px rgba(232,90,79,0.35); }
.author-chip-avatar { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(255,255,255,0.6); }
.author-chip-name { line-height: 1; }

/* 类型/媒体筛选 chip：与作者 chip 视觉统一，点击进入作品对应筛选页 */
.meta-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; background: var(--primary-light); color: var(--primary-dark); border: 1px solid var(--primary); font-weight: 600; text-decoration: none; transition: background 0.2s, color 0.2s, box-shadow 0.2s; }
.meta-chip:hover { background: var(--primary); color: #fff; box-shadow: 0 2px 8px rgba(232,90,79,0.35); }

/* 卡片元信息内的用户名 chip：适配 12px 小字号上下文 */
.card-meta .meta-chip { font-size: 12px; padding: 1px 8px; vertical-align: middle; }
.card-meta .role-tag { vertical-align: middle; font-size: 11px; }

/* 卡片标题名称链接（模特/工作室库卡片，点击进入详情，与作者 chip 统一交互） */
.card-name-link { color: var(--text); text-decoration: none; transition: color 0.2s; }
.card-name-link:hover { color: var(--primary); }

/* 工作室卡片会员等级徽章（仅付费工作室会员显示：年会员 / 终身会员） */
.member-badge { display: inline-block; margin-left: 6px; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; line-height: 1.5; vertical-align: middle; white-space: nowrap; }
.member-badge-life { background: linear-gradient(135deg, #f0a830, #d98a1a); color: #fff; box-shadow: 0 1px 4px rgba(217, 138, 26, 0.35); }
.member-badge-year { background: var(--primary-light); color: var(--primary-dark); border: 1px solid rgba(232, 90, 79, 0.3); }

/* 作者主页 hero 区 */
.author-hero { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 24px; background: linear-gradient(120deg, var(--primary-light), #fff); border: 1px solid var(--primary); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.author-hero-avatar img,
.author-hero-avatar .author-hero-initial { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 4px 14px rgba(232,90,79,0.25); }
.author-hero-avatar .author-hero-initial { display: flex; align-items: center; justify-content: center; background: var(--primary); color: #fff; font-size: 34px; font-weight: 700; }
.author-hero-info { flex: 1; min-width: 220px; }
.author-hero-name { font-size: 24px; margin-bottom: 6px; display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.role-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.role-badge-model { background: var(--primary-light); color: var(--primary-dark); }
.role-badge-studio { background: #e7f0ff; color: #2563eb; }
.role-badge-enthusiast { background: var(--gray-100); color: var(--gray-700); }
.author-hero-sub { font-size: 13px; color: var(--text-light); margin-bottom: 6px; }
.author-hero-sub strong { color: var(--primary); }
.author-hero-intro { font-size: 13px; color: var(--gray-700); line-height: 1.7; margin-top: 4px; }
.author-hero-actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
@media (max-width: 600px) { .author-hero-actions { align-items: flex-start; } }
.view-count { display: inline-block; margin: 2px 0 8px; padding: 2px 10px; background: var(--bg); color: var(--text-light); border: 1px solid var(--border); border-radius: 999px; font-size: 12px; line-height: 1.6; }
.work-desc { margin-top: 24px; }
.work-desc h3 { font-size: 18px; margin-bottom: 12px; border-bottom: 2px solid var(--border); padding-bottom: 8px; }
.work-desc p { line-height: 1.8; color: var(--gray-700); }

.work-gallery { margin-bottom: 20px; }
.gallery-main { border-radius: var(--radius); overflow: hidden; margin-bottom: 8px; }
.gallery-main img { width: 100%; display: block; }
.gallery-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.gallery-thumbs .thumb { width: 80px; height: 60px; object-fit: cover; border-radius: var(--radius-sm); cursor: pointer; border: 2px solid transparent; transition: border-color 0.2s; }
.gallery-thumbs .thumb:hover { border-color: var(--primary); }
.gallery-thumbs .thumb-locked { width: 80px; height: 60px; border-radius: var(--radius-sm); border: 2px dashed var(--gray-300); background: var(--gray-100); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: default; }
.gallery-thumbs .thumb-locked .thumb-lock-icon { font-size: 16px; line-height: 1; }
.gallery-thumbs .thumb-locked .thumb-lock-text { font-size: 10px; color: var(--gray-500); text-align: center; line-height: 1.3; }
.gallery-lock { position: relative; }
.gallery-lock .video-lock-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(0,0,0,0.45); border-radius: var(--radius); color: #fff; text-align: center; }
.gallery-lock .video-lock-icon { font-size: 42px; line-height: 1; }
.gallery-lock .video-lock-overlay p { margin: 10px 0 0; font-size: 15px; letter-spacing: 1px; }
.empty-gallery { height: 300px; display: flex; align-items: center; justify-content: center; background: var(--gray-100); border-radius: var(--radius); color: var(--gray-400); }

.detail-sidebar .sidebar-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 16px;
}
.sidebar-card h3 { font-size: 16px; margin-bottom: 12px; }
.big-price { font-size: 28px; font-weight: 800; color: var(--danger); margin-bottom: 12px; }
.big-price small { font-size: 14px; font-weight: 400; }
.price-free { color: var(--success); }

/* Profile layout */
.profile-layout { display: grid; grid-template-columns: 280px 1fr; gap: 24px; }
@media (max-width: 768px) { .profile-layout { grid-template-columns: 1fr; } }
.profile-sidebar .profile-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow);
    text-align: center;
}
.user-avatar img, .user-avatar .avatar-placeholder {
    width: 80px; height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 12px;
    display: flex; align-items: center; justify-content: center;
    background: var(--primary);
    color: #fff;
    font-size: 28px;
    font-weight: 700;
}
.profile-card h3 { font-size: 18px; margin-bottom: 4px; }
.user-role { color: var(--text-light); font-size: 13px; margin-bottom: 12px; }
.user-stats { padding: 12px 0; border-top: 1px solid var(--border); }
.stat-item { text-align: center; }
.stat-value { display: block; font-size: 20px; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 12px; color: var(--text-light); }
.user-meta { text-align: left; font-size: 13px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.user-meta p { margin-bottom: 4px; }

/* Panels */
.panel {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    overflow: hidden;
}
.panel-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-header h2, .panel-header h3 { font-size: 18px; font-weight: 600; }
.panel-summary { font-size: 13px; color: var(--gray-600); font-weight: 500; }
.panel-body { padding: 20px; }
.panel-body .sub-title { margin: 24px 0 10px; font-size: 15px; color: var(--text); font-weight: 600; border-top: 1px dashed var(--border); padding-top: 16px; }
.panel-body .sub-title:first-child { margin-top: 0; border-top: none; padding-top: 0; }

/* Membership cards */
.membership-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.membership-card {
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    transition: all 0.2s;
}
.membership-card:hover { border-color: var(--primary); }
.membership-card.current { border-color: var(--success); background: var(--success-light); }
.membership-card h4 { font-size: 16px; margin-bottom: 8px; }
.membership-card .price { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.membership-card .desc { font-size: 12px; color: var(--text-light); margin-bottom: 12px; }
.badge-current { background: var(--success); color: #fff; padding: 4px 12px; border-radius: 12px; font-size: 12px; }

/* Recharge */
.recharge-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 768px) { .recharge-layout { grid-template-columns: 1fr; } }
.recharge-qr { text-align: center; }
.qr-item { margin-bottom: 16px; }
.qr-item img { max-width: 200px; border-radius: var(--radius); }
.qr-item p { font-size: 13px; color: var(--text-light); margin-top: 4px; }

/* Progress bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
    margin: 8px 0;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 4px;
    transition: width 0.5s;
}
.big-progress { height: 16px; }

/* Crowd stats */
.crowd-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 12px;
}
.crowd-stats > div { text-align: center; }
.stat-num { display: block; font-size: 18px; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 11px; color: var(--text-light); }

/* Model stats grid */
.model-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin: 20px 0;
}
.stat-box {
    background: var(--gray-50);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
    border: 1px solid var(--border);
}
.stat-box .stat-label { display: block; font-size: 12px; color: var(--text-light); margin-bottom: 4px; }
.stat-box .stat-value { font-size: 18px; font-weight: 700; color: var(--gray-800); }

/* Model list-card: 收紧 stat-box，3 列 2 行展示身材数据 */
.model-card .card-body { gap: 10px; }
/* 工作室 / 模特共享作品精选列表样式（视觉规格统一，命名空间隔离避免互相覆盖） */
.studio-card-works,
.model-card-works {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--border);
}
.studio-card-works-head,
.model-card-works-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
}
.studio-card-works-title,
.model-card-works-title {
    font-weight: 700;
    color: var(--gray-800);
    letter-spacing: 0.5px;
    position: relative;
    padding-left: 10px;
}
.studio-card-works-title::before,
.model-card-works-title::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 4px; height: 14px;
    background: var(--primary);
    border-radius: 2px;
}
.studio-card-works-more,
.model-card-works-more {
    color: var(--text-light);
    text-decoration: none;
    font-size: 12px;
    transition: color 0.2s;
}
.studio-card-works-more:hover,
.model-card-works-more:hover { color: var(--primary); }
.studio-card-works-empty,
.model-card-works-empty {
    color: var(--text-light);
    font-size: 12px;
}
.studio-card-works-list,
.model-card-works-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}
.studio-work-cell,
.model-work-cell {
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    background: var(--gray-50);
    transition: transform 0.2s, box-shadow 0.2s;
}
.studio-work-cell:hover,
.model-work-cell:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.studio-work-cell img,
.model-work-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}
.studio-work-cell:hover img,
.model-work-cell:hover img {
    transform: scale(1.06);
}
.studio-work-cell-placeholder,
.model-work-cell-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--text-light);
    font-size: 11px;
}
.model-card-head h4 { margin-bottom: 0; font-size: 18px; }
.model-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.model-card-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 4px;
}
.model-card-stats .stat-box {
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--gray-50);
}
.model-card-stats .stat-label { font-size: 11px; color: var(--text-light); margin-bottom: 2px; letter-spacing: 0.5px; }
.model-card-stats .stat-value { font-size: 16px; font-weight: 700; color: var(--gray-800); }
.model-card-foot {
    display: block;
    padding-top: 12px;
    border-top: 1px dashed var(--border);
    margin-top: 6px;
}
.model-card-foot > * + * { margin-top: 10px; }
.model-card-salary { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.model-card-salary .salary-label { font-size: 11px; color: var(--text-light); letter-spacing: 0.5px; }
.model-card-salary .salary-value { font-size: 16px; font-weight: 700; color: var(--primary); line-height: 1.2; }
.model-card-salary .salary-value--none { color: var(--text-light); font-weight: 500; font-size: 14px; }
.model-card-foot .btn { border-radius: 999px; }

/* 工作室卡片标题行：name 撑开占主，badge + 关注按钮 贴右（不紧挨 name） */
.studio-card-head{
    display:flex;align-items:center;gap:8px;flex-wrap:wrap;
    margin:0 0 8px 0;
}
.studio-card-head .card-name-link{
    flex:1 1 auto;min-width:0;line-height:1.3;
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.studio-card-head-actions{
    display:inline-flex;align-items:center;gap:8px;flex:0 0 auto;
    margin-left:auto;
}
/* 模特卡片标题行：与 studio-card-head 同结构，name 撑开 + actions 贴右 */
.model-card-head h4.model-card-head-row{
    display:flex;align-items:center;gap:8px;flex-wrap:wrap;
    margin:0;font-size:18px;
}
.model-card-head h4.model-card-head-row .card-name-link{
    flex:1 1 auto;min-width:0;line-height:1.3;
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.model-card-head-actions{
    display:inline-flex;align-items:center;gap:8px;flex:0 0 auto;
    margin-left:auto;
}
/* 卡片内联版关注按钮（大气版小号） */
.follow-btn--inline{
    display:inline-flex;align-items:center;gap:5px;
    padding:6px 14px;
    font-size:13px;font-weight:600;
    border-radius:999px;
    color:#fff;
    background:linear-gradient(135deg,#ff7e3c 0%,#e85a4f 100%);
    border:0;
    box-shadow:0 3px 10px rgba(232,90,79,.22);
    cursor:pointer;
    transition:all .2s ease;
    font-family:inherit;
    line-height:1.3;
}
.follow-btn--inline:hover{transform:translateY(-1px);box-shadow:0 5px 14px rgba(232,90,79,.30);filter:brightness(1.04)}
.follow-btn--inline:active{transform:translateY(0)}
.follow-btn--inline .follow-btn-icon{
    display:inline-flex;align-items:center;justify-content:center;
    width:16px;height:16px;border-radius:50%;
    background:rgba(255,255,255,.22);
    font-size:12px;line-height:1;font-weight:700;
}
.follow-btn--inline.follow-btn--on{
    background:#fff;color:#5b6273;
    box-shadow:inset 0 0 0 1.5px #d8dde6, 0 1px 3px rgba(0,0,0,.04);
}
.follow-btn--inline.follow-btn--on:hover{
    background:#fff5f3;color:#e85a4f;
    box-shadow:inset 0 0 0 1.5px #e85a4f, 0 3px 8px rgba(232,90,79,.18);
}
.follow-btn--inline.follow-btn--on .follow-btn-icon{background:#e85a4f;color:#fff}
.follow-btn--inline.follow-btn--self{
    background:#f3f4f7;color:#8a8e99;cursor:default;font-size:12px;
}
.follow-btn--inline.follow-btn--self:hover{transform:none;box-shadow:none;filter:none}
.follow-btn--inline[disabled]{opacity:.7;cursor:not-allowed}
@media (max-width: 768px) {
    .model-card-stats { grid-template-columns: repeat(3, 1fr); }
    .model-card-stats .stat-box { padding: 7px 6px; }
    .model-card-stats .stat-value { font-size: 14px; }
    .model-card-stats .stat-label { font-size: 10px; }
}

/* Model header — 3 列网格：上=头像 / 信息 / 关注按钮，下=礼物面板+按钮独立行 */
.model-header {
    display: grid;
    grid-template-areas:
        "avatar info follow"
        "gift   gift  gift";
    grid-template-columns: auto minmax(0, 1fr) auto;
    column-gap: 20px;
    row-gap: 14px;
    margin-bottom: 20px;
    align-items: start;
}
.model-header .model-avatar  { grid-area: avatar; }
.model-header .model-info    { grid-area: info;   min-width: 0; }
.model-header .model-follow-action { grid-area: follow; align-self: start; min-width: 0; }
.model-header .model-gift-panel { grid-area: gift; width: 100%; }
.model-avatar img, .model-avatar .avatar-placeholder {
    width: 100px; height: 100px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--primary);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 36px;
    font-weight: 700;
}
.model-info h1 { margin-bottom: 8px; word-break: break-word; }
.model-bio { color: var(--text-light); margin-top: 8px; }

/* 详情页右侧关注按钮（大气版）：渐变 + 大圆角 + 阴影 + 关注数 */
.model-follow-action{
    display:flex;flex-direction:column;align-items:flex-end;gap:8px;
    padding:6px 0 0 0;
}
.follow-btn--big{
    display:inline-flex;align-items:center;gap:8px;
    padding:11px 26px;
    font-size:15px;font-weight:700;
    border-radius:999px;
    color:#fff;
    background:linear-gradient(135deg,#ff7e3c 0%,#e85a4f 100%);
    border:0;
    box-shadow:0 6px 18px rgba(232,90,79,.28);
    cursor:pointer;
    transition:all .2s ease;
    font-family:inherit;
    line-height:1.3;
    min-width:148px;
    justify-content:center;
}
.follow-btn--big:hover{
    transform:translateY(-1px);
    box-shadow:0 8px 22px rgba(232,90,79,.36);
    filter:brightness(1.04);
}
.follow-btn--big:active{transform:translateY(0)}
.follow-btn--big .follow-btn-icon{
    display:inline-flex;align-items:center;justify-content:center;
    width:20px;height:20px;border-radius:50%;
    background:rgba(255,255,255,.22);
    font-size:14px;line-height:1;font-weight:700;
}
.follow-btn--big.follow-btn--on{
    background:#fff;color:#5b6273;
    box-shadow:inset 0 0 0 1.5px #d8dde6, 0 2px 6px rgba(0,0,0,.04);
}
.follow-btn--big.follow-btn--on:hover{
    background:#fff5f3;color:#e85a4f;
    box-shadow:inset 0 0 0 1.5px #e85a4f, 0 4px 12px rgba(232,90,79,.18);
    transform:translateY(-1px);
}
.follow-btn--big.follow-btn--on .follow-btn-icon{background:#e85a4f;color:#fff}
.follow-btn--big.follow-btn--self{
    background:#f3f4f7;color:#8a8e99;cursor:default;box-shadow:none;font-weight:600;
}
.follow-btn--big.follow-btn--self:hover{transform:none;box-shadow:none;filter:none}
.follow-btn--big[disabled]{opacity:.7;cursor:not-allowed}
.follow-fans-count{
    font-size:13px;color:#8a7a70;display:inline-flex;align-items:baseline;gap:3px;
}
.follow-fans-count b{font-size:16px;color:#3a3a4a;font-weight:700}
@media (max-width:768px){
    .model-header{
        grid-template-areas:
            "avatar info"
            "follow wall"
            "btn    btn";
        grid-template-columns:auto 1fr;
        column-gap:14px;row-gap:10px;
    }
    .model-header .model-info{min-width:0}
    .model-header .model-info h1{word-break:keep-all;white-space:normal}
    .model-header .model-follow-action{align-self:start;align-items:flex-start;gap:6px;padding-top:2px}
    .model-header .model-follow-action .follow-btn--big{min-width:0;padding:8px 14px;font-size:13px;width:auto}
    .model-header .model-follow-action .follow-fans-count{display:none}
    /* 礼物面板：gp-received 整体占 "wall" cell（含墙+文字），gp-btn 单独 "btn" 行 */
    .model-header .model-gift-panel{
        grid-area:wall;width:auto;
        display:flex;flex-direction:column;gap:8px;
        background:transparent;border:0;padding:0;margin:0;border-radius:0;
    }
    .model-header .model-gift-panel .gp-received{
        min-width:0;display:flex;flex-wrap:wrap;gap:6px 8px;align-items:center;
    }
    .model-header .model-gift-panel .gp-text{flex:1 1 100%}
    .model-header .model-gift-panel .gp-btn{
        grid-area:btn;width:100%;justify-content:center;
    }
}
/* 作者主页（author_works.php）hero 右侧：移动端同样让按钮全宽、粉丝数隐藏 */
@media (max-width:600px){
    .author-hero-actions .follow-btn--big{width:100%;padding:10px 16px;font-size:14px}
    .author-hero-actions .follow-fans-count{display:none}
}

/* Tags */
.text-primary { color: var(--primary); font-weight: 500; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
}

/* 自有模特作品照片缩略图 */
.photo-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.photo-thumb { position: relative; width: 84px; height: 110px; border-radius: 6px; overflow: hidden; border: 1px solid var(--border); }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-del { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; line-height: 16px; text-align: center; background: rgba(0,0,0,.6); color: #fff; border-radius: 50%; font-size: 13px; text-decoration: none; }
.photo-del:hover { background: #dc2626; }

/* 模卡展示 */
.comp-card-box { margin-top: 12px; }
.comp-card-box img { max-width: 320px; width: 100%; border-radius: 8px; border: 1px solid var(--border); }

/* 作品照片画廊 */
.photo-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.photo-gallery a { display: block; border-radius: 6px; overflow: hidden; border: 1px solid var(--border); }
.photo-gallery img { width: 100%; height: 150px; object-fit: cover; display: block; }
.photo-gallery a:hover img { opacity: .9; }

.role-tag { background: var(--gray-200); color: var(--gray-700); padding: 2px 8px; border-radius: 10px; font-size: 11px; }

/* Demand cards */
.demand-list { display: flex; flex-direction: column; gap: 12px; }
.demand-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 16px 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}
.demand-main { flex: 1; }
.demand-main h3 { font-size: 16px; margin-bottom: 6px; }
.demand-desc { color: var(--text-light); font-size: 13px; margin-bottom: 8px; }
.demand-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--text-light); }
.demand-side { text-align: right; min-width: 120px; }
.demand-price { font-size: 18px; font-weight: 700; color: var(--danger); margin-bottom: 8px; }
.demand-price.big { font-size: 24px; margin: 12px 0; }

/* Crowdfunding detail */
.crowd-detail-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; }
@media (max-width: 768px) { .crowd-detail-layout { grid-template-columns: 1fr; } }
.crowd-cover { border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; }
.crowd-cover img { width: 100%; max-height: 300px; object-fit: cover; }
.crowd-detail-main h1 { font-size: 24px; margin-bottom: 12px; }
.crowd-progress-section { margin: 20px 0; }

/* Supporter list */
.supporter-list { display: flex; flex-direction: column; gap: 8px; }
.supporter-item {
    padding: 8px 12px;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}
.supporter-msg { font-size: 12px; color: var(--text-light); margin-top: 4px; }

/* Invitation cards */
.invitation-list { display: flex; flex-direction: column; gap: 12px; }
.invitation-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 16px 20px;
    box-shadow: var(--shadow);
}
.invitation-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.inviter-info { display: flex; align-items: center; gap: 12px; }
.inviter-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 16px;
}
.invitation-body h3 { font-size: 16px; margin-bottom: 8px; }
.invitation-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--text-light); margin-top: 8px; }
.invitation-actions { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); display: flex; gap: 8px; }

/* Notification list */
.notification-list { display: flex; flex-direction: column; gap: 8px; }
.notification-item {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 12px 16px;
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 12px;
    border-left: 3px solid var(--gray-300);
}
.notification-item.unread { border-left-color: var(--primary); background: #fefbff; }
.notif-icon { font-size: 20px; }
.notif-content { flex: 1; }
.notif-content h4 { font-size: 14px; margin-bottom: 4px; }
.notif-content p { font-size: 13px; color: var(--text-light); }
.notif-time { font-size: 12px; color: var(--gray-400); }
.notif-link { font-size: 13px; display: inline-block; margin-top: 4px; }

/* Flash message */
.flash-message {
    padding: 12px 20px;
    border-radius: var(--radius);
    margin-bottom: 16px;
}

/* Text utilities */
.text-success { color: var(--success); font-weight: 600; }
.text-error { color: var(--danger); }
.text-center { text-align: center; }

/* Footer（深底四列，设计稿样式） */
.site-footer {
    background: #1a1a2e;
    color: #9ca3af;
    padding: 56px 0 0;
    margin-top: auto;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 40px;
}
@media (max-width: 992px) {
    .site-footer { padding: 40px 0 0; }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0 16px;
        padding-bottom: 20px;
    }
    .footer-brand { grid-column: 1 / -1; margin-bottom: 8px; }
    .footer-brand p { font-size: 14px; line-height: 1.9; max-width: none; }
    .footer-col,
    .footer-contact {
        padding: 22px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }
    .footer-contact { grid-column: 1 / -1; }
    .footer-col h4 {
        font-size: 16px;
        margin-bottom: 16px;
        padding-left: 12px;
        border-left: 3px solid var(--primary);
        letter-spacing: 1px;
    }
    .footer-links {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .footer-col a { padding: 8px 4px; font-size: 12px; white-space: nowrap; }
}
.footer-brand .logo {
    color: #fff;
    font-size: 18px;
    margin-bottom: 14px;
    display: inline-flex;
}
.footer-brand p {
    font-size: 13px;
    line-height: 1.8;
    color: #6b7280;
    max-width: 300px;
}
.footer-col h4 {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-left: 12px;
    border-left: 3px solid var(--primary);
    letter-spacing: 1px;
}
.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.footer-col a {
    display: block;
    text-align: center;
    color: #9ca3af;
    font-size: 13px;
    padding: 10px 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.footer-col a:hover {
    background: rgba(232, 90, 79, 0.15);
    border-color: var(--primary);
    color: #fff;
}
.footer-contact-list { grid-template-columns: 1fr; gap: 10px; }
.contact-card {
    display: block;
    text-align: center;
    font-size: 13px;
    padding: 11px 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    color: #9ca3af;
    line-height: 1.6;
    word-break: break-all;
}
.site-footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 0;
    text-align: center;
    font-size: 12px;
    color: #6b7280;
}
.footer-bottom .footer-links { margin-top: 6px; }
.footer-bottom .footer-links a { color: #9ca3af; margin: 0 10px; font-size: 12px; text-decoration: none; }
.footer-bottom .footer-links a:hover { color: #fff; }
.footer-note { font-size: 12px !important; color: #6b7280; }

/* Modal */
.modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-content {
    background: #fff;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
}
.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-body { padding: 20px; }
.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray-500);
}

/* Download section */
.download-section { display: flex; flex-direction: column; gap: 6px; }
.download-section .btn { margin: 2px 0; }

/* ============================================================
   统一页面风格 — 首页设计语言扩展
   列表页 Banner + 详情页 Hero + accent bar + 招募卡片 + 剧本需求布局
   ============================================================ */

/* 页面标题 accent bar — 所有 .page-header h1 统一加渐变竖条 */
.page-header h1 { position: relative; padding-left: 14px; }
.page-header h1::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    border-radius: 2px;
    background: linear-gradient(180deg, #e85a4f, #6b3580);
}

/* 列表页顶部 Banner — 首页 Hero 的轻量化版本 */
.list-banner {
    position: relative;
    background: #1a1a2e;
    color: #fff;
    overflow: hidden;
    padding: 32px 28px;
    border-radius: 16px;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(26, 26, 46, 0.12);
}
.list-banner::before,
.list-banner::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.list-banner::before {
    width: 340px;
    height: 340px;
    left: -130px;
    top: -150px;
    background: radial-gradient(circle, rgba(232, 90, 79, 0.20) 0%, transparent 68%);
}
.list-banner::after {
    width: 340px;
    height: 340px;
    right: -130px;
    bottom: -170px;
    background: radial-gradient(circle, rgba(107, 53, 128, 0.24) 0%, transparent 68%);
}
.list-banner-inner { position: relative; z-index: 1; }
.list-banner h1 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 6px;
    color: #fff;
    padding-left: 0;
}
.list-banner h1::before { display: none; }
.list-banner-sub {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.58);
    margin-bottom: 16px;
}
.list-banner .banner-filter {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.list-banner .banner-filter input,
.list-banner .banner-filter select {
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.list-banner .banner-filter input::placeholder { color: rgba(255, 255, 255, 0.4); }
.list-banner .banner-filter select option { color: #1a1a2e; }
.list-banner .banner-filter .btn-primary {
    border: none;
    box-shadow: 0 2px 8px rgba(232, 90, 79, 0.35);
}
.list-banner .banner-filter .btn-primary:hover {
    box-shadow: 0 4px 12px rgba(232, 90, 79, 0.45);
}
.list-banner .banner-filter .btn-outline {
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
    background: transparent;
}
.list-banner .banner-filter .btn-outline:hover {
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}
/* 列表页状态标签 — 深底统一 */
.list-banner .status-tabs { margin-top: 14px; margin-bottom: 0; }
.list-banner .status-tab {
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.06);
}
.list-banner .status-tab:hover {
    border-color: var(--primary);
    color: #fff;
}
.list-banner .status-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.list-banner .result-count {
    color: rgba(255, 255, 255, 0.5);
    margin-top: 12px;
}
.list-banner .result-count strong { color: var(--primary); }
/* 列表页通用「发布/创建」按钮：仅对应角色跳发布页，其余跳会员升级页 */
.list-publish-btn{
    position:absolute;top:0;right:0;
    display:inline-flex;align-items:center;gap:6px;
    padding:10px 18px;border-radius:10px;
    background:#fff;color:var(--primary);font-weight:700;font-size:14px;
    text-decoration:none;
    box-shadow:0 4px 14px rgba(0,0,0,.18);
    transition:transform .15s,box-shadow .15s,color .15s;
}
.list-publish-btn:hover{transform:translateY(-2px);box-shadow:0 6px 18px rgba(0,0,0,.25);color:#d14a40}
@media (max-width: 768px) {
    .list-banner { padding: 24px 20px; }
    .list-banner h1 { font-size: 22px; }
    .list-banner-inner{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;padding:18px 16px}
    .list-banner-inner h1{order:-1;flex:1 1 auto;min-width:0;font-size:22px;margin:0}
    .list-publish-btn{position:static;display:inline-flex;align-items:center;gap:6px;flex:0 0 auto;margin:0}
    .list-banner-inner .list-banner-sub{flex:1 1 100%;font-size:13px;margin:0}
    .banner-filter{flex:1 1 100%;margin-top:4px}
    .banner-filter form{width:100%;gap:8px}
    .banner-filter input[type="text"]{flex:1 1 100%;min-width:0}
    .banner-filter select{flex:1 1 48%;min-width:0}
    .banner-filter .btn{flex:1 1 100%}
    .status-tabs{flex:1 1 100%;margin-top:8px}
}

/* 详情页 Hero 卡片 — 统一头部样式 */
.detail-hero {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
    padding: 24px;
    background: linear-gradient(120deg, var(--primary-light), #fff 55%, var(--secondary-light));
    border: 1px solid var(--primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}
.detail-hero-cover {
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 4px;
}
.detail-hero-cover img { width: 100%; max-height: 320px; object-fit: cover; }
.detail-hero-avatar img,
.detail-hero-avatar .avatar-placeholder {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 14px rgba(232, 90, 79, 0.22);
    flex: none;
}
.detail-hero-avatar .avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    font-size: 32px;
    font-weight: 700;
}
.detail-hero-info { flex: 1; min-width: 220px; }
.detail-hero-info h1 { font-size: 24px; margin-bottom: 8px; }
.detail-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--text-light);
    font-size: 13px;
    margin-bottom: 8px;
}
.detail-hero-bio {
    font-size: 13px;
    color: var(--gray-700);
    line-height: 1.7;
}

/* 子区域标题 — accent bar 样式 */
.section-title {
    font-size: 18px;
    font-weight: 700;
    position: relative;
    padding-left: 14px;
    margin-bottom: 12px;
}
.section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    border-radius: 2px;
    background: linear-gradient(180deg, #e85a4f, #6b3580);
}

/* 统一 .work-desc h3 为 accent bar 样式（覆盖原有 border-bottom） */
.work-desc h3 {
    font-size: 18px;
    font-weight: 700;
    position: relative;
    padding-left: 14px;
    margin-bottom: 12px;
    border-bottom: none;
    padding-bottom: 0;
}
.work-desc h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    border-radius: 2px;
    background: linear-gradient(180deg, #e85a4f, #6b3580);
}

/* 增强已有 .model-header 为 hero 卡片样式 */
.model-header {
    padding: 24px;
    background: linear-gradient(120deg, var(--primary-light), #fff 55%, var(--secondary-light));
    border: 1px solid var(--primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}
.model-header .model-info h1 { font-size: 24px; margin-bottom: 8px; }

/* 众筹列表网格 */
.crowdfunding-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
/* 众筹卡片信息密度高（徽章/进度条/3 列 stats/截止/按钮），专属宽度与对齐 */
.list-view > .card.crowdfunding-card > .card-img-link {
    flex: 0 0 260px;
    max-width: 260px;
}
.list-view > .card.crowdfunding-card > .card-body {
    flex: 1 1 auto;
    min-width: 0;
    padding: 18px 22px;
}
.list-view > .card.crowdfunding-card .crowd-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 6px 0 8px;
}
.list-view > .card.crowdfunding-card .crowd-stats > div {
    background: var(--gray-50);
    border-radius: var(--radius);
    padding: 10px 8px;
    text-align: center;
}

/* 剧本需求详情布局 */
.demand-detail {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
}
@media (max-width: 768px) { .demand-detail { grid-template-columns: 1fr; } }

/* 招募卡片 */
.recruit-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 20px 24px;
    margin-bottom: 16px;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.recruit-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}
.recruit-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.recruit-card-avatar img,
.recruit-card-avatar .avatar-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex: none;
}
.recruit-card-avatar .avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}
.recruit-card-title { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.recruit-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: var(--text-light);
}
.recruit-card-salary { font-size: 18px; font-weight: 700; color: var(--danger); }
.recruit-card-actions {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 8px;
}

/* 详情页侧边栏卡片标题 accent bar */
.detail-sidebar .sidebar-card h3 {
    position: relative;
    padding-left: 12px;
}
.detail-sidebar .sidebar-card h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 16px;
    border-radius: 2px;
    background: linear-gradient(180deg, #e85a4f, #6b3580);
}
/* 众筹详情侧边栏同样 */
.crowd-detail-sidebar .sidebar-card h3 {
    position: relative;
    padding-left: 12px;
}
.crowd-detail-sidebar .sidebar-card h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 16px;
    border-radius: 2px;
    background: linear-gradient(180deg, #e85a4f, #6b3580);
}

/* 众筹卡片统一 hover lift（与首页 .card 一致） */
.card.crowd-card, .card.crowdfunding-card { transition: transform 0.2s, box-shadow 0.2s; }
.card.crowd-card:hover, .card.crowdfunding-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.crowdfunding-card .card-title-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

/* 众筹详情交付倒计时盒子统一样式 */
.delivery-countdown-box {
    background: #fff3e0;
    border: 1px solid #ffb74d;
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    margin-bottom: 12px;
}

/* 详情页 .work-info 统一为 hero 卡片样式（作品/场地/道具详情页头部） */
.detail-main .work-info {
    padding: 24px;
    background: linear-gradient(120deg, var(--primary-light), #fff 55%, var(--secondary-light));
    border: 1px solid var(--primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}
.detail-main .work-info h1 { font-size: 24px; margin-bottom: 8px; }
.detail-main .work-info .work-desc { margin-top: 20px; }

/* 众筹详情头部 hero 卡片 */
.crowd-detail-main .crowd-cover {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}
.crowd-detail-main > h1 {
    font-size: 24px;
    margin-bottom: 8px;
}
.crowd-detail-main > .work-meta {
    padding: 16px 20px;
    background: linear-gradient(120deg, var(--primary-light), #fff 55%, var(--secondary-light));
    border: 1px solid var(--primary);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
}

/* 剧本需求详情页头部 hero 卡片 */
.demand-detail > h1 { font-size: 24px; margin-bottom: 8px; }
.demand-detail > .work-meta {
    padding: 16px 20px;
    background: linear-gradient(120deg, var(--primary-light), #fff 55%, var(--secondary-light));
    border: 1px solid var(--primary);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
}
.demand-detail > .demand-price { margin-bottom: 16px; }

/* 剧本需求列表卡片统一 hover lift（与首页卡片一致） */
.demand-card {
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.demand-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}
.demand-card .demand-main h3 a { color: var(--text); text-decoration: none; }
.demand-card .demand-main h3 a:hover { color: var(--primary); }

/* 剧本需求申请卡片统一样式 */
.demand-app-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 12px;
    background: var(--card-bg);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.demand-app-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: var(--primary);
}
.demand-app-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
}

/* 统一状态徽章（列表页/详情页通用） */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
}
.status-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex: none;
}
.status-open {
    background: #d1fae5;
    color: #065f46;
}
.status-open::before { background: #059669; }
.status-matched {
    background: #fef3c7;
    color: #92400e;
}
.status-matched::before { background: #d97706; }
.status-closed {
    background: #f3f4f6;
    color: #6b7280;
}
.status-closed::before { background: #9ca3af; }
.status-pending {
    background: #fef3c7;
    color: #92400e;
}
.status-pending::before { background: #d97706; }
.status-accepted {
    background: #dbeafe;
    color: #1e40af;
}
.status-accepted::before { background: #2563eb; }
.status-delivered {
    background: #fdecea;
    color: #c62828;
}
.status-delivered::before { background: #e85a4f; }
.status-completed {
    background: #d1fae5;
    color: #065f46;
}
.status-completed::before { background: #059669; }
.status-rejected {
    background: #fee2e2;
    color: #991b1b;
}
.status-rejected::before { background: #dc2626; }

/* ============================================================
   邀请好友注册面板 + 复制提示
   ============================================================ */
.invite-panel .invite-tip {
    margin: 0 0 14px;
    color: var(--gray-600);
    font-size: 14px;
    line-height: 1.6;
}
.invite-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}
.invite-link-input {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    background: var(--gray-50);
    font-size: 13px;
    color: var(--gray-800);
    font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}
.invite-code-line {
    margin: 12px 0 0;
    font-size: 14px;
    color: var(--gray-700);
}
.invite-code-line strong {
    color: var(--primary-dark);
    letter-spacing: 1px;
}
.invite-toast {
    position: fixed;
    left: 50%;
    bottom: 40px;
    transform: translateX(-50%) translateY(20px);
    background: rgba(26, 26, 46, 0.94);
    color: #fff;
    padding: 12px 22px;
    border-radius: 8px;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
    z-index: 9999;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.invite-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
@media (max-width: 480px) {
    .invite-row { flex-direction: column; }
}

/* ==================== 任务大厅 / 任务详情 ==================== */
.task-filter { display: flex; gap: 12px; align-items: center; margin-bottom: 20px; flex-wrap: wrap; }
.task-filter input[type="text"] { flex: 1; min-width: 200px; }
.task-filter select { min-width: 130px; }

.task-card { display: flex; flex-direction: column; }
.task-card-link { display: block; padding: 18px; color: var(--text); text-decoration: none; flex: 1; }
.task-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.task-card-top h3 { font-size: 17px; font-weight: 600; margin: 0 0 8px; line-height: 1.4; }
.task-card-content { color: var(--text-light); font-size: 13px; margin: 0 0 12px; line-height: 1.6; }
.task-card-meta { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--text-light); }
.task-reward { color: var(--primary); font-weight: 700; }
.task-card-actions { padding: 0 18px 18px; }
.task-app-state { font-size: 13px; color: var(--text-light); }

/* 任务状态徽章 */
.task-badge { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge-gray { background: var(--gray-100); color: #6b7280; }
.badge-green { background: #d1fae5; color: #065f46; }
.badge-blue { background: #dbeafe; color: #1e40af; }
.badge-orange { background: #fef3c7; color: #92400e; }
.badge-red { background: #fee2e2; color: #991b1b; }

/* 任务详情页 */
.task-detail-layout { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
@media (max-width: 860px) { .task-detail-layout { grid-template-columns: 1fr; } }
.task-info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 20px; margin-bottom: 18px; }
.task-info-grid .tlabel { display: block; font-size: 12px; color: var(--text-light); margin-bottom: 4px; }
.task-info-grid .tval { font-size: 15px; font-weight: 600; }
.task-content-block { margin-bottom: 16px; }
.task-content-text { white-space: pre-wrap; line-height: 1.7; color: var(--text); }
.task-ref, .task-deliver-link, .task-deliver-note { margin-top: 14px; }
.task-ref a, .task-deliver-link a { word-break: break-all; color: var(--primary); }
.task-deliver-video { margin-bottom: 12px; }
/* 交付视频自动删除倒计时提示 */
.deliver-expire-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 10px 14px;
    background: #fff8e6;
    border: 1px solid #f3d98b;
    border-left: 4px solid #e0a800;
    border-radius: 8px;
    color: #7a5b00;
    font-size: 14px;
    line-height: 1.5;
}
.deliver-expire-notice.expired {
    background: #fdecea;
    border-color: #f5b5ad;
    border-left-color: #e85a4f;
    color: #9b2c20;
}
.deliver-expire-notice .den-icon { font-size: 18px; line-height: 1; }
.deliver-expire-notice strong { color: #5c4400; font-weight: 700; letter-spacing: .5px; }
.deliver-expire-notice.expired strong { color: #9b2c20; }
.page-head-meta { display: flex; gap: 14px; align-items: center; margin-top: 8px; color: var(--text-light); font-size: 14px; }
.back-link { display: inline-block; margin-bottom: 8px; color: var(--primary); font-size: 14px; }

/* 爱好者「我的任务」列表 */
.task-list { display: flex; flex-direction: column; gap: 14px; }
.task-card-item { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; background: var(--card-bg); }
.task-card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.task-title { font-size: 16px; font-weight: 600; color: var(--text); text-decoration: none; }
.task-title:hover { color: var(--primary); }
.task-card-meta { font-size: 13px; color: var(--text-light); margin: 8px 0; }
.task-card-hint { font-size: 13px; color: var(--text-light); margin-top: 6px; }
.task-card-ops { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.task-apps { margin-top: 10px; border-top: 1px dashed var(--border); padding-top: 10px; }
.task-apps-title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.task-app-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; font-size: 13px; border-bottom: 1px solid var(--gray-100); }
.task-app-row:last-child { border-bottom: none; }
.task-app-actions { display: flex; gap: 6px; flex-shrink: 0; }

/* 任务大厅卡片 — 对齐作品 work-card 视觉语言 */
.task-cover {
    flex-direction: column;
    background: linear-gradient(135deg, #1a1a2e 0%, #3a2a5e 100%);
    color: #fff;
}
.task-cover-reward { font-size: 30px; font-weight: 800; color: #fff; line-height: 1.1; }
.task-cover-unit { font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 6px; letter-spacing: 1px; }
.task-badge-float { position: absolute; top: 8px; right: 8px; z-index: 2; }
.task-card-summary {
    font-size: 13px; color: var(--text-light); margin: 6px 0 8px; line-height: 1.6;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.task-card-foot { margin-top: 12px; }
.task-card-foot .task-app-state { font-size: 13px; color: var(--text-light); }
.result-count { margin: 0 0 14px; color: var(--text-light); font-size: 14px; }
.result-count strong { color: var(--primary); }

/* ===== 上传进度条遮罩 ===== */
.upload-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.upload-modal {
    background: #fff;
    width: 380px;
    max-width: 90vw;
    padding: 26px 24px;
    border-radius: 14px;
    box-shadow: 0 12px 44px rgba(0, 0, 0, 0.32);
}
.upload-title { font-size: 15px; font-weight: 600; margin-bottom: 6px; color: #222; }
.upload-file { font-size: 13px; color: #666; margin-bottom: 14px; word-break: break-all; }
.upload-bar {
    height: 12px;
    background: #eee;
    border-radius: 8px;
    overflow: hidden;
}
.upload-bar-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--warning), var(--primary));
    border-radius: 8px;
    transition: width 0.15s ease;
}
.upload-pct { text-align: right; font-size: 13px; color: #444; margin-top: 8px; font-variant-numeric: tabular-nums; }

/* 手机端：图片网格 / 缩略图条 / 卡片网格统一 3 张一排（避免宽屏手机挤成 4 张） */
@media (max-width: 600px) {
  /* 作品列表 / 首页 / 商城等卡片网格：手机端 3 列 */
  .card-grid, .card-grid.grid-3, .card-grid.grid-4 { grid-template-columns: repeat(3, 1fr); }
  .card-grid.grid-1 { grid-template-columns: 1fr; }
  /* 图片画廊 / 众筹预览图集：手机端 3 列 */
  .photo-gallery { grid-template-columns: repeat(3, 1fr); }
  /* 缩略图条（flex 定宽子项）：手机端每张约占 1/3 宽 */
  .gallery-thumbs .thumb,
  .gallery-thumbs .thumb-locked { width: calc((100% - 16px) / 3); height: auto; aspect-ratio: 4 / 3; }
  .photo-thumbs .photo-thumb { width: calc((100% - 16px) / 3); height: auto; aspect-ratio: 3 / 4; }
}

