/* 赤月传奇平台 v2 */
:root {
    --bg: #09090e;
    --bg-card: #12121a;
    --bg-elevated: #1a1a24;
    --bg-hover: #22222e;
    --border: #2a2a3a;
    --gold: #e8a820;
    --gold-light: #f5c842;
    --gold-dim: #b8860b;
    --text: #eeeef2;
    --text-muted: #a8a8bc;
    --success: #3ecf8e;
    --danger: #ef6b6b;
    --header-bg: rgba(9, 9, 14, 0.98);
    --nav-track-bg: var(--bg-card);
    --home-promo-ph: #12100e;
    --home-stats-bg: linear-gradient(180deg, rgba(232,168,32,.08), rgba(20,20,20,.6));
    --hero-bg: linear-gradient(135deg, #12121a 0%, #1a1420 60%, #12121a 100%);
    --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.35);
    --link-accent: var(--gold);
    --btn-solid-text: #111111;
    --btn-outline-hover-bg: rgba(232, 168, 32, 0.08);
    --badge-info-color: #7eb8ff;
    --notice-info-color: #9ec5ff;
    --row-new-title: #c8dc3a;
    --row-ongoing-title: #7eb8ff;
    --row-ok-title: #8ed4a8;
    --row-hover-accent: rgba(232, 168, 32, 0.25);
    --badge-quote-bg: rgba(232, 168, 32, 0.18);
    --badge-quote-color: #e8c040;
    --badge-quote-border: rgba(232, 168, 32, 0.5);
    --badge-running-bg: rgba(100, 149, 237, 0.16);
    --badge-running-color: #7eb8ff;
    --badge-running-border: rgba(126, 184, 255, 0.45);
    --badge-done-bg: rgba(62, 207, 142, 0.16);
    --badge-done-color: #5fd99a;
    --badge-done-border: rgba(62, 207, 142, 0.45);
    --radius-lg: 14px;
    --nav-h: 64px;
    --subheader-h: 0px;
    --max-w: 1180px;
}

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

html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
    overflow-y: scroll;
    scroll-padding-top: calc(var(--nav-h) + var(--searchbar-h) + 10px);
}

body {
    font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== 导航（固定顶栏，全站统一占位，避免旧页布局挤压） ========== */
html, body { margin: 0; padding: 0; }

body {
    padding-top: calc(var(--nav-h) + var(--searchbar-h));
}
body.has-ad-bar {
    --subheader-h: 0px;
}

body.theme-preview-on {
    --preview-bar-h: 40px;
    padding-top: calc(var(--nav-h) + var(--searchbar-h) + var(--preview-bar-h));
}
body.theme-preview-on .site-top-shell {
    top: var(--preview-bar-h);
}
body:not(.theme-preview-on) {
    --preview-bar-h: 0px;
}
:root {
    --searchbar-h: 44px;
}

.theme-preview-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 300;
    height: var(--preview-bar-h);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 0 12px;
    font-size: 13px;
    background: linear-gradient(90deg, #1a6fd4, #3d8fe8);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.theme-preview-bar strong { font-weight: 700; }
.theme-preview-exit {
    color: #fff;
    text-decoration: underline;
    opacity: 0.95;
}
.theme-preview-exit:hover { opacity: 1; }

.site-top-shell {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: var(--bg);
}
.site-header {
    position: relative;
    top: auto;
    z-index: 1;
    background: var(--header-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    height: var(--nav-h);
    box-sizing: border-box;
}

.nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
}

.nav-top {
    display: grid;
    grid-template-columns: 168px minmax(0, 1fr) 270px;
    align-items: center;
    column-gap: 12px;
    height: 100%;
    overflow: visible;
}

/* 外层只负责在顶栏内垂直居中；横向滚动放到内层 track，避免 Chrome/360 把链接顶到上面 */
.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 100%;
    overflow: visible;
}

.nav-links-track {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 2px;
    width: max-content;
    max-width: 100%;
    margin: 0 auto;
    padding: 3px 6px;
    background: var(--nav-track-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
    overflow: visible;
}
.nav-links-track::-webkit-scrollbar { display: none; }

.nav-link {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    height: 30px;
    min-height: 30px;
    max-height: 30px;
    padding: 0 9px;
    margin: 0;
    border-radius: 8px;
    font-size: 14px;
    line-height: 30px;
    color: var(--text-muted);
    white-space: nowrap;
    border: 1px solid transparent;
    box-sizing: border-box;
    transition: color .2s, background .2s;
    vertical-align: middle;
}
.nav-link:hover { color: var(--text); background: var(--bg-hover); }
.nav-link.is-active {
    color: var(--gold);
    background: rgba(232,168,32,.1);
    border-color: rgba(232,168,32,.15);
}
.nav-menu-item { position: relative; flex: 0 0 auto; }
.nav-caret { margin-left: 4px; font-size: 10px; opacity: .75; }
.nav-dropdown {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 132px;
    padding: 10px 6px 6px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    z-index: 260;
    box-shadow: 0 8px 18px rgba(0,0,0,.18);
}
.nav-menu-item:hover .nav-dropdown,
.nav-dropdown:hover { display: grid; gap: 2px; }
.nav-dropdown-link {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 13px;
    white-space: nowrap;
}
.nav-dropdown-link:hover { color: var(--gold); background: var(--bg-hover); }

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 168px;
    min-width: 168px;
    font-size: 17px;
    font-weight: 700;
    color: var(--gold);
    white-space: nowrap;
    flex-shrink: 0;
}
.nav-brand .logo-icon {
    width: 32px; height: 32px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dim));
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; color: #111;
}

