/* 会员中心工作台（参考稿转网页 px） */
.account-workspace .site-header,
.account-workspace .site-footer,
.account-workspace .market-hero {
    display: none !important;
}

.account-workspace {
    --ws-brand: #2563EB;
    --ws-brand-dark: #1D4ED8;
    --ws-bg: #F5F7FA;
    --ws-ink: #111827;
    --ws-muted: #6B7280;
    --ws-soft: #9CA3AF;
    --ws-line: #E5E7EB;
    --ws-card: #FFFFFF;
    background: var(--ws-bg);
    min-height: 100vh;
}

.workspace-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--ws-bg);
}

.top-navbar {
    width: 100%;
    height: 60px;
    background: #fff;
    border-bottom: 1px solid var(--ws-line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.navbar-left .logo {
    width: 140px;
    height: 44px;
    border-radius: 0;
    object-fit: contain;
    display: block;
}

.platform-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--ws-ink);
}

.navbar-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    margin-left: auto;
    gap: 16px;
}

.search-box {
    width: 240px;
    height: 36px;
    margin: 0;
    background: #F9FAFB;
    border-radius: 8px;
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-shrink: 0;
    padding: 0 12px;
    gap: 8px;
    border: 1px solid transparent;
}

.search-box:focus-within {
    border-color: #BFDBFE;
    background: #fff;
}

.search-box input {
    flex: 1;
    border: 0;
    background: transparent;
    outline: none;
    font-size: 14px;
    color: var(--ws-ink);
    min-width: 0;
}

.search-box button {
    border: 0;
    background: transparent;
    color: var(--ws-soft);
    padding: 0;
    cursor: pointer;
}

.icon-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: var(--ws-muted);
    border-radius: 8px;
    text-decoration: none;
}

.icon-btn .badge-dot {
    width: 8px;
    height: 8px;
    background: #EF4444;
    border-radius: 50%;
    position: absolute;
    top: 6px;
    right: 6px;
    border: 2px solid #fff;
}

.ws-user-menu {
    position: relative;
    flex-shrink: 0;
}

.ws-user-menu .avatar,
.top-navbar .avatar {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    object-fit: cover;
    background: #EFF6FF;
    color: var(--ws-brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 0;
    cursor: pointer;
}

.ws-user-menu .avatar img,
.top-navbar .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.top-navbar .icon-btn {
    flex-shrink: 0;
}

.ws-user-drop {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 180px;
    background: #fff;
    border: 1px solid var(--ws-line);
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
    padding: 8px;
    z-index: 20;
}

.ws-user-drop a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
}

.ws-user-drop a:hover {
    background: #F9FAFB;
    color: var(--ws-brand);
}

.main-layout {
    flex: 1;
    display: flex;
    min-height: 0;
}

.sidebar {
    width: 220px;
    background: #fff;
    border-right: 1px solid var(--ws-line);
    padding: 24px 0;
    flex-shrink: 0;
}

.nav-section {
    margin-bottom: 32px;
}

.nav-section .section-title {
    font-size: 12px;
    color: var(--ws-soft);
    font-weight: 600;
    padding: 0 20px;
    margin-bottom: 8px;
    display: block;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--ws-muted);
    text-decoration: none;
    position: relative;
    font-size: 14px;
    font-weight: 500;
    transition: background .2s ease, color .2s ease;
}

.nav-item:hover {
    background: #F9FAFB;
}

.nav-item.active {
    background: #EFF6FF;
    color: var(--ws-brand);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--ws-brand);
}

.nav-item i {
    width: 20px;
    text-align: center;
}

.main-content {
    flex: 1;
    overflow: auto;
    padding: 24px;
}

.ws-panel {
    background: #fff;
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .04);
}

.ws-panel > h2:first-child,
.ws-page-title {
    margin: 0 0 12px;
    font-size: 20px;
    color: var(--ws-ink);
}

.ws-empty {
    text-align: center;
    padding: 48px 16px;
    color: var(--ws-muted);
}

.ws-empty .lead-text {
    margin-bottom: 16px;
}

.user-info-bar {
    background: #fff;
    border-radius: 12px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .04);
    gap: 24px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background: #EFF6FF;
    color: var(--ws-brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.user-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.user-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--ws-ink);
}

.enterprise-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: #FEF3C7;
    border-radius: 6px;
    font-size: 12px;
    color: #92400E;
}

.enterprise-badge.is-on {
    background: #D1FAE5;
    color: #065F46;
}

.user-phone {
    font-size: 14px;
    color: var(--ws-muted);
}

.account-tip {
    font-size: 12px;
    color: var(--ws-soft);
}

.stats-row {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-shrink: 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    min-width: 88px;
}

.stat-label {
    font-size: 12px;
    color: var(--ws-muted);
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.1;
}

.stat-value.primary { color: var(--ws-brand); }
.stat-value.success { color: #10B981; }

.stat-divider {
    width: 1px;
    height: 32px;
    background: var(--ws-line);
}

.section-container {
    margin-bottom: 32px;
}

.section-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.section-title-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--ws-ink);
}

.section-subtitle {
    font-size: 14px;
    color: var(--ws-muted);
}

.ws-app-tabs {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .04);
}

.ws-app-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    color: #6B7280;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.ws-app-tab em {
    font-style: normal;
    color: #9CA3AF;
    font-size: 12px;
}

.ws-app-tab:hover {
    background: #F9FAFB;
    color: #2563EB;
}

.ws-app-tab.on {
    background: #EFF6FF;
    color: #2563EB;
}

.ws-app-tab.on em {
    color: #2563EB;
}

.ws-app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.ws-home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.ws-home-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 148px;
    padding: 16px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
    transition: box-shadow .25s ease, transform .25s ease;
}

.ws-home-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, .1);
    transform: translateY(-2px);
}

.ws-home-ident {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.ws-home-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f5f7fa;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1890ff;
    font-size: 20px;
}

.ws-home-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ws-home-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.ws-home-name {
    max-width: 100%;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ws-home-ident:hover .ws-home-name { color: #1890ff; }

.ws-home-ver {
    display: inline-flex;
    align-items: center;
    height: 20px;
    padding: 0 8px;
    border-radius: 10px;
    background: #f0f5ff;
    color: #2f54eb;
    font-style: normal;
    font-size: 12px;
    font-weight: 500;
    line-height: 20px;
}

.ws-home-expire {
    font-size: 12px;
    line-height: 1.4;
    color: #9ca3af;
}

.ws-home-expire.is-hot {
    color: #ff4d4f;
    font-weight: 600;
}

.ws-home-foot {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.ws-home-renew {
    color: #8c8c8c;
    font-size: 13px;
    text-decoration: none;
}

.ws-home-renew:hover { color: #1890ff; }

.ws-home-renew.is-hot {
    color: #ff4d4f;
    font-weight: 600;
}

.ws-home-renew.is-hot:hover { color: #ff7875; }

.ws-home-go {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 32px;
    padding: 0 14px;
    border-radius: 8px;
    background: #1890ff;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.ws-home-go:hover { background: #40a9ff; color: #fff; }

.ws-home-go.is-off {
    background: #f5f5f5;
    color: #bfbfbf;
    cursor: not-allowed;
}

.ws-home-more {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 148px;
    padding: 16px;
    border: 1px dashed #d9d9d9;
    border-radius: 12px;
    background: transparent;
    color: #1890ff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
}

.ws-home-more:hover {
    border-color: #1890ff;
    background: #f0f7ff;
}

.ws-mine-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow .25s ease, transform .25s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .04);
}

.ws-mine-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
    transform: translateY(-2px);
}

.ws-mine-card .card-header {
    padding: 20px;
    display: flex;
    gap: 16px;
}

.ws-mine-card .app-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    flex-shrink: 0;
    object-fit: cover;
    background: #EFF6FF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ws-brand);
    overflow: hidden;
}

.ws-mine-card .app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ws-mine-card .app-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ws-mine-card .app-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--ws-ink);
    text-decoration: none;
}

.ws-mine-card .app-name:hover { color: var(--ws-brand); }

.ws-mine-card .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background: #D1FAE5;
    border-radius: 6px;
    align-self: flex-start;
    font-size: 12px;
    color: #065F46;
    font-weight: 500;
}

.ws-mine-card .status-badge.is-basic {
    background: #F1F5F9;
    color: #64748B;
}

.ws-mine-card .status-badge.is-premium {
    background: #D1FAE5;
    color: #065F46;
}

.ws-mine-card .status-badge.is-buyout {
    background: #FFFBE6;
    color: #D48806;
}

.ws-mine-card .status-badge.is-off {
    background: #FEE2E2;
    color: #991B1B;
}

.ws-mine-card .badge-dot,
.ws-mine-card .badge-dot-green {
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
    opacity: .75;
}

.ws-mine-card .expire-block {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ws-mine-card .expire-time {
    font-size: 12px;
    color: var(--ws-soft);
    line-height: 1.5;
}

.ws-mine-card .expire-time.is-warn {
    color: #FF5722;
    font-weight: 600;
}

.ws-mine-card .card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 20px;
    border-top: 1px solid #F3F4F6;
}

.ws-mine-card .action-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    min-width: 0;
}

.ws-mine-card .action-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0;
}

.ws-mine-card .action-btn.secondary { color: var(--ws-muted); }
.ws-mine-card .action-btn.secondary:hover { color: #F59E0B; }
.ws-mine-card .action-btn.primary { color: var(--ws-brand); font-weight: 600; }
.ws-mine-card .action-btn.upgrade {
    color: #FF5722;
    font-weight: 700;
}
.ws-mine-card .action-btn.upgrade:hover { color: #E64A19; }
.ws-mine-card .action-btn.maint {
    color: #D48806;
    font-weight: 700;
}
.ws-mine-card .action-btn.maint:hover { color: #B87404; }

.maint-years {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 8px 0 14px;
    font-size: 13px;
    color: #64748B;
}

.maint-year-opts {
    display: inline-flex;
    gap: 8px;
}

.maint-year-btn {
    min-width: 52px;
    height: 30px;
    padding: 0 10px;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    background: #fff;
    color: #64748B;
    font-size: 12px;
    cursor: pointer;
}

.maint-year-btn.is-active {
    border-color: #1677FF;
    background: #F5F9FF;
    color: #1677FF;
    font-weight: 600;
}

.recommend-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: box-shadow .25s ease, transform .25s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .04);
}

.recommend-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
    transform: translateY(-2px);
}

.recommend-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    background: #EFF6FF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ws-brand);
    overflow: hidden;
}

.recommend-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recommend-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--ws-ink);
}

.recommend-desc {
    font-size: 13px;
    color: var(--ws-muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recommend-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid #F3F4F6;
    margin-top: auto;
}

.try-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    background: var(--ws-brand);
    border-radius: 8px;
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.try-btn:hover { background: var(--ws-brand-dark); }

.detail-link {
    font-size: 14px;
    color: var(--ws-brand);
    font-weight: 500;
    text-decoration: none;
}

/* 兼容旧业务块放进主内容区 */
.account-workspace .center-main,
.account-workspace .apps-main,
.account-workspace .detail-page {
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.account-workspace .sheet,
.account-workspace .data,
.account-workspace .detail-head,
.account-workspace .mini-block {
    background: #fff;
    border-radius: 12px;
}

/* 企业与账号 */
.profile-page {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 920px;
}

.profile-header {
    margin-bottom: 4px;
}

.profile-title {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 600;
    color: #1F2937;
}

.profile-subtitle {
    margin: 0;
    font-size: 14px;
    color: #9CA3AF;
    line-height: 1.6;
}

.profile-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
    padding: 22px 24px;
}

.profile-card-title {
    display: block;
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
    color: #1F2937;
}

.profile-row {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 64px;
    padding: 16px 0;
    border-bottom: 1px solid #F3F4F6;
}

.profile-row.is-last {
    border-bottom: 0;
    padding-bottom: 4px;
}

.profile-row-left {
    width: 200px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-label {
    font-size: 14px;
    font-weight: 600;
    color: #1F2937;
}

.profile-desc {
    font-size: 12px;
    color: #9CA3AF;
    line-height: 1.5;
}

.profile-row-mid {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
}

.profile-value {
    font-size: 14px;
    color: #1F2937;
    word-break: break-all;
}

.profile-value.is-empty,
.profile-dots {
    color: #9CA3AF;
}

.profile-input {
    width: 100%;
    max-width: 420px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background: #F9FAFB;
    font: inherit;
    font-size: 14px;
    color: #1F2937;
    outline: none;
}

.profile-input:focus {
    border-color: #1677FF;
    background: #fff;
}

.profile-row-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-shrink: 0;
    min-width: 120px;
}

.profile-edit-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.profile-edit-actions.is-visible {
    display: inline-flex;
}

.btn-soft,
.btn-solid,
.btn-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 14px;
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.btn-soft {
    border: 1px solid #E5E7EB;
    background: #F9FAFB;
    color: #6B7280;
}

.btn-soft:hover {
    background: #F3F4F6;
}

.btn-solid {
    border: 0;
    background: #1677FF;
    color: #fff;
}

.btn-solid:hover {
    background: #1464d9;
}

.btn-text {
    border: 0;
    background: transparent;
    color: #6B7280;
}

.btn-text:hover {
    background: #F9FAFB;
}

.role-badge {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 12px;
    border-radius: 8px;
    background: #F3F4F6;
    color: #6B7280;
    font-size: 12px;
}

.phone-wrap,
.wechat-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.bound-badge {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: #ECFDF5;
    color: #10B981;
    font-size: 12px;
    font-weight: 500;
}

.wechat-wrap .fa-weixin {
    color: #10B981;
    font-size: 18px;
}

.profile-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 8px;
}

