/* ─────────────────────────────────────────────────────────
 * custom.css · 大触定制页（custom.html）
 * ───────────────────────────────────────────────────────── */

html {
    scrollbar-gutter: stable;
}

.custom-body {
    margin: 0;
    padding: 0;
    width: 100%;
    background: linear-gradient(180deg, #0f172a 0%, #1e1b4b 100%);
    color: #e2e8f0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Microsoft YaHei", Arial, sans-serif;
    min-height: 100vh;
}

.custom-wrap {
    width: 100%;
    max-width: 920px;
    box-sizing: border-box;
    margin: 0 auto;
    padding: 20px 16px 60px;
}

/* 顶栏 */
.custom-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 4px 20px;
    font-size: 14px;
}

.custom-top .back-btn {
    color: #a5b4fc;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(139, 92, 246, 0.1);
    transition: background 0.2s;
}

.custom-top .back-btn:hover {
    background: rgba(139, 92, 246, 0.25);
}

.custom-top .top-user-info {
    color: #94a3b8;
    font-size: 13px;
}

/* Hero */
.custom-hero {
    --draw-char-ink: #fbbf24;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    padding: 24px 16px 28px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(251, 191, 36, 0.08));
    border-radius: 16px;
    margin-bottom: 24px;
    border: 1px solid rgba(139, 92, 246, 0.25);
}

.custom-hero .hero-title {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #8b5cf6 0%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.custom-hero .hero-subtitle {
    font-size: 15px;
    color: #cbd5e1;
    margin-bottom: 16px;
}

.custom-hero .hero-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

.custom-hero .feat {
    padding: 6px 12px;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 8px;
    font-size: 13px;
    color: #cbd5e1;
}

/* 提示条 */
.custom-notice {
    margin-bottom: 16px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    text-align: center;
}

.custom-notice.warning {
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.35);
    color: #fde68a;
}

.custom-notice.error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}

.custom-notice a {
    color: #fbbf24;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

/* 表单 */
.custom-form {
    width: 100%;
    box-sizing: border-box;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    padding: 24px 22px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.form-row {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 6px;
}

.form-label .required {
    color: #ef4444;
}

.form-label .hint {
    display: block;
    font-weight: 400;
    font-size: 12px;
    color: #94a3b8;
    margin-top: 4px;
}

.form-textarea,
.form-input {
    width: 100%;
    box-sizing: border-box;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    padding: 10px 12px;
    color: #f1f5f9;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s, background 0.2s;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-textarea:focus,
.form-input:focus {
    outline: none;
    border-color: #8b5cf6;
    background: rgba(30, 41, 59, 0.8);
}

.char-count {
    font-size: 11px;
    color: #6b7280;
    text-align: right;
    margin-top: 4px;
}

/* 参考图上传区 */
.ref-upload-area {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 2px dashed rgba(139, 92, 246, 0.35);
    border-radius: 10px;
    background: rgba(139, 92, 246, 0.05);
    transition: background 0.2s, border-color 0.2s;
}

.ref-upload-area.dragover {
    background: rgba(139, 92, 246, 0.15);
    border-color: #8b5cf6;
}

.ref-upload-btn {
    background: rgba(139, 92, 246, 0.25);
    border: 1px solid rgba(139, 92, 246, 0.45);
    color: #c4b5fd;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s;
}

.ref-upload-btn:hover {
    background: rgba(139, 92, 246, 0.4);
}

.ref-upload-hint {
    font-size: 12px;
    color: #94a3b8;
}

.ref-previews {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.ref-preview {
    position: relative;
    width: 96px;
    height: 96px;
    border-radius: 8px;
    overflow: hidden;
    background: #1e293b;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

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

.ref-preview .ref-del {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.75);
    color: #fca5a5;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 14px;
    line-height: 20px;
    cursor: pointer;
}

.ref-preview .ref-del:hover {
    background: #ef4444;
    color: white;
}

.ref-preview.uploading {
    opacity: 0.6;
}

.ref-preview.uploading::after {
    content: "";
    width: 22px;
    height: 22px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 2h14M5 22h14M6 2v5l6 5-6 5v5m12-20v5l-6 5 6 5v5' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 2h14M5 22h14M6 2v5l6 5-6 5v5m12-20v5l-6 5 6 5v5' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
}

/* 价格栏 */
.price-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.12), rgba(139, 92, 246, 0.08));
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 14px;
    gap: 12px;
    flex-wrap: wrap;
}

.price-bar .price-value {
    color: #fbbf24;
    font-size: 17px;
    font-weight: 700;
}

.price-bar .price-hint {
    color: #94a3b8;
    font-size: 12px;
    margin-left: 4px;
}

.price-bar .balance-info {
    color: #cbd5e1;
    font-size: 13px;
}

.price-bar .balance-info #goldBalance {
    color: #fbbf24;
    font-weight: 600;
    font-size: 15px;
}