.nav-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
    flex-shrink: 0;
    font-size: 14px;
    white-space: nowrap;
    height: 36px;
    overflow: hidden;
}
.nav-search { margin: 0; display: none; }
.nav-search-input {
    width: 140px; padding: 4px 10px;
    border: 1px solid var(--border-color, #d0d0d0);
    border-radius: 14px; font-size: 12px;
    background: var(--card-bg, #fff); color: var(--text-primary, #222);
    outline: none; transition: border-color .15s, width .15s;
}
.nav-search-input:focus { width: 180px; border-color: var(--primary, #378add); }
.nav-actions .user-badge {
    display: flex; align-items: center; gap: 4px;
    color: var(--gold); font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.nav-avatar, .nav-avatar-fallback {
    width: 24px; height: 24px; border-radius: 50%;
    flex-shrink: 0; object-fit: cover;
}
.nav-avatar-fallback {
    background: var(--gold);
    color: #1a1a2e;
    font-size: 11px; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
    line-height: 1;
}
.login-tag {
    font-size: 10px; padding: 1px 5px; border-radius: 3px;
    font-weight: 600; line-height: 1.4;
}
.login-tag.qq { background: #12B7F5; color: #fff; }
.login-tag.wx { background: #07C160; color: #fff; }
.user-badge-text {
    max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nav-actions .link-muted { color: var(--text-muted); }
.nav-actions .link-muted:hover { color: var(--text); }
.nav-mini-search { display: none; }
.nav-publish-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    padding: 0 12px;
    border-radius: 8px;
    background: var(--gold);
    color: #1a1a2e;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}
.nav-publish-btn:hover { opacity: .9; }
.register-tip-wrap {
    position: relative;
    display: inline-flex;
}
.register-tip-panel {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: 220px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-card);
    box-shadow: 0 8px 18px rgba(0,0,0,.18);
    z-index: 280;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.7;
}
.register-tip-wrap:hover .register-tip-panel { display: grid; gap: 2px; }
.register-tip-panel strong { color: var(--gold); font-size: 13px; }

/* ========== 按钮（全站统一高度） ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: var(--btn-solid-text);
    height: 36px;
    padding: 0 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity .2s, transform .15s;
    line-height: 1;
    box-sizing: border-box;
}
.btn:hover { opacity: .9; transform: translateY(-1px); }
.btn-sm {
    height: 32px;
    padding: 0 14px;
    font-size: 13px;
}
.btn-block { width: 100%; }
.btn-outline {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
}
.btn-outline:hover { background: var(--btn-outline-hover-bg); opacity: 1; transform: none; }
.btn-ghost {
    background: var(--bg-elevated);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); opacity: 1; transform: none; }
.btn-primary {
    background: var(--primary, #3f8efc);
    color: #fff;
    border: 1px solid var(--primary, #3f8efc);
}
.btn-primary:hover { background: #2a6fcc; border-color: #2a6fcc; opacity: 1; }
.btn-danger {
    background: #e84c3d;
    color: #fff;
    border: 1px solid #e84c3d;
}
.btn-danger:hover { background: #d43d2f; border-color: #d43d2f; opacity: 1; }
.btn-danger.btn-outline {
    background: transparent;
    color: #e84c3d;
    border: 1px solid #e84c3d;
}
.btn-danger.btn-outline:hover { background: #e84c3d; color: #fff; opacity: 1; }
.btn-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.page-header-dashboard {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.dashboard-nav-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
}
.quick-entry {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.quick-entry-row {
    flex-wrap: wrap;
}

.wallet-deposit-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
}
.wallet-deposit-forms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}
.wallet-deposit-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 6px;
}
.wallet-deposit-form-row input[type="number"] {
    flex: 1;
    min-width: 120px;
    max-width: 200px;
    padding: 8px 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-family: inherit;
}

.wallet-log-filter {
    margin-bottom: 12px;
}
.wallet-log-filter-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
    align-items: end;
}
.wallet-log-filter .form-group {
    margin: 0;
}
.wallet-log-filter-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: nowrap;
}
.wallet-log-filter-actions .btn {
    flex: 0 0 auto;
    min-width: 72px;
    justify-content: center;
}
@media (min-width: 768px) {
    .wallet-log-filter-grid {
        grid-template-columns: minmax(120px, 1fr) minmax(120px, 1fr) minmax(160px, 1.4fr) minmax(180px, 1fr);
    }
    .wallet-log-filter-actions {
        justify-content: center;
    }
}
@media (max-width: 767px) {
    .wallet-log-filter-sn {
        grid-column: 1 / -1;
    }
    .wallet-log-filter-actions {
        grid-column: 1 / -1;
        justify-content: center;
        padding-top: 2px;
    }
}
.wallet-log-table .col-time,
.wallet-log-table .col-type,
.wallet-log-table .col-biz {
    white-space: nowrap;
}
.wallet-log-table .col-time {
    min-width: 128px;
}
.wallet-log-table .col-type {
    min-width: 88px;
}
.wallet-log-table .col-biz {
    min-width: 72px;
}
.wallet-log-table .col-remark {
    max-width: 220px;
}
.wallet-log-link {
    text-decoration: underline;
    text-underline-offset: 2px;
}
.wallet-log-link:hover {
    opacity: 0.85;
}

/* ========== 主区域 ========== */
.main-wrap {
    padding: 0 0 40px;
    min-height: calc(100vh - var(--nav-h) - var(--subheader-h) - 48px);
}
.page-content { padding-top: 0; }
.page-content > *:first-child { margin-top: 0; }
.flash-slot { min-height: 0; margin: 0; padding: 0; }
.flash-slot:not(:empty) { margin-bottom: 10px; }
.flash { margin-bottom: 0; }
.page-entry { padding-top: 0; }

.site-searchbar {
    height: var(--searchbar-h);
    background: var(--header-bg);
    border-bottom: 1px solid var(--border);
    box-sizing: border-box;
}
.site-searchbar-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
.site-search-form {
    width: min(560px, 100%);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}
.site-search-input {
    flex: 1;
    min-width: 0;
    height: 30px;
    padding: 0 12px;
    border: 1px solid var(--border-color, #d0d0d0);
    border-radius: 15px;
    font-size: 13px;
    background: var(--card-bg, #fff);
    color: var(--text-primary, #222);
    outline: none;
}
.site-search-input:focus { border-color: var(--primary, #378add); }
.site-search-btn {
    height: 30px;
    padding: 0 14px;
    border: 0;
    border-radius: 15px;
    background: var(--gold);
    color: #1a1a2e;
    font-size: 13px;
    cursor: pointer;
}
.site-search-hot {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
}
.site-search-hot a { color: var(--text-muted); }
.site-search-hot a:hover { color: var(--gold); }

.site-top-shell .site-subheader {
    height: var(--subheader-h);
    box-sizing: border-box;
    overflow: hidden;
}
.ad-text-slot-placeholder {
    opacity: .55;
    border-style: dashed !important;
    color: var(--text-muted) !important;
}

/* ========== 顶栏文字广告（与内容区同宽，不铺满浏览器） ========== */
.site-subheader {
    background: transparent;
    border: none;
    height: var(--subheader-h);
    padding: 6px 0 4px;
    box-sizing: border-box;
    overflow: hidden;
}
.subheader-ad-panel {
    max-width: var(--max-w);
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 5px 12px;
    box-sizing: border-box;
    height: 38px;
    display: flex;
    align-items: center;
}
.subheader-inner {
    display: flex;
    align-items: center;
    height: 30px;
}
.ad-text-strip {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    justify-content: center;
    align-items: center;
    height: 30px;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
}
.ad-text-strip::-webkit-scrollbar { display: none; }
.ad-text-slot {
    display: block;
    flex: 0 0 150px;
    width: 150px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    font-size: 12px;
    color: var(--gold);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: border-color .2s, background .2s;
}
.ad-text-slot:hover {
    border-color: rgba(232,168,32,.45);
    background: rgba(232,168,32,.06);
}

/* ========== LOGO ========== */
.site-logo {
    height: 48px;
    max-width: 168px;
    width: auto;
    object-fit: contain;
    object-position: left center;
    display: block;
}
.site-logo-default {
    height: 40px;
    width: auto;
    max-width: 168px;
    object-position: left center;
}

/* ========== 首页 ========== */
.home-page .page-header { display: none; }
.home-ad-before-hero {
    margin-bottom: 10px;
}
.home-ad-before-hero .subheader-ad-panel {
    max-width: none;
}
.home-intent-hero {
    padding: 18px;
    margin-bottom: 16px;
    border: 1px solid rgba(232,168,32,.25);
    border-radius: 14px;
    background: var(--bg-elevated);
}
.home-intent-kicker {
    color: var(--gold);
    font-size: 13px;
    margin-bottom: 6px;
}
.home-intent-copy h1 {
    margin: 0 0 8px;
    font-size: 24px;
    line-height: 1.3;
}
.home-intent-copy p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.7;
}
.home-big-search {
    display: flex;
    gap: 10px;
    margin: 16px 0;
}
.home-big-search input {
    flex: 1;
    min-width: 0;
    height: 42px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
}
.home-big-search button {
    width: 112px;
    border: 0;
    border-radius: 10px;
    background: var(--gold);
    color: #1a1a2e;
    font-weight: 700;
}
.home-intent-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.home-intent-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-card);
}
.home-intent-card strong { color: var(--text); }
.home-intent-card span { color: var(--text-muted); font-size: 13px; }
.home-intent-card.is-strong { border-color: rgba(232,168,32,.45); background: rgba(232,168,32,.08); }
.home-top {
    margin-bottom: 24px;
}
.home-promo-banner {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    margin-bottom: 14px;
}
.home-promo-link {
    display: block;
    line-height: 0;
}
.home-promo-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 140px;
    object-fit: cover;
    aspect-ratio: 1200 / 140;
}
.home-promo-placeholder {
    object-fit: contain;
    background: var(--home-promo-ph);
    max-height: 140px;
}
.home-server-ads {
    margin-bottom: 14px;
    border: 1px solid rgba(232,168,32,.35);
    border-radius: 8px;
    overflow: hidden;
    background: #0e0e14;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.home-server-ads-table {
    display: flex;
    flex-direction: column;
}
.home-server-ads-row {
    display: grid;
    grid-template-columns: 130px 110px 1fr 72px;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    min-height: 42px;
    font-size: 14px;
    color: #f0f0f5;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,.08);
    transition: background .15s, border-color .15s;
}
.home-server-ads-row:last-child {
    border-bottom: none;
}
.home-server-ads-row:not(.home-server-ads-row--head) {
    background: #14141c;
}
.home-server-ads-row:not(.home-server-ads-row--head):nth-child(even) {
    background: #1a1a24;
}
.home-server-ads-row:not(.home-server-ads-row--head):hover {
    background: #242430;
    box-shadow: inset 3px 0 0 var(--gold);
}
.home-server-ads-row--head {
    min-height: 38px;
    font-size: 13px;
    font-weight: 700;
    background: linear-gradient(180deg, #2d2618 0%, #1f1a10 100%);
    border-bottom: 1px solid rgba(232,168,32,.5);
    pointer-events: none;
}
.home-server-ads-row--head .col-name,
.home-server-ads-row--head .col-ver,
.home-server-ads-row--head .col-intro,
.home-server-ads-row--head .col-go {
    color: #ffd966;
    font-weight: 700;
}
.home-server-ads-row.is-highlight .col-name {
    color: #ff5252;
    font-weight: 800;
    text-shadow: 0 0 8px rgba(255,82,82,.35);
}
.home-server-ads .col-name {
    font-weight: 700;
    font-size: 14px;
    color: #ffdf70;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.home-server-ads .col-ver {
    font-weight: 600;
    font-size: 14px;
    color: #6ee7b7;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.home-server-ads .col-intro {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    color: #ececf2;
    font-weight: 500;
}
.home-server-ads .col-go {
    text-align: right;
    color: #ffc107;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}
@media (max-width: 768px) {
    .home-server-ads-row {
        grid-template-columns: 1fr 80px;
        grid-template-rows: auto auto auto;
        padding: 12px 14px;
        gap: 6px 10px;
        min-height: 0;
    }
    .home-server-ads-row--head {
        display: none;
    }
    .home-server-ads-row .col-name {
        grid-column: 1;
        grid-row: 1;
        font-size: 15px;
    }
    .home-server-ads-row .col-ver {
        grid-column: 1;
        grid-row: 2;
        font-size: 13px;
    }
    .home-server-ads-row .col-intro {
        grid-column: 1 / -1;
        grid-row: 3;
        white-space: normal;
        line-height: 1.5;
        font-size: 13px;
    }
    .home-server-ads-row .col-go {
        grid-column: 2;
        grid-row: 1;
        align-self: start;
        font-size: 14px;
    }
}
.home-today-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 14px;
    padding: 14px 16px;
    background: var(--home-stats-bg);
    border: 1px solid rgba(232,168,32,.18);
    border-radius: 12px;
}
.home-today-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 72px;
    padding: 4px 6px;
}
.home-today-num {
    font-size: 22px;
    font-weight: 700;
    color: var(--gold);
    line-height: 1.2;
}
.home-today-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
    white-space: nowrap;
}

/* 首页双卡联动（风格对齐 module-card） */
.home-showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 6px;
}
@media (max-width: 1100px) {
    .home-showcase-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .home-showcase-grid { grid-template-columns: 1fr; }
}
.home-showcase-card.module-card {
    align-items: stretch;
    text-align: left;
    padding: 6px 10px 8px;
    min-height: 0;
}
.home-showcase-card.module-card h3,
.home-showcase-card.module-card p {
    text-align: left;
    margin-bottom: 0;
}
.home-showcase-card .icon {
    font-size: 20px;
    margin-bottom: 0;
    flex-shrink: 0;
    line-height: 1;
}
.home-showcase-head {
    display: flex;
    align-items: center;
    gap: 5px;
    width: 100%;
    margin-bottom: 3px;
    padding-bottom: 3px;
    border-bottom: 1px solid var(--border);
}
.home-showcase-head-text { flex: 1; min-width: 0; }
.home-showcase-head-text h3 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 1px;
    text-align: left;
    line-height: 1.2;
}
.home-showcase-head-text p {
    font-size: 11px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.25;
    text-align: left;
}
.feed-tag {
    display: inline-block;
    font-size: 10px;
    line-height: 1.2;
    padding: 1px 6px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.04);
    color: var(--text-muted);
    flex-shrink: 0;
}
.feed-tag--trade { color: #3f8efc; border-color: rgba(63,142,252,.35); }
.feed-tag--want { color: #62c88a; border-color: rgba(98,200,138,.35); }
.feed-tag--auction { color: #e8801c; border-color: rgba(232,128,28,.35); }
.feed-tag--job { color: #9b59b6; border-color: rgba(155,89,182,.35); }
.feed-tag--groupbuy { color: #e84c3d; border-color: rgba(232,76,61,.35); }
.feed-tag--bounty { color: #d4ac0d; border-color: rgba(212,172,13,.35); }
.feed-tag--script { color: #48c9b0; border-color: rgba(72,201,176,.35); }
.feed-tag--teach { color: #5499c7; border-color: rgba(84,153,199,.35); }
.feed-tag--community { color: #5dade2; border-color: rgba(93,173,226,.35); }
.feed-tag--provider { color: #f0a500; border-color: rgba(240,165,0,.35); }
.home-showcase-body {
    width: 100%;
    flex: 1;
    padding-top: 2px;
    text-align: left;
}
.home-showcase-scroll {
    height: 191px;
    overflow: hidden;
    mask-image: linear-gradient(180deg, #000 94%, transparent);
}
.home-showcase-track {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: left;
    animation: homeShowcaseScroll 28s linear infinite;
}
.home-showcase-track > li + li {
    margin-top: 4px;
}
.home-showcase-scroll:hover .home-showcase-track {
    animation-play-state: paused;
}
@keyframes homeShowcaseScroll {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}
.home-showcase-link {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 6px;
    padding: 0 2px;
    min-height: 0;
    height: 16px;
    text-decoration: none;
    color: inherit;
    text-align: left;
    transition: background .12s;
}
.home-showcase-link:hover {
    background: rgba(232,168,32,.07);
    border-radius: 3px;
}
.home-showcase-link-title {
    font-size: 13px;
    line-height: 16px;
    color: var(--text);
    text-align: left;
    justify-self: start;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.home-showcase-card--biz .home-showcase-link-meta {
    min-width: 72px;
    justify-self: end;
}
.home-showcase-link-meta {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    font-size: 11px;
    line-height: 16px;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}
.home-showcase-link-meta .meta-text {
    color: var(--gold);
}
.home-showcase-link-meta .meta-dot {
    display: none;
}
.home-showcase-link-meta time {
    color: var(--text-muted);
    margin-left: 4ch;
}
.home-showcase-link-meta .meta-text:empty + time,
.home-showcase-link-meta time:first-child {
    margin-left: 0;
}
.home-showcase-empty {
    padding: 24px 12px;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
}
.home-showcase-empty a { color: var(--gold); }

/* 九宫格卡片底部统计 + 前往 */
.module-card-foot {
    width: 100%;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.module-card-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    width: 100%;
}
.stat-pill {
    font-size: 11px;
    color: var(--text-muted);
    background: rgba(255,255,255,.04);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 3px 10px;
    white-space: nowrap;
}
.stat-pill b {
    font-size: 13px;
    font-weight: 700;
    margin-left: 2px;
}
.stat-pill.stat-today b { color: var(--gold); }
.stat-pill.stat-total b { color: var(--text); }
.module-card-go { min-width: 88px; }
.module-compact-stats {
    display: block;
    font-size: 11px;
    color: var(--gold);
    margin-top: 4px;
}

/* 消息 */
.flash .msg {
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    margin-bottom: 8px;
}
.flash .success { background: rgba(62,207,142,.1); color: var(--success); border: 1px solid rgba(62,207,142,.25); }
.flash .error { background: rgba(239,107,107,.1); color: var(--danger); border: 1px solid rgba(239,107,107,.25); }

/* ========== 卡片 ========== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
}
.card-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.card-title .btn-sm { flex-shrink: 0; }

/* ========== 文字工具 ========== */
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 13px; }
.text-gold { color: var(--gold); }
.text-center { text-align: center; }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-2 { margin-bottom: 16px; }
.gap-2 { gap: 16px; }

/* ========== 首页 ========== */
.hero {
    background: var(--hero-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px 24px;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
}
.hero-compact h1 { font-size: 22px; margin-bottom: 6px; }
.hero-compact p { margin-bottom: 12px; font-size: 13px; }
.hero-compact .hero-actions { gap: 8px; }
.hero::after {
    content: '';
    position: absolute;
    right: -60px; top: -60px;
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(232,168,32,.1) 0%, transparent 65%);
    pointer-events: none;
}
.hero h1 { font-size: 26px; font-weight: 700; margin-bottom: 8px; line-height: 1.3; }
.hero p { color: var(--text-muted); font-size: 14px; margin-bottom: 16px; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
    align-items: stretch;
}
@media (max-width: 500px) { .module-grid { grid-template-columns: 1fr; } }

.module-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px 18px;
    transition: border-color .2s, transform .2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    min-width: 0;
    min-height: 214px;
    height: 100%;
}
.module-card:hover { border-color: rgba(232,168,32,.35); transform: translateY(-2px); }
.module-card .icon {
    font-size: 28px;
    line-height: 1;
    margin-bottom: 12px;
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.module-card h3 {
    width: 100%;
    min-height: 22px;
    font-size: 16px;
    font-weight: 500;
    line-height: 22px;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.module-card p {
    width: 100%;
    min-height: 42px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.module-card .btn { align-self: center; }

/* 首页双卡：覆盖 module-card 居中，保持左对齐与紧凑内边距 */
.home-showcase-card.module-card {
    align-items: stretch;
    text-align: left;
    padding: 6px 10px 8px;
}
.home-showcase-card.module-card .icon {
    font-size: 20px;
    margin-bottom: 0;
}
.home-showcase-card.module-card h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 1px;
    text-align: left;
}
.home-showcase-card.module-card p {
    font-size: 11px;
    margin-bottom: 0;
    line-height: 1.25;
    text-align: left;
    flex: none;
}

/* 首页样式B：紧凑条带 */
.module-compact-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}
.module-compact-item {
    display: grid;
    grid-template-columns: 40px 1fr 24px;
    gap: 12px;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: border-color .15s, background .15s;
}
.module-compact-item:hover {
    border-color: rgba(232,168,32,.3);
    background: var(--bg-elevated);
}
.module-compact-icon { font-size: 22px; text-align: center; }
.module-compact-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.module-compact-body strong { font-size: 15px; font-weight: 600; }
.module-compact-body span {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.module-compact-arrow { color: var(--gold); font-size: 16px; text-align: right; }

.section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-title::before {
    content: '';
    width: 3px; height: 18px;
    background: var(--gold);
    border-radius: 2px;
    flex-shrink: 0;
}

/* ========== 双栏布局 ========== */
.page-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 16px;
    align-items: start;
    margin-top: 0;
}
@media (max-width: 768px) { .page-layout { grid-template-columns: 1fr; } }

.sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: sticky;
    top: calc(var(--nav-h) + var(--subheader-h) + 8px);
}
.sidebar-title {
    padding: 14px 16px;
    background: rgba(232,168,32,.07);
    color: var(--gold);
    font-weight: 600;
    font-size: 13px;
    border-bottom: 1px solid var(--border);
}
.cate-list li a {
    display: block;
    padding: 11px 16px;
    font-size: 14px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    transition: all .15s;
}
.cate-list li:last-child a { border-bottom: none; }
.cate-list li a:hover,
.cate-list li.active a {
    color: var(--gold);
    background: rgba(232,168,32,.05);
    padding-left: 20px;
}

.content-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 10px 16px 16px;
}
.home-page.content-panel {
    padding-top: 4px;
    overflow: hidden;
}
.home-page.content-panel-narrow {
    max-width: 1040px;
}
.content-panel-narrow {
    max-width: 960px;
    margin: 0 auto;
}
.landing-page .page-header { align-items: flex-start; }
.landing-hero-search {
    margin: 12px 0 16px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-elevated);
}
.landing-search-form {
    display: flex;
    gap: 10px;
    margin: 0;
}
.landing-search-form input {
    flex: 1;
    min-width: 0;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-card);
    color: var(--text);
}
.landing-search-form button {
    width: 100px;
    border: 0;
    border-radius: 10px;
    background: var(--gold);
    color: #1a1a2e;
    font-weight: 700;
}
.landing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}
.landing-card, .landing-step {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-elevated);
    color: var(--text);
}
.landing-card span, .landing-step span { color: var(--text-muted); line-height: 1.6; }
.landing-steps { display: grid; gap: 12px; }
.landing-step { display: grid; grid-template-columns: 34px 150px 1fr; align-items: center; }
.landing-step b {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--gold); color: #1a1a2e;
}
.publish-grid .landing-card { min-height: 96px; }
.public-profile-page.content-panel-narrow {
    max-width: 1080px;
}
.profile-section { margin-top: 10px; }
.profile-page-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 20px;
    align-items: start;
}
.public-profile-page .profile-page-layout {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 18px;
}
.profile-page-main { min-width: 0; }
.profile-intro { color: #aaa; margin-bottom: 8px; line-height: 1.6; }
.profile-tags-line { margin-top: 6px; }
.profile-eval-block {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}
.profile-page-layout .author-card {
    position: sticky;
    top: calc(var(--nav-h) + var(--subheader-h) + 8px);
}
.author-account {
    font-size: 11px;
    margin-top: 2px;
}
.rank-tier-panel {
    margin-top: 16px;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.rank-tier-compact {
    margin-top: 0;
    padding: 12px 14px;
}
.rank-tier-compact .card-title {
    font-size: 15px;
    margin-bottom: 8px;
}
.rank-tier-current { margin-bottom: 8px; }
.rank-tier-foot { margin-top: 6px; line-height: 1.5; }
.profile-self-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 14px;
    align-items: start;
    margin-bottom: 14px;
}
@media (max-width: 900px) {
    .profile-self-layout { grid-template-columns: 1fr; }
}
.profile-self-main { min-width: 0; }
.profile-intro-block { margin-bottom: 12px; }
.profile-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 15px;
    margin-bottom: 14px;
    padding: 12px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
}
.profile-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}
.profile-meta-item:last-child {
    padding-right: 0;
    border-right: none;
}
.profile-meta-k {
    color: var(--text-muted);
    flex-shrink: 0;
}
.profile-meta-k::after {
    content: '：';
}
.profile-meta-v {
    color: var(--text);
    font-weight: 500;
}
.profile-intro-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 8px;
}
.profile-intro-body {
    color: var(--text);
    line-height: 1.75;
    font-size: 14px;
    max-height: 220px;
    overflow-y: auto;
    word-break: break-word;
}
.profile-page-main .profile-intro-body {
    max-height: none;
    overflow: visible;
}
.profile-self-main .profile-intro-body {
    max-height: none;
    overflow: visible;
}
.profile-intro-warn {
    margin-top: 10px;
    padding: 8px 10px;
    background: rgba(239,107,107,.08);
    border: 1px solid rgba(239,107,107,.25);
    border-radius: 8px;
    color: #f0a0a0;
    line-height: 1.5;
}
.profile-skills-block { margin: 10px 0 12px; }
.skill-section-stack {
    display: block;
    width: 100%;
    margin-bottom: 12px;
}
.skill-section-stack:last-child { margin-bottom: 0; }
.skill-section-title {
    display: block;
    width: 100%;
    font-size: 13px;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 8px;
    line-height: 1.3;
}
.skill-section-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    align-items: center;
    justify-content: flex-start;
}
.profile-skill-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
}
.author-skill-row { justify-content: flex-start; text-align: left; }
.profile-skill-label {
    flex: 0 0 40px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gold);
    line-height: 28px;
}
.profile-skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
    min-width: 0;
}
.skill-tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 11px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gold);
    background: rgba(232,168,32,.08);
    border: 1px solid rgba(232,168,32,.25);
    border-radius: 6px;
    white-space: nowrap;
    flex: 0 0 auto;
}
.profile-meta-line { margin-top: 10px; line-height: 1.7; }
.author-skills-block {
    width: 100%;
    text-align: left;
    padding: 0 2px;
    margin: 10px 0 8px;
}
.author-skills-block .skill-section-tags-job {
    margin-top: 8px;
}
.rank-tier-table-compact th,
.rank-tier-table-compact td {
    padding: 5px 8px;
    font-size: 12px;
}
.rank-tier-table-compact .rank-tier-meaning {
    font-size: 12px;
    max-width: 120px;
}
.rank-tier-table-wrap { overflow-x: auto; }
.rank-tier-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.rank-tier-table th,
.rank-tier-table td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}
.rank-tier-table th {
    color: var(--gold);
    font-weight: 600;
    background: rgba(232,168,32,.06);
}
.rank-tier-label { font-weight: 700; color: var(--gold); white-space: nowrap; }
.rank-tier-meaning { color: var(--text-muted); line-height: 1.5; }
.rank-tier-row-active { background: rgba(232,168,32,.08); }
.rank-tier-row-active .rank-tier-label { color: var(--gold-light); }

.portfolio-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
}
@media (max-width: 860px) {
    .profile-page-layout { grid-template-columns: 1fr; }
}
.page-desc {
    color: var(--text-muted);
    font-size: 13px;
    margin: -8px 0 16px;
}
.cate-group-label {
    padding: 10px 16px 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gold);
    background: rgba(232,168,32,.06);
    border-bottom: none !important;
    pointer-events: none;
}
.cate-list li.cate-child a {
    padding-left: 24px;
    font-size: 13px;
}
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 12px;
    flex-wrap: wrap;
    min-height: 32px;
}
.page-header-trade {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.page-header-trade .page-header-left {
    min-width: 0;
}
.page-header-trade .page-header-actions {
    margin-left: auto;
    flex-shrink: 0;
}
@media (max-width: 720px) {
    .page-header-trade {
        gap: 10px;
    }
    .page-header-trade .page-header-actions {
        width: 100%;
        justify-content: flex-end;
    }
}
.page-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.page-header-left-stack {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    flex: 1;
    min-width: 0;
}
.page-header-left-stack .page-title {
    line-height: 1.3;
}
.page-header-left-stack .page-subtitle {
    margin: 0;
    line-height: 1.5;
}
.page-header .page-header-actions {
    flex-shrink: 0;
    margin-left: auto;
}
.engine-filter-form {
    display: flex;
    align-items: center;
    gap: 20px;
}
.page-title { font-size: 18px; font-weight: 600; }

/* ========== 商品卡片 ========== */
.item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}
.item-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color .2s, transform .2s;
    display: flex;
    flex-direction: column;
}
.item-card:hover { border-color: rgba(232,168,32,.3); transform: translateY(-2px); }
.item-card .thumb {
    height: 140px;
    background: linear-gradient(135deg, #1a1a24, #221a2a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 13px;
    flex-shrink: 0;
}
.item-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.item-card .body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.item-card .title { font-size: 15px; font-weight: 600; margin-bottom: 6px; line-height: 1.4; }
.item-card .price { font-size: 20px; font-weight: 700; color: var(--gold); margin-bottom: 8px; }
.item-card .meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 14px;
    margin-top: auto;
}
.item-card .body .btn { align-self: flex-start; }

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}
.badge-wait { background: rgba(232,168,32,.12); color: var(--gold); }
.badge-ok { background: rgba(62,207,142,.12); color: var(--success); }
.badge-off { background: rgba(136,136,160,.12); color: var(--text-muted); }
.badge-bad { background: rgba(255,90,90,.12); color: #ff6b6b; }
.badge-info { background: rgba(100,149,237,.12); color: var(--badge-info-color); }
.badge-quote {
    background: var(--badge-quote-bg, rgba(232, 168, 32, 0.18));
    color: var(--badge-quote-color, #c89400);
    border: 1px solid var(--badge-quote-border, rgba(232, 168, 32, 0.45));
}
.badge-running {
    background: var(--badge-running-bg, rgba(100, 149, 237, 0.16));
    color: var(--badge-running-color, var(--badge-info-color));
    border: 1px solid var(--badge-running-border, rgba(100, 149, 237, 0.42));
}
.badge-done {
    background: var(--badge-done-bg, rgba(62, 207, 142, 0.16));
    color: var(--badge-done-color, #2ea86a);
    border: 1px solid var(--badge-done-border, rgba(62, 207, 142, 0.42));
}
.badge-closed {
    background: rgba(136, 136, 160, 0.14);
    color: var(--text-muted);
    border: 1px solid rgba(136, 136, 160, 0.35);
}
.trade-row-status.badge-quote,
.trade-row-status.badge-running,
.trade-row-status.badge-done,
.trade-row-status.badge-closed {
    min-width: 58px;
    text-align: center;
    padding: 3px 8px;
    font-size: 12px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-size: 14px;
    grid-column: 1 / -1;
}

/* ========== 统计 ========== */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
@media (max-width: 640px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
}
.stat-item .num { font-size: 20px; font-weight: 700; color: var(--gold); line-height: 1.2; }
.stat-item .label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ========== 表单 ========== */
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-muted);
    font-size: 13px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    transition: border-color .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
}
.form-group textarea { min-height: 96px; resize: vertical; }
.form-check { display: flex; flex-wrap: wrap; gap: 12px; }
.form-check label {
    display: flex; align-items: center; gap: 6px;
    font-size: 13px; color: var(--text-muted); cursor: pointer;
}
.form-check input[type=checkbox] { width: auto; accent-color: var(--gold); }
.job-engine-checks { gap: 10px 16px; }
.job-engine-checks label {
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-elevated);
    cursor: pointer;
}
.job-engine-checks label:has(input:checked) {
    border-color: rgba(232,168,32,.5);
    background: rgba(232,168,32,.08);
    color: var(--gold);
}

