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

:root {
    /* 品牌色系：朱红 + 深紫（源自界面优化设计稿） */
    --primary: #e0930a;
    --primary-dark: #c47e08;
    --primary-light: #fff7d6;
    --secondary: #a8650a;
    --secondary-light: #fff3c4;
    --success: #059669;
    --success-light: #d1fae5;
    --danger: #dc2626;
    --danger-light: #fee2e2;
    --warning: #d97706;
    --warning-light: #fef3c7;
    --info: #c47e08;
    --info-light: #fff3c4;
    --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: linear-gradient(135deg, #a8650a 0%, #8a5208 100%);
    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.10);
    box-shadow: 0 2px 10px rgba(36, 26, 0, 0.18);
    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: #fff;
    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: #3a2400;
  background: linear-gradient(135deg, #ffd23d, #e0930a);
  font-weight: 700;
  box-shadow: 0 3px 12px rgba(224, 147, 10, 0.45);
}
.nav-link.active:hover {
  background: linear-gradient(135deg, #ffdf6b, #ffd23d);
  box-shadow: 0 4px 14px rgba(224, 147, 10, 0.55);
}
.nav-link:hover { color: #fff; background: rgba(255, 255, 255, 0.18); }
.nav-register {
    background: #fff;
    color: #b8740a !important;
    border-radius: var(--radius);
    padding: 8px 18px;
    box-shadow: 0 2px 8px rgba(36, 26, 0, 0.15);
}
.nav-register:hover { background: rgba(255, 255, 255, 0.92); color: #241a00 !important; }
.nav-logout { color: #fff !important; }
.nav-credits {
    color: #fbbf24;
    font-weight: 600;
    margin-left: 8px;
    background: rgba(255, 255, 255, 0.18);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 18px;
    white-space: nowrap;
}
.nav-badge .badge {
    position: absolute;
}
.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, #e0930a 0%, #a8650a 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: linear-gradient(135deg, #e0930a 0%, #a8650a 100%);
    color: #fff;
    overflow: hidden;
    padding: 56px 48px;
    border-radius: 20px;
    margin-bottom: 18px;
    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(224, 147, 10, 0.28) 0%, transparent 68%);
}
.home-hero::after {
    width: 640px;
    height: 640px;
    right: -220px;
    bottom: -300px;
    background: radial-gradient(circle, rgba(168, 101, 10, 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(224, 147, 10, 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 {
    color: #fff;
}
.home-hero .hero-lead {
    font-size: 16px;
    color: #fff;
    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, #e0930a, #c47e08);
    color: #fff;
    padding: 13px 30px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(224, 147, 10, 0.38);
    transition: transform 0.2s, box-shadow 0.2s;
}
.hero-cta-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(224, 147, 10, 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: 20px; }
.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: 16px 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 8px;
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-icon.fi-red    { background: #fff7d6; }
.feature-icon.fi-blue   { background: #fff3c4; }
.feature-icon.fi-yellow { background: #fef5e3; }
.feature-icon.fi-green  { background: #e6f6ef; }
.feature-icon.fi-purple { background: #fff3c4; }
.feature-icon.fi-teal   { background: #e0f5f5; }
.feature-card h3 { font-size: 16px; margin-bottom: 4px; }
.feature-card p { color: var(--text-light); font-size: 13px; line-height: 1.6; }

/* Home sections */
.home-section { margin-bottom: 20px; }
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}
.section-header h2 {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, #a8650a 0%, #8a5208 100%);
    color: #fff;
    padding: 8px 20px;
    border-radius: 8px;
    letter-spacing: 0.5px;
}
.link-more { font-size: 14px; }

/* Home CTA banner（设计稿深底横幅） */
.home-cta {
    background: linear-gradient(135deg, #e0930a 0%, #a8650a 100%);
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    padding: 56px 40px;
    text-align: center;
    color: #fff;
    margin-bottom: 20px;
}
.home-cta::before {
    content: "";
    position: absolute;
    width: 480px;
    height: 480px;
    left: -160px;
    top: -220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(224, 147, 10, 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(168, 101, 10, 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: #fff; font-size: 15px; margin-bottom: 28px; }
@media (max-width: 768px) {
    .home-cta { padding: 40px 20px; }
    .home-cta h2 { font-size: 22px; }
}

/* Home page: match first-screen golden gradient, white text */
.home-main {
    background: linear-gradient(135deg, #e0930a 0%, #a8650a 100%);
    color: #fff;
    margin-top: -24px;
    padding-bottom: 0;
    margin-bottom: -24px;
}
.home-main .feature-section,
.home-main .home-section,
.home-main .home-cta {
    border-top: 2px solid rgba(255, 255, 255, 0.22);
}
.home-main > .home-hero:first-child { border-top: none; }
.home-main .home-cta {
    background: transparent;
    color: #fff;
    margin-bottom: 0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.22);
}
.home-main .home-cta::before { opacity: 0.65; }
.home-main .home-cta::after { opacity: 0.65; }
.home-main .home-cta h2 { color: #fff; }
.home-main .home-cta p { color: rgba(255, 255, 255, 0.6); }
.home-main .feature-card {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}
.home-main .feature-card:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}
.home-main .feature-card h3 { color: #fff; }
.home-main .feature-card p { color: rgba(255, 255, 255, 0.78); }
.home-main .section-header h2 { background: transparent; color: #fff; padding: 0; box-shadow: none; }
.home-main .link-more { color: rgba(255, 255, 255, 0.88); }
.home-main .link-more:hover { color: #fff; }
.home-main .card {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.15);
    color: #fff;
}
.home-main .card:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}
.home-main .card-img { background: rgba(255, 255, 255, 0.1); }
.home-main .card-img-placeholder { background: rgba(255, 255, 255, 0.15); color: #fff; }
.home-main .card-body h4,
.home-main .card-body h3 { color: #fff; }
.home-main .card-meta,
.home-main .home-blog-summary,
.home-main .home-blog-meta,
.home-main .crowd-stats .stat-label { color: rgba(255, 255, 255, 0.75); }
.home-main .card-price .price { color: #fff; }
.home-main .card-price .price-free { color: #a3e635; }
.home-main .stat-num { color: #fff; }
.home-main .progress-bar { background: rgba(255, 255, 255, 0.25); }

/* 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,#e0930a,#c47e08);
    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:#e0930a}
.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,#e0930a,#c47e08);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:#e0930a}
.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}
}

/* ===== 认领资料组件（模特/工作室详情页）—— 大气版 ===== */
.claim-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: #fffaf0;
    border: 1px solid #f0d98a;
    border-radius: 12px;
    margin: 20px 0;
}
.claim-bar-pending {
    background: #fffbeb;
    border-color: #fde68a;
}
.claim-bar-tip {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.5;
}
.btn-claim {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary, #e0930a);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
    box-shadow: 0 4px 12px rgba(224, 147, 10, 0.25);
    white-space: nowrap;
}
.btn-claim:hover {
    background: var(--primary-dark, #c47e08);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(224, 147, 10, 0.32);
}
.claim-pending-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}
.claim-pending-dot {
    width: 8px;
    height: 8px;
    background: #f59e0b;
    border-radius: 50%;
    animation: claimPulse 2s infinite;
}
@keyframes claimPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.9); }
}
.modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 20, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}
.modal-box {
    background: #fff;
    width: 100%;
    max-width: 620px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 20px;
    padding: 32px;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}
.modal-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary, #e0930a);
    border-radius: 20px 20px 0 0;
}
.modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
}
.modal-title {
    display: flex;
    align-items: center;
    gap: 12px;
}
.modal-title-bar {
    width: 3px;
    height: 28px;
    background: var(--primary, #e0930a);
    border-radius: 2px;
    flex-shrink: 0;
}
.modal-title h3 {
    font-family: var(--font-serif, Georgia, "Times New Roman", serif);
    font-size: 18px;
    font-weight: 500;
    margin: 0 0 4px 0;
    color: var(--text, #1a1a2e);
}
.modal-title p {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}
.modal-close {
    background: transparent;
    border: none;
    font-size: 24px;
    color: #9ca3af;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    margin: -4px -4px 0 0;
    transition: color 0.2s;
}
.modal-close:hover {
    color: #4b5563;
}
.claim-user-tip {
    margin: 0 0 20px 0;
    font-size: 13px;
    color: #4b5563;
    background: #f3f4f6;
    padding: 10px 12px;
    border-radius: 8px;
    border-left: 3px solid var(--primary, #e0930a);
}
.claim-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
.claim-field {
    display: block;
    margin-bottom: 0;
}
.claim-field-full {
    grid-column: 1 / -1;
    margin-bottom: 16px;
}
.claim-label {
    display: block;
    font-size: 13px;
    color: var(--text, #1a1a2e);
    margin-bottom: 6px;
    font-weight: 500;
}
.claim-label-hint {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 400;
}
.claim-field .req {
    color: #dc2626;
}
.claim-field input[type="text"],
.claim-field textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}
.claim-field input[type="text"]:focus,
.claim-field textarea:focus {
    border-color: var(--primary, #e0930a);
    box-shadow: 0 0 0 3px rgba(224, 147, 10, 0.12);
}
.claim-upload {
    width: 100%;
    padding: 22px 12px;
    border-radius: 10px;
    border: 1px dashed #d1d5db;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #fafafa;
}
.claim-upload:hover,
.claim-upload.dragover {
    border-color: var(--primary, #e0930a);
    background: #fff8e6;
}
.claim-upload-icon {
    font-size: 22px;
    color: var(--primary, #e0930a);
    margin-bottom: 6px;
    font-weight: 300;
    line-height: 1;
}
.claim-upload-text {
    font-size: 13px;
    color: #6b7280;
}
.claim-msg {
    font-size: 13px;
    min-height: 18px;
    margin: 0 0 14px 0;
}
.btn-primary#claimSubmitBtn {
    width: 100%;
    background: var(--primary, #e0930a);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
    box-shadow: 0 4px 12px rgba(224, 147, 10, 0.25);
}
.btn-primary#claimSubmitBtn:hover:not(:disabled) {
    background: var(--primary-dark, #c47e08);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(224, 147, 10, 0.32);
}
.btn-primary#claimSubmitBtn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.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(--primary); 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: linear-gradient(135deg, #ffd23d, #ff9e00); color: #3a2400; border-color: transparent; font-weight: 600; }
.btn-primary:hover { background: linear-gradient(135deg, #ffd84d, #ffab1a); border-color: transparent; color: #3a2400; }
.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: #a8650a;
    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: #9a5e08;
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.38);
}
.btn-download-hero:active {
    background: #8a5208;
    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: #8a5208; border: 1px solid #f0d98a; }
.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(224, 147, 10,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(224, 147, 10,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(224, 147, 10, 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(224, 147, 10,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: #fff3c4; color: #c47e08; }
.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(--primary); margin-bottom: 12px; }
.big-price small { font-size: 14px; font-weight: 400; }
.price-free { color: var(--success); }

/* Profile layout */
/* 2026-10-05 修复：1fr 列被面板内 nowrap 长标题的 min-content 撑大（整页横向溢出错位）
   → minmax(0,1fr) 锁死列宽 + main min-width:0 + panel-body 横向滚动兜底；
   用户卡 sticky 跟随，修掉主栏长面板（如积分流水台账）左侧的大块空白 */
.profile-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; }
.profile-main { min-width: 0; }
.profile-main .panel-body { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.profile-sidebar .profile-card { position: sticky; top: 81px; }
@media (max-width: 768px) { .profile-layout { grid-template-columns: minmax(0, 1fr); } .profile-layout > * { min-width: 0; } .profile-main .panel-body { overflow-x: auto; -webkit-overflow-scrolling: touch; } .profile-main .pagination { flex-wrap: wrap; } .profile-sidebar .user-stats { flex-wrap: wrap; } .profile-sidebar .profile-card { position: static; } }
.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; }
/* 个人中心「积分(可提现)」→ 提现入口（模特 model/withdraw.php，工作室 studio/withdraw.php） */
.user-stats .wd-entry { display: block; padding: 6px 8px; margin: -6px 0; border-radius: var(--radius); text-decoration: none; transition: background .15s ease; }
.user-stats .wd-entry:hover, .user-stats .wd-entry:focus-visible { background: rgba(128, 128, 128, 0.14); }
.user-stats .wd-entry .stat-value { display: block; }
.user-stats .wd-entry .stat-label { display: flex; align-items: center; justify-content: center; gap: 4px; }
.user-stats .wd-entry .wd-cta { font-style: normal; font-weight: 600; color: var(--primary); }
.user-stats .wd-entry:hover .wd-cta { text-decoration: underline; }


/* 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(2, 1fr); gap: 18px; }
.membership-card {
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 18px;
    text-align: center;
    transition: all 0.2s;
}
.membership-card:hover { border-color: var(--primary); }
/* 当前套餐：浅绿底必须配深色字（暗色主题 --text 为近白，白字压浅绿底对比度仅 ~1.1:1） */
.membership-card.current {
    border-color: var(--success);
    background: linear-gradient(160deg, #e7fbf1 0%, #d1fae5 100%);
    box-shadow: 0 8px 22px rgba(5, 150, 105, 0.20);
}
.membership-card.current h4 { color: #065f46; font-weight: 700; }
.membership-card.current .price { color: #c0261f; }
.membership-card.current .desc { color: #0f766e; opacity: 1; }
.membership-card.current .badge-current {
    background: #047857; color: #fff; font-weight: 700; letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(4, 120, 87, 0.35);
}
.membership-card h4 { font-size: 17px; margin-bottom: 10px; }
.membership-card .price { font-size: 30px; font-weight: 800; margin-bottom: 12px; }
.membership-card .desc { font-size: 14px; line-height: 1.75; color: var(--text-light); margin-bottom: 16px; }
.badge-current { display: inline-block; background: var(--success); color: #fff; padding: 6px 20px; border-radius: 14px; font-size: 13px; font-weight: 600; letter-spacing: 1px; }

/* 窄屏会员卡改单列：390px 下 2 列会让卡内宽只剩 ~180px，文字太挤 */
@media (max-width: 620px) {
    .membership-cards { grid-template-columns: 1fr; }
    .membership-card { padding: 18px 14px; }
    .membership-card .price { font-size: 26px; }
    .membership-card h4 { font-size: 16px; }
}

/* 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:#3a2400;
    background:linear-gradient(135deg,#ffd23d 0%,#e0930a 100%);
    border:0;
    box-shadow:0 3px 10px rgba(224, 147, 10,.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(224, 147, 10,.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:#e0930a;
    box-shadow:inset 0 0 0 1.5px #e0930a, 0 3px 8px rgba(224, 147, 10,.18);
}
.follow-btn--inline.follow-btn--on .follow-btn-icon{background:#e0930a;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:#3a2400;
    background:linear-gradient(135deg,#ffd23d 0%,#e0930a 100%);
    border:0;
    box-shadow:0 6px 18px rgba(224, 147, 10,.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(224, 147, 10,.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:#e0930a;
    box-shadow:inset 0 0 0 1.5px #e0930a, 0 4px 12px rgba(224, 147, 10,.18);
    transform:translateY(-1px);
}
.follow-btn--big.follow-btn--on .follow-btn-icon{background:#e0930a;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(--primary); 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: linear-gradient(135deg, #e0930a 0%, #a8650a 100%);
    color: #fff;
    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: rgba(255, 255, 255, 0.85);
    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: rgba(255, 255, 255, 0.88);
    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(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    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: rgba(255, 255, 255, 0.88);
    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: rgba(255, 255, 255, 0.65);
}
.footer-bottom .footer-links { margin-top: 6px; }
.footer-bottom .footer-links a { color: rgba(255, 255, 255, 0.85); margin: 0 10px; font-size: 12px; text-decoration: none; }
.footer-bottom .footer-links a:hover { color: #fff; }
.footer-note { font-size: 12px !important; color: rgba(255, 255, 255, 0.6); }

/* 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, #e0930a, #a8650a);
}

/* 列表页顶部 Banner — 首页 Hero 的轻量化版本 */
.list-banner {
    position: relative;
    background: linear-gradient(135deg, #e0930a 0%, #a8650a 100%);
    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(224, 147, 10, 0.20) 0%, transparent 68%);
}
.list-banner::after {
    width: 340px;
    height: 340px;
    right: -130px;
    bottom: -170px;
    background: radial-gradient(circle, rgba(168, 101, 10, 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(224, 147, 10, 0.35);
}
.list-banner .banner-filter .btn-primary:hover {
    box-shadow: 0 4px 12px rgba(224, 147, 10, 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:#c47e08}
@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(224, 147, 10, 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, #e0930a, #a8650a);
}

/* 统一 .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, #e0930a, #a8650a);
}

/* 增强已有 .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, #e0930a, #a8650a);
}
/* 众筹详情侧边栏同样 */
.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, #e0930a, #a8650a);
}

/* 众筹卡片统一 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: #fff3c4;
    color: #8a5208;
}
.status-accepted::before { background: #c47e08; }
.status-delivered {
    background: #fff7d6;
    color: #c62828;
}
.status-delivered::before { background: #e0930a; }
.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: #fff3c4; color: #8a5208; }
.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: #fff7d6;
    border-color: #f5b5ad;
    border-left-color: #e0930a;
    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, #9a5e08 0%, #a8650a 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; }
}

@media (max-width: 640px) {
    .modal-box {
        padding: 24px;
        border-radius: 16px;
    }
    .claim-form-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .modal-title h3 {
        font-size: 16px;
    }
}

/* ============================================================
   全站深色主题（前台 body.site-dark）
   白底页面统一换成首页同款深紫-深蓝渐变 + 白色文字。
   做法：body 上重定义 CSS 变量（白卡→玻璃、深字→白字）；
   写死白底的弹窗与浅色详情 hero 一并改深色玻璃底 + 白字。
   ============================================================ */
body.site-dark {
    background:
        radial-gradient(circle at 12% 22%, rgba(224, 147, 10, 0.30) 0%, transparent 42%),
        radial-gradient(circle at 88% 78%, rgba(255, 193, 7, 0.14) 0%, transparent 38%),
        linear-gradient(135deg, #221906 0%, #1d160a 50%, #201808 100%);
    background-attachment: fixed;
    color: #fff;
    /* 变量重定义：卡片玻璃化、文字白化 */
    --card-bg: rgba(255, 255, 255, 0.08);
    --text: #f5f5f7;
    --text-light: rgba(255, 255, 255, 0.65);
    --border: rgba(255, 255, 255, 0.15);
    --gray-50: rgba(255, 255, 255, 0.05);
    --gray-100: rgba(255, 255, 255, 0.08);
    --gray-200: rgba(255, 255, 255, 0.14);
    --gray-300: rgba(255, 255, 255, 0.22);
    --gray-400: rgba(255, 255, 255, 0.5);
    --gray-500: rgba(255, 255, 255, 0.6);
    --gray-600: rgba(255, 255, 255, 0.75);
    --gray-700: rgba(255, 255, 255, 0.85);
    --gray-800: #ffffff;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.35), 0 2px 4px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 10px 24px rgba(0, 0, 0, 0.4), 0 4px 8px rgba(0, 0, 0, 0.25);
}
/* 作品详情页（.wd-cz）：背景与列表 banner 同款橄榄棕，保持全站一致 */
body.site-dark:has(.wd-cz) {
    background:
        radial-gradient(circle at 12% 22%, rgba(224, 147, 10, 0.16) 0%, transparent 42%),
        radial-gradient(circle at 88% 78%, rgba(255, 193, 7, 0.07) 0%, transparent 38%),
        linear-gradient(135deg, #3d2f09 0%, #3b2c08 55%, #382b09 100%);
}
/* 链接在深底上提亮一档 */
body.site-dark a { color: #ff8a80; }
body.site-dark a:hover { color: #ffa69a; }
/* 卡片 hover 微亮 */
body.site-dark .card:hover { background: rgba(255, 255, 255, 0.14); }
/* 首页 .home-main 卡片 hover 保持原亮度和玻璃感 */
body.site-dark .home-main .card:hover { background: rgba(255, 255, 255, 0.2); }
/* 表单控件：白底写死 → 深色页面统一玻璃化，文字白 */
body.site-dark input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
body.site-dark select,
body.site-dark textarea {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
}
body.site-dark input::placeholder,
body.site-dark textarea::placeholder { color: rgba(255, 255, 255, 0.45); }
body.site-dark select option { color: #1a1a2e; background: #fff; }
/* 白底弹窗（写死 #fff）：统一改深色玻璃底 + 白字 */
body.site-dark .modal-content,
body.site-dark .upload-modal,
body.site-dark .modal-box {
    background: #211a09;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
    color: #fff;
}
body.site-dark .modal-content a,
body.site-dark .modal-box a { color: var(--primary-light, #ff8a80); }
/* 上传弹窗内部写死的深色元素白化 */
body.site-dark .upload-title,
body.site-dark .upload-pct { color: #fff; }
body.site-dark .upload-file { color: rgba(255, 255, 255, 0.65); }
body.site-dark .upload-bar { background: rgba(255, 255, 255, 0.15); }
body.site-dark .modal-close:hover { color: #fff; }
/* 浅色渐变详情 hero 卡：改同款深色玻璃渐变 + 白字 */
body.site-dark .detail-hero,
body.site-dark .author-hero,
body.site-dark .model-header,
body.site-dark .detail-main .work-info,
body.site-dark .crowd-detail-main > .work-meta,
body.site-dark .demand-detail > .work-meta {
    background: linear-gradient(120deg, rgba(224, 147, 10, 0.30), rgba(255, 255, 255, 0.06) 55%, rgba(255, 193, 7, 0.16));
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}
/* hero 内可能写死的深色文字一律白化 */
body.site-dark .detail-hero h1,
body.site-dark .detail-hero h2,
body.site-dark .detail-hero h3,
body.site-dark .author-hero h1,
body.site-dark .author-hero h2,
body.site-dark .author-hero h3,
body.site-dark .model-header h1,
body.site-dark .model-header h2,
body.site-dark .model-header h3,
body.site-dark .detail-main .work-info h1,
body.site-dark .detail-main .work-info h2,
body.site-dark .crowd-detail-main > .work-meta,
body.site-dark .demand-detail > .work-meta,
body.site-dark .detail-hero,
body.site-dark .author-hero,
body.site-dark .model-header,
body.site-dark .detail-main .work-info {
    color: #fff;
}
body.site-dark .detail-hero a,
body.site-dark .author-hero a,
body.site-dark .model-header a,
body.site-dark .detail-main .work-info a { color: #ff8a80; }
/* hero 内残留浅色元素：浏览数胶囊 / 粉丝数 */
body.site-dark .view-count {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.65);
    border-color: rgba(255, 255, 255, 0.2);
}
body.site-dark .follow-fans-count { color: rgba(255, 255, 255, 0.6); }
body.site-dark .follow-fans-count b { color: #fff; }
/* 礼物面板（model_detail.php 内联样式写死浅底深字）→ 深色玻璃 */
body.site-dark .model-gift-panel {
    background: transparent;
}
body.site-dark .model-gift-panel .gp-text { color: rgba(255, 255, 255, 0.65); }
body.site-dark .model-gift-panel .gp-text b { color: #ff8a80; }
body.site-dark .model-gift-panel .gp-wall .gpw-count { color: rgba(255, 255, 255, 0.75); }
body.site-dark .model-gift-panel .gp-wall .gpw-more {
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.1);
}
body.site-dark .model-gift-panel .gp-wall .g-empty { color: rgba(255, 255, 255, 0.4); }
body.site-dark .model-gift-panel .gp-self { color: rgba(255, 255, 255, 0.6); }
/* 提示条（浅色底 + 深字）→ 深色半透明底 + 浅字 */
body.site-dark .alert-success { background: rgba(16, 185, 129, 0.16); color: #6ee7b7; border-color: rgba(110, 231, 183, 0.4); }
body.site-dark .alert-error { background: rgba(239, 68, 68, 0.16); color: #fca5a5; border-color: rgba(252, 165, 165, 0.4); }
body.site-dark .alert-info { background: rgba(59, 130, 246, 0.16); color: #93c5fd; border-color: rgba(147, 197, 253, 0.4); }
body.site-dark .alert-warning { background: rgba(245, 158, 11, 0.16); color: #fcd34d; border-color: rgba(252, 211, 77, 0.4); }
/* 认领条 / 待审徽章（写死浅底）→ 深色半透明 */
body.site-dark .claim-bar { background: rgba(232, 90, 79, 0.14); }
body.site-dark .claim-bar-pending { background: rgba(245, 158, 11, 0.14); border-color: rgba(255, 224, 138, 0.35); border-left-color: #e0a800; }
body.site-dark .claim-pending-badge { background: rgba(245, 158, 11, 0.16); color: #fcd34d; border-color: rgba(255, 224, 138, 0.35); }
/* PHP 模板内联写死的浅色提示块（如众筹页登录提示/剧本文档提示）→ 深色半透明 */
body.site-dark div[style*="e3f2fd"] {
    background: rgba(59, 130, 246, 0.14) !important;
    border-color: rgba(147, 197, 253, 0.4) !important;
}
body.site-dark p[style*="1565c0"] { color: #93c5fd !important; }
body.site-dark div[style*="fff3e0"] {
    background: rgba(245, 158, 11, 0.14) !important;
    border-color: rgba(252, 211, 77, 0.4) !important;
}
body.site-dark p[style*="e65100"] { color: #fcd34d !important; }
/* ===== 列表页共用侧栏卡片（热门下载/人气工作室/最新作品） ===== */
body.site-dark .side-card { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.14); box-shadow: none; }
body.site-dark .side-card-head { border-bottom-color: rgba(255, 255, 255, 0.12); }
body.site-dark .side-card-title { color: #fff; }
body.site-dark .side-card-more { color: rgba(255, 255, 255, 0.5); }
body.site-dark .side-rank { background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.7); }
body.site-dark .side-avatar { background: rgba(255, 255, 255, 0.1); }
body.site-dark .side-avatar-fallback { color: rgba(255, 255, 255, 0.6); }
body.site-dark .side-card-link { color: #fff; }
body.site-dark .side-card-sub { color: rgba(255, 255, 255, 0.5); }
body.site-dark .side-card-empty { color: rgba(255, 255, 255, 0.4); }
/* ===== 热门标签面板（works/blog 同款） ===== */
body.site-dark .works-tagpanel { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.14); box-shadow: none; }
body.site-dark .works-tagpanel-title { color: #fff; }
body.site-dark .works-tagpanel-hint { color: rgba(255, 255, 255, 0.5); }
body.site-dark .works-tag { background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.85); }
/* works 列表发布按钮 / 关注按钮 */
body.site-dark .works-publish-btn { background: rgba(255, 255, 255, 0.1); color: #ff8a80; }
body.site-dark .follow-btn { background: transparent; }
body.site-dark .follow-btn--on { background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.75); border-color: rgba(255, 255, 255, 0.3); }
body.site-dark .follow-caret:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
/* ===== 作品详情：相关作品标题条 ===== */
body.site-dark .wd-related-subh { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.2); color: #fff; }
/* ===== BLOG 列表（tab/类型 chips + 白底列表卡） ===== */
body.site-dark .blog-tab { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.25); color: rgba(255, 255, 255, 0.8); }
body.site-dark .blog-type { background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.75); }
body.site-dark .blog-item { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.14); }
body.site-dark .blog-item.promoted { background: rgba(232, 90, 79, 0.08); border-color: rgba(232, 90, 79, 0.35); }
body.site-dark .blog-thumb { background: rgba(255, 255, 255, 0.08); }
body.site-dark .blog-item-title a { color: #fff; }
body.site-dark .blog-item-summary { color: rgba(255, 255, 255, 0.65); }
body.site-dark .blog-item-meta { color: rgba(255, 255, 255, 0.5); }
body.site-dark .blog-src-tag { background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.7); }
body.site-dark .blog-promote-tag { background: rgba(245, 158, 11, 0.16); color: #fcd34d; }
body.site-dark .blog-empty { color: rgba(255, 255, 255, 0.5); }
/* ===== 文化文章详情（culture_detail.php 内联浅色样式） ===== */
body.site-dark .culture-detail-title { color: #fff; }
body.site-dark .culture-detail-meta { color: rgba(255, 255, 255, 0.55); }
body.site-dark .culture-status-draft { background: rgba(245, 158, 11, 0.16); color: #fcd34d; }
body.site-dark .culture-body { color: rgba(255, 255, 255, 0.9); }
body.site-dark .culture-body h2,
body.site-dark .culture-body h3,
body.site-dark .culture-body h4 { color: #fff; }
body.site-dark .culture-body a { color: #ff8a80; }
body.site-dark .culture-body blockquote { background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.7); }
body.site-dark .culture-body hr { border-top-color: rgba(255, 255, 255, 0.15); }
body.site-dark .culture-body pre { background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.85); }
body.site-dark .culture-body th { background: rgba(255, 255, 255, 0.08); }
body.site-dark .culture-body th,
body.site-dark .culture-body td { border-color: rgba(255, 255, 255, 0.18); }
body.site-dark .culture-detail-tags { border-top-color: rgba(255, 255, 255, 0.15); }
body.site-dark .culture-detail-tags a { background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.7); }
body.site-dark .culture-related,
body.site-dark .culture-works { border-top-color: rgba(255, 255, 255, 0.15); }
body.site-dark .culture-related h3,
body.site-dark .culture-works-h,
body.site-dark .culture-works-subh { color: #fff; }
body.site-dark .culture-works-subh::after { background: linear-gradient(90deg, rgba(255, 255, 255, 0.28), transparent); }
body.site-dark .culture-related-item .culture-related-title { color: rgba(255, 255, 255, 0.75); }
body.site-dark .culture-related-empty { background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.4); }
/* ===== 推荐/打赏组件（tipw-*，culture/blog 共用内联样式） ===== */
body.site-dark .tipw-wrap { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.15); box-shadow: none; }
body.site-dark .tipw-stats { color: rgba(255, 255, 255, 0.65); }
body.site-dark .tipw-stats b { color: #ff8a80; }
body.site-dark .tipw-rec { background: rgba(255, 255, 255, 0.1); color: #ff8a80; border-color: rgba(232, 90, 79, 0.5); }
body.site-dark .tipw-rec:hover { background: rgba(232, 90, 79, 0.25); }
body.site-dark .tipw-hint,
body.site-dark .tipw-note { color: rgba(255, 255, 255, 0.5); }
body.site-dark .tipw-modal { background: #211a09; border: 1px solid rgba(255, 255, 255, 0.18); color: #fff; }
body.site-dark .tipw-modal h3 { color: #fff; }
body.site-dark .tipw-modal .tipw-sub,
body.site-dark .tipw-close { color: rgba(255, 255, 255, 0.55); }
body.site-dark .tipw-amt { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.22); color: rgba(255, 255, 255, 0.85); }
body.site-dark .tipw-amt:hover { border-color: #f5a623; color: #ffb066; }
body.site-dark .tipw-custom input { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.22); color: #fff; }
/* ===== 红底按钮/胶囊去红：统一玻璃底白字 ===== */
body.site-dark .btn-primary {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
}
body.site-dark .btn-primary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}
/* list-banner：比主背景略重一档的渐变，透出主背景但保持层次 */
body.site-dark .list-banner {
    background: linear-gradient(135deg, #3d2f09 0%, #3b2c08 55%, #382b09 100%);
    box-shadow: none;
}
body.site-dark .list-banner::before,
body.site-dark .list-banner::after { content: none; }
/* list-banner 内筛选按钮（0,3,0 高于上面通用规则，需显式压过） */
body.site-dark .list-banner .banner-filter .btn-primary {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
}
body.site-dark .list-banner .banner-filter .btn-primary:hover { background: rgba(255, 255, 255, 0.2); }
/* work_detail.php 内联 #f50 主按钮（下载/购买/查看详情） */
body.site-dark .wd-cz .btn-primary,
body.site-dark .wd-btn,
body.site-dark .wd-cz .btn-download-hero {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}
body.site-dark .wd-cz .btn-primary:hover,
body.site-dark .wd-btn:hover,
body.site-dark .wd-cz .btn-download-hero:hover { background: rgba(255, 255, 255, 0.2); }
/* 作者/类型小胶囊（粉底红字）→ 玻璃白字 */
body.site-dark .author-chip,
body.site-dark .meta-chip {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}
body.site-dark .author-chip:hover,
body.site-dark .meta-chip:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    box-shadow: none;
}
/* 礼物面板「登录后送礼物」粉渐变按钮 → 玻璃白字 */
body.site-dark .model-gift-panel .gp-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    box-shadow: none;
}
body.site-dark .model-gift-panel .gp-btn:hover {
    filter: none;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}
/* 标签胶囊（擅长领域等，粉底）→ 玻璃白字 */
body.site-dark .tag {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
}
/* work_detail 红底小徽章（工作室/推广中）→ 玻璃白字；标签 chips 文字去红 */
body.site-dark .wd-badge,
body.site-dark .wd-boost {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}
body.site-dark .wd-chip { color: rgba(255, 255, 255, 0.75); }
/* 首页 hero/slider 红渐变按钮、认领按钮 → 玻璃白字 */
body.site-dark .hero-cta-primary {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
    color: #fff;
}
body.site-dark .hero-cta-primary:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: none;
    color: #fff;
    transform: none;
}
body.site-dark .btn-claim { background: rgba(255, 255, 255, 0.1); color: #fff; box-shadow: none; }
body.site-dark .btn-claim:hover { background: rgba(255, 255, 255, 0.2); color: #fff; box-shadow: none; transform: none; }
/* 礼物按钮「登录后送礼物」：链接被全站 a 红色染字，压回白色 */
body.site-dark .gift-send-btn { color: #fff; }
body.site-dark .gift-send-btn:hover { color: #fff; }
/* 作品卡「照片/视频/blog」meta-pill：同为链接被染红，压回白色 */
body.site-dark .meta-pill { color: #fff; }
body.site-dark .meta-pill:hover { color: #fff; }

/* BLOG 详情页（blog_detail.php 内联浅色样式）→ 深色白字 */
body.site-dark .blog-detail-title { color: #fff; }
body.site-dark .blog-detail-meta { color: rgba(255, 255, 255, 0.65); }
body.site-dark .blog-detail-meta a { color: #ff8a80; }
body.site-dark .blog-draft-tag { background: rgba(245, 158, 11, 0.16); color: #fcd34d; }
body.site-dark .blog-promote-bar { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.18); color: rgba(255, 255, 255, 0.85); }
body.site-dark .blog-cover { background: rgba(255, 255, 255, 0.06); }
body.site-dark .blog-body { color: #fff; }
body.site-dark .blog-body h2,
body.site-dark .blog-body h3,
body.site-dark .blog-body h4 { color: #fff; }
body.site-dark .blog-body blockquote { background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.8); border-left-color: #e85a4f; }
body.site-dark .blog-body a { color: #ff8a80; }
body.site-dark .blog-body hr { border-top-color: rgba(255, 255, 255, 0.15); }
body.site-dark .blog-body pre { background: rgba(255, 255, 255, 0.08); color: #fff; }
body.site-dark .blog-body th,
body.site-dark .blog-body td { border-color: rgba(255, 255, 255, 0.18); color: #fff; }
body.site-dark .blog-body th { background: rgba(255, 255, 255, 0.08); }
body.site-dark .blog-detail-actions { border-top-color: rgba(255, 255, 255, 0.15); }
body.site-dark .blog-tag-chip { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.22); color: #ffb3ab; }
body.site-dark .blog-tag-chip:hover { background: rgba(232, 90, 79, 0.5); color: #fff; border-color: rgba(232, 90, 79, 0.6); }
body.site-dark .blog-rel-label { color: rgba(255, 255, 255, 0.6); }
body.site-dark .blog-rel-chip { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.22); color: rgba(255, 255, 255, 0.85); }
body.site-dark .blog-rel-chip:hover { background: rgba(232, 90, 79, 0.5); color: #fff; border-color: rgba(232, 90, 79, 0.6); }
body.site-dark .blog-related { border-top-color: rgba(255, 255, 255, 0.15); }
body.site-dark .blog-rel-h { color: #fff; }
body.site-dark .blog-rel-item { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.14); }
body.site-dark .blog-rel-item:hover { border-color: rgba(232, 90, 79, 0.45); }
body.site-dark .blog-rel-thumb { background: rgba(255, 255, 255, 0.08); }
body.site-dark .blog-rel-noimg { color: rgba(255, 255, 255, 0.5); }
body.site-dark .blog-rel-title { color: #fff; }
body.site-dark .blog-rel-meta,
body.site-dark .blog-rel-empty { color: rgba(255, 255, 255, 0.6); }
body.site-dark .blog-works { border-top-color: rgba(255, 255, 255, 0.15); }
body.site-dark .blog-works-subh { color: #fff; }
body.site-dark .blog-works-subh::after { background: linear-gradient(90deg, rgba(255, 255, 255, 0.15), transparent); }
body.site-dark .blog-works-item { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.14); }
body.site-dark .blog-works-item:hover { border-color: rgba(232, 90, 79, 0.45); }
body.site-dark .blog-works-thumb { background: rgba(255, 255, 255, 0.08); }
body.site-dark .blog-works-item-rec { border-color: rgba(232, 90, 79, 0.45); }
body.site-dark .blog-works-buy { background: #e85a4f; }
body.site-dark .blog-works-noimg { color: rgba(255, 255, 255, 0.5); }
body.site-dark .blog-works-title { color: #fff; }
body.site-dark .blog-works-meta { color: rgba(255, 255, 255, 0.6); }

/* 首页主容器压成暗金版主题渐变（原亮金底与深色主题冲突） */
body.site-dark .home-main {
    background:
        radial-gradient(circle at 12% 22%, rgba(224, 147, 10, 0.30) 0%, transparent 42%),
        radial-gradient(circle at 88% 78%, rgba(255, 193, 7, 0.14) 0%, transparent 38%),
        linear-gradient(135deg, #221906 0%, #1d160a 50%, #201808 100%);
    background-attachment: fixed;
}
body.site-dark .home-main .home-hero,
body.site-dark .home-main .home-cta { background: transparent; }

/* 导航栏与底部链接压回白色（被 body.site-dark a 染红） */
body.site-dark .topbar .logo,
body.site-dark .topbar .nav-link,
body.site-dark .topbar .nav-link.active,
body.site-dark .site-footer .logo,
body.site-dark .footer-links a,
body.site-dark .footer-col a,
body.site-dark .footer-bottom a { color: #fff; }

/* 导航栏背景与主页深色背景一致：透明透出 body 固定渐变（原金黄渐变仅保留在浅色主题） */
body.site-dark .topbar {
    background: transparent;
    border-bottom-color: rgba(255, 255, 255, 0.12);
    box-shadow: none;
}




/* ============ 缂栬緫椤碉紙blog_edit.php / culture_edit.php锛夊唴鑱旂櫧鑹茬粍浠?鈫?娣辫壊鐧藉瓧 ============ */
/* 鍗＄墖瀹瑰櫒 */
body.site-dark .blog-card,
body.site-dark .cul-card {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
}
/* 鏍囬杈撳叆 */
body.site-dark .blog-title-input,
body.site-dark .cul-title-input { color: #fff; }
/* 标题输入框：全宽大字号，玻璃白底会形成明显浅色块 → 取消底色，与卡片融合。
   必须 !important：上面的通用规则 body.site-dark input:not([type=checkbox])...  specificity 为 (0,5,2)，
   高于本处 (0,3,1)，不加重叠就会继续给标题框铺一层 rgba(255,255,255,0.08) */
body.site-dark .blog-card .blog-title-input,
body.site-dark .cul-card .cul-title-input { background: transparent !important; }
body.site-dark .blog-title-input::placeholder,
body.site-dark .cul-title-input::placeholder { color: rgba(255, 255, 255, 0.45); }
/* 鏍囩 / 鎽樿杈撳叆 */
body.site-dark .blog-tags-input,
body.site-dark .cul-tags-input,
body.site-dark .cul-summary {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.22);
    color: #fff;
}
body.site-dark .blog-tags-input:focus,
body.site-dark .cul-tags-input:focus,
body.site-dark .cul-summary:focus { border-color: rgba(232, 90, 79, 0.7); }
body.site-dark .cul-select {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.22);
    color: #fff;
}
/* 鏍囩璇存槑鏂囧瓧 / 涓€閿幏鍙栨寜閽?*/
body.site-dark .blog-label,
body.site-dark .cul-label { color: rgba(255, 255, 255, 0.65); }
body.site-dark .blog-autotag-btn {
    background: transparent;
    color: #ffb3ab;
    border-color: rgba(232, 90, 79, 0.6);
}
body.site-dark .blog-autotag-btn:hover { background: rgba(232, 90, 79, 0.25); }
body.site-dark .cul-autotag-btn {
    background: transparent;
    color: #ffb3ab;
    border-color: rgba(232, 90, 79, 0.6);
}
body.site-dark .cul-autotag-btn:hover { background: rgba(232, 90, 79, 0.25); }
body.site-dark .cul-uphint { color: rgba(255, 255, 255, 0.5); }
/* 宸ュ叿鏍?*/
body.site-dark .blog-toolbar,
body.site-dark .cul-toolbar {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.18);
}
body.site-dark .blog-toolbar button,
body.site-dark .cul-toolbar button { color: rgba(255, 255, 255, 0.85); }
body.site-dark .blog-toolbar button:hover,
body.site-dark .cul-toolbar button:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.2); }
body.site-dark .blog-toolbar button.blog-on,
body.site-dark .cul-toolbar button.cul-on { background: rgba(232, 90, 79, 0.3); color: #fff; border-color: rgba(232, 90, 79, 0.5); }
body.site-dark .blog-tb-sep,
body.site-dark .cul-tb-sep { background: rgba(255, 255, 255, 0.2); }
/* 姝ｆ枃缂栬緫鍖?*/
body.site-dark .blog-editor,
body.site-dark .cul-editor {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.18);
    color: #fff;
}
body.site-dark .blog-editor h2, body.site-dark .blog-editor h3, body.site-dark .blog-editor h4,
body.site-dark .cul-editor h2, body.site-dark .cul-editor h3, body.site-dark .cul-editor h4 { color: #fff; }
body.site-dark .blog-editor blockquote,
body.site-dark .cul-editor blockquote { background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.8); border-left-color: #e85a4f; }
body.site-dark .blog-editor a,
body.site-dark .cul-editor a { color: #ff8a80; }
body.site-dark .blog-editor hr,
body.site-dark .cul-editor hr { border-top-color: rgba(255, 255, 255, 0.15); }
body.site-dark .blog-editor pre,
body.site-dark .cul-editor pre { background: rgba(255, 255, 255, 0.08); color: #fff; }
body.site-dark .blog-editor:empty:before,
body.site-dark .cul-editor:empty:before { color: rgba(255, 255, 255, 0.4); }
/* 鍏宠仈妯＄壒 / 宸ヤ綔瀹ら€夋嫨闈㈡澘 */
body.site-dark .blog-mp-wrap {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.18);
}
body.site-dark .blog-mp-chips { background: rgba(255, 255, 255, 0.04); border-bottom-color: rgba(255, 255, 255, 0.14); }
body.site-dark .blog-mp-empty,
body.site-dark .blog-mp-none { color: rgba(255, 255, 255, 0.45); }
body.site-dark .blog-mp-search {
    background: transparent;
    border-bottom-color: rgba(255, 255, 255, 0.14);
    color: #fff;
}
body.site-dark .blog-mp-search::placeholder { color: rgba(255, 255, 255, 0.4); }
body.site-dark .blog-mp-search:focus { border-bottom-color: rgba(232, 90, 79, 0.7); }
body.site-dark .blog-mp-count { color: rgba(255, 255, 255, 0.55); }
body.site-dark .blog-mp-item { color: rgba(255, 255, 255, 0.85); border-bottom-color: rgba(255, 255, 255, 0.08); }
body.site-dark .blog-mp-item:hover { background: rgba(255, 255, 255, 0.08); }
body.site-dark .blog-mp-item.blog-mp-on { background: rgba(232, 90, 79, 0.28); color: #fff; }
body.site-dark .blog-mp-item.blog-mp-on::after { color: #fff; }
body.site-dark .blog-mp-list::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.25); }
body.site-dark .blog-mp-list::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.4); }
body.site-dark .blog-mp-div { background: rgba(232, 90, 79, 0.12); color: #e85a4f; border-bottom-color: rgba(255, 255, 255, 0.08); }
body.site-dark .blog-mp-item.blog-mp-rec { background: rgba(232, 90, 79, 0.08); }
body.site-dark .blog-mp-flag { background: #e85a4f; color: #fff; }

/* ===== 作品关联选择器（studio/works.php 与 model/works.php 的 .mp-*）→ 深色 ===== */
body.site-dark .mp-wrap { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.18); }
body.site-dark .mp-chips { background: rgba(255, 255, 255, 0.04); border-bottom-color: rgba(255, 255, 255, 0.14); }
body.site-dark .mp-empty { color: rgba(255, 255, 255, 0.45); }
body.site-dark .mp-search { background: transparent; border-bottom-color: rgba(255, 255, 255, 0.14); color: #fff; }
body.site-dark .mp-search::placeholder { color: rgba(255, 255, 255, 0.4); }
body.site-dark .mp-search:focus { border-bottom-color: rgba(232, 90, 79, 0.7); }
body.site-dark .mp-item { color: rgba(255, 255, 255, 0.85); border-bottom-color: rgba(255, 255, 255, 0.08); }
body.site-dark .mp-item:hover { background: rgba(255, 255, 255, 0.08); }
body.site-dark .mp-item.mp-on { background: rgba(232, 90, 79, 0.28); color: #fff; }
body.site-dark .mp-item.mp-on::after { color: #fff; }
/* 椤靛ご杩斿洖閾炬帴 / 鎻愮ず / 寰界珷 */
body.site-dark .blog-edit-head a,
body.site-dark .cul-edit-head .cul-back { color: rgba(255, 255, 255, 0.7); }
body.site-dark .blog-edit-head a:hover,
body.site-dark .cul-edit-head .cul-back:hover { color: #fff; }
body.site-dark .blog-uphint,
body.site-dark .cul-uphint,
body.site-dark .blog-status-tip,
body.site-dark .cul-status-tip { color: rgba(255, 255, 255, 0.55); }
body.site-dark .blog-img-progress,
body.site-dark .cul-img-progress { color: #ff8a80; }
body.site-dark .blog-badge-draft,
body.site-dark .cul-badge-draft { background: rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.8); }
body.site-dark .blog-badge-pub,
body.site-dark .cul-badge-pub { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; }


/* ===== 底部 footer 卡片化（与内容区卡片同款：玻璃底 + 白边框 + 圆角） ===== */
/* body 暗金褐渐变为 fixed 附着，footer 做成卡片浮在其上；
   宽度与上方 .container（max-width:1200px）一致，居中；小屏留 16px 边距 */
body.site-dark .site-footer {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    width: min(1200px, 100%);
    margin: auto auto 24px;
}

/* ===== 首页各区块卡片化（与 footer 同款：玻璃底 + 白边框 + 圆角） ===== */
/* 最新作品/热门众筹/最新场地/最新道具/文化/BLOG 区块容器 */
body.site-dark .home-section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    padding: 22px 24px 24px;
}
/* 快捷入口条（模特/道具/场景/商城/众筹/任务）整块容器 */
body.site-dark .feature-section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    padding: 22px 24px 24px;
}


/* ===== 通知中心：修复未读项白底在深色主题下白字看不清 ===== */
body.site-dark .notification-item.unread {
    background: rgba(255, 255, 255, 0.08);
}
body.site-dark .notification-item.read {
    background: rgba(255, 255, 255, 0.05);
}
body.site-dark .notification-item {
    border-left-color: rgba(255, 255, 255, 0.25);
}
body.site-dark .notification-item.unread {
    border-left-color: #b98ef2;
}
body.site-dark .notif-content h4 {
    color: #ffffff;
}
body.site-dark .notif-content p {
    color: rgba(255, 255, 255, 0.72);
}
body.site-dark .notif-time {
    color: rgba(255, 255, 255, 0.55);
}
body.site-dark .notif-icon {
    color: rgba(255, 255, 255, 0.75);
}

/* ===== 我的推文管理页（blog_manage）：内联浅色卡片深色化 ===== */
body.site-dark .blog-tab2 {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.75);
}
body.site-dark .blog-tab2:hover {
    border-color: #e05a4e;
    color: #ff8a7a;
}
body.site-dark .blog-tab2.active {
    background: #c0392b;
    border-color: #c0392b;
    color: #fff;
}
body.site-dark .blog-row {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.14);
}
body.site-dark .blog-row.promoted {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(224, 90, 78, 0.35);
}
body.site-dark .blog-row-thumb {
    background: rgba(255, 255, 255, 0.08);
}
body.site-dark .blog-row-title {
    color: #ffffff;
}
body.site-dark .blog-row-title:hover {
    color: #ff8a7a;
}
body.site-dark .blog-row-sub {
    color: rgba(255, 255, 255, 0.6);
}
body.site-dark .blog-row-meta {
    color: rgba(255, 255, 255, 0.5);
}
body.site-dark .badge-mini.pub {
    background: rgba(46, 125, 91, 0.28);
    color: #7dd4ac;
}
body.site-dark .badge-mini.draft {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.65);
}
body.site-dark .badge-mini.promote {
    background: rgba(192, 122, 30, 0.25);
    color: #f0b45c;
}
body.site-dark .blog-confirm {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(224, 90, 78, 0.35);
}
body.site-dark .blog-confirm h3 {
    color: #ff8a7a;
}
body.site-dark .blog-confirm p {
    color: rgba(255, 255, 255, 0.72);
}

/* ===== 博客详情页：推广条 / 草稿标签 浅色深色化 ===== */
/* 内联 style 写死了 background/border-color/color，必须 !important 覆盖 */
body.site-dark .blog-promote-bar {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(224, 90, 78, 0.35) !important;
    color: rgba(255, 255, 255, 0.72) !important;
}
body.site-dark .blog-promote-bar b {
    color: #ff8a7a !important;
}
body.site-dark .blog-draft-tag {
    background: rgba(192, 122, 30, 0.25);
    color: #f0b45c;
}

/* ===== 个人中心：我的推文面板（profile 内联浅色样式）深色化 ===== */
body.site-dark .blog-panel-stat {
    color: rgba(255, 255, 255, 0.65);
}
body.site-dark .blog-panel-item {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.14);
}
body.site-dark .blog-panel-item.promoted {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(224, 90, 78, 0.35);
}
body.site-dark .blog-panel-thumb {
    background: rgba(255, 255, 255, 0.08);
}
body.site-dark .blog-panel-title {
    color: #ffffff;
}
body.site-dark .blog-panel-title:hover {
    color: #ff8a7a;
}
body.site-dark .blog-panel-meta {
    color: rgba(255, 255, 255, 0.5);
}
body.site-dark .bp-badge.pub {
    background: rgba(46, 125, 91, 0.28);
    color: #7dd4ac;
}
body.site-dark .bp-badge.draft {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.65);
}
body.site-dark .bp-badge.promote,
body.site-dark .bp-badge.pending {
    background: rgba(192, 122, 30, 0.25);
    color: #f0b45c;
}
body.site-dark .bp-badge.type {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.65);
}

/* ===== 认领条(claim-bar)提示文字：深色主题下深灰字看不清 ===== */
body.site-dark .claim-bar {
    border-color: rgba(255, 255, 255, 0.22);
}
body.site-dark .claim-bar-tip {
    color: rgba(255, 255, 255, 0.75);
}

/* ===== 礼物面板上缘多余线：hero 卡片(.model-header)底边框在礼物面板上方形成横线，去除底边 ===== */
body.site-dark .model-header {
    border-bottom: none;
}

/* ============================================================
   标签中心（/tag/）：全站统一标签页 + 各列表页「全部标签」入口
   与 works/culture/blog 的 .works-tagpanel 语言保持一致
   ============================================================ */
/* —— 列表页标签面板右上角「全部标签」入口 —— */
.works-tagpanel-all{color:#e85a4f;font-weight:600;text-decoration:none;white-space:nowrap}
.works-tagpanel-all:hover{text-decoration:underline}
/* 标签 chip 里的数量角标 */
.works-tag b{display:inline-block;margin-left:6px;font-size:12px;font-weight:600;opacity:.55}
.works-tag:hover b,.works-tag--active b{opacity:.9}

/* —— 标签中心：来源筛选条 —— */
.taghub-srcbar{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 18px}
.taghub-src{
    display:inline-flex;align-items:center;gap:6px;
    padding:7px 16px;border-radius:999px;
    background:#f3f4f7;color:#3a3a4a;
    border:1px solid transparent;
    font-size:14px;font-weight:600;text-decoration:none;
    transition:all .18s ease;
}
.taghub-src:hover{background:#e85a4f;color:#fff;box-shadow:0 6px 16px rgba(232,90,79,.28)}
.taghub-src b{font-size:12px;font-weight:600;opacity:.6}
.taghub-src.active{background:linear-gradient(135deg,#e85a4f,#d14a40);color:#fff}
.taghub-src.active b{opacity:.9}

/* —— 标签中心：结果区标题 —— */
.taghub-resulthead{display:flex;align-items:center;gap:12px;margin:4px 0 14px}
.taghub-resulthead h2{font-size:20px;font-weight:800;color:#1a1a2e;margin:0;letter-spacing:.5px}
.taghub-empty{margin:0;color:#9aa0ad;font-size:14px}

/* —— 标签中心：分来源结果区块 —— */
.taghub-group{
    background:#fff;border:1px solid #eef0f4;border-radius:16px;
    padding:20px 22px;margin:0 0 20px;
    box-shadow:0 6px 22px rgba(26,26,46,.06);
}
.taghub-group-head{display:flex;align-items:center;gap:10px;margin-bottom:14px}
.taghub-group-bar{width:5px;height:20px;border-radius:3px;background:linear-gradient(180deg,#e85a4f,#d14a40);flex:none}
.taghub-group-bar.taghub-bar-culture{background:linear-gradient(180deg,#c0392b,#93291f)}
.taghub-group-bar.taghub-bar-blog{background:linear-gradient(180deg,#c07a1e,#8f5a12)}
.taghub-group-bar.taghub-bar-model{background:linear-gradient(180deg,#7c5cd6,#5b3fb0)}
.taghub-group-head h3{font-size:17px;font-weight:800;color:#1a1a2e;margin:0;letter-spacing:.4px}
.taghub-group-count{font-size:13px;color:#9aa0ad}
.taghub-more{margin-left:auto;font-size:14px;font-weight:600;color:#e85a4f;text-decoration:none}
.taghub-more:hover{text-decoration:underline}

/* —— 标签中心：模特卡片（擅长领域来源） —— */
.taghub-models{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px}
.taghub-model{
    display:flex;gap:12px;align-items:flex-start;
    padding:12px 14px;border-radius:14px;
    background:#fafbfc;border:1px solid #eef0f4;
    text-decoration:none;transition:all .18s ease;
}
.taghub-model:hover{background:#fff;border-color:#f3c9c4;box-shadow:0 6px 18px rgba(232,90,79,.12);transform:translateY(-2px)}
.taghub-model-avatar{
    flex:none;width:48px;height:48px;border-radius:50%;
    overflow:hidden;background:#f0f1f4;color:#9aa0ad;
    display:flex;align-items:center;justify-content:center;
    font-size:18px;font-weight:700;
}
.taghub-model-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.taghub-model-info{display:flex;flex-direction:column;gap:4px;min-width:0}
.taghub-model-info b{font-size:15px;color:#1a1a2e;font-weight:700}
.taghub-model-info i{font-style:normal;font-size:12px;color:#9aa0ad;line-height:1.5}
.taghub-model-info em{display:flex;flex-wrap:wrap;gap:4px;font-style:normal}
.taghub-model-info em span{font-size:11px;padding:2px 8px;border-radius:10px;background:#f0f1f4;color:#6b7280}
.taghub-model-info em span.on{background:#fdecea;color:#c0392b;font-weight:700}

/* —— 模特详情「擅长领域」标签：由 span 改为可点击链接，样式保持原 chip 观感 —— */
a.tag{text-decoration:none;border:1px solid transparent;transition:all .15s ease;display:inline-block}
a.tag:hover{background:#e85a4f;color:#fff;border-color:#e85a4f;text-decoration:none}

/* —— 深色主题适配 —— */
body.site-dark .works-tagpanel-all{color:#ff8a7a}
body.site-dark .taghub-src{background:rgba(255,255,255,.07);color:rgba(255,255,255,.8);border-color:rgba(255,255,255,.14)}
body.site-dark .taghub-src:hover{background:#e85a4f;color:#fff}
body.site-dark .taghub-src.active{background:linear-gradient(135deg,#e85a4f,#d14a40);color:#fff}
body.site-dark .taghub-resulthead h2{color:#fff}
body.site-dark .taghub-empty{color:rgba(255,255,255,.55)}
body.site-dark .taghub-group{background:rgba(255,255,255,.05);border-color:rgba(255,255,255,.14);box-shadow:none}
body.site-dark .taghub-group-head h3{color:#fff}
body.site-dark .taghub-group-count{color:rgba(255,255,255,.5)}
body.site-dark .taghub-more{color:#ff8a7a}
body.site-dark .taghub-model{background:rgba(255,255,255,.05);border-color:rgba(255,255,255,.12)}
body.site-dark .taghub-model:hover{background:rgba(255,255,255,.09);border-color:rgba(232,90,79,.4)}
body.site-dark .taghub-model-avatar{background:rgba(255,255,255,.1);color:rgba(255,255,255,.7)}
body.site-dark .taghub-model-info b{color:#fff}
body.site-dark .taghub-model-info i{color:rgba(255,255,255,.55)}
body.site-dark .taghub-model-info em span{background:rgba(255,255,255,.1);color:rgba(255,255,255,.7)}
body.site-dark .taghub-model-info em span.on{background:rgba(232,90,79,.28);color:#ffb3a6}
body.site-dark .tag{background:rgba(255,255,255,.1);color:rgba(255,255,255,.85)}
body.site-dark a.tag:hover{background:#e85a4f;color:#fff;border-color:#e85a4f}

/* —— 热门标签面板基础样式（原先只存在于 works/culture/blog 页内联 <style>，
      标签中心 /tag/ 页复用同一套 class，故提升为全站公共样式；内容与页内版本一致） —— */
.works-tagpanel{
    background:#fff;
    border:1px solid #eef0f4;
    border-radius:16px;
    padding:22px 26px;
    margin:0 0 22px;
    box-shadow:0 6px 22px rgba(26,26,46,.06);
}
.works-tagpanel-head{display:flex;align-items:center;gap:12px;margin-bottom:16px}
.works-tagpanel-bar{width:5px;height:22px;border-radius:3px;background:linear-gradient(180deg,#e85a4f,#d14a40);flex:none}
.works-tagpanel-title{font-size:20px;font-weight:800;color:#1a1a2e;margin:0;letter-spacing:.5px}
.works-tagpanel-hint{margin-left:auto;font-size:13px;color:#9aa0ad}
.works-tagpanel-tags{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.works-tag{
    display:inline-flex;align-items:center;
    padding:8px 18px;
    font-size:15px;font-weight:600;
    border-radius:30px;
    background:#f3f4f7;color:#3a3a4a;
    text-decoration:none;
    border:1px solid transparent;
    transition:all .18s ease;
}
.works-tag:hover{
    background:#e85a4f;color:#fff;
    transform:translateY(-2px);
    box-shadow:0 6px 16px rgba(232,90,79,.3);
}
.works-tag--active{
    background:linear-gradient(135deg,#e85a4f,#d14a40);
    color:#fff;
}
.works-tag-clear{margin-left:4px;font-size:14px;font-weight:600;color:#e85a4f;text-decoration:none}
.works-tag-clear:hover{text-decoration:underline}

/* —— 标签面板折叠样式（已停用：tag.php 现直接展示全部标签，保留以备回退） —— */
.works-tagpanel-extra{display:contents}
.works-tagpanel-extra[hidden]{display:none}
.works-tagpanel-toggle{
    display:inline-flex;align-items:center;gap:4px;
    padding:7px 16px;border-radius:999px;
    background:#fdecea;color:#e85a4f;border:1px solid transparent;
    font-size:14px;font-weight:600;cursor:pointer;font-family:inherit;
    transition:all .18s ease;
}
.works-tagpanel-toggle:hover{background:#e85a4f;color:#fff;transform:translateY(-2px);box-shadow:0 6px 16px rgba(232,90,79,.3)}
body.site-dark .works-tagpanel-toggle{background:rgba(232,90,79,.16);color:#ff8a7a}
body.site-dark .works-tagpanel-toggle:hover{background:#e85a4f;color:#fff}