/* 兼容旧类名（其他页可能复用） */
.setting-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .04);
    padding: 22px 24px;
}

.setting-card-head {
    margin-bottom: 16px;
}

.setting-card-head h3 {
    margin: 0 0 6px;
    font-size: 17px;
    color: #111827;
}

.setting-card-head p,
.setting-card > .lead-text {
    margin: 0;
    color: #6B7280;
    font-size: 13px;
    line-height: 1.6;
}

.setting-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 16px;
}

.setting-grid label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: #374151;
}

.setting-grid label.full {
    grid-column: 1 / -1;
}

.setting-grid input[type="text"],
.setting-grid input[type="password"],
.setting-grid input[type="tel"],
.setting-grid input:not([type]),
.mobile-dialog input {
    height: 40px;
    padding: 0 12px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font: inherit;
    background: #fff;
}

.setting-grid input[readonly] {
    background: #F8FAFC;
    color: #6B7280;
}

.setting-actions {
    margin-top: 16px;
}

.logo-row,
.mobile-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-preview {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #F3F4F6;
    color: #D1D5DB;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid #E5E7EB;
}

.logo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-fields {
    flex: 1;
    min-width: 0;
}

.logo-fields input[type="file"] {
    font-size: 13px;
}

.mobile-row input {
    flex: 1;
    min-width: 0;
}

.mobile-mask {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(15, 23, 42, .45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.mobile-mask[hidden] {
    display: none !important;
}

/* 修改密码等弹窗内的错误提示更醒目 */
.mobile-dialog #password-msg {
    min-height: 20px;
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.5;
}

/* 顶部 toast 需盖过 mobile-mask */
#profile-toast.notice {
    position: fixed;
    top: 16px;
    left: 50%;
    z-index: 1300;
    width: min(420px, calc(100% - 32px));
    margin: 0;
    transform: translateX(-50%);
    box-shadow: 0 10px 28px rgba(15, 23, 42, .16);
}

.mobile-dialog {
    position: relative;
    width: min(420px, 100%);
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 20px 48px rgba(15, 23, 42, .18);
}

.mobile-dialog h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.mobile-dialog label {
    display: block;
    margin: 12px 0 6px;
    font-size: 13px;
    color: #374151;
}

.mobile-dialog .btn {
    margin-top: 12px;
}

.mobile-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: 0;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    color: #94A3B8;
    cursor: pointer;
}

.mp-bind-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    background: #F8FAFC;
}

.mp-bind-meta {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}

.mp-bind-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #E8F8EF;
    color: #07C160;
    flex-shrink: 0;
}

.mp-bind-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.mp-bind-status {
    font-size: 13px;
    color: #6B7280;
    line-height: 1.5;
}

.mp-bind-status.is-bound {
    color: #07C160;
    font-weight: 500;
}

.mp-bind-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.btn-wechat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 14px;
    border: 0;
    border-radius: 8px;
    background: #07C160;
    color: #fff;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.btn-wechat:hover {
    background: #06AD56;
}

.mp-bind-dialog {
    width: min(400px, 100%);
    text-align: center;
}

.mp-qr-box {
    margin: 18px auto 8px;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.mp-qr-img {
    width: 200px;
    height: 200px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background: #fff;
}

.mp-qr-loading {
    color: #6B7280;
    font-size: 14px;
}

.mp-qr-refresh {
    margin-top: 0 !important;
}

@media (max-width: 720px) {
    .mp-bind-row {
        flex-direction: column;
        align-items: stretch;
    }
    .mp-bind-actions {
        justify-content: flex-end;
    }
}

/* 我的订单 */
.order-page {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.order-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.order-page-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
}

.order-user {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
}

.order-user img,
.order-user i {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background: #E8F4FF;
    color: #1677FF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.order-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .03);
    padding: 24px 28px;
}

.order-card-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.order-card-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.order-card-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1E293B;
}

.order-toolbar,
.order-filter-form {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    width: 100%;
    min-width: 0;
}

.order-type-filter {
    flex: 0 0 auto;
    width: 130px;
}

.order-type-filter select {
    width: 100%;
    height: 38px;
    box-sizing: border-box;
    padding: 0 28px 0 12px;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1.4.6L6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E") no-repeat right 12px center;
    background-size: 10px;
    color: #333;
    font-size: 14px;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.order-type-filter select:focus {
    border-color: #1677FF;
    background-color: #fff;
}

.order-search {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    height: 38px;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
}

.order-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 14px;
    pointer-events: none;
}

.order-search input {
    flex: none;
    width: 100%;
    height: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 0 12px 0 34px;
    border: 0;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: #333;
}