.auth-wrap {
    max-width: 420px;
    margin: 24px auto;
}
.auth-wrap .card { padding: 32px 28px; }
.auth-wrap .card-flat {
    margin-top: 16px;
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.auth-wrap .card-flat .card-title { margin-bottom: 8px; }
.auth-wrap code {
    font-size: 12px;
    color: var(--gold);
    background: var(--bg-elevated);
    padding: 2px 6px;
    border-radius: 4px;
}
.oauth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 14px;
    color: var(--text-muted);
    font-size: 12px;
}
.oauth-divider::before,
.oauth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}
.oauth-btns {
    display: flex;
    gap: 10px;
}
.oauth-btn {
    flex: 1;
    text-align: center;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--border);
    cursor: pointer;
}
.oauth-qq { background: rgba(18, 150, 219, .12); color: #4db8f0; border-color: rgba(18, 150, 219, .3); }
.oauth-wechat { background: rgba(7, 193, 96, .12); color: #3ecf8e; border-color: rgba(7, 193, 96, .3); }
.oauth-disabled { opacity: .55; cursor: not-allowed; }
.oauth-hint { margin-top: 12px; line-height: 1.65; }

/* ========== 表格 ========== */
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th {
    background: var(--bg-elevated);
    color: var(--gold);
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
}
.data-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(255,255,255,.02); }

/* ========== 作品集 ========== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
@media (max-width: 768px) { .portfolio-grid { grid-template-columns: 1fr; } }
.portfolio-item {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
}
.portfolio-item .p-title { font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.portfolio-item .p-desc { font-size: 12px; color: var(--text-muted); line-height: 1.6; }

/* ========== 标签组 ========== */
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tag {
    padding: 3px 10px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-muted);
}

/* ========== 页脚 ========== */
.site-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 20px 24px 18px;
    color: var(--text-muted);
    font-size: 13px;
}
.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    text-align: center;
}
.footer-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 18px;
    margin-bottom: 10px;
    line-height: 1.6;
}
.footer-meta-item {
    color: var(--text-muted);
    white-space: nowrap;
}
.footer-meta-item:not(:last-child)::after {
    content: '|';
    margin-left: 18px;
    color: rgba(255,255,255,.15);
    pointer-events: none;
}
.footer-meta-link {
    color: var(--gold);
    text-decoration: none;
}
.footer-meta-link:hover {
    text-decoration: underline;
}
.footer-disclaimer {
    margin: 0;
    font-size: 12px;
    line-height: 1.75;
    color: #7a8490;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

/* ========== 广告位 ========== */
.ad-banner-zone {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ad-banner-home {
    margin-bottom: 12px;
}
.ad-banner-item {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}
.ad-banner-item img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    display: block;
}
.ad-banner-placeholder {
    display: block;
    height: 80px;
    line-height: 80px;
    text-align: center;
    border: 1px dashed rgba(232,168,32,.3);
    border-radius: var(--radius);
    color: var(--text-muted);
    font-size: 14px;
    background: rgba(255,255,255,.02);
    transition: border-color .2s, color .2s;
}
.ad-banner-placeholder:hover {
    border-color: rgba(232,168,32,.5);
    color: var(--gold);
}

/* ========== 账户安全 ========== */
.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}
.security-grid .form-group input {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
}

/* ========== 详情页 ========== */
.detail-header { margin-bottom: 24px; }
.detail-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}
.detail-header-main { flex: 1; min-width: 0; }
.detail-back-btn { flex-shrink: 0; margin-top: 2px; }
.detail-header h1 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; font-size: 13px; color: var(--text-muted); }
.detail-meta-self {
    font-weight: 700;
    font-size: 14px;
    color: var(--gold);
    letter-spacing: .02em;
}
.detail-publisher-name {
    color: var(--gold);
    font-weight: 600;
    text-decoration: none;
}
.detail-publisher-name:hover { text-decoration: underline; }
.detail-price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 14px 18px;
    margin: 16px 0 8px;
}
.detail-order-status {
    display: inline-block;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
    padding: 6px 14px;
    border-radius: 8px;
    letter-spacing: .04em;
}
.detail-order-status-wait {
    color: #1a1200;
    background: linear-gradient(135deg, #ffd54f, var(--gold-light));
    box-shadow: 0 0 0 1px rgba(232,168,32,.35);
}
.detail-order-status-info {
    color: #e8f2ff;
    background: linear-gradient(135deg, #4a7fd4, #2d5aa8);
    box-shadow: 0 0 0 1px rgba(126,184,255,.35);
}
.detail-order-status-ok {
    color: #062a18;
    background: linear-gradient(135deg, #6ee7b7, var(--success));
    box-shadow: 0 0 0 1px rgba(62,207,142,.35);
}
.detail-order-status-off {
    color: #f0d0d0;
    background: rgba(239,107,107,.22);
    box-shadow: 0 0 0 1px rgba(239,107,107,.35);
}
.detail-status-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}
.detail-winner-line {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    margin-top: 10px;
    padding: 10px 16px;
    background: var(--bg-elevated);
    border: 1px solid rgba(62, 207, 142, .28);
    border-radius: 8px;
    line-height: 1.5;
}
.detail-winner-label {
    font-size: 15px;
    font-weight: 700;
    color: var(--success);
}
.detail-winner-name {
    font-size: 18px;
    font-weight: 700;
}
.detail-winner-money {
    font-size: 22px;
    font-weight: 700;
    color: var(--gold);
}
.detail-deadline { color: var(--text-muted); }
.detail-price { font-size: 28px; font-weight: 700; color: var(--gold); margin: 0; }
.detail-require-section { margin-bottom: 20px; }
.detail-require-title {
    font-size: 14px;
    font-weight: 400;
    color: var(--badge-info-color);
    margin-bottom: 10px;
}
.detail-content {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 20px;
    white-space: pre-wrap;
}
.detail-require-body {
    color: var(--text);
    background: rgba(232,168,32,.05);
    border-color: rgba(232,168,32,.22);
    margin-bottom: 0;
}

.quote-item {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.quote-item .quote-money { font-size: 18px; font-weight: 700; color: var(--gold); }

.quote-row-compact {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 8px;
    transition: border-color .15s;
}
.quote-row-compact:hover {
    border-color: rgba(232,168,32,.25);
}
.quote-row-won {
    border-color: rgba(62,207,142,.35);
    background: rgba(62,207,142,.06);
}
.quote-row-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    font-size: 13px;
    line-height: 1.5;
}
.quote-row-left {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    font-size: 13px;
}
.quote-row-left > * {
    flex-shrink: 0;
}
.quote-row-left > .quote-row-name {
    flex-shrink: 1;
    min-width: 0;
}
.quote-row-left > * + * {
    margin-left: 15px;
}
.quote-row-tail {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
    flex-shrink: 0;
}
.quote-row-name {
    font-weight: 700;
    color: var(--gold);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 8em;
    display: inline-block;
    vertical-align: middle;
}
.quote-row-name:hover { text-decoration: underline; }
.quote-row-rank {
    color: var(--gold);
    font-size: 12px;
    white-space: nowrap;
}
.quote-row-chip {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 4px;
    border: 1px solid var(--border);
    white-space: nowrap;
}
.quote-row-chip.chip-ok {
    color: var(--success);
    border-color: rgba(62,207,142,.35);
}
.quote-row-chip.chip-warn {
    color: var(--gold);
    border-color: rgba(232,168,32,.35);
}
.quote-row-chip.chip-muted {
    color: var(--text-muted);
}
.quote-row-eval {
    color: var(--text-muted);
    white-space: nowrap;
    letter-spacing: .02em;
}
.quote-row-days {
    color: var(--text-muted);
    white-space: nowrap;
}
.quote-row-money {
    font-size: 16px;
    font-weight: 700;
    color: var(--gold);
    white-space: nowrap;
}
.quote-row-action {
    flex: 0 0 auto;
}
.quote-row-desc {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    font-size: 14px;
    line-height: 1.7;
    color: var(--text);
    word-break: break-word;
}
.quote-row-desc-body {
    color: var(--text);
}
.quote-row-desc-empty {
    color: var(--text-muted);
    font-style: italic;
}
@media (max-width: 768px) {
    .quote-row-left {
        flex-wrap: wrap;
        gap: 8px 2.5em;
    }
    .quote-row-left > * + * {
        margin-left: 0;
    }
    .quote-row-tail {
        margin-left: 0;
        width: 100%;
        justify-content: flex-end;
        margin-top: 8px;
    }
}

/* ========== 订单服务评价 ========== */
.eval-form-hint { margin-bottom: 14px; }
.eval-level-pick {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
}
.eval-winner-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 20px;
    margin-bottom: 14px;
    padding: 10px 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
}
.eval-check-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px 4px;
    user-select: none;
}
.eval-level-radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}
.eval-check-box {
    width: 22px;
    height: 22px;
    border: 2px solid #666;
    border-radius: 4px;
    background: #1a1a1a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color .15s, background .15s, box-shadow .15s;
}
.eval-check-box::after {
    content: '';
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    opacity: 0;
    transform: scale(.6);
    transition: opacity .12s, transform .12s;
}
.eval-check-item.is-checked .eval-check-box::after {
    content: '✓';
    opacity: 1;
    transform: scale(1);
}
.eval-check-good.is-checked .eval-check-box {
    border-color: var(--success);
    background: rgba(62,207,142,.22);
    box-shadow: 0 0 0 2px rgba(62,207,142,.15);
}
.eval-check-good.is-checked .eval-check-box::after { color: var(--success); }
.eval-check-good .eval-check-label { color: var(--success); }
.eval-check-neutral.is-checked .eval-check-box {
    border-color: #999;
    background: rgba(180,180,180,.15);
    box-shadow: 0 0 0 2px rgba(180,180,180,.12);
}
.eval-check-neutral.is-checked .eval-check-box::after { color: #ccc; }
.eval-check-neutral .eval-check-label { color: #aaa; }
.eval-check-bad.is-checked .eval-check-box {
    border-color: #ff6b6b;
    background: rgba(255,107,107,.18);
    box-shadow: 0 0 0 2px rgba(255,107,107,.12);
}
.eval-check-bad.is-checked .eval-check-box::after { color: #ff6b6b; }
.eval-check-bad .eval-check-label { color: #ff6b6b; }
.eval-check-label {
    font-size: 15px;
    font-weight: 700;
}
.eval-check-item.is-checked .eval-check-label {
    text-decoration: underline;
    text-underline-offset: 3px;
}
.eval-btn-pulse {
    animation: evalBtnPulse .38s ease;
}
@keyframes evalBtnPulse {
    0% { transform: scale(1); }
    40% { transform: scale(1.08); }
    100% { transform: scale(1); }
}
.eval-score-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 24px;
    margin-bottom: 16px;
}
.eval-score-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.eval-score-label {
    min-width: 72px;
    font-size: 13px;
    color: var(--text-muted);
}
.eval-stars {
    display: inline-flex;
    gap: 4px;
}
.eval-star {
    cursor: pointer;
    line-height: 1;
}
.eval-star input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.eval-star span {
    font-size: 22px;
    color: #555;
    transition: color .15s;
}
.eval-star input:checked + span {
    color: var(--gold);
}
.eval-star:hover span {
    color: rgba(232,168,32,.75);
}
.eval-readonly {
    padding: 4px 0;
}
.eval-summary {
    padding: 2px 0;
}
.eval-summary-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
    font-size: 14px;
    line-height: 1.65;
}
.eval-summary-item {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}
.eval-summary-scores {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
}
.eval-score-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}
.eval-score-short {
    color: var(--text-muted);
    font-size: 13px;
}
.score-stars-readonly {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    line-height: 1;
}
.score-stars-readonly .score-star {
    color: #444;
    font-size: 13px;
}
.score-stars-readonly .score-star.is-on {
    color: var(--gold);
}
.eval-summary-comment {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}
.eval-summary-pending .eval-summary-comment {
    margin-top: 10px;
    padding-top: 0;
    border-top: none;
}
.quote-row-speaker {
    color: var(--gold-dim);
    font-weight: 600;
    margin-right: 4px;
}
.eval-readonly-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
}
.eval-readonly-content {
    margin-top: 10px;
}
.eval-dim-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 12px;
}
.eval-dim-item {
    display: inline-block;
    white-space: nowrap;
    margin-right: 20px;
    margin-bottom: 4px;
}
.eval-dim-item:last-child {
    margin-right: 0;
}
.eval-toast {
    position: fixed;
    left: 50%;
    top: 88px;
    transform: translateX(-50%);
    z-index: 9999;
    pointer-events: none;
}
.eval-toast-inner {
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 8px 32px rgba(0,0,0,.45);
}
.eval-toast-ok {
    background: rgba(62,207,142,.95);
    color: #0d1f14;
    border: 1px solid rgba(62,207,142,.6);
}
.eval-toast-warn {
    background: rgba(232,168,32,.95);
    color: #1a1408;
}
.eval-toast-bounce {
    animation: evalToastBounce .55s cubic-bezier(.34,1.56,.64,1);
}
@keyframes evalToastBounce {
    0% { opacity: 0; transform: translateY(-24px) scale(.85); }
    55% { opacity: 1; transform: translateY(6px) scale(1.04); }
    100% { transform: translateY(0) scale(1); }
}
.flash .msg.flash-bounce {
    animation: evalToastBounce .5s cubic-bezier(.34,1.56,.64,1);
}
@media (max-width: 768px) {
    .eval-score-grid { grid-template-columns: 1fr; }
}

/* ========== 交易行列表 ========== */
.phase-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.phase-tab {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    transition: all .2s;
}
.phase-tab:hover { border-color: rgba(232,168,32,.3); color: var(--text); }
.phase-tab.active { background: rgba(232,168,32,.15); border-color: var(--gold); color: var(--gold); }
.phase-tab.phase-ongoing.active { background: rgba(100,149,237,.15); border-color: var(--row-ongoing-title); color: var(--row-ongoing-title); }
.phase-tab.phase-done.active { background: rgba(62,207,142,.15); border-color: var(--success); color: var(--success); }