.price-bar .balance-info.insufficient {
    color: #fca5a5;
}

.price-bar .balance-info.insufficient #goldBalance {
    color: #ef4444;
}

/* 提交按钮 */
.submit-btn {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    border: none;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
}

.submit-btn:hover:not(:disabled) {
    opacity: 0.9;
}

.submit-btn:active:not(:disabled) {
    transform: scale(0.98);
}

.submit-btn:disabled {
    background: #475569;
    cursor: not-allowed;
    opacity: 0.7;
}

/* 页脚链接 */
.footer-link-row {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    font-size: 13px;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-link-row a {
    color: #a5b4fc;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 6px;
    background: rgba(139, 92, 246, 0.08);
    transition: background 0.2s;
}

.footer-link-row a:hover {
    background: rgba(139, 92, 246, 0.25);
}

.footer-link-row .qq-link {
    color: #fbbf24;
}

/* Toast */
.custom-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(15, 23, 42, 0.95);
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
    z-index: 9999;
    max-width: 90%;
}

.custom-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.custom-toast.success {
    border-left: 4px solid #10b981;
}

.custom-toast.error {
    border-left: 4px solid #ef4444;
}

/* 响应式 */
@media (max-width: 640px) {
    .custom-hero .hero-title {
        font-size: 22px;
    }
    .custom-hero .hero-subtitle {
        font-size: 13px;
    }
    .custom-form {
        padding: 18px 16px;
    }
    .price-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    .footer-link-row {
        flex-direction: column;
    }
}

/* =============================================================
 * Tab 切换（1.1.0 新增：下单 / 我的订单 合并到同一页）
 * ============================================================= */
.custom-tabs {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    gap: 8px;
    margin: 0 0 18px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    padding-bottom: 0;
}

.custom-tab {
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #94a3b8;
    padding: 12px 22px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
    border-radius: 8px 8px 0 0;
    position: relative;
    font-family: inherit;
}

.custom-tab:hover {
    color: #e2e8f0;
    background: rgba(139, 92, 246, 0.08);
}

.custom-tab.active {
    color: #fbbf24;
    border-bottom-color: #fbbf24;
    background: rgba(251, 191, 36, 0.08);
    font-weight: 600;
}

.tab-badge {
    display: inline-block;
    min-width: 20px;
    padding: 2px 8px;
    border-radius: 10px;
    background: #ef4444;
    color: white;
    font-size: 11px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    margin-left: 6px;
    vertical-align: middle;
}

.tab-panel {
    width: 100%;
    box-sizing: border-box;
    display: none;
    animation: tab-fade-in 0.25s ease-out;
}

.tab-panel.active {
    display: block;
}

@keyframes tab-fade-in {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =============================================================
 * 订单列表（原 my-orders.css 合并进来）
 * ============================================================= */
.orders-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 12px;
}

.orders-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.orders-actions .btn-new-order,
.orders-actions .btn-refresh {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: opacity 0.2s;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.orders-actions .btn-new-order:hover,
.orders-actions .btn-refresh:hover { opacity: 0.88; }

.orders-actions .btn-refresh {
    background: rgba(148, 163, 184, 0.18);
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: #cbd5e1;
}

.orders-actions .btn-qq {
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.35);
    color: #fbbf24;
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
}

.orders-actions .btn-qq:hover {
    background: rgba(251, 191, 36, 0.25);
}