.order-search input::placeholder { color: #B0B0B0; }

.order-search-btn,
.order-search button {
    flex: 0 0 auto;
    width: 84px;
    height: 38px;
    box-sizing: border-box;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: #1677FF;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}

.order-search-btn:hover,
.order-search button:hover { background: #0E63D8; }

.order-filter-tabs {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}

.order-tab {
    flex: 0 0 120px;
    width: 120px;
    min-width: 120px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #E5E5E5;
    border-radius: 18px;
    background: #fff;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.order-tab em {
    font-style: normal;
    min-width: 20px;
    padding: 1px 7px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
}

.order-tab .badge-all,
.order-tab .badge-paid { background: #E8F4FF; color: #1677FF; }
.order-tab .badge-unpaid { background: #FFF7E6; color: #FF6A00; }
.order-tab .badge-closed { background: #F5F5F5; color: #999; }

.order-tab.on {
    background: #1677FF;
    border-color: #1677FF;
    color: #fff;
}

.order-tab.on em {
    background: rgba(255, 255, 255, .3);
    color: #fff;
}

.order-notice {
    margin: 0;
    padding: 10px 14px;
    border-radius: 8px;
    background: #E8F4FF;
    color: #1677FF;
    font-size: 13px;
}

.order-table-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
    padding: 16px;
    overflow-x: auto;
}

.order-table { width: 100%; min-width: 0; }

.order-table-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.order-table-row[hidden] { display: none !important; }

.order-table-head,
.order-table-row {
    display: grid;
    grid-template-columns: minmax(220px, 1.45fr) minmax(0, 1.35fr) 88px 100px 76px 108px 165px;
    gap: 8px;
    align-items: center;
    text-align: center;
}

.order-table-head {
    height: 44px;
    padding: 0 12px;
    background: #F8F9FA;
    border-radius: 8px;
}

.order-table-head .th {
    font-size: 14px;
    color: #333;
    font-weight: 700;
}

.order-table-head .th-order,
.order-table-head .th-content,
.order-table-row .td-order,
.order-table-row .td-content {
    text-align: left;
    justify-content: flex-start;
}

.order-table-head .th-order,
.order-table-row .td-order {
    padding-left: 24px;
}

.order-table-head .th-action,
.order-table-row .td-action {
    width: 165px;
    text-align: center;
    justify-content: center;
}

.order-table-row {
    min-height: 84px;
    padding: 14px 12px;
    border: 1px solid #F0F0F0;
    border-radius: 8px;
    background: #fff;
    transition: box-shadow .2s ease;
}

.order-table-row:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, .08); }

.order-table-row .td {
    font-size: 14px;
    color: #666;
}

.order-table-row .td-order {
    color: #1E293B;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    white-space: nowrap;
}

.order-sn-btn {
    border: 0;
    background: transparent;
    color: #1677FF;
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    text-align: left;
    text-decoration: underline;
    white-space: nowrap;
}

.order-sn-btn:hover { color: #0E63D8; }

.order-copy-btn {
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 6px;
    background: #EFF6FF;
    color: #1677FF;
    cursor: pointer;
    flex-shrink: 0;
}

.order-copy-btn:hover { background: #DBEAFE; }

.order-table-row .td-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    text-align: left;
}

.order-soft-line {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    color: #333;
    line-height: 1.4;
}

.order-soft-line strong {
    font-size: 15px;
    font-weight: 700;
    color: #333;
}

.order-pack-name {
    color: #999;
    font-size: 13px;
}

.order-type-badge {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    font-style: normal;
    line-height: 1;
    color: #fff;
}

.order-type-badge.type-new { background: #1677FF; color: #fff; }
.order-type-badge.type-renew { background: #00CED1; color: #fff; }
.order-type-badge.type-buyout { background: #FFD700; color: #333; }
.order-type-badge.type-maint { background: #9370DB; color: #fff; }
.order-type-badge.type-custom { background: #FF6A00; color: #fff; }

.order-table-row .td-price {
    color: #1E293B;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.order-amount {
    font-weight: 700;
    font-size: 18px;
    color: #333;
}

.order-pay-channel {
    font-style: normal;
    font-size: 12px;
    color: #999;
    font-weight: 400;
}

.order-table-row .td-time {
    color: #999;
    font-size: 13px;
}

.status-badge,
.invoice-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
}

.status-badge i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.status-pending {
    background: #FFF7E6;
    color: #FF6A00;
}

.status-pending i { background: #FF6A00; }

.status-paid {
    background: #E8F8F0;
    color: #52C41A;
}

.status-paid i { background: #52C41A; }

.status-closed {
    background: #F5F5F5;
    color: #999;
}

.status-closed i { background: #999; }

.invoice-plain {
    color: #999;
    font-size: 13px;
}

.invoice-processing,
.invoice-done {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    text-decoration: none;
}

.invoice-processing { color: #FF6A00; }
.invoice-processing i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #FF6A00;
}
.invoice-done { color: #52C41A; }
.invoice-done .fa { color: #1677FF; font-size: 13px; }

.invoice-badge.inv-none { background: transparent; color: #94A3B8; padding: 0; }
.invoice-badge.inv-idle { background: #F1F5F9; color: #64748B; }
.invoice-badge.inv-pending { background: #FFF7ED; color: #FF6A00; }
.invoice-badge.inv-done { background: #ECFDF5; color: #10B981; }
.invoice-badge.is-link {
    text-decoration: none;
    cursor: pointer;
}
.invoice-badge.is-link:hover { box-shadow: inset 0 0 0 1px rgba(16,185,129,.35); }

.order-actions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 8px;
    white-space: nowrap;
}

.pay-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 14px;
    border-radius: 6px;
    background: #FF6A00;
    color: #fff !important;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border: 0;
}

.pay-button:hover { background: #E85F00; }

.order-outline-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 12px;
    border: 1px solid #1677FF;
    border-radius: 6px;
    color: #1677FF;
    font-size: 13px;
    text-decoration: none;
    background: #fff;
}

.order-outline-btn:hover { background: #E8F4FF; }

.order-link-btn,
.order-text-btn,
.detail-link {
    color: #999;
    font-size: 13px;
    text-decoration: none;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}

.order-link-btn:hover,
.order-text-btn:hover,
.detail-link:hover { color: #1677FF; }

.order-text-btn.is-link { color: #1677FF; }
.order-link-btn.is-accent,
.order-text-btn.is-accent { color: #FF6A00; font-weight: 500; }
.order-link-btn.is-accent:hover,
.order-text-btn.is-accent:hover { color: #E85F00; }

.order-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 64px 16px;
    text-align: center;
}

.order-empty-icon {
    width: 88px;
    height: 88px;
    margin-bottom: 16px;
    border-radius: 50%;
    background: #F3F7FF;
    color: #1677FF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
}

.order-empty p {
    margin: 0 0 20px;
    color: #999;
    font-size: 16px;
}

.order-shop-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 28px;
    border-radius: 8px;
    background: #1677FF;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.order-shop-btn:hover { background: #0E63D8; color: #fff; }

.order-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 4px 0 8px;
}

.order-total {
    color: #666;
    font-size: 14px;
}

.order-total em {
    font-style: normal;
    color: #333;
    font-weight: 600;
}

.order-page-buttons,
.order-page-nums,
.order-page-jump {
    display: flex;
    align-items: center;
    gap: 8px;
}

.order-page-btn,
.order-page-num,
.order-page-jump button {
    height: 32px;
    min-width: 32px;
    padding: 0 12px;
    border: 1px solid #E5E5E5;
    border-radius: 6px;
    background: #fff;
    color: #333;
    font-size: 14px;
    cursor: pointer;
}

.order-page-btn:disabled {
    color: #CCC;
    cursor: not-allowed;
}

.order-page-num.on,
.order-page-jump button {
    background: #1677FF;
    border-color: #1677FF;
    color: #fff;
    font-weight: 700;
}

.order-page-gap {
    color: #999;
    padding: 0 2px;
}

.order-page-jump span { color: #666; font-size: 14px; }

.order-page-jump input {
    width: 56px;
    height: 32px;
    border: 1px solid #E5E5E5;
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
    color: #333;
}

/* 订单详情弹窗 */
.order-modal[hidden],
.order-detail-item[hidden],
.order-detail-section[hidden],
.btn-download-invoice[hidden],
.btn-modal-pay[hidden],
.btn-modal-invoice[hidden] { display: none !important; }
.order-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.order-modal-mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .5);
}
.order-modal-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 640px;
    max-height: 86vh;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, .18);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.order-modal-head,
.order-modal-foot {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    flex-shrink: 0;
}
.order-modal-head {
    justify-content: space-between;
    border-bottom: 1px solid #F0F0F0;
}
.order-modal-head h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #333;
}
.order-modal-close {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #999;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}
.order-modal-body {
    padding: 8px 24px 16px;
    overflow: auto;
}
.order-detail-section { margin: 18px 0 8px; }
.order-detail-section h4 {
    margin: 0 0 8px;
    padding-bottom: 8px;
    border-bottom: 2px solid #1677FF;
    font-size: 16px;
    color: #333;
}
.order-detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #F5F5F5;
}
.order-detail-item .item-label {
    width: 128px;
    flex-shrink: 0;
    color: #666;
    font-size: 14px;
}
.order-detail-item .item-value {
    flex: 1;
    min-width: 0;
    color: #333;
    font-size: 14px;
    word-break: break-all;
}
.item-value-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.amount-highlight {
    color: #FF6A00 !important;
    font-size: 18px !important;
    font-weight: 700;
}
.invoice-progress {
    display: flex;
    align-items: flex-start;
    padding: 16px 8px 8px;
}
.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 64px;
    color: #999;
    font-size: 12px;
}
.progress-step i {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #E5E5E5;
}
.progress-step.is-on { color: #1677FF; font-weight: 700; }
.progress-step.is-on i { background: #1677FF; }
.progress-line {
    flex: 1;
    height: 2px;
    margin-top: 7px;
    background: #E5E5E5;
}
.progress-line.is-on { background: #1677FF; }
.btn-download-invoice {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    height: 40px;
    padding: 0 20px;
    border-radius: 8px;
    background: #1677FF;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}
.order-modal-foot {
    justify-content: flex-end;
    border-top: 1px solid #F0F0F0;
}
.btn-modal-cancel,
.btn-modal-pay,
.btn-modal-invoice {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 22px;
    border-radius: 8px;
    font-size: 14px;
    text-decoration: none;
    border: 0;
    cursor: pointer;
}
.btn-modal-cancel { background: #F5F5F5; color: #666; }
.btn-modal-pay { background: #FF6A00; color: #fff; font-weight: 500; }
.btn-modal-invoice { background: #1677FF; color: #fff; font-weight: 500; }
body.order-modal-open { overflow: hidden; }

.order-toast {
    position: fixed;
    left: 50%;
    top: 18%;
    transform: translate(-50%, -8px);
    z-index: 1400;
    padding: 10px 16px;
    border-radius: 8px;
    background: rgba(15, 23, 42, .88);
    color: #fff;
    font-size: 13px;
    opacity: 0;
    transition: opacity .2s ease, transform .2s ease;
    pointer-events: none;
}
.order-toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 全局浮层：客服 / 反馈 */
.float-tools {
    position: fixed;
    right: 24px;
    bottom: 48px;
    z-index: 999;
    width: 64px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
    overflow: visible;
}
.cs-wrap { position: relative; }
.cs-wrap .tool-item {
    width: 100%;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
}
.cs-card {
    position: absolute;
    right: calc(100% + 14px);
    bottom: 0;
    width: 268px;
    padding: 16px 16px 14px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .16);
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transform: translateX(8px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.cs-card::after {
    content: "";
    position: absolute;
    right: -7px;
    bottom: 36px;
    border: 7px solid transparent;
    border-left-color: #fff;
    border-right: 0;
}
.cs-wrap:hover .cs-card,
.cs-wrap.is-open .cs-card {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
}
.cs-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
}
.cs-status i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, .16);
}
.cs-qr {
    width: 166px;
    height: 166px;
    margin: 0 auto 8px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #eef2f6;
    border-radius: 8px;
}
.cs-qr img { width: 150px; height: 150px; object-fit: contain; }
.cs-qr span { font-size: 12px; color: #94a3b8; }
.cs-tip {
    margin: 0;
    font-size: 12px;
    line-height: 1.6;
    color: #64748b;
}
.cs-web {
    display: inline-block;
    margin-top: 10px;
    color: #2B7DE9;
    font-size: 13px;
    text-decoration: none;
}
.cs-web:hover { color: #1d63c4; }
.cs-phone {
    margin: 12px 0 0;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
    font-size: 12px;
    color: #94a3b8;
}

.float-tools .tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 14px 0;
    border: 0;
    background: transparent;
    color: #475569;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.float-tools .tool-item i {
    font-size: 18px;
    color: #2B7DE9;
}

.float-tools .tool-item:last-child i { color: #64748B; }

.float-tools .tool-text {
    font-size: 12px;
    line-height: 1;
}

.float-tools .tool-item:hover {
    background: #EFF6FF;
    color: #2B7DE9;
}

.float-tools .tool-item:hover i { color: #2B7DE9; }

.float-tools .tool-divider {
    display: block;
    height: 1px;
    background: #F1F5F9;
    margin: 0 12px;
}

/* PC：操作按钮按内容宽度，避免拉满整行 */
@media (min-width: 901px) {
    .account-workspace .btn,
    .account-workspace .btn-detail-primary,
    .account-workspace .btn-detail-secondary,
    .account-workspace .btn-auth-danger,
    .account-workspace .btn-ghost-dark {
        width: auto !important;
        max-width: 220px;
        flex: 0 0 auto;
    }

    .account-workspace .btn-detail-primary.grow,
    .account-workspace .auth-actions .grow,
    .account-workspace .template-actions .grow {
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: 140px;
        max-width: 200px;
    }

    .account-workspace .auth-actions,
    .account-workspace .template-actions,
    .account-workspace .detail-actions,
    .account-workspace .review-toolbar,
    .account-workspace .pay-actions {
        justify-content: flex-start;
    }

    .account-workspace .sheet .btn,
    .account-workspace .mini-block .btn,
    .account-workspace .ws-panel > .btn,
    .account-workspace .ws-panel > a.btn,
    .account-workspace .ws-empty .btn,
    .account-workspace .app-card-actions .btn {
        width: auto !important;
        max-width: 220px;
    }

    .account-workspace .app-card-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
}

@media (max-width: 900px) {
    .account-workspace .btn-detail-primary.grow,
    .account-workspace .auth-actions .grow,
    .account-workspace .template-actions .grow {
        flex: 1 1 auto;
        max-width: none;
        width: auto;
    }

    .setting-grid { grid-template-columns: 1fr; }
    .logo-row,
    .mobile-row { flex-direction: column; align-items: stretch; }

    .profile-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .profile-row-left {
        width: auto;
    }
    .profile-row-right {
        justify-content: flex-start;
        min-width: 0;
    }
    .profile-input {
        max-width: none;
    }

    .order-toolbar,
    .order-filter-form {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 8px;
    }
    .order-type-filter {
        flex: 0 0 auto;
        width: 110px;
    }
    .order-search {
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
    }
    .order-search-btn,
    .order-search button {
        width: 72px;
    }
    .order-tab { min-width: 0; width: auto; flex: 1 1 calc(50% - 12px); }
    .order-table-head .th-order,
    .order-table-row .td-order { padding-left: 0; white-space: normal; }
    .order-sn-btn { white-space: normal; }
    .order-table { min-width: 0; }
    .order-table-head { display: none; }
    .order-table-row {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 14px;
        border: 1px solid #F0F0F0;
        border-radius: 10px;
        margin-bottom: 0;
        text-align: left;
    }
    .order-table-row .td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        text-align: left;
    }
    .order-table-row .td::before {
        content: attr(data-label);
        color: #94A3B8;
        flex-shrink: 0;
    }
    .order-table-row .td-order,
    .order-table-row .td-content,
    .order-table-row .td-price,
    .order-table-row .td-action {
        justify-content: flex-end;
        align-items: flex-end;
    }
    .order-table-row .td-content { align-items: flex-end; }
    .order-soft-line { align-items: flex-end; }
    .order-actions { justify-content: flex-end; }
    .float-tools {
        right: 12px;
        bottom: 20px;
        width: 56px;
    }

    .main-layout { flex-direction: column; }
    .sidebar {
        width: 100%;
        border-right: 0;
        border-bottom: 1px solid var(--ws-line);
        padding: 12px 0;
        display: flex;
        overflow-x: auto;
        gap: 8px;
    }
    .nav-section {
        margin: 0;
        display: flex;
        align-items: center;
        gap: 4px;
        padding: 0 8px;
        flex-shrink: 0;
    }
    .nav-section .section-title { display: none; }
    .nav-item {
        padding: 8px 12px;
        white-space: nowrap;
        border-radius: 8px;
    }
    .nav-item.active::before { display: none; }
    .main-content { padding: 16px; }
    .user-info-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    .stats-row { width: 100%; justify-content: space-around; }
    .search-box { width: 160px; }
    .ws-app-grid,
    .ws-home-grid { grid-template-columns: 1fr; }
}

/* ========== 收银台（开通高级版） ========== */
.cashier-page {
    --cs-blue: #1677FF;
    --cs-orange: #FF5722;
    --cs-orange-2: #FF8A50;
    --cs-bg: #F8FAFC;
    --cs-line: #E8EEF5;
    --cs-ink: #0F172A;
    --cs-muted: #64748B;
    max-width: 1200px;
    margin: 0 auto;
}

.cashier-head {
    margin-bottom: 16px;
}

.cashier-title {
    margin: 0 0 6px;
    font-size: 22px;
    color: var(--cs-ink);
    font-weight: 700;
}

.cashier-sub {
    margin: 0;
    color: var(--cs-muted);
    font-size: 13px;
    line-height: 1.6;
}

.cashier-error {
    margin-bottom: 12px;
}

.cashier-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.9fr);
    gap: 20px;
    align-items: start;
}

.cashier-main {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, .06);
    padding: 20px 22px 24px;
    border: 1px solid rgba(22, 119, 255, .06);
}

.cashier-soft-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border-radius: 8px;
    background: linear-gradient(135deg, #F5F9FF 0%, #EEF5FF 100%);
    border: 1px solid #D6E6FF;
    margin-bottom: 22px;
}

.cashier-soft-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.cashier-soft-cover {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #E2E8F0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    color: var(--cs-blue);
    font-size: 22px;
}

.cashier-soft-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cashier-soft-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--cs-ink);
    line-height: 1.3;
}

.cashier-soft-brief {
    margin-top: 4px;
    font-size: 12px;
    color: var(--cs-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cashier-auth-tag {
    flex-shrink: 0;
    padding: 4px 10px;
    border-radius: 999px;
    background: #E8F3FF;
    color: var(--cs-blue);
    font-size: 12px;
    font-weight: 600;
}

.cashier-auth-tag.is-renew {
    background: #FFF3E8;
    color: var(--cs-orange);
}

.cashier-section + .cashier-section {
    margin-top: 24px;
}

.cashier-step {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.cashier-step-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--cs-blue);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cashier-step-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--cs-ink);
}

.cashier-version-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.cashier-version-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-height: 108px;
    padding: 16px 14px 14px;
    text-align: left;
    background: #fff;
    border: 1.5px solid #E2E8F0;
    border-radius: 8px;
    cursor: pointer;
}

.cashier-version-card:hover {
    border-color: #91C0FF;
}

.cashier-version-card.is-active {
    border-color: var(--cs-blue);
    background: #F5F9FF;
    box-shadow: 0 0 0 1px rgba(22, 119, 255, .18);
}

.cashier-version-card.is-hot {
    border-color: #FFD8BF;
}

.cashier-version-card.is-hot.is-active {
    border-color: #FA541C;
    background: #FFF7F0;
    box-shadow: 0 0 0 1px rgba(250, 84, 28, .16);
}

.cashier-version-badge {
    position: absolute;
    top: 0;
    right: 0;
    padding: 3px 8px;
    border-radius: 0 7px 0 8px;
    background: #E8F3FF;
    color: var(--cs-blue);
    font-size: 12px;
    line-height: 1.4;
}

.cashier-version-card.is-hot .cashier-version-badge {
    background: #FFF1E8;
    color: #FA541C;
}

.cashier-version-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--cs-ink);
}

.cashier-version-price {
    font-size: 20px;
    font-weight: 700;
    color: #FA541C;
    line-height: 1.2;
}

.cashier-version-unit {
    font-size: 12px;
    color: var(--cs-muted);
}

.cashier-version-check {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--cs-blue);
    color: #fff;
    font-size: 11px;
    display: none;
    align-items: center;
    justify-content: center;
}

.cashier-version-card.is-hot .cashier-version-check {
    background: #FA541C;
}

.cashier-version-card.is-active .cashier-version-check {
    display: flex;
}

.cashier-pkg-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.cashier-pkg-card.is-filtered,
.cashier-amount-row[hidden],
.cashier-section[hidden] {
    display: none !important;
}

.cashier-pkg-card {
    position: relative;
    text-align: left;
    background: #fff;
    border: 1.5px solid #E2E8F0;
    border-radius: 8px;
    padding: 16px 14px 14px;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
    min-height: 132px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cashier-pkg-card:hover {
    border-color: #91C0FF;
}

.cashier-pkg-card.is-active {
    border-color: var(--cs-blue);
    background: #F5F9FF;
    box-shadow: 0 0 0 1px rgba(22, 119, 255, .18);
}

.cashier-pkg-badge {
    position: absolute;
    top: 0;
    right: 0;
    padding: 3px 8px;
    border-radius: 0 8px 0 8px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
}

.cashier-pkg-badge.badge-save {
    background: #22C55E;
}

.cashier-pkg-badge.badge-buyout {
    background: linear-gradient(135deg, #E6B422, #C9971A);
}

.cashier-pkg-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--cs-ink);
    padding-right: 48px;
    line-height: 1.4;
}

.cashier-pkg-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.cashier-pkg-price {
    font-size: 22px;
    font-weight: 800;
    color: var(--cs-orange);
    letter-spacing: -.02em;
}

.cashier-pkg-origin {
    font-size: 13px;
    color: #94A3B8;
    text-decoration: line-through;
}

.cashier-pkg-desc {
    font-size: 12px;
    color: var(--cs-muted);
}

.cashier-pkg-maint {
    font-size: 12px;
    color: #D97706;
    font-weight: 600;
}

.cashier-pkg-check {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 22px;
    height: 22px;
    border-radius: 8px 0 7px 0;
    background: var(--cs-blue);
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.cashier-pkg-card.is-active .cashier-pkg-check {
    display: inline-flex;
}

.cashier-buyout-tip {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #FFFBE6;
    border: 1px solid #FFE58F;
    color: #8B6914;
    font-size: 12px;
    line-height: 1.7;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.cashier-buyout-tip i {
    color: #FAAD14;
    margin-top: 2px;
    flex-shrink: 0;
}

.cashier-pay-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.cashier-pay-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 16px 18px;
    border: 1.5px solid #E2E8F0;
    border-radius: 8px;
    cursor: pointer;
    background: #fff;
    transition: border-color .15s ease, background .15s ease;
}

.cashier-pay-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.cashier-pay-card:hover {
    border-color: #91C0FF;
}

.cashier-pay-card.is-active {
    border-color: var(--cs-blue);
    background: #F5F9FF;
    box-shadow: 0 0 0 1px rgba(22, 119, 255, .15);
}

.cashier-pay-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cashier-pay-icon.wechat {
    background: #E8F8EF;
}

.cashier-pay-icon.alipay {
    background: #E8F1FF;
}

.cashier-pay-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--cs-ink);
}

.cashier-pay-check {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 22px;
    height: 22px;
    border-radius: 8px 0 7px 0;
    background: var(--cs-blue);
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.cashier-pay-card.is-active .cashier-pay-check {
    display: inline-flex;
}

.cashier-side {
    position: sticky;
    top: 16px;
}

.cashier-summary {
    background: var(--cs-bg);
    border: 1px solid var(--cs-line);
    border-radius: 8px;
    padding: 20px 20px 18px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, .05);
}

.cashier-summary-title {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 700;
    color: var(--cs-ink);
}

.cashier-summary-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cashier-summary-list li {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 8px 0;
    font-size: 13px;
    color: var(--cs-muted);
}

.cashier-summary-list strong {
    color: var(--cs-ink);
    font-weight: 600;
    text-align: right;
    word-break: break-all;
}

.cashier-summary-divider {
    height: 1px;
    background: var(--cs-line);
    margin: 10px 0 12px;
}

.cashier-amount-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--cs-muted);
    margin-bottom: 8px;
}

.cashier-pay-amount {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 16px;
}

.cashier-pay-amount span {
    font-size: 14px;
    color: var(--cs-ink);
    font-weight: 600;
}

.cashier-pay-amount strong {
    font-size: 24px;
    color: var(--cs-orange);
    font-weight: 800;
    letter-spacing: -.02em;
}

.cashier-agree {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 14px;
    font-size: 12px;
    color: var(--cs-muted);
    line-height: 1.5;
    cursor: pointer;
}

.cashier-agree input {
    margin-top: 2px;
    width: auto;
    flex-shrink: 0;
}

.cashier-agree a {
    color: var(--cs-blue);
    text-decoration: none;
}

.cashier-agree a:hover {
    text-decoration: underline;
}

.account-workspace .cashier-submit,
.cashier-submit {
    width: 100% !important;
    max-width: none !important;
    height: 44px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    background: linear-gradient(135deg, var(--cs-orange) 0%, var(--cs-orange-2) 100%);
    box-shadow: 0 8px 18px rgba(255, 87, 34, .28);
    transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}

.cashier-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(255, 87, 34, .34);
}

.cashier-submit:disabled {
    opacity: .65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.cashier-safe-tip {
    margin: 12px 0 0;
    font-size: 12px;
    color: #94A3B8;
    text-align: center;
    line-height: 1.5;
}

/* 扫码弹窗 */
.cashier-modal[hidden] {
    display: none !important;
}

.cashier-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cashier-modal-mask {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .45);
}

.cashier-modal-panel {
    position: relative;
    width: 100%;
    max-width: 400px;
    background: #fff;
    border-radius: 12px;
    padding: 28px 24px 22px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, .22);
    text-align: center;
}

.cashier-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    font-size: 24px;
    color: #94A3B8;
    cursor: pointer;
    line-height: 1;
}

.cashier-modal-title {
    margin: 0 0 8px;
    font-size: 18px;
    color: var(--cs-ink);
}

.cashier-modal-order,
.cashier-modal-amount,
.cashier-modal-timer,
.cashier-modal-status,
.cashier-modal-qr-tip {
    margin: 0 0 8px;
    font-size: 13px;
    color: var(--cs-muted);
}

.cashier-modal-amount strong {
    font-size: 22px;
    color: var(--cs-orange);
    font-weight: 800;
}

.cashier-modal-qr-wrap {
    margin: 14px 0 10px;
}

.cashier-modal-qr {
    width: 200px;
    height: 200px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.cashier-modal-qr img,
.cashier-modal-qr canvas {
    display: block;
    max-width: 100%;
}

.cashier-modal-alipay {
    margin: 16px 0;
    padding: 18px 12px;
    background: #F5F9FF;
    border-radius: 8px;
}

.cashier-alipay-link {
    display: inline-block;
    margin-top: 8px;
    color: var(--cs-blue);
    font-weight: 600;
    text-decoration: none;
}

.cashier-modal-timer strong {
    color: var(--cs-blue);
}

.cashier-modal-done {
    margin-top: 8px;
    width: 100%;
    height: 40px;
    border-radius: 8px;
    border: 1px solid #D6E6FF;
    background: #F5F9FF;
    color: var(--cs-blue);
    font-weight: 600;
    cursor: pointer;
}

@media (max-width: 980px) {
    .cashier-layout {
        grid-template-columns: 1fr;
    }
    .cashier-side {
        position: static;
    }
    .cashier-version-grid,
    .cashier-pkg-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .cashier-soft-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    .cashier-pay-grid {
        grid-template-columns: 1fr;
    }
    .cashier-main {
        padding: 16px;
    }
}

/* ========== 定制开发报价 ========== */
.custom-page {
    --custom-blue: #1677FF;
    --custom-orange: #FF6A00;
}

.custom-flash {
    margin: 0 0 16px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
}
.custom-flash.is-ok {
    background: #F0F7FF;
    color: #1677FF;
}
.custom-flash.is-err {
    background: #FFF2F0;
    color: #CF1322;
}

.custom-flow {
    display: flex;
    align-items: stretch;
    gap: 8px;
    padding: 16px 18px;
    margin-bottom: 20px;
    background: #F0F7FF;
    border-radius: 12px;
    overflow-x: auto;
}
.custom-flow-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 140px;
    flex: 1;
}
.custom-flow-num {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #1677FF;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.custom-flow-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.custom-flow-text strong {
    font-size: 13px;
    color: #1E293B;
    font-weight: 600;
}
.custom-flow-text span {
    font-size: 12px;
    color: #64748B;
    line-height: 1.4;
}
.custom-flow-arrow {
    flex: 0 0 auto;
    align-self: center;
    color: #91BFFF;
    font-size: 18px;
    margin: 0 2px;
}

.custom-block {
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 20px 22px;
    margin-bottom: 20px;
    background: #fff;
}
.custom-block-head {
    margin-bottom: 16px;
}
.custom-block-head h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1E293B;
}
.custom-block-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.custom-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.custom-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}
.custom-field-full {
    grid-column: 1 / -1;
}
.custom-field label {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}
.custom-field input,
.custom-field select,
.custom-field textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    color: #1E293B;
    background: #fff;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.custom-field input:focus,
.custom-field select:focus,
.custom-field textarea:focus {
    border-color: #1677FF;
    box-shadow: 0 0 0 3px rgba(22, 119, 255, .12);
}
.custom-field textarea {
    min-height: 110px;
    resize: vertical;
    line-height: 1.6;
}

.custom-budget-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.custom-budget-pill {
    border: 1px solid #E5E7EB;
    background: #F8FAFC;
    color: #475569;
    border-radius: 999px;
    height: 32px;
    padding: 0 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all .15s ease;
}
.custom-budget-pill:hover {
    border-color: #91BFFF;
    color: #1677FF;
}
.custom-budget-pill.is-active {
    border-color: #1677FF;
    background: #F0F7FF;
    color: #1677FF;
    font-weight: 600;
}

.custom-form-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 20px;
}
.custom-submit-btn {
    height: 40px;
    padding: 0 28px;
    border: 0;
    border-radius: 8px;
    background: #FF6A00;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 106, 0, .25);
}
.custom-submit-btn:hover {
    background: #E85F00;
}
.custom-submit-btn:disabled {
    opacity: .65;
    cursor: not-allowed;
}
.custom-submit-tip {
    margin: 0;
    font-size: 12px;
    color: #94A3B8;
    line-height: 1.5;
}
.custom-form-msg {
    margin: 12px 0 0;
    font-size: 13px;
}
.custom-form-msg.is-ok { color: #1677FF; }
.custom-form-msg.is-err { color: #CF1322; }

.custom-fb .fb-custom { margin-top: 0; }
.custom-fb .fb-type { cursor: default; }
.custom-fb .fb-foot {
    border-top: 0;
    padding: 16px 0 0;
    justify-content: flex-start;
}
.custom-fb .fb-submit {
    flex: 0 0 auto;
    min-width: 148px;
    padding: 0 28px;
}
.custom-fb .fb-done { padding: 8px 0 4px; }

.custom-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.custom-filter-pill {
    height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid #E5E7EB;
    background: #fff;
    color: #64748B;
    font-size: 12px;
    cursor: pointer;
}
.custom-filter-pill.is-active {
    border-color: #1677FF;
    background: #F0F7FF;
    color: #1677FF;
    font-weight: 600;
}

.custom-lead-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.custom-lead-card {
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 16px 18px;
    background: #fff;
}
.custom-lead-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.custom-lead-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.custom-lead-meta strong {
    font-size: 14px;
    color: #1E293B;
}
.custom-lead-time {
    font-size: 12px;
    color: #94A3B8;
}
.custom-lead-badge {
    flex: 0 0 auto;
    height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    background: #F1F5F9;
    color: #64748B;
}
.custom-lead-badge.status-pending { background: #F1F5F9; color: #64748B; }
.custom-lead-badge.status-communicating { background: #F0F7FF; color: #1677FF; }
.custom-lead-badge.status-quoted { background: #FFF4EB; color: #FF6A00; }
.custom-lead-badge.status-paid { background: #F0FDF4; color: #16A34A; }
.custom-lead-badge.status-closed { background: #F8FAFC; color: #94A3B8; }

.custom-lead-budget {
    margin: 0 0 8px;
    font-size: 13px;
    color: #334155;
}
.custom-lead-budget span {
    display: inline-block;
    margin-right: 8px;
    color: #94A3B8;
}
.custom-lead-req {
    font-size: 13px;
    color: #475569;
    line-height: 1.7;
}
.custom-lead-req p { margin: 0; white-space: pre-wrap; word-break: break-word; }
.custom-lead-req.is-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.custom-lead-req.is-open {
    display: block;
}
.custom-req-toggle {
    margin-top: 6px;
    border: 0;
    background: transparent;
    color: #1677FF;
    font-size: 12px;
    cursor: pointer;
    padding: 0;
}

.custom-quote-box {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 10px;
    background: #FFF9F5;
    border: 1px solid #FFE4CC;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}
.custom-quote-label {
    display: block;
    font-size: 12px;
    color: #B45309;
    margin-bottom: 6px;
    font-weight: 600;
}
.custom-quote-remark {
    margin: 0;
    font-size: 13px;
    color: #78350F;
    line-height: 1.6;
    white-space: pre-wrap;
}
.custom-quote-amount {
    flex: 0 0 auto;
    font-size: 22px;
    font-weight: 800;
    color: #FF6A00;
    line-height: 1.2;
}

.custom-lead-actions {
    margin-top: 14px;
    display: flex;
    justify-content: flex-end;
}
.custom-pay-btn {
    height: 40px;
    padding: 0 22px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(135deg, #FF8A3D 0%, #FF6A00 100%);
    box-shadow: 0 4px 12px rgba(255, 106, 0, .28);
}
.custom-pay-btn:hover {
    filter: brightness(.97);
}

.custom-empty {
    text-align: center;
    padding: 40px 16px;
    color: #94A3B8;
}
.custom-empty i {
    font-size: 36px;
    margin-bottom: 12px;
    display: block;
    color: #CBD5E1;
}
.custom-empty p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
}

@media (max-width: 860px) {
    .custom-form-grid {
        grid-template-columns: 1fr;
    }
    .custom-flow-arrow {
        display: none;
    }
    .custom-flow {
        flex-wrap: wrap;
    }
    .custom-flow-item {
        min-width: calc(50% - 8px);
    }
    .custom-quote-box {
        flex-direction: column;
    }
}

/* —— 开发票申请 —— */
.invoice-page {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.invoice-banner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 10px;
    background: #E8F3FF;
    border: 1px solid #B7D7FF;
    color: #0F3D7A;
    font-size: 14px;
    line-height: 1.6;
}

.invoice-banner i {
    color: #1677FF;
    margin-top: 2px;
    flex-shrink: 0;
}

.invoice-banner p { margin: 0; }

.invoice-toast {
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 1600;
    max-width: min(420px, calc(100vw - 32px));
    padding: 14px 22px;
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    line-height: 1.5;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -46%);
    transition: opacity .2s ease, transform .2s ease;
    backdrop-filter: blur(8px);
}
.invoice-toast.is-success {
    background: rgba(22, 163, 74, .62);
    border: 1px solid rgba(255, 255, 255, .35);
    box-shadow: 0 10px 28px rgba(22, 163, 74, .18);
}
.invoice-toast.is-error {
    background: rgba(220, 38, 38, .62);
    border: 1px solid rgba(255, 255, 255, .35);
    box-shadow: 0 10px 28px rgba(220, 38, 38, .18);
}
.invoice-toast.show {
    opacity: 1;
    transform: translate(-50%, -50%);
}

.invoice-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .04);
    overflow: hidden;
}

.invoice-tabs {
    display: flex;
    gap: 4px;
    padding: 12px 16px 0;
    border-bottom: 1px solid #E2E8F0;
    background: #F8FAFC;
}

.invoice-tab {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 10px 16px 12px;
    font-size: 14px;
    font-weight: 600;
    color: #64748B;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.invoice-tab.is-active {
    color: #1677FF;
    border-bottom-color: #1677FF;
}

.invoice-pane {
    padding: 20px 24px 24px;
}

.invoice-step {
    margin-bottom: 28px;
}

.invoice-step-head {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.invoice-step-head h3 {
    margin: 0 0 4px;
    font-size: 16px;
    color: var(--ws-ink);
}

.invoice-step-head p {
    margin: 0;
    font-size: 13px;
    color: #64748B;
}

.step-index {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #1677FF;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.invoice-order-table,
.invoice-record-table {
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    overflow: hidden;
}

.invoice-order-head,
.invoice-order-row,
.invoice-record-head,
.invoice-record-row {
    display: grid;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
}

.invoice-order-head {
    grid-template-columns: 36px minmax(120px, 1.2fr) minmax(140px, 1.6fr) 100px 130px 100px;
    background: #F8FAFC;
    font-size: 12px;
    font-weight: 600;
    color: #64748B;
}

.invoice-order-row {
    grid-template-columns: 36px minmax(120px, 1.2fr) minmax(140px, 1.6fr) 100px 130px 100px;
    border-top: 1px solid #F1F5F9;
    font-size: 13px;
    color: #1E293B;
    cursor: pointer;
}

.invoice-order-row:hover { background: #F5F9FF; }

.invoice-record-head {
    grid-template-columns: 1.2fr 1fr 1.2fr 100px 110px 150px;
    background: #F8FAFC;
    font-size: 12px;
    font-weight: 600;
    color: #64748B;
}

.invoice-record-row {
    grid-template-columns: 1.2fr 1fr 1.2fr 100px 110px 150px;
    border-top: 1px solid #F1F5F9;
    font-size: 13px;
    color: #1E293B;
}

.invoice-record-row:hover { background: #F5F9FF; }

.inv-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.align-right { text-align: right; }
.amount { font-weight: 700; color: #0F172A; }

.invoice-empty {
    padding: 36px 16px;
    text-align: center;
    color: #94A3B8;
    font-size: 14px;
}

.invoice-summary {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #FFF7ED;
    color: #9A3412;
    font-size: 14px;
}

.invoice-summary em,
.invoice-summary strong {
    font-style: normal;
    color: #FF6A00;
    font-weight: 700;
}

.invoice-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 16px;
}

.invoice-form-grid .field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
}

.invoice-form-grid .field.full,
.invoice-form-grid .special-fields {
    grid-column: 1 / -1;
}

.special-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 16px;
}

.special-fields[hidden] {
    display: none !important;
}

.invoice-form-grid .label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.invoice-form-grid input[type="text"],
.invoice-form-grid input[type="email"],
.invoice-form-grid input:not([type]),
.invoice-form-grid input[type="tel"] {
    height: 40px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 14px;
    color: #0F172A;
    outline: none;
}

.invoice-form-grid input:focus {
    border-color: #1677FF;
    box-shadow: 0 0 0 3px rgba(22, 119, 255, .12);
}

.radio-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 14px;
    color: #334155;
}

.radio-row label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-weight: 500;
}

.invoice-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 8px;
}

.btn-invoice-submit {
    appearance: none;
    border: 0;
    min-width: 180px;
    height: 44px;
    padding: 0 28px;
    border-radius: 10px;
    background: linear-gradient(135deg, #FF6A00 0%, #FF8A3D 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(255, 106, 0, .28);
}

.btn-invoice-submit:hover:not(:disabled) {
    filter: brightness(1.03);
}

.btn-invoice-submit:disabled {
    opacity: .45;
    cursor: not-allowed;
    box-shadow: none;
}

.invoice-tip {
    margin: 0;
    font-size: 12px;
    color: #94A3B8;
}

.inv-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.inv-badge.is-pending {
    background: #FFF7ED;
    color: #EA580C;
}

.inv-badge.is-issued {
    background: #ECFDF5;
    color: #059669;
}

.inv-badge.is-rejected {
    background: #FEF2F2;
    color: #DC2626;
    cursor: help;
}

.btn-inv-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    padding: 0 12px;
    border-radius: 6px;
    background: #1677FF;
    color: #fff !important;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.btn-inv-download:hover {
    background: #0958D9;
}

.inv-muted { color: #94A3B8; }

@media (max-width: 900px) {
    .invoice-pane { padding: 16px; }
    .invoice-order-head,
    .invoice-record-head { display: none; }
    .invoice-order-row,
    .invoice-record-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    .invoice-order-row .inv-check { justify-content: flex-start; }
    .invoice-order-row span[data-label]::before,
    .invoice-record-row span[data-label]::before {
        content: attr(data-label) '：';
        color: #94A3B8;
        font-size: 12px;
        margin-right: 4px;
    }
    .align-right { text-align: left; }
    .invoice-form-grid,
    .special-fields {
        grid-template-columns: 1fr;
    }
}

/* 我的应用：授权 → 提审 → 发布 */
.ws-flow-page { margin-bottom: 8px; }

.ws-flow-headbar {
    background: #fff;
    border-radius: 12px;
    padding: 20px 24px 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .04);
    margin-bottom: 20px;
}

.ws-flow-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.ws-flow-title-main {
    display: flex;
    align-items: baseline;
    gap: 12px;
    min-width: 0;
}

.ws-flow-search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 260px;
    max-width: 100%;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #999;
}

.ws-flow-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    font-size: 13px;
    color: #333;
}

.ws-flow-status {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 0 16px;
}

.ws-flow-status button {
    border: 0;
    border-radius: 14px;
    padding: 4px 12px;
    background: #f5f5f5;
    color: #666;
    font-size: 13px;
    cursor: pointer;
}

.ws-flow-status button em {
    font-style: normal;
    margin-left: 4px;
}

.ws-flow-status button.on {
    background: #e6f7ff;
    color: #1890ff;
    font-weight: 600;
}

.ws-flow-none {
    margin: 28px 0;
    text-align: center;
    color: #999;
    font-size: 14px;
}

.ws-flow-title {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: #333;
}

.ws-flow-count {
    font-size: 14px;
    color: #999;
}

.ws-flow-tabs {
    display: flex;
    gap: 28px;
    overflow-x: auto;
}

.ws-flow-tab {
    position: relative;
    padding: 0 0 14px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
}

.ws-flow-tab em {
    font-style: normal;
    margin-left: 4px;
    color: #999;
    font-size: 12px;
}

.ws-flow-tab.on {
    color: #1890ff;
    font-weight: 600;
}

.ws-flow-tab.on em { color: #1890ff; }

.ws-flow-tab.on::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: #1890ff;
}

.ws-flow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(460px, 1fr));
    gap: 20px;
}

.ws-flow-card {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
    transition: box-shadow .25s ease, transform .25s ease;
}

.ws-flow-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, .1);
    transform: translateY(-2px);
}

.ws-flow-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    line-height: 20px;
}