.trade-row-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.trade-row {
    display: grid;
    /*
     * 标题区 604px（约36汉字+分类+NEW）| 引擎+价格 | 时间 | 状态+参与
     * 引擎与价格同组：组内紧(6px)，组与标题区松(28px)
     */
    grid-template-columns: 604px 132px 72px 118px;
    column-gap: 14px;
    align-items: center;
    padding: 10px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all .15s;
}
@media (max-width: 1100px) {
    .trade-row {
        grid-template-columns: minmax(0, 1fr) 132px 72px 118px;
    }
}
@media (max-width: 768px) {
    .trade-row {
        grid-template-columns: minmax(0, 1fr) auto;
        column-gap: 10px;
        grid-template-rows: auto auto;
    }
    .trade-row-mid {
        padding-left: 0;
        gap: 8px;
    }
    .trade-row-time,
    .trade-row-status-wrap { display: none; }
}
.trade-row:hover {
    border-color: var(--row-hover-accent);
    background: var(--bg-elevated);
}
.trade-row-title {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0;
    font-size: 14px;
    font-weight: 400;
    min-width: 0;
    max-width: 604px;
}
.trade-row-title-badges {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding-left: 42px;
    margin-left: 4px;
}
.trade-row-title .res-badge-new {
    margin-left: 0;
    flex-shrink: 0;
}
.trade-row-title-text {
    min-width: 0;
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
}
.trade-row-cate-label {
    flex-shrink: 0;
    font-weight: 400;
    font-size: 12px;
    line-height: 1.35;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.01em;
}
.trade-row-new .trade-row-cate-label {
    color: var(--cate-label-new-color, #9a6200);
    background: var(--cate-label-new-bg, rgba(200, 180, 0, 0.14));
    border: 1px solid var(--cate-label-new-border, rgba(200, 180, 0, 0.32));
}
.trade-row-ongoing .trade-row-cate-label {
    color: var(--cate-label-ongoing-color, var(--row-ongoing-title));
    background: var(--cate-label-ongoing-bg, rgba(100, 149, 237, 0.12));
    border: 1px solid var(--cate-label-ongoing-border, rgba(100, 149, 237, 0.28));
}
.trade-row-ok .trade-row-cate-label {
    color: var(--cate-label-ok-color, var(--row-ok-title));
    background: var(--cate-label-ok-bg, rgba(62, 207, 142, 0.12));
    border: 1px solid var(--cate-label-ok-border, rgba(62, 207, 142, 0.28));
}
.trade-row-off .trade-row-cate-label,
.trade-row-wait .trade-row-cate-label {
    color: var(--text-muted);
    background: rgba(136, 136, 160, 0.1);
    border: 1px solid rgba(136, 136, 160, 0.22);
}
.trade-row-cate-sep {
    flex-shrink: 0;
    color: var(--text-muted);
    margin: 0 1px;
}
.trade-row-desc {
    min-width: 0;
    max-width: 36em;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text);
    font-weight: 400;
}
.trade-row-mid {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-left: 28px;
    width: 132px;
    box-sizing: border-box;
}
.trade-row-publisher-stats {
    flex-shrink: 0;
    font-size: 11px;
    color: var(--text-muted);
    padding: 1px 6px;
    border-radius: 4px;
    background: rgba(136, 136, 160, 0.08);
    white-space: nowrap;
}
.detail-publisher-stats {
    display: inline-block;
    margin-left: 8px;
    font-size: 12px;
    color: var(--text-muted);
}
.employer-rank-badge {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;
}
.employer-rank-1 {
    color: var(--text-muted);
    background: rgba(136, 136, 160, 0.12);
    border: 1px solid rgba(136, 136, 160, 0.22);
}
.employer-rank-2 {
    color: #1559a8;
    background: rgba(26, 111, 212, 0.1);
    border: 1px solid rgba(26, 111, 212, 0.25);
}
.employer-rank-3 {
    color: #9a6200;
    background: rgba(200, 160, 0, 0.12);
    border: 1px solid rgba(200, 160, 0, 0.28);
}
.author-employer-eval-bar {
    margin-top: 6px;
    flex-wrap: wrap;
    gap: 6px 10px;
}
.trade-eval-badge {
    flex-shrink: 0;
    display: inline-block;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.trade-eval-good {
    background: rgba(62, 207, 142, .14);
    color: #3ecf8e;
    border: 1px solid rgba(62, 207, 142, .35);
}
.trade-eval-neutral {
    background: rgba(136, 136, 160, .14);
    color: #b0b0c8;
    border: 1px solid rgba(136, 136, 160, .35);
}
.trade-eval-bad {
    background: rgba(239, 107, 107, .14);
    color: #ff6b6b;
    border: 1px solid rgba(239, 107, 107, .35);
}
.trade-row-cate { font-size: 12px; color: var(--text-muted); }
.trade-row-engine {
    font-size: 13px;
    font-weight: 500;
    color: var(--gold);
    white-space: nowrap;
    flex: 0 0 48px;
    width: 48px;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}
.trade-row-money {
    font-size: 14px;
    font-weight: 500;
    color: var(--gold);
    white-space: nowrap;
    flex: 1 1 auto;
    text-align: right;
    font-variant-numeric: tabular-nums;
    min-width: 72px;
}
.trade-row-time {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    justify-self: center;
    width: 72px;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}
.trade-row-status {
    white-space: nowrap;
    width: auto;
    min-width: 0;
    text-align: center;
    justify-self: end;
}
.trade-row-status-wrap {
    display: grid;
    grid-template-columns: auto 30px;
    column-gap: 6px;
    align-items: center;
    justify-self: end;
    width: 100%;
    max-width: 118px;
    white-space: nowrap;
}
.public-profile-publishing .trade-row {
    grid-template-columns: minmax(0, 1fr) 92px 98px 92px 72px;
    column-gap: 10px;
}
.public-profile-publishing .trade-row-title {
    max-width: none;
}
.public-profile-publishing .trade-row-engine {
    width: 92px;
    flex-basis: 92px;
    justify-self: start;
    text-align: left;
}
.public-profile-publishing .trade-row-money {
    min-width: 98px;
    justify-self: start;
    text-align: left;
}
.public-profile-publishing .trade-row-time {
    width: 92px;
    justify-self: start;
    text-align: left;
}
.public-profile-publishing .trade-row-status {
    justify-self: start;
    transform: translateX(-15px);
}
@media (max-width: 768px) {
    .public-profile-publishing .trade-row {
        grid-template-columns: minmax(0, 1fr) auto;
    }
    .public-profile-publishing .trade-row-status {
        transform: none;
    }
}
.trade-row-status-wrap .list-my-mark {
    justify-self: end;
    flex-shrink: 0;
}
.list-my-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 10px;
    line-height: 1.2;
    padding: 1px 5px;
    border-radius: 3px;
    white-space: nowrap;
    cursor: help;
    font-weight: 500;
    letter-spacing: 0.02em;
}
.list-my-mark--publish {
    color: #b8860b;
    background: rgba(184, 134, 11, 0.12);
    border: 1px solid rgba(184, 134, 11, 0.28);
}
.list-my-mark--quote,
.list-my-mark--apply,
.list-my-mark--bid {
    color: #3f8efc;
    background: rgba(63, 142, 252, 0.1);
    border: 1px solid rgba(63, 142, 252, 0.28);
}
.list-my-mark--win {
    color: #1f9d47;
    background: rgba(31, 157, 71, 0.12);
    border: 1px solid rgba(31, 157, 71, 0.3);
}
.list-my-mark--done {
    color: #1f9d47;
    background: rgba(31, 157, 71, 0.16);
    border: 1px solid rgba(31, 157, 71, 0.35);
}
.list-my-mark--lost {
    color: #9aa8b8;
    background: rgba(154, 168, 184, 0.1);
    border: 1px solid rgba(154, 168, 184, 0.25);
}
.list-my-mark--mobile { display: none; }
.auction-card-meta-right {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
@media (max-width: 768px) {
    .list-my-mark--desktop { display: none; }
    .list-my-mark--mobile { display: inline-flex; }
}
.trade-row-stack {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
}
.trade-row-line {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}
.trade-row-stack .trade-row-line {
    display: grid;
    grid-template-columns: 1fr auto auto auto auto;
    align-items: center;
    gap: 12px;
}
.trade-row-delivery {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.45;
    padding-left: 2px;
    word-break: break-word;
}

/* 拍卖大厅 — 卡片模式（后台可切换） */
.auction-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}
.auction-card-item {
    display: block;
    padding: 12px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: inherit;
    transition: border-color .15s, box-shadow .15s;
}
.auction-card-item:hover {
    border-color: rgba(63,142,252,.35);
    box-shadow: 0 2px 10px rgba(63,142,252,.06);
}
.auction-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.auction-card-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.auction-card-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.auction-card-price {
    color: var(--gold);
    font-weight: 700;
    font-size: 16px;
}
.auction-row-list .trade-row-desc {
    -webkit-line-clamp: 1;
}
/* 竞拍列表列序为 价格|引擎，与派单相反，对齐方式单独收紧间距 */
.auction-row-list .trade-row {
    grid-template-columns: minmax(0, 1fr) 132px 72px 118px;
}
.auction-row-list .trade-row-mid {
    flex-direction: row-reverse;
    padding-left: 28px;
    gap: 6px;
}
.auction-row-list .trade-row-money {
    text-align: left;
    min-width: 72px;
    flex: 0 0 auto;
}
.auction-row-list .trade-row-engine {
    flex: 1 1 auto;
    text-align: right;
    width: auto;
}
.detail-delivery-record {
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 6px;
    background: rgba(100,149,237,.06);
    border: 1px solid rgba(100,149,237,.15);
    line-height: 1.5;
}
.doc-viewer-frame {
    background: #fff;
    color: #222;
    border-radius: 8px;
    padding: 16px;
    max-height: 75vh;
    overflow: auto;
}
.community-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 16px;
    align-items: start;
}
.community-cat-link {
    display: block;
    padding: 8px 10px;
    color: var(--text-muted);
    border-radius: 6px;
    margin-bottom: 4px;
}
.community-cat-link:hover,
.community-cat-link.active {
    background: rgba(126,184,255,.12);
    color: var(--badge-info-color);
}
.community-coin-box {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}
@media (max-width: 768px) {
    .community-layout { grid-template-columns: 1fr; }
}
.trade-row-new {
    border-left: 3px solid #c8e632;
    background: rgba(200,230,50,.04);
}
.trade-row-new .trade-row-desc {
    color: var(--row-new-title);
}
.trade-row-new:hover {
    border-color: rgba(200,230,50,.45);
    background: rgba(200,230,50,.08);
}
.trade-row-ongoing {
    border-left: 3px solid var(--row-ongoing-title);
    background: rgba(100,149,237,.04);
}
.trade-row-ongoing .trade-row-desc {
    color: var(--row-ongoing-title);
}
.trade-row-ongoing:hover {
    border-color: rgba(126,184,255,.45);
    background: rgba(100,149,237,.08);
}
.trade-row-info { border-left: 3px solid var(--row-ongoing-title); }
.trade-row-ok {
    border-left: 3px solid var(--success);
    opacity: .9;
}
.trade-row-ok .trade-row-desc {
    color: var(--row-ok-title);
}
.trade-row-off {
    border-left: 3px solid var(--text-muted);
    opacity: .75;
}
.trade-row-off .trade-row-desc {
    color: var(--text-muted);
}

.dashboard-records .trade-row {
    grid-template-columns: minmax(0, 1fr) 56px 84px 88px 76px;
}
.dashboard-records .trade-row-time {
    width: 88px;
    min-width: 88px;
}

.notice-box {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 12px;
}
.notice-warn { background: rgba(232,168,32,.1); border: 1px solid rgba(232,168,32,.25); color: var(--gold); }
.notice-info { background: rgba(62,142,255,.1); border: 1px solid rgba(62,142,255,.25); color: var(--notice-info-color); }
.deposit-action-hint {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
}
.deposit-action-hint-text {
    margin: 0;
    flex: 1 1 220px;
    line-height: 1.5;
}
.public-chat-error {
    margin-bottom: 10px;
}
.public-chat-compose .chat-input-row {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}
.public-chat-compose .chat-input-row textarea {
    flex: 1;
}
.chat-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 10px;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 2px;
}
.chat-meta-main {
    flex: 1 1 auto;
    min-width: 0;
}
.chat-sender-line {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    line-height: 1.45;
}
.chat-sender-name {
    color: var(--gold);
    font-weight: 500;
    text-decoration: none;
    max-width: 10em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}
.chat-sender-name:hover {
    text-decoration: underline;
}
.chat-sender-rank {
    color: var(--gold);
    font-size: 11px;
    white-space: nowrap;
}
.chat-sender-cate {
    font-size: 11px;
    padding: 1px 7px;
    border-radius: 4px;
    border: 1px solid rgba(100, 149, 237, 0.28);
    color: var(--badge-info-color, #6495ed);
    background: rgba(100, 149, 237, 0.1);
    white-space: nowrap;
}
.chat-sender-cate.is-empty {
    color: var(--text-muted);
    border-color: rgba(136, 136, 160, 0.25);
    background: rgba(136, 136, 160, 0.08);
}
.chat-sender-badge {
    font-size: 10px;
    padding: 1px 6px;
}
.chat-sender-sep {
    color: var(--text-muted);
    opacity: 0.55;
    user-select: none;
}
.chat-sender-time {
    color: var(--text-muted);
    font-size: 11px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.chat-block-actions {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}
.chat-block-form {
    display: inline;
    margin: 0;
}
.chat-block-form-inline {
    display: inline;
}
.chat-block-btn {
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-muted);
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 999px;
    cursor: pointer;
}
.chat-block-btn:hover {
    border-color: var(--gold);
    color: var(--gold-dim);
}
.chat-block-btn-danger {
    color: #e57373;
    border-color: rgba(229, 115, 115, 0.35);
}
.chat-block-btn-danger:hover {
    border-color: #e57373;
    color: #ff8a80;
}
.trade-block-manage-wrap {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dashed var(--border);
}
.trade-block-hint {
    margin: 6px 0;
    line-height: 1.5;
}
.blocklist-table .col-time,
.blocklist-table th:nth-child(2),
.blocklist-table td:nth-child(2),
.blocklist-table th:nth-child(3),
.blocklist-table td:nth-child(3) {
    white-space: nowrap;
}
.trade-block-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.chat-block-link {
    border: none;
    background: none;
    color: var(--gold-dim);
    font-size: 12px;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}
.chat-block-link:hover {
    opacity: 0.85;
}
.chat-reply-btn {
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--gold-dim);
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 999px;
    cursor: pointer;
}
.chat-reply-btn:hover {
    border-color: var(--gold);
    background: var(--btn-outline-hover-bg);
}
.chat-mention {
    color: var(--gold-dim);
    font-weight: 600;
    background: color-mix(in srgb, var(--gold) 10%, transparent);
    padding: 0 2px;
    border-radius: 4px;
}
.chat-mention-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 8px;
    padding: 8px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
}
.chat-mention-option {
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 13px;
    cursor: pointer;
}
.chat-mention-option:hover {
    border-color: var(--gold);
    color: var(--gold-dim);
    background: var(--btn-outline-hover-bg);
}
.quote-update-notice {
    margin-left: 10px;
    font-size: 12px;
    font-weight: 500;
    color: var(--gold-dim);
    animation: quote-notice-pulse 1.2s ease-in-out 2;
}
@keyframes quote-notice-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}
.quote-accept-form {
    display: inline;
    margin: 0;
}

/* ========== 列表分页 ========== */
.list-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
    margin-top: 18px;
    padding: 14px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
}
.list-pager-size {
    display: flex;
    align-items: center;
    gap: 8px;
}
.list-pager-label {
    font-size: 13px;
    color: var(--text-muted);
}
.list-pager-select {
    height: 32px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    font-size: 13px;
}
.list-pager-meta {
    font-size: 13px;
    color: var(--text-muted);
}
.list-pager-meta strong {
    color: var(--text);
    font-weight: 600;
}
.list-pager-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}
.list-pager-nav .is-disabled {
    opacity: 0.45;
    pointer-events: none;
}
@media (max-width: 640px) {
    .list-pager {
        flex-direction: column;
        align-items: stretch;
    }
    .list-pager-nav {
        margin-left: 0;
        justify-content: center;
    }
}

.rule-list { padding-left: 18px; line-height: 1.8; }
.rule-list li { margin-bottom: 4px; }

.chat-box {
    max-height: 420px;
    overflow-y: auto;
    padding: 8px 4px 12px;
    margin-bottom: 12px;
}
.chat-msg {
    margin-bottom: 8px;
    max-width: 85%;
}
.chat-msg-mine {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.chat-content {
    display: block;
    width: fit-content;
    max-width: 100%;
    padding: 4px 10px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.4;
    text-align: left;
    white-space: normal;
    word-break: break-word;
}
.chat-content p { margin: 0; }
.chat-content br + br { display: none; }
.chat-msg-mine .chat-content {
    background: rgba(232,168,32,.1);
    border-color: rgba(232,168,32,.2);
}
.chat-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.chat-compose { margin-top: 4px; }
.chat-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.chat-tool-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 32px;
    padding: 0 10px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text);
    font-size: 16px;
    cursor: pointer;
}
.chat-tool-btn:hover { border-color: rgba(232,168,32,.35); }
.chat-input-row {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}
.chat-input-row textarea {
    flex: 1;
    padding: 8px 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 36px;
    line-height: 1.4;
}
.chat-emoji-wrap {
    position: relative;
}
.chat-emoji-panel {
    position: absolute;
    left: 0;
    bottom: calc(100% + 6px);
    z-index: 20;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    width: 280px;
    max-width: 90vw;
    padding: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.chat-emoji-panel[hidden] {
    display: none !important;
}
.chat-emoji-btn {
    border: none;
    background: transparent;
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
}
.chat-emoji-btn:hover { background: rgba(255,255,255,.06); }
.chat-img {
    max-width: 240px;
    max-height: 200px;
    border-radius: 6px;
    display: block;
    margin-bottom: 4px;
    cursor: zoom-in;
}
.chat-img-link {
    display: inline-block;
    line-height: 0;
}
.chat-compose-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: var(--bg-elevated);
    border: 1px solid rgba(232,168,32,.28);
    border-radius: 8px;
}
.chat-compose-preview[hidden] {
    display: none !important;
}
.chat-compose-preview-thumb {
    width: 52px;
    height: 52px;
    border-radius: 6px;
    overflow: hidden;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.chat-compose-preview-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.chat-compose-file-icon {
    font-size: 22px;
}
.chat-compose-preview-body {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    min-width: 0;
}
.chat-compose-preview-name {
    font-size: 13px;
    color: var(--text-muted);
    word-break: break-all;
}
.chat-compose-clear {
    border: none;
    background: transparent;
    color: #ff8a8a;
    font-size: 13px;
    cursor: pointer;
    padding: 2px 4px;
}
.chat-compose-clear:hover {
    text-decoration: underline;
}
.chat-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, .88);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.chat-lightbox[hidden] {
    display: none !important;
}
.chat-lightbox-img {
    max-width: min(96vw, 1200px);
    max-height: 92vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, .5);
}
.chat-lightbox-close {
    position: fixed;
    top: 16px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}