.status-filter-bar {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.filter-chip {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #cbd5e1;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    font-family: inherit;
}

.filter-chip:hover {
    background: rgba(139, 92, 246, 0.15);
}

.filter-chip.active {
    background: rgba(139, 92, 246, 0.3);
    border-color: #8b5cf6;
    color: white;
    font-weight: 600;
}

.orders-list {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-card {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 14px;
    padding: 16px 18px;
    transition: border-color 0.2s;
}

.order-card.new {
    border-color: #fbbf24;
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.3);
    animation: new-highlight 2s ease-out;
}

@keyframes new-highlight {
    0% { background: rgba(251, 191, 36, 0.2); }
    100% { background: rgba(15, 23, 42, 0.65); }
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 10px;
    flex-wrap: wrap;
}

.order-id-line {
    font-size: 13px;
    color: #94a3b8;
}

.order-id-line .order-id {
    color: #a5b4fc;
    font-weight: 600;
    margin-right: 8px;
}

.order-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.order-status.pending        { background: rgba(251, 191, 36, 0.2); color: #fbbf24; }
.order-status.in_progress    { background: rgba(139, 92, 246, 0.22); color: #c4b5fd; }
.order-status.delivered      { background: rgba(16, 185, 129, 0.22); color: #6ee7b7; }
.order-status.cancelled      { background: rgba(148, 163, 184, 0.2);  color: #cbd5e1; }
.order-status.refunded       { background: rgba(239, 68, 68, 0.2);    color: #fca5a5; }

.order-prompt {
    color: #e2e8f0;
    font-size: 14px;
    line-height: 1.55;
    margin: 8px 0 10px;
    padding: 10px 12px;
    background: rgba(30, 41, 59, 0.55);
    border-left: 3px solid #8b5cf6;
    border-radius: 6px;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.order-hint {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 8px;
}

.order-hint strong {
    color: #fbbf24;
}

.order-refs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.order-ref-thumb {
    width: 64px;
    height: 64px;
    border-radius: 6px;
    overflow: hidden;
    background: #1e293b;
    border: 1px solid rgba(148, 163, 184, 0.2);
    cursor: pointer;
}

.order-ref-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px dashed rgba(148, 163, 184, 0.15);
    font-size: 12px;
    color: #94a3b8;
    flex-wrap: wrap;
    gap: 8px;
}

.order-price {
    color: #fbbf24;
    font-weight: 600;
}

.order-actions {
    display: flex;
    gap: 6px;
}

.btn-view-deliver {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    font-family: inherit;
}

.btn-view-deliver:hover { opacity: 0.88; }

.btn-cancel-order {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    text-decoration: none;
    font-family: inherit;
}

.btn-cancel-order:hover {
    background: rgba(239, 68, 68, 0.35);
}

.order-artist-note {
    margin-top: 8px;
    padding: 10px 12px;
    background: rgba(139, 92, 246, 0.12);
    border-radius: 6px;
    font-size: 13px;
    color: #c4b5fd;
    border-left: 3px solid #8b5cf6;
}

.loading-hint,
.empty-hint {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
    font-size: 14px;
}

.empty-hint .big-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.empty-hint .primary-action {
    display: inline-block;
    margin-top: 16px;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

/* 模态 */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    padding: 16px;
}

.modal {
    background: linear-gradient(180deg, #1e1b4b 0%, #0f172a 100%);
    border: 1px solid rgba(139, 92, 246, 0.35);
    border-radius: 16px;
    max-width: 760px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 24px;
    position: relative;
}

.modal .close-btn {
    position: absolute;
    top: 12px;
    right: 16px;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
}

.modal .close-btn:hover {
    color: white;
}

.modal h2 {
    margin: 0 0 14px;
    color: #e2e8f0;
    font-size: 20px;
}

.deliver-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.deliver-item {
    background: #1e293b;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.deliver-item img {
    width: 100%;
    display: block;
    cursor: zoom-in;
}

.deliver-item .download-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.75);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.4);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    text-decoration: none;
}

.deliver-item .download-btn:hover {
    background: rgba(251, 191, 36, 0.2);
}

.cancel-modal .form-label {
    margin-top: 12px;
    margin-bottom: 6px;
    font-size: 13px;
    color: #cbd5e1;
}

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

.btn-secondary {
    background: rgba(148, 163, 184, 0.2);
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: #cbd5e1;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-family: inherit;
}

.btn-danger:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* 响应式：Tab 在小屏上紧凑 */
@media (max-width: 640px) {
    .custom-tab {
        padding: 10px 14px;
        font-size: 13px;
    }
    .orders-actions .btn-new-order,
    .orders-actions .btn-refresh,
    .orders-actions .btn-qq {
        padding: 7px 10px;
        font-size: 12px;
    }
}

/* 统一页面顶部 + 亮色主题适配 */
.ui-page-top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.custom-top.ui-page-top {
    padding: 10px 14px;
    margin-bottom: 18px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.16);
    backdrop-filter: blur(10px);
}

.custom-top .theme-toggle {
    flex-shrink: 0;
}

[data-theme="light"] .custom-body {
    background: linear-gradient(135deg, #e8eeff 0%, #f4f0ff 45%, #eef6ff 100%);
    color: #1e293b;
}

[data-theme="light"] .custom-top.ui-page-top,
[data-theme="light"] .custom-form,
[data-theme="light"] .order-card {
    background: rgba(255, 255, 255, 0.76);
    border-color: rgba(180, 200, 240, 0.34);
    box-shadow: 0 8px 28px rgba(100, 140, 220, 0.1);
}

[data-theme="light"] .custom-top .back-btn,
[data-theme="light"] .footer-link-row a,
[data-theme="light"] .orders-actions .btn-refresh,
[data-theme="light"] .filter-chip {
    background: rgba(100, 140, 220, 0.08);
    border-color: rgba(180, 200, 240, 0.34);
    color: #475569;
}

[data-theme="light"] .custom-top .back-btn:hover,
[data-theme="light"] .footer-link-row a:hover,
[data-theme="light"] .orders-actions .btn-refresh:hover,
[data-theme="light"] .filter-chip:hover {
    background: rgba(100, 140, 220, 0.14);
    color: #1e293b;
}

[data-theme="light"] .custom-top .top-user-info,
[data-theme="light"] .custom-hero .hero-subtitle,
[data-theme="light"] .form-label .hint,
[data-theme="light"] .char-count,
[data-theme="light"] .ref-upload-hint,
[data-theme="light"] .order-id-line,
[data-theme="light"] .order-meta-row,
[data-theme="light"] .loading-hint,
[data-theme="light"] .empty-hint {
    color: #64748b;
}

[data-theme="light"] .custom-hero {
    --draw-char-ink: #b45309;
    background: linear-gradient(135deg, rgba(255,255,255,0.78), rgba(240,245,255,0.72));
    border-color: rgba(180, 200, 240, 0.34);
    box-shadow: 0 10px 30px rgba(100, 140, 220, 0.12);
}

[data-theme="light"] .custom-hero .feat,
[data-theme="light"] .form-textarea,
[data-theme="light"] .form-input,
[data-theme="light"] .ref-upload-area,
[data-theme="light"] .order-prompt {
    background: rgba(240, 245, 255, 0.8);
    border-color: rgba(180, 200, 240, 0.34);
    color: #334155;
}

[data-theme="light"] .form-label,
[data-theme="light"] .order-prompt,
[data-theme="light"] .modal h2 {
    color: #1e293b;
}

[data-theme="light"] .price-bar,
[data-theme="light"] .order-artist-note,
[data-theme="light"] .custom-notice.warning {
    background: rgba(251, 191, 36, 0.08);
    border-color: rgba(251, 191, 36, 0.22);
    color: #92400e;
}

[data-theme="light"] .custom-tabs {
    border-bottom-color: rgba(180, 200, 240, 0.34);
}

[data-theme="light"] .custom-tab {
    color: #64748b;
}

[data-theme="light"] .custom-tab:hover {
    color: #1e293b;
    background: rgba(100, 140, 220, 0.08);
}

[data-theme="light"] .custom-tab.active {
    color: #b45309;
    background: rgba(251, 191, 36, 0.1);
}

[data-theme="light"] .filter-chip.active {
    background: rgba(139, 92, 246, 0.12);
    border-color: rgba(139, 92, 246, 0.35);
    color: #6d28d9;
}

[data-theme="light"] .modal {
    background: #fff;
    border-color: rgba(180, 200, 240, 0.34);
    box-shadow: 0 20px 60px rgba(100, 140, 220, 0.18);
}

[data-theme="light"] .deliver-item {
    background: rgba(240, 245, 255, 0.86);
}

body.custom-body.embed-mode {
    min-height: auto;
    background: transparent;
}

html.embed-mode .custom-top,
body.custom-body.embed-mode .custom-top,
.embed-mode .custom-top {
    display: none !important;
}

.embed-mode .custom-wrap {
    max-width: 100%;
    padding: 0 16px 42px;
}

.embed-mode .custom-hero {
    margin-top: 4px;
}

[data-theme="light"] body.custom-body.embed-mode {
    background: transparent;
}

[data-theme="light"] .price-bar .price-hint,
[data-theme="light"] .price-bar .balance-info {
    color: #64748b;
}

[data-theme="light"] .price-bar .balance-info.insufficient {
    color: #b91c1c;
}

[data-theme="light"] .ref-preview,
[data-theme="light"] .order-ref-thumb,
[data-theme="light"] .deliver-item {
    background: rgba(240, 245, 255, 0.86);
    border-color: rgba(180, 200, 240, 0.34);
}

[data-theme="light"] .ref-preview .ref-del {
    background: rgba(255, 255, 255, 0.92);
    color: #dc2626;
    box-shadow: 0 2px 8px rgba(100, 140, 220, 0.18);
}

[data-theme="light"] .submit-btn:disabled {
    background: #cbd5e1;
    color: #64748b;
}

[data-theme="light"] .custom-notice.error {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.22);
    color: #b91c1c;
}

[data-theme="light"] .orders-actions .btn-qq,
[data-theme="light"] .footer-link-row .qq-link {
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.24);
    color: #b45309;
}

[data-theme="light"] .order-status.pending { background: rgba(251, 191, 36, 0.12); color: #b45309; }
[data-theme="light"] .order-status.in_progress { background: rgba(139, 92, 246, 0.12); color: #6d28d9; }
[data-theme="light"] .order-status.delivered { background: rgba(16, 185, 129, 0.12); color: #047857; }
[data-theme="light"] .order-status.cancelled { background: rgba(100, 116, 139, 0.12); color: #475569; }
[data-theme="light"] .order-status.refunded { background: rgba(239, 68, 68, 0.1); color: #b91c1c; }

[data-theme="light"] .btn-cancel-order {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.22);
    color: #b91c1c;
}

[data-theme="light"] .btn-secondary {
    background: rgba(100, 140, 220, 0.08);
    border-color: rgba(180, 200, 240, 0.34);
    color: #475569;
}

[data-theme="light"] .modal-overlay {
    background: rgba(15, 23, 42, 0.32);
}

[data-theme="light"] .modal .close-btn,
[data-theme="light"] .cancel-modal .form-label {
    color: #475569;
}

[data-theme="light"] .modal .close-btn:hover {
    color: #1e293b;
}

[data-theme="light"] .deliver-item .download-btn {
    background: rgba(255, 255, 255, 0.9);
    color: #b45309;
    border-color: rgba(251, 191, 36, 0.28);
}

@media (max-width: 640px) {
    .custom-top.ui-page-top {
        align-items: flex-start;
        gap: 10px;
    }
    .ui-page-top-actions {
        width: 100%;
        justify-content: space-between;
    }
    .embed-mode .custom-wrap {
        padding-left: 10px;
        padding-right: 10px;
    }
}


/* =============================================================
 * 2.0.0 新增：免费咨询 + 站长 QQ 弹窗
 * ============================================================= */
.hero-qq-strip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
    padding: 8px 14px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(251, 191, 36, 0.25);
    font-size: 13px;
    color: #cbd5e1;
}

.hero-qq-strip strong {
    color: #fbbf24;
    font-size: 14px;
}

.hero-qq-btn {
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.4);
    color: #e2e8f0;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.16s, border-color 0.16s;
}

.hero-qq-btn:hover {
    background: rgba(139, 92, 246, 0.35);
    border-color: #fbbf24;
}

.tab-badge.inquiry-badge {
    background: #10b981;
}

.inquiry-intro-banner {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.28);
    color: #a7f3d0;
    font-size: 13px;
    line-height: 1.65;
}

.form-label-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 10px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.tpl-insert-btn {
    background: rgba(139, 92, 246, 0.18);
    border: 1px solid rgba(139, 92, 246, 0.38);
    color: #c4b5fd;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.tpl-insert-btn:hover {
    background: rgba(139, 92, 246, 0.32);
}

.inquiry-submit-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.qq-btn-reset {
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 6px;
    background: rgba(139, 92, 246, 0.08);
    transition: background 0.2s;
}

.qq-btn-reset:hover {
    background: rgba(139, 92, 246, 0.25);
}

.inquiries-section {
    width: 100%;
    box-sizing: border-box;
    margin-top: 24px;
}

.inquiries-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.inquiries-section-header h3 {
    margin: 0;
    font-size: 16px;
    color: #e2e8f0;
}

.btn-refresh-sm {
    background: rgba(148, 163, 184, 0.18);
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: #cbd5e1;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    font-family: inherit;
}

.btn-refresh-sm:hover {
    background: rgba(148, 163, 184, 0.3);
}

.order-status.inquiry-pending        { background: rgba(251, 191, 36, 0.2); color: #fbbf24; }
.order-status.inquiry-accepted       { background: rgba(16, 185, 129, 0.22); color: #6ee7b7; }
.order-status.inquiry-need_more_info { background: rgba(59, 130, 246, 0.22); color: #93c5fd; }
.order-status.inquiry-declined       { background: rgba(148, 163, 184, 0.2); color: #cbd5e1; }

.inquiry-reply-meta {
    margin-top: 6px;
    font-size: 12px;
    color: #fde68a;
}

.btn-accept-to-order {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1f2937;
    border: none;
    padding: 7px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    font-family: inherit;
}

.btn-accept-to-order:hover {
    opacity: 0.92;
}

.order-actions .btn-qq {
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.35);
    color: #fbbf24;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-family: inherit;
}

.orders-actions .btn-qq {
    cursor: pointer;
    font-family: inherit;
}

.linked-inquiry-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.35);
    color: #fde68a;
    font-size: 13px;
}

.btn-unlink {
    background: transparent;
    border: 1px solid rgba(251, 191, 36, 0.45);
    color: #fbbf24;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    font-family: inherit;
}

.qq-contact-modal {
    max-width: 500px;
}

.qq-modal-card {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.qq-modal-qr {
    width: 148px;
    height: 148px;
    border-radius: 12px;
    background: #fff;
    padding: 6px;
    object-fit: contain;
    flex: 0 0 auto;
}

.qq-modal-info {
    flex: 1 1 220px;
}

.qq-modal-num {
    font-size: 16px;
    margin-bottom: 8px;
    color: #e2e8f0;
}

.qq-modal-num strong {
    color: #fbbf24;
}

.qq-modal-info p {
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.6;
    color: #cbd5e1;
}

.qq-modal-btns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-copy-qq {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1f2937;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
}

[data-theme="light"] .hero-qq-strip {
    background: rgba(240, 245, 255, 0.85);
    border-color: rgba(180, 200, 240, 0.4);
    color: #475569;
}

[data-theme="light"] .hero-qq-strip strong,
[data-theme="light"] .qq-modal-num strong {
    color: #b45309;
}

[data-theme="light"] .hero-qq-btn,
[data-theme="light"] .tpl-insert-btn,
[data-theme="light"] .btn-refresh-sm,
[data-theme="light"] .qq-btn-reset {
    background: rgba(100, 140, 220, 0.1);
    border-color: rgba(180, 200, 240, 0.4);
    color: #334155;
}

[data-theme="light"] .inquiry-intro-banner {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.24);
    color: #065f46;
}

[data-theme="light"] .inquiries-section-header h3,
[data-theme="light"] .qq-modal-num {
    color: #1e293b;
}

[data-theme="light"] .qq-modal-info p {
    color: #475569;
}

[data-theme="light"] .order-status.inquiry-pending { background: rgba(251, 191, 36, 0.14); color: #b45309; }
[data-theme="light"] .order-status.inquiry-accepted { background: rgba(16, 185, 129, 0.14); color: #047857; }
[data-theme="light"] .order-status.inquiry-need_more_info { background: rgba(59, 130, 246, 0.14); color: #1d4ed8; }
[data-theme="light"] .order-status.inquiry-declined { background: rgba(100, 116, 139, 0.14); color: #475569; }

[data-theme="light"] .linked-inquiry-banner {
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.3);
    color: #92400e;
}

[data-theme="light"] .inquiry-reply-meta {
    color: #b45309;
}

/* =============================================================
 * 四类定制价目卡片 & 免费咨询类目切换
 * ============================================================= */
.service-catalog-grid {
    width: 100%;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 22px;
}

@media (max-width: 820px) {
    .service-catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .service-catalog-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    appearance: none;
    text-align: left;
    font-family: inherit;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(139, 92, 246, 0.24);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
    color: #e2e8f0;
    transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.service-card:hover {
    transform: translateY(-2px);
    border-color: rgba(251, 191, 36, 0.45);
    background: rgba(30, 41, 59, 0.85);
}

.service-card.active {
    border-color: #fbbf24;
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.22), rgba(251, 191, 36, 0.12));
    box-shadow: 0 8px 24px rgba(251, 191, 36, 0.12);
}

.service-card-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.55);
    margin-bottom: 2px;
}

.service-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

.service-card:hover .service-card-thumb img {
    transform: scale(1.04);
}

[data-theme="light"] .service-card-thumb {
    background: rgba(241, 245, 249, 0.9);
    border-color: rgba(148, 163, 184, 0.35);
}

.service-card-head {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.service-name {
    font-size: 14px;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.3;
}

.service-price {
    font-size: 15px;
    font-weight: 800;
    color: #fbbf24;
}

.service-tiers {
    font-size: 12px;
    line-height: 1.5;
    color: #cbd5e1;
    flex: 1;
}

.service-settle-tag {
    display: inline-block;
    align-self: flex-start;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.35);
    color: #c4b5fd;
}

.service-card.active .service-settle-tag {
    background: rgba(251, 191, 36, 0.16);
    border-color: rgba(251, 191, 36, 0.38);
    color: #fde68a;
}

.selected-service-bar {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.55);
    border: 1px solid rgba(139, 92, 246, 0.24);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.selected-service-top {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.selected-service-label {
    font-size: 13px;
    font-weight: 600;
    color: #e2e8f0;
    white-space: nowrap;
}

.service-chip-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.service-chip {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: #cbd5e1;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s ease;
}

.service-chip:hover {
    border-color: rgba(251, 191, 36, 0.45);
    color: #fde68a;
}

.service-chip.active {
    background: rgba(251, 191, 36, 0.16);
    border-color: #fbbf24;
    color: #fbbf24;
    font-weight: 700;
}

.selected-service-hint {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.5;
}

[data-theme="light"] .service-card {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(180, 200, 240, 0.45);
    color: #334155;
    box-shadow: 0 4px 16px rgba(100, 140, 220, 0.08);
}

[data-theme="light"] .service-card:hover {
    background: #ffffff;
    border-color: rgba(217, 119, 6, 0.5);
}

[data-theme="light"] .service-card.active {
    border-color: #d97706;
    background: linear-gradient(145deg, rgba(251, 191, 36, 0.12), rgba(139, 92, 246, 0.08));
    box-shadow: 0 8px 22px rgba(217, 119, 6, 0.12);
}

[data-theme="light"] .service-name {
    color: #1e293b;
}

[data-theme="light"] .service-price {
    color: #b45309;
}

[data-theme="light"] .service-tiers {
    color: #475569;
}

[data-theme="light"] .service-settle-tag {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.25);
    color: #6d28d9;
}

[data-theme="light"] .service-card.active .service-settle-tag {
    background: rgba(245, 158, 11, 0.14);
    border-color: rgba(217, 119, 6, 0.35);
    color: #92400e;
}

[data-theme="light"] .selected-service-bar {
    background: rgba(248, 250, 252, 0.92);
    border-color: rgba(180, 200, 240, 0.45);
}

[data-theme="light"] .selected-service-label {
    color: #1e293b;
}

[data-theme="light"] .service-chip {
    background: #ffffff;
    border-color: rgba(148, 163, 184, 0.35);
    color: #475569;
}

[data-theme="light"] .service-chip.active {
    background: rgba(245, 158, 11, 0.12);
    border-color: #d97706;
    color: #b45309;
}

[data-theme="light"] .selected-service-hint {
    color: #64748b;
}