.ws-flow-badge.is-pending { background: #fff7e6; color: #fa8c16; }
.ws-flow-badge.is-review { background: #e6f7ff; color: #1890ff; }
.ws-flow-badge.is-online { background: #f6ffed; color: #52c41a; }
.ws-flow-badge.is-expire { background: #fff1f0; color: #ff4d4f; }

.ws-flow-card-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 72px 16px 0;
    text-decoration: none;
    color: inherit;
}

.ws-flow-card-head:hover .ws-flow-name { color: #1890ff; }

.ws-flow-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f5f7fa;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1890ff;
    font-size: 26px;
}

.ws-flow-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ws-flow-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ws-flow-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

.ws-flow-desc {
    font-size: 13px;
    color: #999;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ws-flow-body { margin-bottom: 16px; }

.ws-flow-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
}

.ws-flow-row span { color: #999; margin-right: 6px; }
.ws-flow-row strong { color: #666; font-weight: 500; }

.ws-flow-trial {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.ws-flow-trial-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 13px;
}

.ws-flow-trial-top span { color: #fa8c16; font-weight: 600; }
.ws-flow-trial-top a { color: #1890ff; text-decoration: none; }
.ws-flow-trial-top a:hover { opacity: .8; }

.ws-flow-bar {
    height: 4px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.ws-flow-bar i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #1890ff, #40a9ff);
    border-radius: 4px;
}

.ws-flow-extra,
.ws-flow-remove {
    margin-top: 8px;
    margin-right: 12px;
    padding: 0;
    border: 0;
    background: none;
    color: #999;
    font-size: 12px;
    cursor: pointer;
}

.ws-flow-extra { color: #d48806; }
.ws-flow-remove:hover,
.ws-flow-extra:hover { color: #1890ff; }

.ws-flow-foot {
    display: flex;
    gap: 12px;
}

.ws-flow-secondary,
.ws-flow-primary {
    flex: 1;
    height: 40px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
}

.ws-flow-secondary {
    background: #fff;
    border-color: #d9d9d9;
    color: #666;
}

.ws-flow-secondary:hover {
    border-color: #1890ff;
    color: #1890ff;
}

.ws-flow-primary { color: #fff; }
.ws-flow-primary.is-warn { background: #fa8c16; }
.ws-flow-primary.is-warn:hover { background: #ff9c2e; }
.ws-flow-primary.is-info { background: #1890ff; }
.ws-flow-primary.is-info:hover { background: #40a9ff; }
.ws-flow-primary.is-ok { background: #52c41a; }
.ws-flow-primary.is-ok:hover { background: #73d13d; }
.ws-flow-primary.is-danger { background: #ff4d4f; }
.ws-flow-primary.is-danger:hover { background: #ff7875; }

.flow-lead {
    margin: 0 0 16px;
    font-size: 13px;
    line-height: 1.6;
    color: #6b7280;
}

.account-workspace .btn.is-disabled {
    opacity: .6;
    cursor: not-allowed;
    pointer-events: none;
}

.ws-app-card { z-index: 0; }
.ws-app-card.is-menu-open { z-index: 5; }
.ws-app-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.ws-app-ident {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}
.ws-app-ident:hover .ws-flow-name { color: #1890ff; }
.ws-app-side {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.ws-app-badge {
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    line-height: 20px;
    white-space: nowrap;
}
.ws-app-badge.is-muted { background: #f5f5f5; color: #8c8c8c; }
.ws-app-badge.is-pending { background: #fff7e6; color: #fa8c16; }
.ws-app-badge.is-review { background: #e6f7ff; color: #1890ff; }
.ws-app-badge.is-online { background: #f6ffed; color: #52c41a; }
.ws-app-badge.is-bad,
.ws-app-badge.is-expire { background: #fff1f0; color: #ff4d4f; }
.ws-app-card[hidden] { display: none !important; }
.ws-app-id,
.ws-app-time {
    font-size: 12px;
    color: #999;
    line-height: 1.4;
}
.ws-app-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.ws-app-chips em {
    font-style: normal;
    font-size: 12px;
    line-height: 20px;
    padding: 0 8px;
    border-radius: 4px;
    background: #f5f5f5;
    color: #666;
}
.ws-app-chips .is-ok { background: #f6ffed; color: #389e0d; }
.ws-app-chips .is-trial { background: #f9f0ff; color: #722ed1; }
.ws-app-chips .is-wait { background: #fff7e6; color: #d48806; }
.ws-app-tip {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 12px 0 0;
    padding: 8px 10px;
    border-radius: 8px;
    background: #fffbe6;
    color: #d48806;
    font-size: 12px;
    line-height: 1.5;
}
.ws-app-tip i { margin-top: 2px; }
.ws-app-routes {
    margin: 12px 0 0;
    padding: 12px 14px;
    border: 1px solid #91caff;
    border-radius: 10px;
    background: #f0f7ff;
}
.ws-app-routes-title {
    margin: 0 0 8px;
    color: #0958d9;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}
.ws-app-routes ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.ws-app-routes li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #434343;
    font-size: 13px;
    line-height: 1.6;
}
.ws-app-routes li + li { margin-top: 6px; }
.ws-app-routes li::before {
    content: '';
    flex: 0 0 6px;
    width: 6px;
    height: 6px;
    margin-top: 7px;
    border-radius: 50%;
    background: #1677ff;
}
.ws-app-routes strong {
    flex: 0 0 auto;
    color: #0958d9;
    font-weight: 600;
}
.ws-app-routes strong::after { content: '：'; }
.ws-app-routes em {
    font-style: normal;
    font-weight: 600;
    color: #d46b08;
}
.ws-app-routes .is-skip {
    color: #389e0d;
    font-weight: 600;
    white-space: nowrap;
}
.ws-app-more { position: relative; }
.ws-app-more-btn {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #8c8c8c;
    font-size: 18px;
    line-height: 1;
    letter-spacing: 1px;
    cursor: pointer;
}
.ws-app-more-btn:hover { background: #f5f5f5; color: #333; }
.ws-app-menu {
    position: absolute;
    top: 32px;
    right: 0;
    min-width: 128px;
    padding: 6px 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}
.ws-app-menu a,
.ws-app-menu button {
    display: block;
    width: 100%;
    padding: 8px 14px;
    border: 0;
    background: none;
    text-align: left;
    color: #333;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
}
.ws-app-menu a:hover,
.ws-app-menu button:hover { background: #f5f7fa; }
.ws-app-menu button:disabled { color: #d9d9d9; cursor: not-allowed; }
.ws-app-menu button:disabled:hover { background: none; }
.ws-app-body { margin-top: 18px; }
.ws-app-steps {
    display: flex;
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
}
.ws-app-steps li {
    position: relative;
    flex: 1;
    text-align: center;
    color: #bbb;
    font-size: 12px;
    line-height: 1.3;
}
.ws-app-steps li::before {
    content: '';
    position: absolute;
    top: 11px;
    left: -50%;
    right: 50%;
    height: 1px;
    background: #e8e8e8;
}
.ws-app-steps li:first-child::before { display: none; }
.ws-app-steps i {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-bottom: 6px;
    border-radius: 50%;
    background: #f5f5f5;
    color: #999;
    font-style: normal;
    font-size: 12px;
}
.ws-app-steps span { display: block; }
.ws-app-steps .is-done { color: #52c41a; }
.ws-app-steps .is-done i { background: #f6ffed; color: #52c41a; font-size: 0; }
.ws-app-steps .is-done i::after {
    content: '\f00c';
    font-family: FontAwesome;
    font-size: 12px;
}
.ws-app-steps .is-done::before { background: #b7eb8f; }
.ws-app-steps .is-current { color: #1890ff; font-weight: 600; }
.ws-app-steps .is-current i { background: #1890ff; color: #fff; }
.ws-app-valid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 13px;
}
.ws-app-valid .ws-app-dot { color: #d9d9d9; }
.ws-app-valid a,
.ws-app-valid button.js-maint-pay {
    border: 0;
    padding: 0;
    background: none;
    color: #1890ff;
    font: inherit;
    cursor: pointer;
    text-decoration: none;
}
.ws-app-trial {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 8px;
    border-radius: 11px;
    background: #fff7e6;
    color: #fa8c16;
    font-style: normal;
    font-size: 12px;
    font-weight: 600;
}
.ws-app-foot {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
}
.ws-app-enter,
.ws-app-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}
.ws-app-enter {
    border: 1px solid #1890ff;
    background: #fff;
    color: #1890ff;
}
.ws-app-enter:hover { color: #40a9ff; border-color: #40a9ff; }
.ws-app-enter.is-off {
    border-color: #d9d9d9;
    color: #bfbfbf;
    cursor: not-allowed;
}
.ws-app-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ws-app-primary {
    border: 0;
    background: #1890ff;
    color: #fff;
    cursor: pointer;
}
.ws-app-primary:hover { background: #40a9ff; color: #fff; }
.ws-app-primary.is-hot { background: #fa8c16; }
.ws-app-primary.is-hot:hover { background: #ffa940; }
.ws-app-primary.is-line {
    background: #fff;
    color: #1890ff;
    border: 1px solid #1890ff;
}
.ws-app-primary.is-line:hover { color: #40a9ff; border-color: #40a9ff; background: #fff; }
.ws-app-primary.is-off {
    background: #f5f5f5;
    color: #bfbfbf;
    cursor: not-allowed;
}
.ws-app-text {
    border: 0;
    background: none;
    color: #1890ff;
    font-size: 13px;
    cursor: pointer;
    padding: 0;
}
.ws-app-text:hover { color: #40a9ff; }
.ws-app-preview {
    height: 36px;
    padding: 0 14px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    background: #fff;
    color: #666;
    font-size: 14px;
    cursor: pointer;
}
.ws-app-preview:hover { border-color: #1890ff; color: #1890ff; }
.ws-app-preview:disabled { opacity: .6; cursor: not-allowed; }

@media (min-width: 1440px) {
    .ws-flow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
    .ws-flow-grid { grid-template-columns: 1fr; }
    .ws-flow-foot { flex-direction: column; }
    .ws-app-head { flex-wrap: wrap; }
    .ws-app-foot { flex-wrap: wrap; }
    .ws-app-actions { margin-left: 0; }
}

/* 应用详情右侧 */
.ad-page { display: flex; flex-direction: column; gap: 16px; }

.ad-crumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.ad-crumb a { color: #666; text-decoration: none; }
.ad-crumb a:hover { color: #1890ff; }
.ad-crumb span { color: #333; font-weight: 500; }
.ad-crumb i { color: #bbb; font-size: 12px; }

.ad-header,
.ad-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .04);
}

.ad-header-main { display: flex; gap: 16px; align-items: center; }
.ad-header-info { flex: 1; min-width: 0; }

.ad-header-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: #f5f7fa;
    overflow: hidden;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1890ff;
    font-size: 28px;
}

.ad-header-icon img { width: 100%; height: 100%; object-fit: cover; }

.ad-title-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ad-title-row h2 { margin: 0; font-size: 20px; font-weight: 600; color: #333; }

.ad-version {
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}
.ad-version.is-trial { background: #e6f7ff; color: #1890ff; }
.ad-version.is-paid { background: #f6ffed; color: #52c41a; }
.ad-upgrade {
    display: inline-flex;
    align-items: center;
    color: #1890ff;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
}
.ad-upgrade:hover { color: #40a9ff; text-decoration: underline; }

.ad-header-action {
    flex-shrink: 0;
    margin-left: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}
.ad-workbench {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 22px;
    border-radius: 8px;
    background: #1890ff;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(24, 144, 255, .28);
}
.ad-workbench i { font-size: 14px; }
.ad-workbench:hover { background: #40a9ff; color: #fff; }
.ad-workbench.is-off {
    background: #d9d9d9;
    box-shadow: none;
    cursor: not-allowed;
}
.ad-header-action p {
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
    color: #999;
    white-space: nowrap;
}

.ad-desc { margin: 8px 0 0; font-size: 14px; color: #999; }

.ad-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    margin-top: 14px;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}
.ad-meta em { font-style: normal; color: #999; font-weight: 400; margin-right: 6px; }
.ad-meta i { font-style: normal; color: #d9d9d9; font-weight: 400; }

.ad-card h3 {
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.ad-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}
.ad-card-head h3 { margin: 0; padding: 0; border: 0; }

.ad-auth { display: flex; flex-direction: column; gap: 14px; }
.ad-auth-line { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #666; }
.ad-auth-line strong { color: #333; font-weight: 500; }

.ad-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 12px;
    font-style: normal;
    font-size: 12px;
    font-weight: 500;
}
.ad-tag.is-wait { background: #fff7e6; color: #fa8c16; }
.ad-tag.is-ok { background: #f6ffed; color: #52c41a; }
.ad-tag.is-info { background: #e6f7ff; color: #1890ff; }
.ad-tag.is-bad { background: #fff1f0; color: #ff4d4f; }
.ad-tag.is-muted { background: #f5f5f5; color: #999; }

.ad-tip {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    padding: 12px 14px;
    background: #f0f9ff;
    border-radius: 8px;
    color: #1890ff;
    font-size: 14px;
    line-height: 1.5;
}

.ad-auth-actions { display: flex; align-items: center; gap: 16px; }

.ad-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
}
.ad-btn-blue { background: #1890ff; color: #fff; }
.ad-btn-blue:hover { background: #40a9ff; color: #fff; }
.ad-btn-line { background: #fff; color: #1890ff; border-color: #1890ff; }
.ad-btn-block { width: 100%; height: 40px; }
.ad-btn.is-off { background: #d9d9d9; cursor: not-allowed; }

.ad-text-btn {
    border: 0;
    background: none;
    color: #ff4d4f;
    font-size: 13px;
    cursor: pointer;
    padding: 0;
}

.ad-submit {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.ad-submit label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: #666;
    min-width: 140px;
}
.ad-submit label.grow { flex: 1; min-width: 220px; }
.ad-submit input {
    height: 36px;
    padding: 0 10px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    font-size: 14px;
}
.ad-submit button {
    height: 36px;
    padding: 0 16px;
    border: 0;
    border-radius: 8px;
    background: #1890ff;
    color: #fff;
    cursor: pointer;
}
.ad-submit button:disabled {
    background: #d9d9d9;
    color: #fff;
    cursor: not-allowed;
}
.ad-submit input:disabled {
    background: #f5f5f5;
    color: #bfbfbf;
    cursor: not-allowed;
}
.ad-submit-upgrade {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 16px;
    border: 1px solid #1890ff;
    border-radius: 8px;
    background: #fff;
    color: #1890ff;
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}
.ad-submit-upgrade:hover {
    background: #e6f7ff;
    color: #1890ff;
}

.ad-table-wrap { overflow-x: auto; }
.ad-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ad-table th {
    text-align: left;
    font-weight: 500;
    color: #666;
    background: #fafafa;
    padding: 12px 10px;
    white-space: nowrap;
}
.ad-table td { padding: 12px 10px; color: #333; border-bottom: 1px solid #f5f5f5; vertical-align: middle; }
.ad-ops { white-space: nowrap; }
.ad-ops button,
.ad-ops a {
    border: 0;
    background: none;
    color: #1890ff;
    font-size: 13px;
    cursor: pointer;
    padding: 0;
    margin-right: 10px;
    text-decoration: none;
}

.ad-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 48px 0 28px;
    color: #999;
}
.ad-empty i { font-size: 42px; color: #d9d9d9; }
.ad-empty strong { font-size: 14px; font-weight: 500; }
.ad-empty span { font-size: 12px; color: #d9d9d9; }

.ad-limit {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 8px 0 0;
    padding: 12px 14px;
    background: #fffbf0;
    border-radius: 8px;
    color: #faad14;
    font-size: 14px;
    line-height: 1.5;
}

.ad-compare { display: flex; gap: 16px; }
.ad-plan {
    flex: 1;
    border: 1px solid #e8eaed;
    border-radius: 12px;
    overflow: hidden;
}
.ad-plan.is-highlight { border: 2px solid #1890ff; }
.ad-plan header { padding: 16px; text-align: center; background: #fafafa; }
.ad-plan.is-highlight header { background: #e6f7ff; }
.ad-plan header strong { display: block; font-size: 16px; color: #333; margin-bottom: 6px; }
.ad-plan header span { font-size: 14px; color: #666; }
.ad-plan.is-highlight header span { color: #1890ff; font-weight: 500; }
.ad-plan ul { list-style: none; margin: 0; padding: 16px 18px 8px; }
.ad-plan li { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 14px; font-size: 14px; color: #333; line-height: 1.5; }
.ad-plan li.no { color: #999; }
.ad-plan li .fa-check { color: #52c41a; margin-top: 3px; }
.ad-plan li .fa-times { color: #ff4d4f; margin-top: 3px; }
.ad-plan .ad-btn { margin: 0 16px 16px; width: calc(100% - 32px); }

.ad-footer { display: flex; justify-content: center; padding: 8px 0 16px; }
.ad-enter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    height: 44px;
    padding: 0 36px;
    border-radius: 8px;
    background: #52c41a;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
}
.ad-enter:hover { background: #73d13d; color: #fff; }
.ad-enter.is-off { background: #d9d9d9; }

.ad-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}
.ad-preview img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    background: #fafafa;
    border-radius: 8px;
}
.ad-preview span { font-size: 13px; color: #666; }
.mp-card .ad-preview[hidden] { display: none !important; }
.mp-card .ad-auth > .ad-preview.mp-qr-block {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 12px;
    margin-top: 8px;
    text-align: center;
}
.mp-card .ad-auth > .ad-preview.mp-qr-block #trial-face-qr {
    display: flex;
    justify-content: center;
}
.mp-card .ad-auth > .ad-preview.mp-qr-block > span {
    display: block;
    max-width: 280px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.5;
}
#preview-img { width: 200px; height: 200px; object-fit: contain; }

.trial-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}
.trial-form label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    color: #666;
}
.trial-form input {
    height: 36px;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    padding: 0 10px;
}
.trial-form button {
    height: 36px;
    border: 0;
    border-radius: 8px;
    background: #1677ff;
    color: #fff;
    cursor: pointer;
}
.cashier-modal .trial-form { margin-top: 0; }
.trial-form[hidden] { display: none !important; }
#trial-auth-qr img, #trial-face-qr img, #trial-qr img { width: 180px; height: 180px; }

.mp-card {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}
.mp-card .mp-btn { border-radius: 8px; }
.mp-card > h3 {
    margin-bottom: 12px;
    padding-bottom: 0;
    border-bottom: 0;
    color: #262626;
}
.mp-card .ad-auth {
    gap: 12px;
    padding: 16px;
    background: #fafafa;
    border-radius: 12px;
}
.mp-card .ad-auth.mp-bound {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    align-items: center;
    gap: 12px 24px;
    padding: 12px 16px;
}
.mp-card .ad-auth.mp-bound:not(.has-qr) {
    grid-template-columns: minmax(0, 1fr);
}
.mp-bound-main {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}
.mp-bound-side {
    min-width: 0;
    display: flex;
    align-items: center;
}
.mp-card .mp-bound-main .mp-actions {
    margin: 2px 0 0;
    flex-wrap: wrap;
    justify-content: flex-start;
}
.mp-note-mini {
    margin: 2px 0 0;
    font-size: 12px;
    line-height: 1.55;
    color: #8c8c8c;
}
.mp-card .mp-bound-side .ad-preview.mp-qr-block {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    gap: 12px;
    margin: 0;
    text-align: left;
}
.mp-card .mp-bound-side .ad-preview.mp-qr-block img,
.mp-card .mp-bound-side .ad-preview.mp-qr-block canvas,
.mp-card .mp-bound-side #trial-face-qr img,
.mp-card .mp-bound-side #trial-face-qr canvas {
    width: 112px;
    height: 112px;
    flex-shrink: 0;
    background: #fff;
}
.mp-card .mp-bound-side #trial-face-qr {
    display: flex;
    flex-shrink: 0;
}
.mp-card .mp-bound-side .ad-preview.mp-qr-block > span {
    display: block;
    flex: 1;
    max-width: none;
    margin: 0;
    text-align: left;
    font-size: 12px;
    line-height: 1.5;
    color: #8c8c8c;
}
.mp-card .ad-auth-line { color: #595959; }
.mp-card .ad-auth-line strong { color: #262626; }
.mp-card .ad-auth.mp-scan {
    background: transparent;
    padding: 0;
}
.mp-card .mp-scan .ad-auth-line { font-size: 14px; }
.mp-card .mp-scan .ad-auth-line strong { font-weight: 400; }
.mp-card .mp-scan-status {
    color: #1890ff;
    font-style: normal;
    font-size: 14px;
}
.mp-card .mp-scan-qr,
.mp-card .ad-preview.mp-scan {
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin-top: 8px;
}
.mp-card #auth-qr-box[hidden] { display: none !important; }
.mp-card .mp-scan-frame {
    width: 150px;
    height: 150px;
    padding: 10px;
    box-sizing: content-box;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .06);
    display: flex;
    align-items: center;
    justify-content: center;
}
.mp-card .mp-scan-frame #trial-auth-qr img,
.mp-card .mp-scan-frame #trial-auth-qr canvas,
.mp-card .mp-scan-frame #auth-qr img,
.mp-card .mp-scan-frame #auth-qr canvas {
    width: 150px;
    height: 150px;
}
.mp-card .mp-scan-qr > span,
.mp-card .ad-preview.mp-scan > span {
    display: block;
    max-width: 250px;
    margin-top: 12px;
    font-size: 12px;
    line-height: 1.5;
    color: #8c8c8c;
    text-align: center;
}
.mp-card .ad-tip {
    background: #fff;
    border: 1px solid #d6e4ff;
}
.mp-card .trial-form { max-width: 420px; }
.mp-card .trial-form input:not([type="checkbox"]) {
    height: 40px;
    padding: 0 12px;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    font-size: 14px;
    color: #262626;
}
.mp-card .trial-form > button[type="submit"] {
    height: 40px;
    background: #1890ff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}
.mp-empty {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    text-align: left;
}
.mp-split {
    display: flex;
    align-items: stretch;
    gap: 24px;
    width: 100%;
}
.mp-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    background: #fafafa;
    border-radius: 12px;
}
.mp-col + .mp-col { border-left: 0; }
.mp-col h4 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
    color: #262626;
}
.mp-alert {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    padding: 8px 12px;
    background: #fff2f0;
    border: 1px solid #ffccc7;
    border-radius: 8px;
    color: #ff4d4f;
    font-size: 14px;
    font-weight: 400;
}
.mp-tip {
    margin: 0 0 16px;
    color: #8c8c8c;
    font-size: 14px;
    text-align: center;
}
.mp-desc { margin: 0 0 6px; color: #595959; font-size: 14px; line-height: 1.6; }
.mp-sub { margin: 0 0 16px; color: #8c8c8c; font-size: 12px; line-height: 1.6; }
.mp-foot {
    margin: 16px 0 0;
    color: #bfbfbf;
    font-size: 12px;
    text-align: center;
}
.mp-col .mp-desc { max-width: none; }
.mp-col > .mp-btn { width: 100%; border-radius: 8px; }
.mp-actions { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 12px; }
.mp-actions-left { justify-content: flex-start; margin-top: 4px; }
.mp-btn {
    min-width: 132px;
    height: 40px;
    padding: 0 18px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
}
.mp-btn-line { background: #fff; color: #1890ff; border: 1px solid #1890ff; }
.mp-btn-line:hover { color: #40a9ff; border-color: #40a9ff; }
.mp-btn-orange { background: #fa8c16; color: #fff; border: 0; }
.mp-btn-orange:hover { background: #ffa940; color: #fff; }
.mp-btn.is-off { color: #999; border-color: #d9d9d9; cursor: not-allowed; }
.mp-check { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: #666; line-height: 1.5; }
.mp-check input { margin-top: 3px; }
.mp-hint { margin: 0; color: #999; font-size: 13px; }
.mp-empty .trial-form { width: 100%; max-width: none; text-align: left; }
#js-open-trial {
    width: 100%;
    max-width: none;
    height: 40px;
    margin: 0 0 16px;
    background: #ff8c00;
    border-radius: 8px;
    font-weight: 500;
}
#js-open-trial:hover { background: #ffa940; }
#trial-reg-form {
    width: 100%;
    max-width: none;
    margin-top: 0;
    gap: 0;
    text-align: left;
}
#trial-reg-form > label {
    gap: 6px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #262626;
}
#trial-reg-form input:not([type="checkbox"]) {
    height: 40px;
    padding: 0 12px;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    font-size: 14px;
    color: #262626;
}
#trial-reg-form input::placeholder { color: #bfbfbf; }
.trial-phone-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #262626;
}
.trial-phone-row { display: flex; align-items: center; gap: 8px; }
.trial-phone-row input { flex: 1; min-width: 0; }
#trial-reg-form .trial-notify {
    height: 40px;
    padding: 0 12px;
    background: #fff;
    color: #595959;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 400;
}
#trial-reg-form .trial-notify:hover { opacity: 0.8; }
#trial-reg-form .trial-notify:disabled { opacity: 0.6; cursor: default; }
#trial-reg-form .mp-check {
    flex-direction: row;
    align-items: flex-start;
    margin-bottom: 12px;
    font-size: 12px;
    color: #8c8c8c;
    line-height: 1.6;
}
#trial-reg-form .mp-check input {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    padding: 0;
    flex: none;
}
#trial-reg-form .mp-check em { color: #1890ff; font-style: normal; }
#trial-reg-form > button[type="submit"] {
    height: 40px;
    background: #1890ff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}
#trial-reg-form > button[type="submit"]:hover { opacity: 0.8; }
.mp-actions .mp-verify-open {
    width: auto;
    min-width: 132px;
    height: 40px;
    margin-top: 0;
    padding: 0 18px;
    font-size: 14px;
}
.mp-verify-open {
    width: 100%;
    height: 44px;
    margin-top: 12px;
    border: 0;
    border-radius: 8px;
    background: #1890ff;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
}
.mp-verify-open:hover { background: #40a9ff; }
.mp-modal[hidden] { display: none !important; }
.mp-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.mp-modal-mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .5);
}
.mp-modal-panel {
    position: relative;
    width: 100%;
    max-width: 420px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}
.mp-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
}
.mp-modal-head strong { font-size: 16px; font-weight: 600; color: #262626; }
.mp-modal-x {
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
    color: #666;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}
.mp-modal-body { padding: 16px; overflow: auto; }
#verify-modal form { display: flex; flex-direction: column; min-height: 0; }
#verify-modal label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 500;
    color: #262626;
}
#verify-modal label:last-child { margin-bottom: 0; }
#verify-modal label i { margin-left: 2px; color: #ff4d4f; font-style: normal; }
#verify-modal input {
    height: 40px;
    padding: 0 12px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    font-weight: 400;
    color: #262626;
}
#verify-modal input::placeholder { color: #bfbfbf; }
.mp-modal-foot {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid #f0f0f0;
}
.mp-modal-foot button {
    flex: 1;
    height: 40px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}
.mp-modal-cancel {
    background: #fff;
    color: #595959;
    border: 1px solid #d9d9d9;
}
#verify-modal .mp-modal-foot button[type="submit"] {
    border: 0;
    background: #1890ff;
    color: #fff;
    font-weight: 500;
}
#verify-modal .mp-modal-foot button[type="submit"]:hover { background: #40a9ff; }
.mp-note {
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 16px;
}
.mp-note-head { display: flex; align-items: center; gap: 8px; color: #333; font-weight: 600; }
.mp-note-head i { color: #1890ff; }
.mp-note ul { margin: 12px 0 0; padding: 0; list-style: none; }
.mp-note li {
    position: relative;
    padding-left: 16px;
    margin-top: 8px;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}
.mp-note li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #52c41a;
}

.fb-modal[hidden] { display: none !important; }
.fb-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.fb-mask {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .45);
}
.fb-panel {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: 86vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, .2);
    overflow: hidden;
}
.fb-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 16px 12px;
    border-bottom: 1px solid #f1f5f9;
}
.fb-head strong { font-size: 16px; color: #0f172a; }
.fb-x {
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
    color: #64748b;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}
.fb-body { padding: 16px; overflow: auto; }
.fb-label {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}
.fb-label i { margin-left: 2px; color: #ef4444; font-style: normal; }
.fb-label span { margin-left: 8px; font-size: 12px; font-weight: 400; color: #94a3b8; }
.fb-types { display: flex; flex-wrap: wrap; gap: 8px; }
.fb-type {
    height: 32px;
    padding: 0 12px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #fff;
    color: #475569;
    font-size: 13px;
    cursor: pointer;
}
.fb-type.is-on {
    border-color: #2B7DE9;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 600;
}
.fb-custom {
    margin-top: 10px;
    padding: 10px 12px;
    background: #f0f7ff;
    border-radius: 8px;
    color: #1e40af;
    font-size: 13px;
    line-height: 1.6;
}
.fb-custom p { margin: 0; }
.fb-scan {
    border: 0;
    padding: 0;
    background: transparent;
    color: #2B7DE9;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.fb-scan-box {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}
.fb-scan-box img { width: 140px; height: 140px; object-fit: contain; background: #fff; border-radius: 8px; }
.fb-scan-box span { font-size: 12px; color: #64748b; }
.fb-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 14px;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}
.fb-field textarea,
.fb-field input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    font-weight: 400;
    color: #0f172a;
    font-family: inherit;
    resize: vertical;
}
.fb-field textarea:focus,
.fb-field input:focus { outline: none; border-color: #2B7DE9; }
.fb-field textarea::placeholder,
.fb-field input::placeholder { color: #94a3b8; }
.fb-count { align-self: flex-end; font-size: 12px; font-weight: 400; color: #94a3b8; }
.fb-shots { margin-top: 14px; }
.fb-shot-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fb-shot-list { display: flex; flex-wrap: wrap; gap: 8px; }
.fb-shot { position: relative; width: 64px; height: 64px; }
.fb-shot img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid #e2e8f0; }
.fb-shot button {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 18px;
    height: 18px;
    border: 0;
    border-radius: 50%;
    background: #0f172a;
    color: #fff;
    font-size: 12px;
    line-height: 18px;
    cursor: pointer;
}
.fb-add {
    height: 64px;
    min-width: 88px;
    padding: 0 12px;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    color: #475569;
    font-size: 13px;
    cursor: pointer;
}
.fb-error { margin: 10px 0 0; color: #dc2626; font-size: 13px; }
.fb-foot {
    display: flex;
    gap: 8px;
    padding: 12px 16px 16px;
    border-top: 1px solid #f1f5f9;
}
.fb-foot button, .fb-done .fb-submit {
    height: 40px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}
.fb-cancel {
    flex: 1;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
}
.fb-submit {
    flex: 1;
    border: 0;
    background: #2B7DE9;
    color: #fff;
    font-weight: 600;
}
.fb-submit:hover { background: #1d63c4; }
.fb-submit:disabled { opacity: .7; cursor: default; }
.fb-done { padding: 28px 24px 24px; text-align: center; }
.fb-done-title { margin: 0 0 16px; font-size: 16px; font-weight: 600; color: #0f172a; line-height: 1.6; }
.fb-done-qr { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 18px; }
.fb-done-qr img { width: 120px; height: 120px; object-fit: contain; }
.fb-done-qr span { font-size: 13px; color: #64748b; }
.fb-done .fb-submit { width: 100%; }

@media (max-width: 800px) {
    .ad-header-main { flex-wrap: wrap; align-items: flex-start; }
    .ad-header-action { width: 100%; margin-left: 80px; align-items: flex-start; }
    .ad-workbench { white-space: normal; }
    .ad-header-action p { white-space: normal; }
    .ad-compare { flex-direction: column; }
    .ad-meta { flex-direction: column; gap: 8px; }
    .mp-split { flex-direction: column; }
    .mp-col { padding: 16px; }
    .mp-col + .mp-col { border-top: 0; margin-top: 0; padding-top: 16px; }
    .mp-card .ad-auth.mp-bound,
    .mp-card .ad-auth.mp-bound.has-qr { grid-template-columns: minmax(0, 1fr); }
}

/* ========== 站内信 ========== */
button.icon-btn {
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    font: inherit;
}
button.icon-btn:hover { background: #F3F4F6; }
.badge-count[hidden],
.nav-badge[hidden] { display: none !important; }
.icon-btn .badge-count,
.nav-item .nav-badge {
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: #EF4444;
    color: #fff;
    font-size: 10px;
    font-style: normal;
    font-weight: 600;
    line-height: 16px;
    text-align: center;
}
.icon-btn .badge-count {
    position: absolute;
    top: 2px;
    right: -2px;
    border: 2px solid #fff;
    box-sizing: content-box;
}
.nav-item .nav-badge { margin-left: auto; }

.msg-menu { position: relative; flex-shrink: 0; }
.msg-drop {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: min(380px, calc(100vw - 24px));
    background: #fff;
    border: 1px solid var(--ws-line);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .12);
    z-index: 40;
    overflow: hidden;
}
.msg-drop-head,
.msg-page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.msg-drop-head {
    padding: 12px 14px;
    border-bottom: 1px solid var(--ws-line);
}
.msg-drop-head strong { font-size: 14px; color: var(--ws-ink); }
.msg-drop-head button,
.msg-text-btn {
    border: 0;
    background: transparent;
    color: var(--ws-brand);
    font-size: 13px;
    cursor: pointer;
    padding: 0;
}
.msg-drop-head button:disabled,
.msg-text-btn:disabled { color: var(--ws-soft); cursor: default; }
.msg-drop-list { max-height: 420px; overflow: auto; }
.msg-item,
.msg-card-main {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: inherit;
    text-decoration: none;
}
.msg-item { padding: 12px 14px; border-bottom: 1px solid #F3F4F6; }
.msg-item:hover,
.msg-card:hover { background: #F8FAFC; }
.msg-item.is-unread strong,
.msg-card.is-unread strong { font-weight: 700; }
.msg-item.is-unread .msg-item-body strong::before,
.msg-card.is-unread .msg-card-text strong::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 6px;
    border-radius: 50%;
    background: #EF4444;
    vertical-align: middle;
}
.msg-item-body,
.msg-card-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.msg-item-body strong,
.msg-card-text strong {
    font-size: 14px;
    color: var(--ws-ink);
    font-weight: 600;
    line-height: 1.4;
}
.msg-item-body em,
.msg-card-content {
    font-style: normal;
    color: var(--ws-muted);
    font-size: 12px;
    line-height: 1.5;
}
.msg-item time,
.msg-card time {
    flex-shrink: 0;
    color: var(--ws-soft);
    font-size: 12px;
}
.msg-empty { margin: 0; padding: 28px 16px; text-align: center; color: var(--ws-muted); font-size: 13px; }
.msg-drop-more {
    display: block;
    padding: 12px;
    text-align: center;
    color: var(--ws-brand);
    text-decoration: none;
    font-size: 13px;
    border-top: 1px solid var(--ws-line);
}
.msg-type {
    flex-shrink: 0;
    margin-top: 2px;
    padding: 0 6px;
    height: 20px;
    border-radius: 4px;
    font-size: 12px;
    line-height: 20px;
    background: #EFF6FF;
    color: #2563EB;
}
.msg-type.is-order { background: #FEF3C7; color: #B45309; }
.msg-type.is-renew { background: #FFEDD5; color: #C2410C; }
.msg-type.is-after { background: #FEE2E2; color: #B91C1C; }
.msg-type.is-promo { background: #EDE9FE; color: #6D28D9; }
.msg-type.is-letter { background: #D1FAE5; color: #047857; }
.msg-page { display: flex; flex-direction: column; gap: 16px; }
.msg-page-head h2 { margin: 0; font-size: 20px; color: var(--ws-ink); }
.msg-page-head p { margin: 4px 0 0; color: var(--ws-muted); font-size: 13px; }
.msg-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.msg-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--ws-line);
    color: var(--ws-muted);
    text-decoration: none;
    font-size: 13px;
}
.msg-tab em { font-style: normal; color: var(--ws-soft); }
.msg-tab.is-on { background: #EFF6FF; border-color: #BFDBFE; color: var(--ws-brand); }
.msg-tab.is-on em { color: var(--ws-brand); }
.msg-list { display: flex; flex-direction: column; gap: 10px; }
.msg-card {
    display: flex;
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--ws-line);
    border-radius: 12px;
    overflow: hidden;
}
.msg-card.is-focus { border-color: #93C5FD; box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.msg-card-main { flex: 1; padding: 14px 16px; min-width: 0; }
.msg-card-content {
    display: block;
    white-space: pre-wrap;
    max-height: 7.5em;
    overflow: auto;
}
.msg-cover {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}
.msg-pin {
    display: inline-block;
    margin-left: 6px;
    padding: 0 4px;
    border-radius: 4px;
    background: #FEF3C7;
    color: #B45309;
    font-size: 11px;
    font-style: normal;
    font-weight: 600;
    vertical-align: middle;
}
.msg-card-del {
    width: 40px;
    border: 0;
    border-left: 1px solid var(--ws-line);
    background: transparent;
    color: var(--ws-soft);
    font-size: 18px;
    cursor: pointer;
}
.msg-card-del:hover { color: #EF4444; background: #FEF2F2; }
.msg-pager { display: flex; align-items: center; justify-content: flex-end; gap: 12px; font-size: 13px; }
.msg-pager a { color: var(--ws-brand); text-decoration: none; }
.msg-pager span { color: var(--ws-soft); }
.msg-pager em { font-style: normal; color: var(--ws-muted); }
.msg-pop {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.msg-pop[hidden] { display: none !important; }
.msg-pop-mask { position: absolute; inset: 0; background: rgba(15, 23, 42, .45); }
.msg-pop-panel {
    position: relative;
    width: min(420px, 100%);
    background: #fff;
    border-radius: 16px;
    padding: 22px 22px 18px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .2);
}
.msg-pop-panel strong { display: block; margin: 10px 0 8px; font-size: 16px; color: var(--ws-ink); line-height: 1.5; }
.msg-pop-panel p { margin: 0; color: #374151; font-size: 14px; line-height: 1.7; white-space: pre-wrap; max-height: 240px; overflow: auto; }
.msg-pop-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.msg-pop-actions button,
.msg-pop-actions a {
    min-width: 72px;
    height: 36px;
    padding: 0 14px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 36px;
    text-align: center;
    text-decoration: none;
}
.msg-pop-actions button { border: 1px solid var(--ws-line); background: #fff; color: var(--ws-muted); cursor: pointer; }
.msg-pop-actions a { background: var(--ws-brand); color: #fff; }