.chat-lightbox-close:hover {
    background: rgba(255, 255, 255, .22);
}
.chat-file-link {
    color: var(--gold);
    text-decoration: none;
    display: inline-block;
    line-height: 1.4;
}
.chat-file-link:hover { text-decoration: underline; }
.chat-file-doc {
    color: var(--gold);
    text-decoration: none;
    display: inline-block;
    line-height: 1.5;
    cursor: pointer;
    border-bottom: 1px dashed rgba(232,168,32,.35);
}
.chat-file-doc:hover { color: #ffe08a; }
.chat-file-transfer {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    margin-bottom: 6px;
    max-width: 320px;
    text-align: left;
}
.chat-msg-mine .chat-file-transfer {
    margin-left: auto;
}
.chat-file-transfer-incoming {
    border-color: rgba(126,184,255,.35);
    background: rgba(126,184,255,.08);
}
.chat-file-transfer-pending {
    border-color: rgba(232,168,32,.3);
    background: rgba(232,168,32,.06);
}
.chat-file-transfer-upload {
    border-color: rgba(126,184,255,.35);
    background: rgba(126,184,255,.08);
}
.chat-file-transfer-wait {
    border-color: rgba(126,184,255,.25);
    background: rgba(126,184,255,.05);
}
.chat-file-transfer-rejected {
    border-color: rgba(180,100,100,.25);
    background: rgba(180,100,100,.06);
}
.chat-file-transfer-icon {
    font-size: 22px;
    line-height: 1;
    flex-shrink: 0;
}
.chat-file-transfer-name {
    font-size: 13px;
    font-weight: 500;
    word-break: break-all;
}
.chat-file-transfer-meta {
    margin-top: 4px;
}
.chat-file-transfer-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.detail-rules-tip-wrap {
    position: relative;
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}
.detail-rules-trigger {
    font-size: 12px;
    color: #666;
    cursor: help;
    border-bottom: 1px dashed #555;
    user-select: none;
}
.detail-rules-trigger:hover,
.detail-rules-tip-wrap:focus-within .detail-rules-trigger {
    color: var(--text-muted);
    border-bottom-color: var(--gold);
}
.detail-rules-popover {
    display: none;
    position: absolute;
    right: 0;
    bottom: calc(100% + 8px);
    z-index: 30;
    width: min(360px, 92vw);
    padding: 12px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 8px 28px rgba(0,0,0,.4);
}
.detail-rules-tip-wrap:hover .detail-rules-popover,
.detail-rules-tip-wrap:focus-within .detail-rules-popover {
    display: block;
}
.detail-rules-list {
    margin: 0;
    padding-left: 16px;
    font-size: 12px;
    line-height: 1.65;
    color: var(--text-muted);
}
.detail-rules-list li { margin-bottom: 4px; }
.detail-rules-list li:last-child { margin-bottom: 0; }
.chat-toast {
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    background: rgba(255,107,107,.12);
    border: 1px solid rgba(255,107,107,.3);
    color: #ff8a8a;
    font-size: 13px;
}
.chat-form textarea {
    flex: 1;
    padding: 10px 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
}
.text-danger { color: #ff6b6b; }

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
@media (max-width: 640px) { .form-row-2 { grid-template-columns: 1fr; } }
.textarea-lg { min-height: 200px; }

.engine-tag {
    display: inline-block;
    padding: 2px 8px;
    margin-right: 8px;
    background: rgba(100,149,237,.15);
    border: 1px solid rgba(100,149,237,.3);
    border-radius: 4px;
    font-size: 13px;
    color: var(--badge-info-color);
    vertical-align: middle;
}

.attach-section { margin-bottom: 16px; }
.attach-block { margin-bottom: 12px; }
.attach-link {
    display: inline-block;
    margin-right: 12px;
    margin-bottom: 6px;
    font-size: 13px;
    color: var(--gold);
}
.attach-images {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.attach-images img {
    max-width: 120px;
    max-height: 120px;
    border-radius: 6px;
    border: 1px solid var(--border);
    object-fit: cover;
}

.res-badge {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    margin-left: 6px;
    vertical-align: middle;
}
.res-badge-hot {
    background: rgba(255,80,80,.15);
    color: #ff6b6b;
    border: 1px solid rgba(255,80,80,.3);
}
.res-badge-new {
    background: rgba(62,207,142,.12);
    color: var(--success);
    border: 1px solid rgba(62,207,142,.3);
}
.mb-2 { margin-bottom: 16px; }

/* 详情页左侧作者卡（论坛帖子作者区风格） */
.detail-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 20px;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 14px 20px 20px;
    box-sizing: border-box;
}
.detail-main .card {
    margin-bottom: 16px;
    background: var(--bg-elevated);
}
.detail-main .card:last-child {
    margin-bottom: 0;
}
.detail-main { min-width: 0; }
@media (max-width: 860px) {
    .detail-layout { grid-template-columns: 1fr; }
    .author-card { position: static; }
}

.author-card {
    position: sticky;
    top: 80px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
    text-align: center;
}
.author-card-compact {
    position: static;
    padding: 10px;
    min-width: 140px;
    text-align: left;
}
.author-card-head {
    display: block;
    text-decoration: none;
    color: inherit;
    margin-bottom: 6px;
}
.author-card-head:hover .author-name { color: var(--gold); }
.author-avatar {
    width: 72px;
    height: 72px;
    margin: 0 auto 8px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-elevated);
    border: 2px solid rgba(212,175,55,.25);
}
.author-card-compact .author-avatar {
    width: 48px;
    height: 48px;
    margin: 0 auto 6px;
}
.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.author-avatar-ph {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 28px;
    font-weight: 700;
    color: var(--gold);
}
.author-name {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 4px;
}
.author-rank {
    font-size: 12px;
    color: var(--gold);
    cursor: help;
}
.author-rank-tip-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 8px;
}
.author-rank-tip {
    display: none;
    position: absolute;
    left: 50%;
    top: calc(100% + 8px);
    transform: translateX(-50%);
    width: 200px;
    padding: 10px 12px;
    background: var(--bg-elevated);
    border: 1px solid rgba(232,168,32,.35);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.45);
    font-size: 11px;
    line-height: 1.55;
    color: var(--text-muted);
    text-align: left;
    z-index: 60;
    pointer-events: none;
}
.author-rank-tip-wrap:hover .author-rank-tip {
    display: block;
}
.author-rank-tip-all {
    width: 248px;
    padding: 10px 10px 8px;
}
.author-rank-tip-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
    font-size: 10px;
    line-height: 1.45;
}
.author-rank-tip-row:last-child { border-bottom: none; }
.author-rank-tip-row.is-current {
    background: rgba(232,168,32,.1);
    margin: 0 -6px;
    padding: 4px 6px;
    border-radius: 4px;
}
.author-rank-tip-label {
    flex: 0 0 68px;
    font-weight: 700;
    color: var(--gold);
    white-space: nowrap;
}
.author-rank-tip-detail {
    flex: 1;
    color: #aaa;
    min-width: 0;
}
.author-rank-tip-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 4px;
}
.author-rank-tip p { margin: 0 0 4px; }
.author-rank-tip-more { margin-top: 6px !important; font-size: 10px; }
.author-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin: 12px 0;
    padding: 10px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.author-stats-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
    grid-template-columns: unset;
}
.author-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}
.author-stats-row-2 {
    grid-template-columns: repeat(2, 1fr);
}
.profile-reputation-panels {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 18px;
}
.public-profile-page .profile-reputation-panels {
    gap: 10px;
}
.profile-rep-panel {
    padding: 14px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
}
.public-profile-page .profile-rep-panel {
    padding: 12px 14px;
}
.profile-rep-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--gold-dim);
    margin-bottom: 8px;
}
.profile-rep-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    width: 100%;
    font-size: 13px;
    line-height: 1.6;
}
.public-profile-page .profile-rep-line {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 10px 12px;
    align-items: stretch;
}
.profile-rep-role {
    font-weight: 600;
    color: var(--gold-dim);
    flex-shrink: 0;
    min-width: 42px;
}
.public-profile-page .profile-rep-role {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 8px;
    background: rgba(232,168,32,.08);
    text-align: center;
}
.profile-rep-stats {
    flex: 1;
    display: grid;
    gap: 8px 12px;
    min-width: 0;
}
.profile-rep-stats-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}
.profile-rep-stats-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}
.profile-rep-stats-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.public-profile-page .profile-rep-stats {
    gap: 8px;
    align-items: stretch;
}
.profile-rep-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--text-muted);
    white-space: nowrap;
    min-width: 0;
}
.public-profile-page .profile-rep-item {
    min-height: 30px;
    padding: 4px 6px;
    border-radius: 8px;
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.06);
    box-sizing: border-box;
}
.profile-rep-k {
    flex-shrink: 0;
}
.profile-rep-item strong {
    font-weight: 700;
    color: var(--text);
}
.profile-rep-divider {
    display: none;
}
.profile-rep-rate strong {
    color: var(--gold-dim);
}
@media (max-width: 720px) {
    .profile-rep-stats-6,
    .profile-rep-stats-5 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .profile-rep-stats-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 640px) {
    .public-profile-page .profile-rep-line {
        grid-template-columns: 1fr;
    }
    .public-profile-page .profile-rep-role {
        justify-content: flex-start;
    }
}
@media (max-width: 480px) {
    .profile-rep-stats-6,
    .profile-rep-stats-5,
    .profile-rep-stats-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.profile-rep-hint {
    margin-top: 8px;
    margin-bottom: 0;
    line-height: 1.5;
}
.eval-blind-hint {
    margin-bottom: 12px;
    font-size: 13px;
}
.author-stat .n {
    display: block;
    font-weight: 700;
    font-size: 14px;
    color: var(--text);
}
.author-stat .l {
    font-size: 12px;
    color: var(--text-muted);
}
.author-stat-warn {
    color: #ff8a8a !important;
}
.complaint-list-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.complaint-list-item:last-child { border-bottom: none; }
.complaint-list-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    margin-bottom: 6px;
}
.complaint-tag {
    font-size: 12px;
    font-weight: 700;
    color: #ff8a8a;
}
.complaint-list-body {
    color: var(--text-muted);
    line-height: 1.55;
}
.profile-section-hint {
    margin: -4px 0 12px;
}
.form-row-inline {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
}
.form-sub label {
    display: block;
    margin-bottom: 4px;
}
.form-sub input,
.form-sub select {
    width: 100%;
}
.text-bad { color: #ff8a8a; }
.author-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-bottom: 8px;
}
.author-card-compact .author-tags { justify-content: flex-start; }
.author-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
}
.author-badge-ok {
    background: rgba(62,207,142,.12);
    color: var(--success);
    border: 1px solid rgba(62,207,142,.3);
}
.author-badge-warn {
    background: rgba(255,193,7,.1);
    color: #ffc107;
    border: 1px solid rgba(255,193,7,.25);
}
.author-badge-off {
    background: rgba(255,80,80,.1);
    color: #ff6b6b;
    border: 1px solid rgba(255,80,80,.25);
}
.author-eval {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    font-size: 12px;
    margin-bottom: 10px;
}
.eval-good { color: var(--success); }
.eval-mid { color: #aaa; }
.eval-bad { color: #ff6b6b; }
.author-intro {
    font-size: 12px;
    color: var(--text-muted);
    text-align: left;
    margin: 8px 0;
    line-height: 1.5;
}
.author-profile-brief {
    width: 100%;
    margin: 10px 0 4px;
    padding: 10px 0 0;
    border-top: 1px solid var(--border);
    text-align: left;
}
.author-profile-line {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
}
.author-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
    margin-bottom: 8px;
}
.author-recent { margin: 6px 0; }
.author-recent-list {
    text-align: left;
    margin: 8px 0;
}
.author-recent-item {
    display: block;
    font-size: 12px;
    color: var(--gold);
    margin: 4px 0;
    text-decoration: none;
}
.author-recent-item:hover { text-decoration: underline; }
.author-more { width: 100%; margin-top: 8px; }

.quote-item-with-author {
    display: grid;
    grid-template-columns: 160px 1fr auto;
    gap: 12px;
    align-items: center;
}
@media (max-width: 640px) {
    .quote-item-with-author { grid-template-columns: 1fr; }
}

.listing-days-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.listing-days-row input[type="range"] { flex: 1; }
.listing-days-row output {
    min-width: 24px;
    font-weight: 700;
    color: var(--gold);
}

.skill-tag-cate {
    border-color: rgba(180,140,255,.35);
    color: #c9b8ff;
}
.author-eval-bar {
    background: var(--bg-elevated);
    border-radius: 8px;
    padding: 8px 12px;
    justify-content: space-around;
    width: 100%;
}
.author-eval-bar .eval-good,
.author-eval-bar .eval-mid,
.author-eval-bar .eval-bad {
    white-space: nowrap;
    padding: 0 4px;
}
.author-eval-list {
    text-align: left;
    margin: 10px 0;
}
.author-eval-item {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: background .15s;
}
.author-eval-item:last-child { border-bottom: none; }
.author-eval-item:hover { background: rgba(232,168,32,.04); }
.author-eval-tag { font-size: 12px; font-weight: 600; display: block; margin-bottom: 2px; }
.author-eval-good .author-eval-tag { color: var(--success); }
.author-eval-neutral .author-eval-tag { color: #aaa; }
.author-eval-bad .author-eval-tag { color: #ff6b6b; }
.author-eval-text { font-size: 12px; color: var(--text-muted); line-height: 1.45; }

.eval-list-item {
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
}
.eval-list-item:last-child { border-bottom: none; }
.eval-list-link {
    display: block;
    color: inherit;
    text-decoration: none;
    border-radius: 8px;
    padding: 4px;
    margin: -4px;
    transition: background .15s;
}
.eval-list-link:hover { background: rgba(232,168,32,.05); }
.eval-list-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.upload-mode-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.upload-mode-tab {
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-elevated);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 13px;
    font-family: inherit;
}
.upload-mode-tab.active {
    border-color: rgba(232,168,32,.45);
    color: var(--gold);
    background: rgba(232,168,32,.08);
}
.upload-progress {
    margin: 12px 0;
    background: var(--bg-elevated);
    border-radius: 8px;
    padding: 10px 12px;
    border: 1px solid var(--border);
}
.upload-progress-bar {
    height: 6px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 4px;
    width: 0;
    transition: width .2s;
    margin-bottom: 8px;
}

/* ===== 行业服务商 ===== */
.provider-card-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}
.provider-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: border-color .15s;
}
.provider-card:hover {
    border-color: rgba(232,168,32,.28);
}
.provider-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.provider-card-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    flex: 1;
    min-width: 0;
}
.provider-cate-tag { font-size: 11px; }
.provider-card-intro {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.provider-card-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.provider-contact-chip {
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--border);
}
.provider-contact-chip em {
    font-style: normal;
    color: var(--gold);
    margin-right: 4px;
}
.provider-contact-link {
    font-size: 12px;
    color: var(--gold);
    text-decoration: none;
    padding: 3px 10px;
    border: 1px solid rgba(232,168,32,.35);
    border-radius: 6px;
}
.provider-contact-link:hover { background: rgba(232,168,32,.1); }
.provider-card-foot { margin-top: auto; }
.provider-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}
.provider-card-detail { padding: 20px; }
.provider-card-contacts-lg .provider-contact-row {
    display: flex;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}
.provider-card-contacts-lg .provider-contact-row span {
    width: 48px;
    color: var(--text-muted);
}
.provider-rule-list {
    margin: 0;
    padding-left: 1.2em;
}
.provider-rule-list li { margin-bottom: 4px; }
.sidebar-hint { margin-top: 12px; padding: 0 4px; line-height: 1.5; }
.form-stack .form-group { margin-bottom: 14px; }
.form-stack label { display: block; font-size: 13px; margin-bottom: 6px; color: var(--text-muted); }
.form-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
@media (max-width: 640px) {
    .form-row-3 { grid-template-columns: 1fr; }
    .provider-card-list { grid-template-columns: 1fr; }
}
.inline-form { display: inline; }

.gb-eval-panel{margin-top:18px;padding:16px;background:linear-gradient(180deg,#f8fbff,#fff);border:1px solid #dbe8f6;border-radius:12px}
.gb-eval-head h3{margin:0 0 4px;font-size:16px;color:#1c2a3a}
.gb-eval-head p{margin:0 0 12px;font-size:12px;color:#8a9aaa}
.gb-eval-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:12px}
.gb-eval-card{background:#fff;border:1px solid #e7ecf1;border-radius:10px;padding:14px}
.gb-eval-card-hd{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:10px;font-size:13px}
.gb-eval-role{background:#e8f0fb;color:#2c6bcc;padding:2px 8px;border-radius:8px;font-size:11px}
.gb-eval-target{font-weight:600;color:#1c2a3a;text-decoration:none}
.gb-eval-target:hover{color:#2c6bcc}
.gb-eval-done{margin-left:auto;font-size:11px;color:#1f9d47;background:#e3f5e8;padding:2px 8px;border-radius:8px}
.gb-eval-levels{display:flex;gap:8px;margin-bottom:10px;flex-wrap:wrap}
.gb-eval-levels label{font-size:12px;padding:4px 10px;border:1px solid #dde3ea;border-radius:14px;cursor:pointer;color:#6a7a8a}
.gb-eval-levels label.on.good{border-color:#1f9d47;color:#1f9d47;background:#e3f5e8}
.gb-eval-levels label.on.mid{border-color:#c98a00;color:#c98a00;background:#fff4e0}
.gb-eval-levels label.on.bad{border-color:#e84c3d;color:#e84c3d;background:#fff0ee}
.gb-eval-levels input{display:none}
.gb-eval-score-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:6px;font-size:12px;color:#4a5a6a}
.gb-eval-stars label{cursor:pointer;color:#dde3ea;font-size:14px}
.gb-eval-stars input:checked+span,.gb-eval-stars label:has(input:checked){color:#f0a020}
.gb-eval-stars input{display:none}
.gb-eval-form textarea{width:100%;margin:8px 0;padding:8px;border:1px solid #dde3ea;border-radius:8px;font-size:12px;resize:vertical;box-sizing:border-box}
.gb-eval-readonly{font-size:12px;color:#8a9aaa;margin:0}
.gb-member-block{background:#f8fafc;border:1px solid #eef1f5;border-radius:10px;padding:4px 0;margin-top:4px}

/* 招聘求职履约 */
.job-detail-page .job-main-card{margin-bottom:14px}
.job-phase-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:8px 0 4px}
.job-phase-badge{font-size:11px;padding:3px 10px;border-radius:12px;background:#eef2f7;color:#5a6a7a}
.job-phase-badge.phase-1{background:#fff4e0;color:#c98a00}
.job-phase-badge.phase-2{background:#e3f5e8;color:#1f9d47}
.job-phase-badge.phase-3{background:#e8f0fb;color:#2c6bcc}
.job-phase-badge.phase-4{background:#f0f2f5;color:#6a7a8a}
.job-action-card,.job-apply-card,.job-apply-list,.job-chat-card{margin-top:14px;padding:16px}
.job-action-card h3,.job-apply-card h3,.job-apply-list h3{margin:0 0 8px;font-size:15px}
.job-apply-item{border:1px solid #eef1f5;border-radius:10px;padding:12px;margin-bottom:10px;background:#fafbfc}
.job-apply-item.status-2,.job-apply-item.status-3{opacity:.85;background:#f8f8f8}
.job-apply-hd{display:flex;align-items:center;gap:8px;margin-bottom:6px}
.job-apply-name{font-weight:600;color:#1c2a3a;text-decoration:none}
.job-apply-name:hover{color:#2c6bcc}
.job-apply-brief{display:flex;flex-wrap:wrap;gap:8px;font-size:11px;color:#8a9aaa;margin-bottom:6px}
.job-apply-brief .eval-good{color:#1f9d47}
.job-apply-content{margin:0 0 8px;color:#4a5a6a}
.job-apply-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.job-chat-box{max-height:320px;overflow-y:auto;padding:10px;background:#f8f9fa;border-radius:8px;margin-bottom:10px}
.job-chat-msg{margin-bottom:10px;max-width:85%}
.job-chat-msg.mine{margin-left:auto;text-align:right}
.job-chat-meta{display:block;font-size:11px;color:#8a9aaa;margin-bottom:2px}
.job-chat-bubble{display:inline-block;padding:8px 12px;border-radius:10px;font-size:13px;line-height:1.5;text-align:left;background:#fff;border:1px solid #e7ecf1}
.job-chat-msg.mine .job-chat-bubble{background:#e8f0fb;border-color:#c5d9f2}
.job-chat-form{display:flex;gap:8px;align-items:flex-end}
.job-chat-form textarea{flex:1;padding:8px;border:1px solid #dde3ea;border-radius:8px;font-size:13px;resize:vertical}
.job-eval-hint{margin:-8px 0 12px;padding-left:4px}
.job-my-apply{margin-top:14px}

/* ========== 统一状态标签 ========== */
.status-tag {
  display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 10px;
  font-weight: 500; white-space: nowrap; line-height: 1.4;
}
.status-open { background: var(--status-open-bg, #e6f7e6); color: var(--status-open, #2a7a2a); }
.status-ongoing { background: var(--status-ongoing-bg, #fff4e5); color: var(--status-ongoing, #b25b00); }
.status-done { background: var(--status-done-bg, #e8f2ff); color: var(--status-done, #1a6fc4); }
.status-closed { background: var(--status-closed-bg, #f0f0f0); color: var(--status-closed, #888); }

/* ========== 面包屑 ========== */
.page-breadcrumb { font-size: 12px; color: var(--text-muted, #888); margin-bottom: 12px; }
.page-breadcrumb a { color: var(--text-secondary, #555); text-decoration: none; }
.page-breadcrumb a:hover { color: var(--primary, #378add); }
.page-breadcrumb span { margin: 0 6px; }

/* ========== 规则提示 Tooltip 组件 ========== */
.rule-tip {
  display: inline-flex; align-items: center; gap: 4px; position: relative;
  font-size: 12px; color: var(--primary, #3f8efc); cursor: pointer;
  user-select: none; vertical-align: middle;
}
.rule-tip-icon { font-style: normal; font-weight: 700; font-size: 14px; }
.rule-tip-label { border-bottom: 1px dashed var(--primary, #3f8efc); }
.rule-tip:hover .rule-tip-label { color: #2a6fcc; }
.rule-tip-popup {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  width: 260px; padding: 12px 14px; background: #fff; border: 1px solid #dde3ea;
  border-radius: 10px; box-shadow: 0 6px 24px rgba(0,0,0,0.12); z-index: 1000;
  opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
  pointer-events: none; text-align: left; line-height: 1.6; color: #4a5a6a;
}
.rule-tip-popup::before {
  content: ''; position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
  width: 12px; height: 12px; background: #fff; border-left: 1px solid #dde3ea;
  border-top: 1px solid #dde3ea; rotate: 45deg;
}
.rule-tip:hover .rule-tip-popup,
.rule-tip:focus-within .rule-tip-popup { opacity: 1; visibility: visible; }
.rule-tip-title { display: block; font-size: 13px; font-weight: 600; color: #1c2a3a; margin-bottom: 6px; }
.rule-tip-body { display: block; font-size: 12px; color: #5a6a7a; line-height: 1.7; }
.rule-tip-body ul { margin: 4px 0 0; padding-left: 16px; }
.rule-tip-body li { margin-bottom: 4px; }

/* left/right/bottom positions */
.rule-tip[data-tip-pos="left"] .rule-tip-popup { left: auto; right: calc(100% + 8px); top: 50%; transform: translateY(-50%); }
.rule-tip[data-tip-pos="left"] .rule-tip-popup::before { left: auto; right: -6px; top: 50%; transform: translateY(-50%); rotate: 135deg; border-left: 0; border-right: 1px solid #dde3ea; border-top: 1px solid #dde3ea; }
.rule-tip[data-tip-pos="right"] .rule-tip-popup { left: calc(100% + 8px); right: auto; top: 50%; transform: translateY(-50%); }
.rule-tip[data-tip-pos="right"] .rule-tip-popup::before { left: -6px; right: auto; top: 50%; transform: translateY(-50%); rotate: -45deg; }

/* ========== 规则折叠面板组件 ========== */
.rule-collapse {
  margin-bottom: 16px; border: 1px solid #eef1f5; border-radius: 10px;
  background: #fafbfc; overflow: hidden;
}
.rule-collapse-trigger {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 12px 16px; background: none; border: none; cursor: pointer;
  font-size: 13px; font-weight: 600; color: #3f8efc; text-align: left;
  transition: background .2s;
}
.rule-collapse-trigger:hover { background: #f0f4fb; }
.rule-collapse-icon { font-style: normal; font-weight: 700; font-size: 15px; }
.rule-collapse-arrow { margin-left: auto; font-size: 10px; transition: transform .25s; }
.rule-collapse-trigger.open .rule-collapse-arrow { transform: rotate(180deg); }
.rule-collapse-body {
  display: none; padding: 0 16px 16px; font-size: 13px; color: #5a6a7a; line-height: 1.8;
}
.rule-collapse-body.open { display: block; }
.rule-collapse-list { list-style: none; margin: 0; padding: 0; }
.rule-collapse-list li {
  display: flex; gap: 8px; padding: 8px 0; border-top: 1px dashed #eef1f5;
}
.rule-collapse-list li:first-child { border-top: none; }
.rule-collapse-list li strong { color: #1c2a3a; min-width: 80px; flex-shrink: 0; }
.rule-collapse-text { margin: 0; }

/* ========== 空状态组件 ========== */
.empty-state { text-align: center; padding: 48px 16px; color: #8a9aaa; }
.empty-state-icon { font-size: 40px; margin-bottom: 12px; opacity: .6; }
.empty-state-text { font-size: 14px; margin-bottom: 16px; color: #6a7a8a; }
.empty-state-action { display: inline-block; margin-top: 8px; }

/* ========== 危险操作确认弹窗 ========== */
.confirm-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .25s;
}
.confirm-overlay.open { opacity: 1; visibility: visible; }
.confirm-dialog {
  background: #fff; border-radius: 12px; padding: 28px 32px; max-width: 400px; width: 90%;
  box-shadow: 0 12px 40px rgba(0,0,0,0.2); text-align: center;
}
.confirm-dialog-icon { font-size: 40px; margin-bottom: 12px; }
.confirm-dialog h3 { margin: 0 0 8px; font-size: 17px; color: #1c2a3a; }
.confirm-dialog p { font-size: 13px; color: #6a7a8a; margin: 0 0 20px; line-height: 1.6; }
.confirm-dialog-actions { display: flex; gap: 10px; justify-content: center; }
.confirm-dialog .btn-cancel { background: #f0f2f5; color: #5a6a7a; border: 1px solid #dde3ea; }
.confirm-dialog .btn-cancel:hover { background: #e4e7ea; }
.confirm-dialog .btn-danger { background: #e84c3d; color: #fff; border: none; }
.confirm-dialog .btn-danger:hover { background: #d43d2f; }

/* ========== 流程步骤条 ========== */
.flow-steps { display: flex; align-items: center; gap: 4px; margin: 12px 0; padding: 12px 0; }
.flow-step { flex: 1; text-align: center; position: relative; }
.flow-step::after {
  content: ''; position: absolute; top: 14px; left: 60%; width: calc(100% - 20px);
  height: 2px; background: #dde3ea;
}
.flow-step:last-child::after { display: none; }
.flow-step-dot {
  display: inline-flex; width: 28px; height: 28px; border-radius: 50%;
  align-items: center; justify-content: center; font-size: 12px; font-weight: 700;
  background: #eef1f5; color: #8a9aaa; margin-bottom: 6px; transition: all .3s;
}
.flow-step.active .flow-step-dot { background: var(--primary, #3f8efc); color: #fff; }
.flow-step.done .flow-step-dot { background: #1f9d47; color: #fff; }
.flow-step.done::after { background: #1f9d47; }
.flow-step-label { font-size: 11px; color: #8a9aaa; display: block; }
.flow-step.active .flow-step-label { color: #1c2a3a; font-weight: 600; }
.flow-step.done .flow-step-label { color: #1f9d47; }

/* ========== 统一发布表单样式 ========== */
.publish-page { max-width: 720px; margin: 0 auto; padding: 24px 16px; }
.publish-header { margin-bottom: 16px; }
.publish-back { font-size: 13px; color: #3f8efc; text-decoration: none; display: inline-block; margin-bottom: 8px; }
.publish-back:hover { text-decoration: underline; }
.publish-title { font-size: 22px; font-weight: 700; margin: 8px 0 0; color: #1c2a3a; }
.publish-card { background: #fff; border: 1px solid #eef1f5; border-radius: 10px; padding: 22px; }
.form-label { display: block; font-size: 12px; color: #6a7b8c; margin-bottom: 4px; margin-top: 12px; }
.form-label:first-child { margin-top: 0; }
.form-label .required-mark { color: #e84c3d; }
.form-input {
  width: 100%; padding: 10px 12px; border: 1px solid #dde3ea; border-radius: 8px;
  font-size: 14px; margin-top: 4px; box-sizing: border-box; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form-input:focus { border-color: #3f8efc; box-shadow: 0 0 0 3px rgba(63,142,252,.10); }
.form-textarea { resize: vertical; min-height: 80px; }
.form-input-file { width: 100%; margin-top: 6px; font-size: 13px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-top: 12px; }
@media (max-width: 640px) {
  .form-row-2, .form-row-3 { grid-template-columns: 1fr; }
}
.form-balance-tip { font-size: 12px; color: #8a9aaa; margin-top: 14px; }
.form-balance-card {
  margin-top: 14px; padding: 12px 14px; border-radius: 8px; font-size: 13px; line-height: 1.6;
}
.form-balance-card.success { background: #e8f6ec; border: 1px solid #62c88a; color: #1a5a2a; }
.form-balance-card.danger { background: #fff8ec; border: 1px solid #f0a040; color: #7a5500; }
.form-balance-card .form-balance-title { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.form-balance-card .btn-sm { padding: 4px 12px; font-size: 12px; margin-left: 6px; }
.form-actions { margin-top: 18px; display: flex; gap: 10px; justify-content: flex-end; }
.form-actions .btn { min-width: 90px; justify-content: center; }
.form-label.full-width { grid-column: 1 / -1; }
.full-width { width: 100%; }

/* ========== 统一详情页样式 ========== */
.detail-page { max-width: 1100px; margin: 0 auto; padding: 24px 16px; }
.detail-layout { display: flex; gap: 16px; flex-wrap: wrap; }
.detail-main { flex: 1; min-width: 280px; }
.detail-sidebar { width: 320px; flex-shrink: 0; }
@media (max-width: 860px) { .detail-sidebar { width: 100%; } }
.detail-back-link { font-size: 13px; color: #3f8efc; text-decoration: none; display: inline-block; margin-bottom: 8px; }
.detail-back-link:hover { text-decoration: underline; }
.detail-card {
  background: #fff; border: 1px solid #eef1f5; border-radius: 10px; padding: 18px;
  margin-bottom: 14px;
}
.detail-card-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px; flex-wrap: wrap;
}
.detail-card-head-left { flex: 1; }
.detail-card-head-right { text-align: right; }
.detail-tags { display: flex; gap: 6px; margin-bottom: 6px; flex-wrap: wrap; }
.tag {
  padding: 2px 8px; border-radius: 10px; font-size: 11px; display: inline-block;
}
.tag-primary { background: #3f8efc; color: #fff; }
.tag-info { background: #eef5ff; color: #3f8efc; }
.tag-danger { background: #fff0f0; color: #e84c3d; }
.tag-success { background: #eefaf1; color: #1f9d47; }
.tag-muted { background: #f0f2f5; color: #8a9aaa; }
.detail-title { font-size: 22px; font-weight: 700; color: #2a2a2a; margin-bottom: 10px; }
.detail-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12px; color: #6a7b8c; }
.detail-price-label { font-size: 11px; color: #8a9aaa; }
.detail-price { color: #e84c3d; font-size: 28px; font-weight: 700; }
.detail-price-range { font-size: 14px; color: #8a9aaa; font-weight: 400; }
.detail-price-note { font-size: 11px; color: #8a9aaa; margin-top: 4px; }
.detail-body { font-size: 14px; color: #2a2a2a; line-height: 1.7; margin-top: 10px; white-space: pre-wrap; }
.detail-section-label { font-size: 13px; color: #6a7b8c; margin-bottom: 8px; }
.detail-section-title { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.detail-attachments { margin-top: 14px; }
.detail-attachment-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.detail-attachment-thumb {
  max-width: 120px; max-height: 90px; border-radius: 6px; border: 1px solid #eef1f5;
}
.detail-attachment-link {
  font-size: 12px; color: #3f8efc; padding: 6px 10px;
  border: 1px solid #dde3ea; border-radius: 6px; text-decoration: none;
}
.detail-attachment-link:hover { background: #f0f6ff; }
.detail-attachment-link-sm { font-size: 11px; color: #3f8efc; text-decoration: none; }
.detail-notice { border-radius: 8px; padding: 12px; margin-top: 14px; font-size: 12px; }
.detail-notice.success { background: #eefaf1; color: #1f9d47; }
.detail-notice.warning { background: #fff8ec; color: #7a5500; }
.detail-notice.info { background: #eef5ff; color: #3f8efc; }

/* detail quote form */
.detail-quote-form { padding: 14px; }
.detail-quote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* detail sidebar */
.detail-user-card { padding: 14px; }
.detail-user-name { font-size: 14px; font-weight: 600; }
.detail-user-time { font-size: 11px; color: #8a9aaa; }

/* detail quote list */
.detail-quote-item { padding: 10px; }
.detail-quote-item.border-top { border-top: 1px dashed #eef1f5; }
.detail-quote-head { display: flex; justify-content: space-between; }
.detail-quote-user { font-weight: 600; font-size: 13px; }
.detail-quote-price { color: #e84c3d; font-weight: 700; }
.detail-quote-desc { font-size: 12px; color: #6a7b8c; margin-top: 4px; white-space: pre-wrap; }
.detail-quote-attachments { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.detail-thumb-small { max-width: 64px; max-height: 48px; border-radius: 4px; border: 1px solid #eef1f5; }
.detail-quote-meta { font-size: 11px; color: #8a9aaa; margin-top: 4px; }
.detail-quote-action { margin-top: 6px; }

/* detail accepted box */
.detail-accepted-box {
  background: #eefaf1; padding: 10px; border-radius: 6px; margin-top: 8px;
  border: 1px solid #b9e6c7;
}
.detail-accepted-icon { font-size: 13px; font-weight: 600; color: #1f9d47; }
.detail-accepted-info { font-size: 12px; color: #2a2a2a; margin-top: 4px; }

/* detail manage card */
.detail-manage-card { padding: 14px; }
.detail-manage-form { margin-bottom: 6px; }
.detail-status-text { font-size: 13px; text-align: center; }
.detail-status-text.success { color: #1f9d47; }
.detail-status-text.muted { font-size: 12px; color: #8a9aaa; }

/* ========== 统一列表页样式 ========== */
.list-page { max-width: 1180px; margin: 0 auto; padding: 24px 16px; }
.list-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px; flex-wrap: wrap; gap: 10px;
}
.list-header-title { font-size: 22px; font-weight: 700; color: #2a2a2a; }
.list-header-subtitle { font-size: 12px; color: #8a9aaa; font-weight: 400; }

/* stat strip */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 18px; }
.stat-card { border-radius: 8px; padding: 14px; }
.stat-card.blue { background: #f5f8fd; border-left: 3px solid #3f8efc; }
.stat-card.green { background: #eefaf1; border-left: 3px solid #62c88a; }
.stat-card.orange { background: #fff8ec; border-left: 3px solid #f0a43f; }
.stat-card.red { background: #fdeef0; border-left: 3px solid #e84c3d; }
.stat-card .stat-label { font-size: 11px; color: #8a9aaa; }
.stat-card .stat-value { font-size: 22px; font-weight: 700; }
.stat-card.blue .stat-value { color: #2a2a2a; }
.stat-card.green .stat-value { color: #1f9d47; }
.stat-card.orange .stat-value { color: #e8801c; }
.stat-card.red .stat-value { color: #c0342a; }
@media (max-width: 640px) { .stat-strip { grid-template-columns: repeat(2, 1fr); } }

/* filter bar */
.filter-bar { background: #fff; border-radius: 10px; border: 1px solid #eef1f5; padding: 14px; margin-bottom: 18px; }
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-row + .filter-row { margin-top: 8px; }
.filter-search { display: flex; gap: 8px; margin-top: 12px; }
.filter-search input { flex: 1; padding: 8px 12px; border: 1px solid #dde3ea; border-radius: 6px; }

/* phase tabs */
.phase-tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.phase-tab { padding: 6px 14px; border-radius: 16px; font-size: 13px; color: #6a7b8c; background: #f5f8fd; text-decoration: none; }
.phase-tab.active { background: #3f8efc; color: #fff; }
.phase-tab.phase-mine.active { background: #e84c3d; }

/* card grid */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }

/* list card */
.list-card {
  background: #fff; border: 1px solid #eef1f5; border-radius: 10px; padding: 14px;
  text-decoration: none; color: inherit; display: block; transition: .15s;
}
.list-card:hover { border-color: #3f8efc; box-shadow: 0 2px 12px rgba(63,142,252,.08); }
.list-card .card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.list-card .card-category { font-size: 11px; color: #8a9aaa; }
.list-card .card-status { background: #3f8efc; color: #fff; padding: 1px 6px; border-radius: 8px; font-size: 10px; margin-left: 4px; }
.list-card .card-urgency { padding: 1px 6px; border-radius: 8px; font-size: 10px; margin-left: 4px; }
.list-card .card-urgency.urgent { background: #fff0f0; color: #e84c3d; }
.list-card .card-urgency.urgent2 { background: #e84c3d; color: #fff; }
.list-card .card-urgency.urgent3 { background: #000; color: #fff; }
.list-card .card-stat { font-size: 11px; color: #8a9aaa; }
.list-card .card-title { font-size: 15px; font-weight: 600; color: #2a2a2a; margin-bottom: 6px; }
.list-card .card-desc {
  font-size: 12px; color: #6a7b8c; margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.list-card .card-bottom { display: flex; justify-content: space-between; align-items: flex-end; }
.list-card .card-price-label { font-size: 11px; color: #8a9aaa; }
.list-card .card-price { color: #e84c3d; font-size: 20px; font-weight: 700; }
.list-card .card-price-meta { font-size: 11px; color: #1f9d47; }
.list-card .card-info-right { font-size: 11px; color: #8a9aaa; text-align: right; }

/* bounty card-specific */
.bounty-card .card-price { font-size: 24px; }

/* active phase button */
.active-phase { background: #3f8efc; color: #fff; border-color: #3f8efc; }
.active-phase:hover { background: #2a6fcc; color: #fff; }

/* bounty detail extras */
.detail-apply-form { display: grid; gap: 8px; }
.detail-funds-card { padding: 14px; }
.detail-funds-item { font-size: 11px; color: #8a9aaa; margin-bottom: 4px; }
.detail-countdown { font-size: 12px; color: #e84c3d; margin-top: 4px; }
.urgent2 { background: #e84c3d !important; color: #fff; }
.urgent3 { background: #000 !important; color: #fff; }

/* utility */
.hidden { display: none !important; }

/* ============= Group Buy 公用 ============= */
/* publish layout */
.gb-publish-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
@media (max-width: 860px) { .gb-publish-layout { grid-template-columns: 1fr; } }
.gb-publish-card { background: #fff; border: 1px solid #e7ecf1; border-radius: 10px; padding: 18px; }
.gb-publish-section { margin: 0 0 12px; font-size: 15px; color: #1c2a3a; }
.gb-publish-section.sec-spaced { margin-top: 18px; }

/* form fields */
.gb-form-field { display: block; margin-bottom: 10px; font-size: 13px; color: #4a5a6a; }
.gb-form-required { color: #e84c3d; }
.gb-form-input { width: 100%; padding: 8px 12px; border: 1px solid #dde3ea; border-radius: 6px; font-size: 13px; margin-top: 4px; box-sizing: border-box; background: #fff; }
.gb-form-select { width: 100%; padding: 8px; border: 1px solid #dde3ea; border-radius: 6px; font-size: 13px; margin-top: 4px; box-sizing: border-box; background: #fff; }
.gb-form-textarea { width: 100%; padding: 8px 12px; border: 1px solid #dde3ea; border-radius: 6px; font-size: 13px; margin-top: 4px; box-sizing: border-box; resize: vertical; }
.gb-form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.gb-form-hint { font-size: 11px; color: #8a9aaa; display: block; margin-top: 6px; }
.gb-form-inline { display: inline; }

/* tier rows */
.gb-tier-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; margin-bottom: 8px; align-items: end; }
.gb-tier-row .gb-form-field { margin-bottom: 0; }
.gb-tier-hint { color: #8a9aaa; font-size: 12px; }
.gb-add-tier-btn { background: none; border: 1px dashed #2c6bcc; color: #2c6bcc; padding: 6px 12px; border-radius: 6px; font-size: 12px; cursor: pointer; }
.gb-remove-tier-btn { background: none; border: none; color: #e84c3d; font-size: 20px; cursor: pointer; padding: 0 4px; line-height: 1; }

/* publish footer */
.gb-publish-footer { margin-top: 18px; text-align: right; }

/* balance tip */
.gb-balance-wrap { margin-top: 14px; padding: 12px 14px; border-radius: 8px; font-size: 13px; display: none; }
.gb-balance-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.gb-balance-danger { background: #fff0f0; border: 1px solid #e84c3d; }
.gb-balance-safe { background: #e8f6ec; border: 1px solid #62c88a; }
.gb-balance-danger-text { color: #e84c3d; font-weight: 600; }
.gb-balance-safe-text { color: #1f9d47; font-weight: 600; }

/* preview box */
.gb-preview-box { background: #fff; border: 1px solid #e7ecf1; border-radius: 8px; padding: 14px; margin-top: 14px; }
.gb-preview-box-label { font-size: 13px; color: #4a5a6a; margin-bottom: 8px; }
.gb-preview-price { font-size: 20px; font-weight: 700; color: #2c6bcc; }
.gb-preview-label { font-size: 11px; color: #8a9aaa; margin-top: 4px; }

/* template selector */
.gb-form-template { margin: 0 0 12px; }
.gb-template-select { width: 100%; padding: 8px 12px; border: 1px solid #dde3ea; border-radius: 6px; font-size: 13px; box-sizing: border-box; }
.gb-no-template { color: #8a9aaa; font-size: 13px; }

/* cover upload */
.gb-cover-upload { border: 1px dashed #c5d4e8; border-radius: 8px; padding: 14px; background: #f8fafc; margin-top: 6px; }
.gb-cover-preview { margin-top: 10px; display: none; }
.gb-cover-preview img { max-width: 100%; max-height: 160px; border-radius: 8px; border: 1px solid #e7ecf1; object-fit: cover; }

/* rich editor */
.gb-editor-block { margin-top: 6px; border: 1px solid #dde3ea; border-radius: 6px; background: #fff; overflow: hidden; }
.gb-rich-toolbar { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; border-bottom: 1px solid #eef1f5; background: #f8fafc; }
.gb-rich-toolbar button { border: 1px solid #dde3ea; background: #fff; color: #4a5a6a; border-radius: 4px; padding: 4px 10px; font-size: 12px; cursor: pointer; line-height: 1.4; }
.gb-rich-toolbar button:hover { border-color: #2c6bcc; color: #2c6bcc; }
.gb-rich-toolbar button.is-active { background: #e8f0fb; border-color: #2c6bcc; color: #2c6bcc; }
.gb-rich-editor { min-height: 180px; padding: 12px 14px; font-size: 13px; line-height: 1.7; color: #3a4a5a; outline: none; }
.gb-rich-editor:empty:before { content: attr(data-placeholder); color: #8a9aaa; pointer-events: none; }
.gb-rich-editor img { max-width: 100%; height: auto; border-radius: 6px; margin: 6px 0; }
.gb-field-label { display: block; margin-bottom: 6px; font-size: 13px; color: #4a5a6a; }

/* tip card (publish sidebar) */
.gb-tip-card { margin-top: 20px; padding: 14px; background: #e8f0fb; border-radius: 8px; font-size: 12px; color: #2c4a70; line-height: 1.8; }

/* ============= Group Buy Detail ============= */
.gb-detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
@media (max-width: 860px) { .gb-detail-layout { grid-template-columns: 1fr; } }
.gb-detail-card { background: #fff; border: 1px solid #e7ecf1; border-radius: 10px; padding: 16px 20px; }
.gb-detail-card .card-title { font-size: 17px; font-weight: 600; color: #1c2a3a; margin: 0 0 8px; }
.gb-detail-cover { background: #e8ecf2; border-radius: 8px; min-height: 140px; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; overflow: hidden; }
.gb-detail-cover img { width: 100%; max-height: 180px; object-fit: cover; border-radius: 8px; }
.gb-detail-cover-empty { display: flex; align-items: center; justify-content: center; height: 100%; color: #b8c3d0; font-size: 14px; flex-direction: column; }
.gb-detail-cover-empty .cover-placeholder { font-size: 36px; margin-bottom: 6px; color: #b8c3d0; }

/* progress */
.gb-detail-progress { margin: 12px 0; }
.gb-progress-bar { height: 10px; background: #eef1f5; border-radius: 5px; overflow: hidden; margin: 4px 0; }
.gb-progress-fill { height: 100%; background: linear-gradient(90deg, #2c6bcc, #3f8efc); border-radius: 5px; transition: width .3s; }
.gb-progress-info { display: flex; justify-content: space-between; font-size: 11px; color: #8a9aaa; }
.gb-progress-count { font-size: 13px; font-weight: 600; color: #2c6bcc; }
.gb-progress-count .unit { font-size: 11px; color: #8a9aaa; font-weight: 400; }

/* tier list */
.gb-tier-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 8px 0 0; }
@media (max-width: 640px) { .gb-tier-list { grid-template-columns: 1fr; } }
.gb-tier-card { border: 1px solid #eef1f5; border-radius: 8px; text-align: center; padding: 10px 8px; cursor: pointer; transition: .15s; background: #fafbfc; }
.gb-tier-card:hover { border-color: #3f8efc; box-shadow: 0 2px 10px rgba(63,142,252,.08); }
.gb-tier-card.selected { border-color: #3f8efc; background: #e8f0fb; }
.gb-tier-card .tier-name { font-size: 13px; font-weight: 600; color: #2a2a2a; }
.gb-tier-card .tier-count { font-size: 11px; color: #8a9aaa; margin: 4px 0; }
.gb-tier-card .tier-price { font-size: 17px; font-weight: 700; color: #e84c3d; }

/* join form */
.gb-join-form { display: flex; gap: 8px; margin-top: 12px; align-items: center; }
.gb-join-form input { width: 70px; padding: 6px 10px; border: 1px solid #dde3ea; border-radius: 6px; font-size: 13px; }

/* order list */
.gb-order-list { margin-top: 12px; }
.gb-order-item { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #f2f5f8; font-size: 12px; gap: 8px; }
.gb-order-avatar { width: 28px; height: 28px; border-radius: 50%; background: #eef1f5; margin-right: 8px; flex-shrink: 0; }
.gb-order-name { font-weight: 600; color: #2a2a2a; }
.gb-order-tier { color: #8a9aaa; font-size: 11px; }
.gb-order-time { color: #8a9aaa; font-size: 11px; }
.gb-order-empty { text-align: center; padding: 20px; color: #8a9aaa; font-size: 13px; }

/* price info */
.gb-price-block { margin-top: 12px; }
.gb-price-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #4a5a6a; margin: 6px 0; }
.gb-price-total { font-size: 24px; font-weight: 700; color: #e84c3d; }
.gb-price-total .unit { font-size: 13px; font-weight: 400; color: #8a9aaa; }
.gb-price-muted { font-size: 11px; color: #8a9aaa; }

/* section titles */
.gb-section-title { font-size: 14px; color: #1c2a3a; margin: 14px 0 6px; font-weight: 600; }
.gb-section-subtitle { font-size: 12px; color: #8a9aaa; margin-bottom: 10px; }

/* seller info */
.gb-seller-info { display: flex; align-items: center; gap: 8px; margin: 12px 0; }
.gb-seller-avatar { width: 40px; height: 40px; border-radius: 50%; background: #eef1f5; }
.gb-seller-name { font-weight: 600; color: #2a2a2a; }
.gb-seller-time { font-size: 11px; color: #8a9aaa; }

/* description content */
.gb-desc-content { font-size: 13px; line-height: 1.8; color: #4a5a6a; }
.gb-desc-content img { max-width: 100%; border-radius: 6px; margin: 8px 0; }

/* status tags */
.gb-status-tag { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; }
.gb-status-tag.open { background: #e8f6ec; color: #1f9d47; }
.gb-status-tag.closed { background: #eef1f5; color: #8a9aaa; }
.gb-status-tag.full { background: #fff0f0; color: #e84c3d; }
.gb-status-tag.completed { background: #e8f0fb; color: #2c6bcc; }

/* action buttons */
.gb-detail-actions { margin-top: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.gb-cancel-btn { background: none; border: none; color: #8a9aaa; font-size: 12px; text-decoration: underline; cursor: pointer; }

/* force complete form */
.gb-force-info { margin: 6px 0; color: #8a6a00; font-weight: 600; }
.gb-force-subtitle { margin: 4px 0; font-size: 12px; color: #8a6a00; }

/* panel toggle */
.gb-panel-toggle { font-size: 12px; color: #3f8efc; cursor: pointer; margin-bottom: 10px; display: inline-block; }
.gb-panel-toggle:hover { text-decoration: underline; }

/* contact link */
.gb-contact-link { color: #3f8efc; text-decoration: none; }
.gb-contact-link:hover { text-decoration: underline; }

/* avatar */
.gb-avatar-img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.gb-avatar-sm { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }

/* spacing utilities */
.gb-mt-8 { margin-top: 8px; }
.gb-mt-10 { margin-top: 10px; }
.gb-mt-12 { margin-top: 12px; }
.gb-mt-14 { margin-top: 14px; }
.gb-w-full { width: 100%; }

/* ============= Group Buy List ============= */
.gb-list-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
@media (max-width: 860px) { .gb-list-layout { grid-template-columns: 1fr; } }
.gb-list-card { background: #fff; border: 1px solid #e7ecf1; border-radius: 10px; padding: 14px; text-decoration: none; color: inherit; display: block; transition: .15s; }
.gb-list-card:hover { border-color: #2c6bcc; box-shadow: 0 2px 10px rgba(44,107,204,.08); }
.gb-list-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.gb-list-cover { width: 70px; height: 70px; border-radius: 8px; background: #e8ecf2; overflow: hidden; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.gb-list-cover img { width: 100%; height: 100%; object-fit: cover; }
.gb-list-cover-empty { color: #b8c3d0; font-size: 24px; }
.gb-list-info { flex: 1; min-width: 0; }
.gb-list-title { font-size: 14px; font-weight: 600; color: #1c2a3a; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gb-list-desc { font-size: 12px; color: #6a7b8c; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 6px; }
.gb-list-price { font-size: 12px; color: #e84c3d; }
.gb-list-progress { margin-top: 6px; }
.gb-list-progress .bar { height: 6px; background: #eef1f5; border-radius: 3px; overflow: hidden; }
.gb-list-progress .fill { height: 100%; background: linear-gradient(90deg, #2c6bcc, #3f8efc); border-radius: 3px; transition: width .3s; }
.gb-list-progress-info { display: flex; justify-content: space-between; font-size: 11px; color: #8a9aaa; margin-top: 4px; }
.gb-list-meta { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: #8a9aaa; margin-top: 8px; padding-top: 8px; border-top: 1px solid #f2f5f8; }

/* list filter */
.gb-list-filter { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.gb-list-filter select { padding: 6px 10px; border: 1px solid #dde3ea; border-radius: 6px; font-size: 12px; }

/* list empty */
.gb-list-empty { text-align: center; padding: 60px 20px; color: #8a9aaa; }
.gb-list-empty-icon { font-size: 48px; margin-bottom: 12px; color: #d5dde6; }

/* ============= 通用工具类 ============= */
.mt-6 { margin-top: 6px; }
.mt-8 { margin-top: 8px; }
.mt-10 { margin-top: 10px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.m-0 { margin: 0; }
.mr-8 { margin-right: 8px; }
.d-inline { display: inline; }
.d-inline-flex { display: inline-flex; }
.d-flex { display: flex; }
.gap-8 { gap: 8px; }
.align-end { align-items: flex-end; }
.flex-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.flex-between { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.text-green { color: #1e7e34; }
.text-red { color: #e74c3d; }
.text-right { text-align: right; }
.text-muted-sm { font-size: 12px; color: #888; }
.word-break-all { word-break: break-all; }
.content-narrow { max-width: 860px; margin: 0 auto; }
.content-narrow-md { max-width: 760px; margin: 0 auto; }
.content-narrow-lg { max-width: 900px; margin: 0 auto; }
.img-cover { object-fit: cover; }
.img-bordered { border: 1px solid var(--border, #eef1f5); border-radius: 8px; }
.img-chat-thumb { max-width: 240px; margin-top: 6px; }
.rounded-8 { border-radius: 8px; }

/* ============= Teach Detail (from template style block) ============= */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stat-item { background: #f8f9fb; border-radius: 6px; padding: 8px; text-align: center; font-size: 12px; }
.stat-item .num { font-weight: 700; font-size: 14px; color: #2c3e50; }
.stat-item .label { color: #888; margin-top: 2px; }
.top-banner { background: #fff6e0; border: 1px dashed #f39c12; border-radius: 6px; padding: 6px 10px; font-size: 12px; color: #935116; margin-bottom: 6px; }
.top-banner.official { background: #eaf7ee; border-color: #27ae60; color: #1e7e34; }
.chapter-list { list-style: none; padding: 0; margin: 8px 0; }
.chapter-row { display: flex; gap: 10px; align-items: center; padding: 10px; border-bottom: 1px dashed #eee; }
.chapter-row .idx { width: 26px; height: 26px; border-radius: 50%; background: #eef1f5; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #555; }
.chapter-row .idx.free { background: #eaf7ee; color: #1e7e34; }
.chapter-row .idx.trial { background: #fff6e0; color: #c07b00; }
.chapter-row .title { flex: 1; }
.chapter-row .play-btn { display: inline-block; padding: 4px 10px; background: #2e7dff; color: #fff; border-radius: 4px; text-decoration: none; font-size: 12px; }
.chapter-row .play-btn.gray { background: #95a5a6; }
.rating-bar-row { display: flex; gap: 8px; align-items: center; margin: 4px 0; }
.rating-bar-label { width: 32px; font-size: 12px; }
.rating-bar-track { flex: 1; background: #eee; height: 8px; border-radius: 4px; overflow: hidden; }
.rating-bar-fill { height: 100%; background: #f39c12; }
.review-row { padding: 8px 0; border-bottom: 1px dashed #eee; }
.top-panel { background: #fff6e0; border: 1px dashed #f39c12; border-radius: 8px; padding: 10px 14px; margin-top: 10px; font-size: 13px; }
.top-panel select, .top-panel input[type=number] { padding: 4px 6px; border: 1px solid #d9d9d9; border-radius: 4px; }
.teach-detail-header { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.teach-cover-img { width: 220px; border-radius: 8px; object-fit: cover; }
.teach-cover-empty { width: 220px; height: 140px; background: #f0f3f6; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #999; }
.teach-info { flex: 1; min-width: 260px; }
.teach-info h2 { margin: 0; }
.teach-price-free { font-size: 20px; color: #1e7e34; font-weight: 700; }
.teach-price-paid { font-size: 20px; color: #e74c3c; font-weight: 700; }

/* ============= Job List (from template style block) ============= */
.job-list { display: flex; flex-direction: column; gap: 10px; }
.job-card { display: block; background: var(--bg, #fff); border: 1px solid var(--border, #eef1f5); border-radius: 10px; padding: 14px 18px; text-decoration: none; color: inherit; transition: box-shadow .2s, border-color .2s; }
.job-card:hover { box-shadow: 0 2px 12px rgba(0, 0, 0, .06); border-color: var(--primary, #3f8efc); text-decoration: none; }
.job-card-body { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.job-card-main { flex: 1; min-width: 0; }
.job-card-title { font-size: 15px; font-weight: 600; color: var(--title-color, #1c2a3a); margin-bottom: 6px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.job-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.job-tag { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 4px; white-space: nowrap; }
.job-tag-type { font-weight: 600; }
.job-tag-hire { background: #e8f4fd; color: #1d7ec4; }
.job-tag-seek { background: #fef3e4; color: #c47d1d; }
.job-tag-cate { background: var(--bg-elevated, #f0f2f6); color: var(--text-muted, #6f7d8e); }
.job-tag-engine { background: #f0eafc; color: #6c47d8; }
.job-card-top-hint { margin-top: 2px; }
.job-card-extra { text-align: right; flex-shrink: 0; min-width: 100px; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.job-card-salary { font-size: 18px; font-weight: 700; color: #e8723c; white-space: nowrap; }
.job-card-meta { white-space: nowrap; }
.job-expires { display: inline-block; color: #c0392b; font-size: 11px; margin-left: 2px; }
.job-badge-top { font-size: 11px; padding: 1px 6px; }
.job-card-seek .job-card-salary { color: #3f8efc; }
@media (max-width: 600px) {
  .job-card-body { flex-direction: column; }
  .job-card-extra { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; }
}

/* ============= Public Profile (from template style block) ============= */
.public-profile-hero { display: flex; align-items: center; gap: 20px; padding: 24px 28px; background: var(--card-bg, #fff); border: 1px solid var(--border-color, #e5e5e5); border-radius: 10px; }
.profile-hero-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--primary-light, #e6f1fb); display: flex; align-items: center; justify-content: center; font-size: 28px; flex-shrink: 0; overflow: hidden; }
.profile-hero-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-hero-avatar-text { color: var(--primary, #378add); font-weight: 500; }
.profile-hero-info { flex: 1; }
.profile-hero-info h1 { margin: 0; font-size: 18px; font-weight: 500; }
.profile-hero-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.profile-hero-actions { flex-shrink: 0; display: flex; gap: 8px; }
.profile-rank-tag { font-size: 12px; padding: 2px 8px; border-radius: 99px; background: var(--gold-light, #fff4cc); color: var(--gold-dark, #8a6d00); }
.profile-tag { font-size: 11px; padding: 2px 8px; border-radius: 99px; background: var(--card-bg-secondary, #f0f0f0); color: var(--text-secondary, #555); }
.profile-tag-ok { background: var(--status-open-bg, #e6f7e6); color: var(--success, #1a9d62); }
.profile-tag-warn { background: var(--status-ongoing-bg, #fff4e5); color: var(--status-ongoing, #b25b00); }
.profile-page-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 768px) { .profile-page-layout { grid-template-columns: 1fr; } }
.profile-card { padding: 18px 20px; }
.profile-card h3 { font-size: 14px; font-weight: 500; margin: 0 0 10px; color: var(--text-primary, #222); }
.profile-intro { font-size: 13px; color: var(--text-secondary, #555); line-height: 1.6; margin: 0; }
.profile-meta { font-size: 12px; color: var(--text-muted, #888); margin-top: 8px; }
.profile-tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.portfolio-mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
.portfolio-mini-card { display: flex; flex-direction: column; align-items: center; padding: 10px; border: 1px solid var(--border-color, #eee); border-radius: 6px; text-decoration: none; font-size: 12px; color: var(--text-primary, #222); }
.portfolio-mini-card img { width: 60px; height: 60px; object-fit: cover; border-radius: 4px; margin-bottom: 6px; }
.trade-mini-list { display: flex; flex-direction: column; gap: 6px; }
.trade-mini-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border-color, #f0f0f0); text-decoration: none; color: inherit; font-size: 13px; }
.trade-mini-row:hover { color: var(--primary, #378add); }
.trade-mini-title { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trade-mini-info { flex-shrink: 0; margin-left: 10px; color: var(--text-secondary, #555); }
.eval-dot { font-size: 10px; margin-left: 4px; }
.eval-good { color: var(--success, #1a9d62); }
.eval-mid { color: var(--warning, #f39c12); }
.eval-bad { color: var(--danger, #c53030); }

/* ============= Recharge (pay/recharge.html) ============= */
.recharge-card { max-width: 560px; margin: 0 auto; }
.recharge-tabs { display: flex; gap: 0; }
.recharge-tab { flex: 1; padding: 10px 0; font-size: 14px; cursor: pointer; border-radius: 0; }
.recharge-tab.mock { border: 1px solid var(--gold); border-radius: 6px 0 0 6px; background: transparent; color: var(--text); font-weight: 500; }
.recharge-tab.real { border: 1px solid var(--border); border-left: 0; border-radius: 0 6px 6px 0; background: transparent; color: var(--text); font-weight: 500; }
.recharge-tab.mock.active { background: var(--gold); color: #1a1a2e; font-weight: 700; border-color: var(--gold); }
.recharge-tab.real.active { background: var(--gold); color: #1a1a2e; font-weight: 700; border-color: var(--gold); }
.recharge-hint { font-size: 13px; padding: 8px 12px; border-radius: 6px; margin-bottom: 8px; }
.recharge-hint.mock { background: rgba(0, 200, 100, 0.08); border: 1px solid rgba(0, 200, 100, 0.3); color: var(--text); }
.recharge-hint.real { background: rgba(255, 180, 0, 0.08); border: 1px solid rgba(255, 180, 0, 0.3); color: var(--text); }
.recharge-btn-mock { background: rgba(0, 200, 100, 0.85) !important; border-color: rgba(0, 200, 100, 0.6) !important; }
.recharge-btn-real { background: var(--gold) !important; border-color: var(--gold) !important; color: #1a1a2e !important; }

/* ============= Tech Rank Eval List ============= */
.eval-list-item { border-bottom: 1px solid #333; padding: 16px 0; }
.eval-list-header { display: flex; justify-content: space-between; }
.eval-score { color: #ffb300; }
.eval-date { color: #666; font-size: 12px; }
.eval-detail-scores { font-size: 12px; color: #888; margin: 8px 0; }
.eval-content { color: #aaa; }
.eval-empty { color: #666; }

/* ============= Material List ============= */
.mat-list-wrap { max-width: 1180px; margin: 0 auto; padding: 24px 16px; }
.mat-list-hdr { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; flex-wrap: wrap; gap: 10px; }
.mat-list-hdr-title { font-size: 22px; font-weight: 700; color: #2a2a2a; }
.mat-list-sub { font-size: 12px; color: #8a9aaa; font-weight: 400; }
.mat-filter-box { background: #fff; border-radius: 10px; border: 1px solid #eef1f5; padding: 14px; margin-bottom: 18px; }
.mat-search-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.mat-search-input { flex: 1; min-width: 180px; padding: 8px 10px; border: 1px solid #d9d9d9; border-radius: 4px; }
.mat-btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.mat-btn-row + .mat-btn-row { margin-top: 10px; }
.mat-empty { text-align: center; padding: 80px 20px; color: #8a9aaa; }
.mat-empty-icon { font-size: 48px; }
.mat-empty-txt { margin-top: 10px; }
.mat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.mat-card { text-decoration: none; color: inherit; background: #fff; border-radius: 10px; border: 1px solid #eef1f5; overflow: hidden; display: block; }
.mat-card-cover { height: 140px; background-size: cover; background-position: center; background-repeat: no-repeat; background-color: #f5f7fa; }
.mat-card-cover-fallback { height: 140px; background: linear-gradient(135deg, #667eea, #764ba2); display: flex; align-items: center; justify-content: center; font-size: 42px; color: #fff; }
.mat-card-body { padding: 12px; }
.mat-card-meta { font-size: 11px; color: #8a9aaa; margin-bottom: 4px; }
.mat-card-title { font-size: 15px; font-weight: 600; color: #2a2a2a; margin-bottom: 6px; }
.mat-card-foot { display: flex; justify-content: space-between; align-items: center; }
.mat-price { color: #e84c3d; font-weight: 700; }
.mat-views { font-size: 11px; color: #8a9aaa; }

/* ============= Material Detail ============= */
.mat-detail-wrap { max-width: 900px; margin: 0 auto; padding: 24px 16px; }
.mat-detail-card { background: #fff; border-radius: 10px; border: 1px solid #eef1f5; padding: 20px; }
.mat-detail-meta { font-size: 11px; color: #8a9aaa; margin-bottom: 6px; }
.mat-detail-title { font-size: 22px; margin: 0 0 10px 0; }
.mat-detail-price { font-size: 28px; font-weight: 700; color: #e84c3d; margin-bottom: 16px; }
.mat-detail-cover { max-width: 100%; border-radius: 8px; margin-bottom: 12px; }
.mat-preview-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.mat-preview-thumb { width: 120px; height: 90px; object-fit: cover; border-radius: 6px; border: 1px solid #eee; }
.mat-detail-desc { line-height: 1.7; color: #444; white-space: pre-wrap; margin-bottom: 20px; }
.mat-detail-info { font-size: 12px; color: #8a9aaa; margin-bottom: 16px; }
.mat-detail-delivery { background: #eefaf1; border: 1px solid #62c88a; border-radius: 8px; padding: 12px; margin-bottom: 16px; }
.mat-detail-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.mat-deliver-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.mat-deliver-input { padding: 6px 8px; border: 1px solid #d9d9d9; border-radius: 4px; }
.mat-deliver-input-wide { min-width: 220px; }
.mat-deliver-input-sm { width: 100px; }

/* ============== HOMEPAGE (index.html) ============== */
/* Hero 搜索区 */
.hero-section { background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 50%, #3182ce 100%); padding: 56px 20px 48px; text-align: center; position: relative; overflow: hidden; }
.hero-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 50%, rgba(99,179,237,.25), transparent 55%); }
.hero-content { max-width: 700px; margin: 0 auto; position: relative; z-index: 1; }
.hero-title { font-size: 32px; font-weight: 700; color: #fff; margin: 0 0 10px; letter-spacing: 2px; }
.hero-subtitle { font-size: 16px; color: rgba(255,255,255,.65); margin: 0 0 28px; }
.hero-search { display: flex; max-width: 540px; margin: 0 auto 20px; box-shadow: 0 4px 24px rgba(0,0,0,.25); border-radius: 8px; overflow: hidden; }
.hero-search-input { flex: 1; padding: 14px 18px; font-size: 15px; border: none; outline: none; background: #fff; color: #333; }
.hero-search-input::placeholder { color: #a0aec0; }
.hero-search-btn { padding: 14px 24px; background: var(--gold); color: #1a1a2e; border: none; font-size: 15px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.hero-search-btn:hover { background: #e6a800; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-hero { display: inline-block; padding: 12px 28px; border-radius: 8px; background: var(--gold); color: #1a1a2e; font-size: 15px; font-weight: 700; text-decoration: none; transition: .2s; }
.btn-hero:hover { background: #e6a800; transform: translateY(-1px); }
.btn-hero-outline { background: transparent; border: 2px solid rgba(255,255,255,.35); color: #fff; }
.btn-hero-outline:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* 平台信任数 */
.trust-section { max-width: 1100px; margin: 0 auto 28px; padding: 0 16px; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.trust-card { text-align: center; padding: 20px 12px; background: #fff; border-radius: 10px; border: 1px solid #eef1f5; }
.trust-num { font-size: 28px; font-weight: 700; color: var(--primary, #378add); }
.trust-label { font-size: 12px; color: #8a9aaa; margin-top: 4px; }

/* 首页三栏内容 */
.home-layout { max-width: 1120px; margin: 0 auto 32px; padding: 0 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.home-card { background: #fff; border-radius: 10px; border: 1px solid #eef1f5; padding: 16px; }
.home-card-hdr { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.home-card-hdr h3 { font-size: 15px; font-weight: 600; margin: 0; }
.text-link-sm { font-size: 12px; color: var(--primary, #378add); text-decoration: none; }
.text-link-sm:hover { text-decoration: underline; }
.home-feed { display: flex; flex-direction: column; gap: 8px; }
.feed-item { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid #f5f5f5; text-decoration: none; color: inherit; font-size: 13px; }
.feed-item:hover { color: var(--primary, #378add); }
.feed-tag { font-size: 11px; padding: 1px 7px; border-radius: 4px; background: #f0f4ff; color: var(--primary, #378add); white-space: nowrap; flex-shrink: 0; }
.feed-tag.tag-biz { background: #e8f5e9; color: #2e7d32; }
.feed-tag.tag-talent { background: #fff3e0; color: #e65100; }
.feed-tag.tag-bounty { background: #fce4ec; color: #c62828; }
.feed-title { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-meta { font-size: 11px; color: #aaa; flex-shrink: 0; }
.feed-price { color: #e84c3d; font-weight: 600; }
.feed-empty { font-size: 13px; color: #aaa; padding: 20px 0; text-align: center; }

/* 推荐服务商迷你卡片 */
.provider-mini-list { display: flex; flex-direction: column; gap: 8px; }
.provider-mini-card { display: flex; align-items: center; gap: 10px; padding: 8px 0; text-decoration: none; color: inherit; border-bottom: 1px solid #f5f5f5; }
.provider-mini-card:last-child { border-bottom: none; }
.provider-mini-card:hover { color: var(--primary, #378add); }
.pm-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--primary-light, #e6f1fb); color: var(--primary, #378add); font-weight: 600; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.pm-info { flex: 1; min-width: 0; }
.pm-name { font-size: 13px; font-weight: 500; }
.pm-meta { font-size: 11px; color: #8a9aaa; display: flex; gap: 8px; }
.pm-stars { color: #ffb300; }

/* 交易保障区 */
.safe-section { max-width: 1100px; margin: 0 auto 36px; padding: 32px 20px; background: linear-gradient(135deg, #f8faff 0%, #f0f5ff 100%); border-radius: 12px; border: 1px solid #dee8f5; text-align: center; }
.safe-title { font-size: 20px; font-weight: 700; margin-bottom: 20px; }
.safe-steps { display: flex; justify-content: center; align-items: center; gap: 20px; flex-wrap: wrap; }
.safe-step { text-align: center; max-width: 180px; }
.safe-step-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--primary, #378add); color: #fff; font-size: 20px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; }
.safe-step-title { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.safe-step-desc { font-size: 12px; color: #7a8a9a; }
.safe-arrow { font-size: 24px; color: #b0c0d0; padding-top: 28px; }
.safe-footnote { margin-top: 18px; font-size: 13px; color: var(--primary, #378add); font-weight: 500; }

/* 模块入口网格 */
.module-grid-section { max-width: 1100px; margin: 0 auto 40px; padding: 0 16px; }
.module-grid-title { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.module-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 768px) { .module-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .module-grid { grid-template-columns: repeat(2, 1fr); } }
.module-card { background: #fff; border-radius: 10px; border: 1px solid #eef1f5; padding: 20px 16px; text-decoration: none; color: inherit; text-align: center; transition: .2s; display: flex; flex-direction: column; align-items: center; height: 100%; }
.module-card:hover { border-color: var(--primary, #378add); box-shadow: 0 4px 16px rgba(0,0,0,.06); transform: translateY(-2px); }
.module-icon { font-size: 32px; margin-bottom: 10px; line-height: 1; }
.module-name { font-size: 15px; font-weight: 700; margin-bottom: 6px; color: var(--text-primary, #222); }
.module-desc { font-size: 12px; color: #6b7c8c; line-height: 1.5; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.module-stat { display: inline-block; margin-top: 10px; padding: 3px 10px; border-radius: 99px; font-size: 11px; color: var(--primary, #378add); background: rgba(55,138,221,.08); }

/* ============== TRADE PROGRESS ============== */
.trade-progress { display: flex; align-items: center; justify-content: center; gap: 0; padding: 20px 0 12px; }
.tp-step { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.tp-dot { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; background: #e5e7eb; color: #9ca3af; border: 2px solid #d1d5db; transition: all .3s; }
.tp-step.active .tp-dot { background: var(--primary, #378add); color: #fff; border-color: var(--primary, #378add); }
.tp-label { font-size: 11px; color: #9ca3af; }
.tp-step.active .tp-label { color: var(--primary, #378add); font-weight: 600; }
.tp-line { flex: 1; min-width: 30px; max-width: 80px; height: 2px; background: #e5e7eb; transition: .3s; }
.tp-line.active { background: var(--primary, #378add); }
.tp-safe-note { text-align: center; font-size: 12px; color: #6b7280; margin-top: 6px; padding-bottom: 6px; border-bottom: 1px solid #eef1f5; }

/* ============== NOTIFICATION BELL ============== */
.nav-notify { position: relative; display: flex; align-items: center; }
.notify-bell-link { font-size: 18px; text-decoration: none; position: relative; display: flex; align-items: center; padding: 0 4px; }
.notify-badge { position: absolute; top: -6px; right: -6px; background: #e74c3d; color: #fff; font-size: 10px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 4px; line-height: 1; }
.notify-panel { position: absolute; top: 100%; right: 0; margin-top: 8px; width: 340px; max-height: 440px; background: #fff; border-radius: 10px; border: 1px solid #e0e0e0; box-shadow: 0 8px 32px rgba(0,0,0,.12); z-index: 1000; overflow: hidden; }
.notify-panel-hdr { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid #f0f0f0; }
.notify-panel-hdr strong { font-size: 14px; }
.notify-read-all { font-size: 12px; color: var(--primary, #378add); text-decoration: none; }
.notify-read-all:hover { text-decoration: underline; }
.notify-list { max-height: 380px; overflow-y: auto; }
.notify-item { display: flex; justify-content: space-between; align-items: flex-start; padding: 10px 16px; border-bottom: 1px solid #f8f8f8; text-decoration: none; color: inherit; gap: 8px; }
.notify-item:hover { background: #f8faff; }
.notify-item.unread { background: #f0f6ff; }
.notify-item-title { font-size: 13px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notify-item-time { font-size: 11px; color: #aaa; flex-shrink: 0; }
.notify-empty { padding: 30px; text-align: center; font-size: 13px; color: #aaa; }
.notify-loading { padding: 30px; text-align: center; font-size: 13px; color: #aaa; }

/* ============== ENGINE FILTER COMPONENT ============== */
.engine-filter { background: #fff; border-radius: 10px; border: 1px solid #eef1f5; padding: 14px; margin-bottom: 16px; }
.ef-title { font-size: 13px; font-weight: 600; color: #444; margin-bottom: 8px; }
.ef-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ef-tag { display: inline-block; padding: 4px 14px; border-radius: 99px; font-size: 12px; background: #f5f7fa; color: #555; text-decoration: none; border: 1px solid transparent; transition: .2s; }
.ef-tag:hover { border-color: var(--primary, #378add); }
.ef-tag.active { background: var(--primary-light, #e6f1fb); color: var(--primary, #378add); border-color: var(--primary, #378add); font-weight: 600; }

/* ============== SEARCH PAGE ============== */
.search-form { display: flex; gap: 8px; margin: 0 0 24px; }
.search-input { flex: 1; padding: 10px 14px; border: 1px solid var(--border-color, #d0d0d0); border-radius: 6px; font-size: 15px; }
.search-result-item { padding: 14px 0; border-bottom: 1px solid var(--border-color, #eee); }
.search-result-title { font-size: 15px; font-weight: 500; color: var(--text-primary, #222); text-decoration: none; }
.search-result-title:hover { color: var(--primary, #378add); }
.search-result-tag { display: inline-block; margin-left: 10px; font-size: 11px; background: var(--card-bg-secondary, #f0f0f0); color: var(--text-muted, #888); padding: 2px 6px; border-radius: 4px; }
.search-result-snippet { margin: 6px 0 0; font-size: 13px; color: var(--text-secondary, #666); }

/* ============== MOBILE RESPONSIVE ============== */
@media (max-width: 992px) {
  .home-layout { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero-section { padding: 36px 16px 32px; }
  .hero-title { font-size: 22px; letter-spacing: 0; }
  .hero-subtitle { font-size: 13px; }
  .hero-search { flex-direction: column; border-radius: 8px; }
  .hero-search-input { border-radius: 8px 8px 0 0; }
  .hero-search-btn { border-radius: 0 0 8px 8px; text-align: center; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn-hero { text-align: center; }

  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .trust-num { font-size: 22px; }

  .home-layout { grid-template-columns: 1fr; }

  .safe-steps { flex-direction: column; gap: 8px; }
  .safe-arrow { display: none; }
  .safe-step { max-width: none; }

  .module-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }

  .notify-panel { width: 280px; right: -40px; }
  .notify-panel::before { content: ''; position: absolute; top: -6px; right: 48px; width: 12px; height: 12px; background: #fff; border-left: 1px solid #e0e0e0; border-top: 1px solid #e0e0e0; transform: rotate(45deg); }

  .trade-progress { gap: 0; padding: 12px 0; }
  .tp-line { min-width: 20px; max-width: 40px; }
  .tp-dot { width: 26px; height: 26px; font-size: 11px; }
  .tp-label { font-size: 10px; }

  /* 通用列表页移动适配 */
  .card, .mat-detail-card, .profile-card { padding: 14px; border-radius: 8px; }

  /* 表格溢出 */
  .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* 导航移动优化 */
  .site-header .nav-inner { padding: 0 12px; }
  .site-searchbar { padding: 8px; }
  .site-search-input { font-size: 13px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 18px; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-num { font-size: 20px; }
  .engine-tag { font-size: 12px; padding: 4px 12px; }
  .module-grid { grid-template-columns: repeat(2, 1fr); }
  .notify-panel { width: 260px; right: -80px; }
  .notify-panel::before { right: 88px; }
}
