/**
 * style.css - 电商AI生图工具主样式表
 * 
 * 包含上传组件、模板选择、生成进度等样式
 * 响应式布局，桌面端优先
 * 
 * @package EcommerceImageGenerator
 * @version 1.1.0
 */

/* ============================================================================
   全局样式重置与基础样式
   ============================================================================ */

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

:root {
    /* 主题色 */
    --primary-color: #4da3ff;
    --primary-hover: #6bb6ff;
    --primary-active: #247fff;
    --primary-strong: #1f6fff;
    --success-color: #4bc9a3;
    --warning-color: #f6c453;
    --error-color: #ff6b7a;

    /* 中性色 */
    --text-primary: #16324f;
    --text-secondary: #5c7899;
    --text-disabled: #8ca3ba;
    --border-color: rgba(77, 163, 255, 0.18);
    --border-strong: rgba(77, 163, 255, 0.32);
    --bg-primary: rgba(255, 255, 255, 0.78);
    --bg-secondary: rgba(245, 250, 255, 0.92);
    --bg-disabled: #eff5fb;
    --surface-glow: rgba(77, 163, 255, 0.08);
    --surface-glow-strong: rgba(77, 163, 255, 0.16);
    
    /* 间距 */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    
    /* 圆角 */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 18px;
    
    /* 阴影 */
    --shadow-sm: 0 6px 18px rgba(21, 94, 239, 0.08);
    --shadow-md: 0 12px 28px rgba(21, 94, 239, 0.12);
    --shadow-lg: 0 20px 48px rgba(21, 94, 239, 0.18);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
        'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    background:
        radial-gradient(circle at top left, rgba(109, 187, 255, 0.26), transparent 34%),
        radial-gradient(circle at top right, rgba(77, 163, 255, 0.18), transparent 28%),
        linear-gradient(180deg, #f5fbff 0%, #edf7ff 46%, #f8fcff 100%);
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
    isolation: isolate;
    overflow-x: hidden;
}

#bgDots {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.8;
    mix-blend-mode: screen;
}

.navbar,
.container,
.profile-container,
.header {
    position: relative;
    z-index: 1;
}

a:hover {
    color: var(--primary-color);
}

a {
    color: inherit;
    text-decoration: none;
}

/* ============================================================================
   顶部导航
   ============================================================================ */

.navbar {
    width: 100%;
    min-height: 64px;
    padding: 0 var(--spacing-xl);
    background: rgba(255, 255, 255, 0.6);
    border-bottom: 1px solid rgba(77, 163, 255, 0.16);
    backdrop-filter: blur(18px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-xl);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.nav-brand a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 700;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 12px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--border-radius-sm);
    transition: color 0.2s ease, background-color 0.2s ease;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
    background: rgba(77, 163, 255, 0.1);
}

.hero-card,
.pricing-section,
.account-card,
.pricing-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(16px);
}

.hero-card {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: var(--spacing-xl);
    padding: 28px;
    margin: 18px 0 28px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.84) 0%, rgba(245, 250, 255, 0.74) 100%);
    box-shadow: 0 18px 48px rgba(31, 111, 255, 0.10);
}

.hero-copy h1 {
    font-size: 36px;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    letter-spacing: 0.01em;
}

.hero-copy .subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(77, 163, 255, 0.14);
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--spacing-md);
}

.metric-item {
    padding: var(--spacing-md);
    background: rgba(245, 250, 255, 0.9);
    border: 1px solid rgba(77, 163, 255, 0.12);
    border-radius: var(--border-radius-lg);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.metric-item strong {
    font-size: 18px;
    color: var(--text-primary);
}

.metric-item span {
    font-size: 12px;
    color: var(--text-secondary);
}

.hero-side {
    display: flex;
    align-items: stretch;
}

.account-card {
    width: 100%;
    padding: 22px;
}

.account-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.account-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.account-meta {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 6px;
}

.account-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.auth-form input {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    background: rgba(255, 255, 255, 0.92);
    color: var(--text-primary);
}

.auth-form-secondary {
    padding-top: var(--spacing-md);
    margin-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
}

.form-alert {
    background: rgba(255, 77, 79, 0.1);
    color: var(--error-color);
    border-radius: var(--border-radius-md);
    padding: 10px 12px;
    font-size: 13px;
}

.pricing-section {
    padding: 28px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.pricing-card {
    padding: 20px;
}

.pricing-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.pricing-price {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.pricing-price span {
    font-size: 14px;
    color: var(--text-secondary);
    margin-left: 4px;
}

.pricing-limit,
.pricing-desc {
    color: var(--text-secondary);
    font-size: 13px;
}

.section-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.btn-secondary {
    background: rgba(245, 250, 255, 0.96);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(77, 163, 255, 0.08);
}

/* ============================================================================
   上传区域样式
   ============================================================================ */

.upload-area {
    border: 1.5px dashed rgba(77, 163, 255, 0.28);
    border-radius: var(--border-radius-xl);
    padding: 28px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.84) 0%, rgba(244, 250, 255, 0.78) 100%);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow-sm);
}

.upload-area:hover {
    border-color: var(--primary-color);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(235, 246, 255, 0.92) 100%);
    box-shadow: var(--shadow-md);
}

.upload-area.drag-over {
    border-color: var(--primary-color);
    background: rgba(229, 243, 255, 0.96);
    box-shadow: 0 0 0 3px rgba(77, 163, 255, 0.12);
}

.upload-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.upload-text {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.upload-hint {
    font-size: 12px;
    color: var(--text-disabled);
    line-height: 1.6;
    white-space: pre-line;
}

#batchPresetHint {
    padding: 12px 14px;
    background: rgba(77, 163, 255, 0.08);
    border: 1px solid rgba(77, 163, 255, 0.16);
    border-radius: var(--border-radius-lg);
    color: var(--text-secondary);
}

.product-info-section {
    padding-top: 6px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(77, 163, 255, 0.12);
    border-radius: var(--border-radius-xl);
    padding: 18px 20px 20px;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(12px);
}

.product-info-assistant {
    display: grid;
    grid-template-columns: minmax(260px, 0.92fr) minmax(0, 1.08fr);
    gap: 16px;
    margin-top: 14px;
}

.product-info-upload-card {
    padding: 18px 18px 16px;
    border-radius: var(--border-radius-xl);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 255, 0.92));
    border: 1px solid rgba(77, 163, 255, 0.14);
    box-shadow: var(--shadow-sm);
}

.product-info-upload-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.product-info-upload-hint {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.product-info-upload-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0 10px;
}

.product-info-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    margin-top: 0;
}

.product-info-grid .full {
    grid-column: 1 / -1;
}

.product-info-grid .field {
    margin-bottom: 0;
}

.product-info-grid input,
.product-info-grid textarea {
    min-height: 48px;
}

.product-info-grid textarea {
    min-height: 122px;
}

.product-info-grid .field label {
    color: #435b78;
    margin-bottom: 8px;
}

.product-info-grid .field input,
.product-info-grid .field textarea {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(119, 170, 226, 0.18);
    border-radius: 14px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 2px 8px rgba(15, 23, 42, 0.03);
    padding: 14px 15px;
    font-size: 14px;
    line-height: 1.6;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease,
        transform 0.18s ease;
    resize: none;
}

.product-info-grid .field input:hover,
.product-info-grid .field textarea:hover {
    border-color: rgba(77, 163, 255, 0.28);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.98),
        0 6px 14px rgba(77, 163, 255, 0.06);
}

.product-info-grid .field input:focus,
.product-info-grid .field textarea:focus {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1),
        0 8px 18px rgba(77, 163, 255, 0.08),
        0 0 0 3px rgba(77, 163, 255, 0.08);
}

.product-info-grid .field textarea {
    display: block;
    width: 100%;
    min-height: 74px;
    height: 74px;
    max-height: 74px;
    overflow: auto;
}

.field-group-card {
    padding: 12px 12px 10px;
    border-radius: 16px;
    background: rgba(250, 253, 255, 0.88);
    border: 1px solid rgba(77, 163, 255, 0.08);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.88),
        0 4px 12px rgba(15, 23, 42, 0.02);
}

.field-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.field-group-head label {
    margin-bottom: 0;
    font-size: 13px;
    font-weight: 700;
    color: #365471;
}

.field-chip {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 9px;
    border-radius: 999px;
    background: rgba(77, 163, 255, 0.1);
    color: var(--primary-color);
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.field-chip.muted {
    background: rgba(77, 163, 255, 0.08);
    color: #5c7899;
}

.field-tip {
    margin-top: 8px;
    padding: 9px 11px;
    border-radius: 11px;
    background: rgba(77, 163, 255, 0.05);
    border: 1px dashed rgba(77, 163, 255, 0.12);
    color: #5f7897;
    font-size: 12px;
    line-height: 1.52;
}

.field-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    min-height: 10px;
    width: 100%;
}

.field-tag-row:empty {
    display: none;
}

.field-tag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 11px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(77, 163, 255, 0.12), rgba(77, 163, 255, 0.07));
    border: 1px solid rgba(77, 163, 255, 0.14);
    color: #2f5f92;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    box-shadow: 0 3px 8px rgba(77, 163, 255, 0.05);
}

.field-summary {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(247, 251, 255, 0.96), rgba(255, 255, 255, 0.98));
    border: 1px solid rgba(77, 163, 255, 0.1);
    color: #4d6785;
    font-size: 12px;
    line-height: 1.6;
    min-height: 40px;
    width: 100%;
}

.field-summary:empty {
    display: none;
}

.product-info-upload-card .upload-hint {
    margin-top: 8px;
    padding: 12px 14px;
    border-radius: var(--border-radius-lg);
    background: rgba(77, 163, 255, 0.06);
    border: 1px dashed rgba(77, 163, 255, 0.16);
    color: var(--text-secondary);
}

@media (max-width: 1024px) {
    .product-info-assistant {
        grid-template-columns: 1fr;
    }
}

/* ============================================================================
   文件列表样式
   ============================================================================ */

.file-list {
    margin-top: var(--spacing-lg);
}

.file-list-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.file-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--spacing-md);
}

.file-item {
    background-color: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(77, 163, 255, 0.14);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-sm);
    position: relative;
    transition: all 0.2s ease;
    backdrop-filter: blur(12px);
}

.file-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.file-thumbnail {
    width: 100%;
    height: 120px;
    object-fit: contain;
    border-radius: var(--border-radius-sm);
    background-color: var(--bg-secondary);
    margin-bottom: var(--spacing-sm);
}

.file-info {
    overflow: hidden;
}

.file-name {
    font-size: 12px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: var(--spacing-xs);
}

.file-size {
    font-size: 11px;
    color: var(--text-disabled);
}

/* ============================================================================
   文件进度条样式
   ============================================================================ */

.file-progress {
    margin-top: var(--spacing-sm);
}

.progress-bar {
    width: 100%;
    height: 6px;
    background-color: var(--bg-secondary);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-hover));
    border-radius: 3px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    display: block;
    text-align: center;
    font-size: 10px;
    color: var(--text-secondary);
    margin-top: var(--spacing-xs);
}

/* ============================================================================
   删除按钮样式
   ============================================================================ */

.file-delete-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    border: none;
    background-color: rgba(255, 77, 79, 0.9);
    color: white;
    font-size: 16px;
    font-weight: bold;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease, background-color 0.2s ease;
}

.file-item:hover .file-delete-btn {
    opacity: 1;
}

.file-delete-btn:hover {
    background-color: var(--error-color);
}

/* ============================================================================
   整体进度容器样式
   ============================================================================ */

.progress-container {
    display: none;
    margin-top: var(--spacing-lg);
    padding: 18px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(77, 163, 255, 0.14);
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(12px);
}

.progress-container-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.overall-progress-bar {
    width: 100%;
    height: 12px;
    background-color: rgba(229, 240, 252, 0.95);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: var(--spacing-sm);
}

.overall-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--success-color));
    border-radius: 6px;
    transition: width 0.3s ease;
    width: 0%;
}

.overall-progress-text {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
    display: block;
}

/* ============================================================================
   按钮样式
   ============================================================================ */

.btn {
    display: inline-block;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    border: 1px solid transparent;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
    user-select: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-strong));
    color: white;
    border-color: transparent;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.16);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover), var(--primary-color));
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(37, 99, 235, 0.22);
}

.btn-primary:active {
    background: linear-gradient(135deg, var(--primary-active), var(--primary-strong));
    transform: translateY(0);
}

.btn-primary:disabled {
    background-color: var(--bg-disabled);
    border-color: var(--border-color);
    color: var(--text-disabled);
    cursor: not-allowed;
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #39b98e);
    color: white;
    border-color: transparent;
}

.btn-success:hover {
    background: linear-gradient(135deg, #5bd1ac, var(--success-color));
    transform: translateY(-1px);
}

.btn-success:disabled {
    background-color: var(--bg-disabled);
    border-color: var(--border-color);
    color: var(--text-disabled);
    cursor: not-allowed;
}

.generate-action-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: var(--spacing-lg);
}

.generate-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: min(100%, 360px);
    height: 58px;
    padding: 0 28px;
    border-radius: 20px;
    border: 1px solid rgba(51, 194, 176, 0.2);
    background:
        linear-gradient(135deg, #3fcfbd 0%, #2fa8f2 55%, #43c38c 100%);
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.02em;
    box-shadow:
        0 16px 34px rgba(47, 168, 242, 0.20),
        0 6px 14px rgba(63, 207, 189, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.32);
    position: relative;
    overflow: hidden;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        filter 0.18s ease;
}

.generate-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.0) 18%, rgba(255, 255, 255, 0.22) 50%, rgba(255, 255, 255, 0.0) 82%);
    transform: translateX(-120%);
    transition: transform 0.6s ease;
}

.generate-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow:
        0 18px 40px rgba(47, 168, 242, 0.24),
        0 10px 18px rgba(63, 207, 189, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.36);
    filter: saturate(1.05);
}

.generate-btn:hover:not(:disabled)::before {
    transform: translateX(120%);
}

.generate-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow:
        0 10px 24px rgba(47, 168, 242, 0.18),
        0 4px 10px rgba(63, 207, 189, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.generate-btn:disabled {
    background: linear-gradient(135deg, rgba(148, 196, 235, 0.48), rgba(152, 219, 196, 0.42));
    color: rgba(255, 255, 255, 0.82);
    border-color: rgba(148, 196, 235, 0.24);
    box-shadow: none;
    opacity: 0.95;
}

.generate-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 16px;
    line-height: 1;
}

.generate-btn.loading {
    pointer-events: none;
}

.generate-btn.loading .generate-btn-icon {
    animation: generateSpin 0.8s linear infinite;
}

@keyframes generateSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 上传按钮 */
#uploadBtn {
    display: none;
    margin-top: var(--spacing-md);
}

/* 生成按钮 */
#generateBtn {
    margin-top: 0;
}

#generateBtn.enabled {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(24, 144, 255, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(24, 144, 255, 0);
    }
}

/* ============================================================================
   主页面布局样式
   ============================================================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-lg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    text-align: center;
    padding: 24px 22px;
    border-bottom: 1px solid rgba(77, 163, 255, 0.14);
    margin-bottom: 22px;
    background: rgba(255, 255, 255, 0.54);
    backdrop-filter: blur(16px);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-sm);
}

.header h1 {
    font-size: 32px;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.header .subtitle {
    font-size: 14px;
    color: var(--text-secondary);
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.mode-switch-section,
.package-section,
.template-section,
.upload-section,
.generation-section,
.result-section {
    width: 100%;
}

.mode-switch {
    display: inline-flex;
    align-items: center;
    padding: 4px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
}

.mode-btn {
    height: 36px;
    padding: 0 18px;
    border: 0;
    border-radius: var(--border-radius-sm);
    background: transparent;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.mode-btn:hover {
    color: var(--primary-color);
}

.mode-btn.active {
    color: #ffffff;
    background: var(--primary-color);
}

.package-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.package-option {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
}

.package-option input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
}

.package-option label {
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
}

.package-summary {
    margin-top: var(--spacing-md);
    color: var(--text-secondary);
    font-size: 13px;
}

.footer {
    text-align: center;
    padding: var(--spacing-lg) 0;
    border-top: 1px solid var(--border-color);
    margin-top: var(--spacing-xl);
    color: var(--text-disabled);
    font-size: 12px;
}

.tpl-hero,
.tpl-stats,
.tpl-panel,
.tpl-empty,
.history-card,
.alert,
.profile-container .card,
.profile-container .top-bar {
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(77, 163, 255, 0.14);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(14px);
}

.tpl-hero {
    margin: 18px 0 20px;
    padding: 28px;
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 20px;
}

.tpl-hero h1 {
    font-size: 34px;
    margin-bottom: 12px;
}

.tpl-hero p {
    color: var(--text-secondary);
    margin-bottom: 18px;
    line-height: 1.8;
}

.tpl-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(77, 163, 255, 0.12);
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 14px;
    border: 1px solid rgba(77, 163, 255, 0.16);
}

.tpl-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.tpl-side {
    background: linear-gradient(135deg, rgba(240, 248, 255, 0.86) 0%, rgba(231, 242, 255, 0.8) 100%);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    border: 1px solid rgba(77, 163, 255, 0.12);
}

.tpl-side-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.tpl-side-copy {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.tpl-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    padding: 18px;
    margin-bottom: 20px;
}

.tpl-stat-card {
    background: rgba(245, 250, 255, 0.9);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(77, 163, 255, 0.1);
}

.tpl-stat-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.tpl-stat-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.tpl-panel {
    padding: 20px;
    margin-bottom: 20px;
}

.tpl-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.tpl-panel-head h2 {
    font-size: 22px;
}

.tpl-panel-head p {
    color: var(--text-secondary);
    font-size: 13px;
}

.tpl-filter-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.tpl-filter-chip {
    display: inline-flex;
    align-items: center;
    height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(77, 163, 255, 0.16);
    color: #4f6782;
    background: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.tpl-filter-chip.active,
.tpl-filter-chip:hover {
    color: var(--primary-color);
    border-color: rgba(77, 163, 255, 0.28);
    background: rgba(77, 163, 255, 0.12);
    box-shadow: 0 8px 20px rgba(77, 163, 255, 0.12);
    transform: translateY(-1px);
}

.tpl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}

.tpl-card {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(77, 163, 255, 0.14);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    backdrop-filter: blur(12px);
}

.tpl-card:hover {
    transform: translateY(-4px);
    border-color: rgba(77, 163, 255, 0.28);
    box-shadow: var(--shadow-md);
}

.tpl-card-cover {
    height: 168px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eff6ff 0%, #eef7ff 100%);
    color: var(--primary-strong);
    font-size: 42px;
    font-weight: 800;
}

.tpl-card-body {
    padding: 18px;
}

.tpl-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.tpl-card-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.4;
}

.tpl-card-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(77, 163, 255, 0.08);
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    border: 1px solid rgba(77, 163, 255, 0.14);
}

.tpl-card-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.tpl-meta-pill {
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(245, 250, 255, 0.92);
    color: #4f6782;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(77, 163, 255, 0.1);
}

.tpl-card-desc {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.8;
    min-height: 72px;
    margin-bottom: 14px;
}

.tpl-card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tpl-empty {
    padding: 40px 24px;
    text-align: center;
    color: var(--text-secondary);
}

.search-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-bar input[type="date"],
.search-bar input[type="text"] {
    padding: 10px 14px;
    border: 1px solid rgba(77, 163, 255, 0.16);
    border-radius: 10px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

.search-bar input[type="text"] {
    flex: 1;
    min-width: 200px;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(77, 163, 255, 0.12);
}

.alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-info {
    background: rgba(235, 246, 255, 0.88);
    color: #1f4f82;
    border: 1px solid rgba(77, 163, 255, 0.16);
}

.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.history-card {
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.history-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.history-card .images {
    display: flex;
    gap: 4px;
    padding: 12px;
    overflow-x: auto;
}

.history-card .images a {
    width: 80px;
    height: 80px;
    flex: 0 0 auto;
    display: block;
    border-radius: 8px;
    overflow: hidden;
}

.history-card .images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.history-card .info {
    padding: 0 16px 16px;
}

.history-card .task-id {
    font-size: 12px;
    color: var(--text-disabled);
    margin-bottom: 6px;
    word-break: break-all;
}

.history-card .status {
    display: inline-flex;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}

.status.completed {
    background: rgba(75, 201, 163, 0.14);
    color: #0e9f75;
}

.status.failed {
    background: rgba(255, 107, 122, 0.14);
    color: #d43b52;
}

.status.processing {
    background: rgba(77, 163, 255, 0.14);
    color: var(--primary-strong);
}

.history-card .meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.history-product-info {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin-bottom: 12px;
    font-size: 12px;
    color: #4a6482;
}

.history-product-info span {
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(229, 243, 255, 0.92);
    border: 1px solid rgba(77, 163, 255, 0.14);
}

.history-card .actions {
    display: flex;
    gap: 8px;
}

.history-card .actions button {
    flex: 1;
    padding: 8px 12px;
    font-size: 12px;
}

.pager {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.pager a {
    padding: 8px 14px;
    border: 1px solid rgba(77, 163, 255, 0.16);
    border-radius: 999px;
    text-decoration: none;
    font-size: 13px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.pager a:hover {
    background: rgba(77, 163, 255, 0.1);
}

.pager .cur {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.profile-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.profile-container .card {
    padding: 22px 26px;
    margin-bottom: 12px;
    border: 1px solid rgba(77, 163, 255, 0.14);
}

.profile-container .top-bar {
    padding: 14px 22px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.profile-container .top-bar .logo {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
}

.profile-container .top-bar .links {
    font-size: 13px;
    display: flex;
    gap: 16px;
    align-items: center;
}

.profile-container .top-bar .links a {
    color: var(--primary-color);
    text-decoration: none;
}

.profile-container .top-bar .links .logout {
    color: var(--error-color);
}

.plan-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    background: rgba(77, 163, 255, 0.08);
    color: var(--primary-strong);
    border: 1px solid rgba(77, 163, 255, 0.12);
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    background: rgba(245, 250, 255, 0.92);
    color: var(--text-secondary);
    border: 1px solid rgba(77, 163, 255, 0.1);
}

.badge.active {
    background: rgba(75, 201, 163, 0.12);
    color: #0e9f75;
}

.badge.disabled {
    background: rgba(245, 248, 252, 0.92);
    color: var(--text-disabled);
}

.msg {
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 12px;
}

.msg.ok {
    background: rgba(75, 201, 163, 0.12);
    border: 1px solid rgba(75, 201, 163, 0.2);
    color: #0e9f75;
}

.msg.err {
    background: rgba(255, 107, 122, 0.12);
    border: 1px solid rgba(255, 107, 122, 0.2);
    color: #d43b52;
}

.field {
    margin-bottom: 10px;
}

label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 3px;
}

input, select {
    width: 100%;
    padding: 9px 12px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(77, 163, 255, 0.16);
    border-radius: 10px;
    font-size: 13px;
    color: var(--text-primary);
    transition: all 0.2s;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(77, 163, 255, 0.12);
}

.btn-secondary {
    background: rgba(245, 250, 255, 0.95);
    color: var(--text-primary);
    border-color: rgba(77, 163, 255, 0.16);
}

.btn-secondary:hover {
    background: rgba(77, 163, 255, 0.08);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.info-item {
    padding: 7px 0;
    border-bottom: 1px solid rgba(77, 163, 255, 0.1);
}

.info-item .label {
    font-size: 12px;
    color: var(--text-disabled);
}

.info-item .value {
    font-size: 14px;
    margin-top: 1px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

th {
    text-align: left;
    padding: 7px 5px;
    border-bottom: 1px solid rgba(77, 163, 255, 0.12);
    color: var(--text-disabled);
    font-weight: 500;
    font-size: 12px;
}

td {
    padding: 7px 5px;
    border-bottom: 1px solid rgba(77, 163, 255, 0.08);
}

tr:hover td {
    background: rgba(77, 163, 255, 0.04);
}

.stat-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
}

.stat-card {
    background: linear-gradient(135deg, rgba(240, 248, 255, 0.9) 0%, rgba(229, 243, 255, 0.88) 100%);
    border: 1px solid rgba(77, 163, 255, 0.12);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.stat-card .num {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-strong);
}

.stat-card .lbl {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.chart-area {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 100px;
    padding: 0 4px;
}

.chart-bar-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
}

.chart-bar {
    width: 100%;
    max-width: 40px;
    background: linear-gradient(180deg, var(--primary-hover), var(--primary-color));
    border-radius: 4px 4px 0 0;
    min-height: 4px;
    transition: height 0.3s;
}

.chart-bar.zero {
    background: #dbe8f6;
}

.chart-label {
    font-size: 10px;
    color: var(--text-disabled);
    margin-top: 4px;
    white-space: nowrap;
}

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

.history-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.history-thumb {
    display: inline-block;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(77, 163, 255, 0.12);
    background: rgba(245, 250, 255, 0.92);
    width: 100px;
    height: 100px;
}

.history-thumb.detail {
    width: 72px;
    height: 128px;
}

.history-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 900px) {
    .tpl-hero {
        grid-template-columns: 1fr;
    }

    .tpl-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .history-grid {
        grid-template-columns: 1fr;
    }

    .search-bar {
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .tpl-stats {
        grid-template-columns: 1fr;
    }

    .info-grid, .dual, .stat-row {
        grid-template-columns: 1fr;
    }

    .chart-area {
        gap: 4px;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .chart-bar-wrap {
        min-width: 44px;
    }

    .history-gallery {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .history-thumb, .history-thumb.detail {
        width: 100%;
        height: 96px;
    }
}

.section-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid rgba(77, 163, 255, 0.8);
}

.section-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.section-header-row .section-title {
    margin-bottom: 0;
    border-bottom: 0;
    padding-bottom: 0;
}

.mode-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(77, 163, 255, 0.12);
    color: var(--primary-color);
    border: 1px solid rgba(77, 163, 255, 0.18);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.mode-badge.batch {
    background: rgba(75, 201, 163, 0.12);
    color: #0e9f75;
    border-color: rgba(75, 201, 163, 0.2);
}

.mode-badge.muted {
    background: rgba(245, 248, 252, 0.92);
    color: var(--text-disabled);
    border-color: #e5e7eb;
}

/* 按钮状态样式 */
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn.enabled {
    animation: pulse 2s infinite;
}

.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid white;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

/* ============================================================================
   模板选择样式
   ============================================================================ */

.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.template-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.84) 0%, rgba(246, 251, 255, 0.8) 100%);
    border: 1px solid rgba(77, 163, 255, 0.16);
    border-radius: var(--border-radius-xl);
    padding: var(--spacing-md);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    text-align: center;
    position: relative;
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow-sm);
}

.template-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.template-card.selected {
    border-color: var(--primary-color);
    background: rgba(229, 243, 255, 0.9);
}

.style-template-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.style-template-chip {
    border: 1px solid rgba(77, 163, 255, 0.18);
    background: rgba(255, 255, 255, 0.82);
    color: #4a6482;
    border-radius: 999px;
    height: 34px;
    padding: 0 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.style-template-chip.selected {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(77, 163, 255, 0.12);
}

.style-template-chip:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(77, 163, 255, 0.12);
    transform: translateY(-1px);
}

@media (max-width: 900px) {
    .hero-card {
        grid-template-columns: 1fr;
    }

    .hero-metrics {
        grid-template-columns: 1fr;
    }
}

.template-thumbnail-wrap {
    width: 100%;
    height: 150px;
    border-radius: var(--border-radius-sm);
    margin-bottom: var(--spacing-sm);
    overflow: hidden;
    background: linear-gradient(135deg, #eef6ff 0%, #f6fbff 100%);
}

.template-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
    display: block;
}

.template-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    border-radius: var(--border-radius-sm);
    gap: 8px;
}

.template-placeholder-icon {
    font-size: 48px;
    font-weight: 700;
    opacity: 0.9;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.template-placeholder-label {
    font-size: 12px;
    font-weight: 600;
    opacity: 0.85;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.template-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.template-platform {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
}

.template-type {
    font-size: 11px;
    color: var(--primary-color);
    background-color: rgba(77, 163, 255, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
    margin-bottom: var(--spacing-xs);
}

.template-size {
    font-size: 11px;
    color: var(--text-disabled);
    margin-top: var(--spacing-xs);
}

.template-batch-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: var(--spacing-sm);
}

.template-batch-chip {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1;
    background: rgba(77, 163, 255, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(77, 163, 255, 0.18);
}

.template-batch-chip.muted {
    background: #f5f7fb;
    color: var(--text-disabled);
    border-color: #e5e7eb;
}

/* 预设模板样式 */
.template-card.preset {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(241, 247, 255, 0.9) 100%);
}

.template-card.preset.selected {
    background: linear-gradient(135deg, rgba(229, 243, 255, 0.92) 0%, rgba(204, 231, 255, 0.96) 100%);
}

.template-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: var(--primary-color);
    color: white;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

/* 空状态样式 */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--text-disabled);
}

.empty-icon {
    font-size: 48px;
    margin-bottom: var(--spacing-md);
}

.empty-text {
    font-size: 16px;
    margin-bottom: var(--spacing-sm);
}

.empty-hint {
    font-size: 12px;
}

/* 错误状态样式 */
.error-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--error-color);
}

.error-icon {
    font-size: 48px;
    margin-bottom: var(--spacing-md);
}

.error-text {
    font-size: 14px;
    margin-bottom: var(--spacing-md);
}

.retry-btn {
    padding: 8px 24px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.retry-btn:hover {
    background-color: var(--primary-hover);
}

/* 加载指示器样式 */
.loading-indicator {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.64);
    border: 1px solid rgba(77, 163, 255, 0.12);
    border-radius: var(--border-radius-xl);
    backdrop-filter: blur(12px);
}

.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid var(--bg-secondary);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: var(--spacing-md);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 14px;
}

.recommendation-section {
    margin-bottom: 24px;
}

.category-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.category-tab {
    padding: 8px 18px;
    border: 1px solid rgba(77, 163, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--text-secondary);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
    backdrop-filter: blur(10px);
}

.category-tab:hover {
    color: var(--primary-color);
    border-color: rgba(77, 163, 255, 0.28);
    background: rgba(77, 163, 255, 0.08);
    transform: translateY(-1px);
}

.category-tab.active {
    background: rgba(77, 163, 255, 0.14);
    color: var(--primary-color);
    border-color: rgba(77, 163, 255, 0.24);
}

.section-more {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
}

.section-more:hover {
    text-decoration: underline;
}

.template-cover {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    background: linear-gradient(135deg, #eef6ff, #f7fbff);
}

.template-info {
    padding: 15px;
}

.template-name {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: var(--text-primary);
}

.template-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
    color: var(--text-disabled);
    flex-wrap: wrap;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 20px;
    color: var(--text-disabled);
    background: rgba(255, 255, 255, 0.72);
    border: 1px dashed rgba(77, 163, 255, 0.16);
    border-radius: var(--border-radius-xl);
}

/* ============================================================================
   生成进度样式
   ============================================================================ */

.generation-progress {
    margin-top: var(--spacing-lg);
    padding: 20px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(77, 163, 255, 0.14);
    border-radius: var(--border-radius-xl);
    backdrop-filter: blur(14px);
}

.generation-status {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.generation-progress-bar {
    width: 100%;
    height: 20px;
    background-color: rgba(229, 240, 252, 0.92);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: var(--spacing-sm);
}

.generation-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--success-color));
    border-radius: 10px;
    transition: width 0.5s ease;
    width: 0%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: 600;
}

/* ============================================================================
   结果展示样式
   ============================================================================ */

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.result-item {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(77, 163, 255, 0.14);
    border-radius: var(--border-radius-xl);
    padding: var(--spacing-sm);
    position: relative;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(12px);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.result-item:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.result-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: var(--border-radius-sm);
    background-color: var(--bg-secondary);
}

.result-actions {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: var(--spacing-sm);
}

.result-action-btn {
    padding: 8px 12px;
    font-size: 12px;
    border: 1px solid rgba(77, 163, 255, 0.16);
    border-radius: 999px;
    background: rgba(245, 250, 255, 0.96);
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-primary);
    flex: 1;
}

.result-action-btn:hover {
    background: rgba(77, 163, 255, 0.14);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

/* ============================================================================
   通用图片预览弹窗
   ============================================================================ */

body.image-preview-open {
    overflow: hidden;
}

.image-preview-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 3000;
    align-items: center;
    justify-content: center;
}

.image-preview-modal.active {
    display: flex;
}

.image-preview-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 28, 50, 0.72);
    backdrop-filter: blur(12px);
}

.image-preview-panel {
    position: relative;
    z-index: 1;
    width: min(96vw, 1440px);
    height: min(94vh, 960px);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.image-preview-stage {
    position: relative;
    flex: 1;
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(12, 28, 50, 0.92) 0%, rgba(10, 23, 43, 0.96) 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.45);
}

.image-preview-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
    transform-origin: center center;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.image-preview-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(12, 28, 50, 0.7);
    color: #e2e8f0;
    font-size: 13px;
    letter-spacing: 0.04em;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.image-preview-modal.is-loading .image-preview-image {
    opacity: 0.28;
}

.image-preview-modal.is-loading .image-preview-loading {
    opacity: 1;
}

.image-preview-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    min-height: 24px;
    padding: 0 4px;
    color: #e2e8f0;
    font-size: 13px;
}

.image-preview-counter {
    font-variant-numeric: tabular-nums;
    opacity: 0.82;
}

.image-preview-title {
    max-width: 70%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    opacity: 0.92;
}

.image-preview-actions {
    position: absolute;
    right: 24px;
    bottom: 24px;
    display: flex;
    gap: 10px;
    z-index: 2;
}

.image-preview-action {
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(12px);
    color: white;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

.image-preview-action:hover:not(:disabled) {
    transform: translateY(-1px);
    background: rgba(77, 163, 255, 0.84);
}

.image-preview-action:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.image-preview-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
    transition: background 0.18s ease, transform 0.18s ease;
}

.image-preview-close:hover {
    background: rgba(77, 163, 255, 0.82);
    transform: scale(1.03);
}

.image-preview-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 72px;
    border: none;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.58);
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
}

.image-preview-nav:hover:not(:disabled) {
    background: rgba(77, 163, 255, 0.8);
    transform: translateY(-50%) scale(1.04);
}

.image-preview-nav.prev {
    left: 12px;
}

.image-preview-nav.next {
    right: 12px;
}

.image-preview-nav:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

[data-preview-src] {
    cursor: zoom-in;
}

.result-image[data-preview-src] {
    cursor: zoom-in;
}

.history-thumb[data-preview-src] {
    cursor: zoom-in;
}

/* ============================================================================
   对比视图样式
   ============================================================================ */

.comparison-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(12, 28, 50, 0.82);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.comparison-modal.active {
    display: flex;
}

.comparison-container {
    background: rgba(255, 255, 255, 0.86);
    border-radius: var(--border-radius-lg);
    max-width: 90vw;
    max-height: 90vh;
    overflow: auto;
    padding: var(--spacing-lg);
}

.comparison-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.comparison-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.comparison-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.comparison-close-btn:hover {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.comparison-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-sm);
    background-color: rgba(245, 250, 255, 0.96);
    border-radius: var(--border-radius-md);
}

.comparison-mode-btn {
    padding: 6px 16px;
    font-size: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background-color: var(--bg-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.comparison-mode-btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.comparison-scale-info {
    font-size: 12px;
    color: var(--text-secondary);
}

.comparison-content {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-md);
}

.comparison-content.horizontal {
    display: flex;
    width: 100%;
    height: 70vh;
}

.comparison-content.vertical {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 70vh;
}

.comparison-original {
    position: relative;
    overflow: hidden;
}

.comparison-content.horizontal .comparison-original {
    width: 50%;
    height: 100%;
}

.comparison-content.vertical .comparison-original {
    width: 100%;
    height: 50%;
}

.comparison-generated {
    position: relative;
    overflow: hidden;
}

.comparison-content.horizontal .comparison-generated {
    width: 50%;
    height: 100%;
}

.comparison-content.vertical .comparison-generated {
    width: 100%;
    height: 50%;
}

.comparison-original img,
.comparison-generated img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: var(--bg-secondary);
}

.comparison-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    z-index: 10;
}

.comparison-content.vertical .comparison-overlay {
    width: 100%;
    height: 50%;
}

.comparison-slider {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    z-index: 20;
    cursor: ew-resize;
}

.comparison-content.vertical .comparison-slider {
    top: 50%;
    left: 50%;
    width: 80%;
    cursor: ns-resize;
}

/* ============================================================================
   响应式布局
   ============================================================================ */

/* 桌面端（默认） */
@media (min-width: 1024px) {
    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: var(--spacing-xl);
    }

    .template-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: var(--spacing-xl);
    }
}

/* 平板端 */
@media (min-width: 768px) and (max-width: 1023px) {
    .navbar {
        padding: var(--spacing-sm) var(--spacing-lg);
        align-items: flex-start;
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .nav-links {
        justify-content: flex-start;
    }

    .container {
        max-width: 100%;
        padding: var(--spacing-lg);
    }

    .file-items {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

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

/* 移动端 */
@media (max-width: 767px) {
    .navbar {
        position: static;
        padding: var(--spacing-sm) var(--spacing-md);
        align-items: flex-start;
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .nav-brand a {
        min-height: 32px;
        font-size: 16px;
    }

    .nav-links {
        width: 100%;
        justify-content: flex-start;
        gap: 4px;
    }

    .nav-links a {
        height: 32px;
        padding: 0 8px;
        font-size: 13px;
    }

    .container {
        padding: var(--spacing-md);
    }

    .header {
        padding: var(--spacing-lg) 0;
        margin-bottom: var(--spacing-lg);
    }

    .header h1 {
        font-size: 26px;
    }

    .section-title {
        font-size: 20px;
    }

    .mode-switch {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .upload-area {
        padding: var(--spacing-lg);
        min-height: 150px;
    }

    .upload-icon {
        font-size: 36px;
    }

    .file-items {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: var(--spacing-sm);
    }

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

    .btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* ============================================================================
   工具类
   ============================================================================ */

.text-center {
    text-align: center;
}

.text-secondary {
    color: var(--text-secondary);
}

.text-disabled {
    color: var(--text-disabled);
}

.text-brand {
    color: var(--primary-color);
}

.text-danger {
    color: #D85A30;
}

.text-xs {
    font-size: 11px;
}

.text-sm {
    font-size: 12px;
}

.mt-6 {
    margin-top: 6px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-12 {
    margin-bottom: 12px;
}

.max-w-380 {
    max-width: 380px;
}

.display-block {
    display: block;
}

.section-subtitle-sm {
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
}

.chart-count {
    color: #534AB7;
    font-weight: 600;
}

.search-bar-separator {
    line-height: 40px;
    color: var(--text-disabled);
}

.help-steps {
    line-height: 1.9;
    color: var(--text-secondary);
}

.help-copy {
    margin: 0 0 14px;
    color: var(--text-secondary);
    line-height: 1.75;
}

.help-faq {
    display: grid;
    gap: 12px;
}

.help-faq-item {
    border-radius: 16px;
    border: 1px solid rgba(77, 163, 255, 0.14);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow-sm);
    padding: 0;
    overflow: hidden;
}

.help-faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 14px 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.help-faq-item summary::-webkit-details-marker {
    display: none;
}

.help-faq-answer {
    padding: 0 18px 16px;
    color: var(--text-secondary);
    line-height: 1.75;
}

.payment-qr-wrap {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.payment-qr {
    width: 220px;
    max-width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.payment-qr-small {
    width: 140px;
    max-width: 100%;
    margin-top: 10px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.payment-channel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.payment-channel-card {
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(77, 163, 255, 0.14);
    box-shadow: var(--shadow-sm);
}

.payment-channel-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.payment-channel-meta {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.profile-details-summary {
    cursor: pointer;
    font-size: 13px;
    color: #7F77DD;
    margin-bottom: 8px;
}

.history-empty {
    text-align: center;
    padding: 24px;
    color: var(--text-disabled);
    font-size: 14px;
}

.history-footer {
    text-align: center;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.2);
    padding: 8px 0 24px;
}

.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }

.hidden {
    display: none;
}

.visible {
    display: block !important;
}

/* ============================================================================
   动画
   ============================================================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

/* ============================================================================
   打印样式
   ============================================================================ */

@media print {
    .upload-area,
    .file-delete-btn,
    .btn {
        display: none !important;
    }
}

/* ============================================================================
   后台通用样式
   ============================================================================ */

.admin-shell {
    max-width: 1060px;
    margin: 0 auto;
    padding: 20px;
}

.admin-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(246, 251, 255, 0.82) 100%);
    border: 1px solid rgba(77, 163, 255, 0.16);
    border-radius: 20px;
    padding: 24px 28px;
    box-shadow:
        0 12px 30px rgba(77, 163, 255, 0.06),
        var(--shadow-sm);
    margin-bottom: 14px;
    backdrop-filter: blur(14px);
}

.admin-shell .card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(247, 251, 255, 0.9) 100%);
    border: 1px solid rgba(77, 163, 255, 0.14);
    border-radius: 24px;
    padding: 26px 30px;
    box-shadow:
        0 16px 38px rgba(77, 163, 255, 0.08),
        0 4px 12px rgba(15, 23, 42, 0.03);
    margin-bottom: 16px;
    backdrop-filter: blur(16px);
}

.admin-shell .card h2 {
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 700;
    color: #18324f;
    letter-spacing: 0.01em;
}

.admin-shell .field {
    margin-bottom: 14px;
}

.admin-shell label {
    display: block;
    margin-bottom: 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: #35506b;
    letter-spacing: 0.015em;
}

.admin-shell input:not([type="checkbox"]):not([type="radio"]),
.admin-shell select,
.admin-shell textarea {
    width: 100%;
    min-height: 48px;
    padding: 13px 16px;
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(243, 249, 255, 0.97));
    border: 1px solid rgba(77, 163, 255, 0.18);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.9),
        0 3px 10px rgba(15, 23, 42, 0.03);
    font-size: 14px;
    color: var(--text-primary);
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease,
        transform 0.18s ease;
}

.admin-shell textarea {
    min-height: 118px;
    line-height: 1.65;
    padding-top: 14px;
    resize: vertical;
}

.admin-shell input::placeholder,
.admin-shell textarea::placeholder {
    color: #94a3b8;
}

.admin-shell input:hover:not([type="checkbox"]):not([type="radio"]),
.admin-shell select:hover,
.admin-shell textarea:hover {
    border-color: rgba(77, 163, 255, 0.42);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.94),
        0 8px 20px rgba(77, 163, 255, 0.1);
}

.admin-shell input:focus:not([type="checkbox"]):not([type="radio"]),
.admin-shell select:focus,
.admin-shell textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 1);
    box-shadow:
        0 0 0 4px rgba(77, 163, 255, 0.14),
        0 12px 26px rgba(77, 163, 255, 0.12);
    transform: translateY(-1px);
}

.admin-shell input[disabled],
.admin-shell select[disabled],
.admin-shell textarea[disabled] {
    background: rgba(241, 245, 249, 0.82);
    color: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
}

.admin-shell input[type="checkbox"],
.admin-shell input[type="radio"] {
    width: 16px;
    height: 16px;
    min-height: 16px;
    padding: 0;
    border-radius: 4px;
    box-shadow: none;
    accent-color: var(--primary-color);
    vertical-align: middle;
}

.admin-shell .field label > input[type="checkbox"],
.admin-shell .field label > input[type="radio"] {
    margin-right: 8px;
}

.admin-shell .g2,
.admin-shell .g3,
.admin-shell .g4,
.admin-shell .g5,
.admin-shell .admin-grid-2,
.admin-shell .admin-grid-3,
.admin-shell .admin-grid-4,
.admin-shell .admin-grid-5,
.admin-shell .admin-grid-auto {
    gap: 18px;
    align-items: start;
}

.admin-shell .card,
.admin-shell .admin-card,
.admin-shell .admin-card-flat {
    backdrop-filter: blur(16px);
}

.admin-shell .card form {
    margin-top: 6px;
}

.admin-shell .admin-note {
    border-radius: 14px;
    padding: 11px 14px;
    line-height: 1.6;
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
}

.admin-topbar .meta {
    font-size: 12px;
    color: var(--text-disabled);
    margin-left: 4px;
}

.admin-topbar .t {
    font-size: 16px;
    font-weight: 700;
}

.admin-topbar a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 13px;
    margin-left: 12px;
}

.admin-nav {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.56);
    border: 1px solid rgba(77, 163, 255, 0.12);
    border-radius: 14px;
    padding: 4px;
    flex-wrap: wrap;
    backdrop-filter: blur(12px);
}

.admin-nav a {
    padding: 7px 14px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.admin-nav a.act {
    background: rgba(77, 163, 255, 0.12);
    color: var(--primary-color);
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.admin-msg {
    padding: 9px 14px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 12px;
    backdrop-filter: blur(10px);
}

.admin-msg.ok {
    background: rgba(75, 201, 163, 0.12);
    color: #0e9f75;
    border: 1px solid rgba(75, 201, 163, 0.18);
}

.admin-msg.err {
    background: rgba(255, 107, 122, 0.12);
    color: #d43b52;
    border: 1px solid rgba(255, 107, 122, 0.18);
}

.admin-note {
    font-size: 12px;
    color: var(--text-secondary);
    background: rgba(245, 250, 255, 0.92);
    border: 1px solid rgba(77, 163, 255, 0.12);
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 12px;
}

.admin-note.compact {
    padding: 8px 10px;
    margin-bottom: 10px;
}

.admin-note.alt {
    background: rgba(244, 243, 255, 0.95);
}

.admin-note.soft {
    background: rgba(248, 250, 252, 0.92);
    border-color: #e5e7eb;
}

.admin-note.warn {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.admin-note.info {
    background: #eef2ff;
    border-color: #c7d2fe;
}

.admin-inline-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-inline-row.center {
    align-items: center;
}

.admin-inline-row.end {
    justify-content: flex-end;
}

.admin-inline-row.spaced {
    justify-content: space-between;
    align-items: center;
}

.admin-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.field.full {
    grid-column: 1 / -1;
}

.admin-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}

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

.admin-grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 14px;
}

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

.admin-grid-5.admin-top-gap {
    margin-top: 12px;
}

.admin-stat-card {
    padding: 14px;
    border-radius: 14px;
    text-align: center;
    border: 1px solid rgba(77, 163, 255, 0.12);
}

.admin-stat-card .num {
    font-size: 26px;
    font-weight: 700;
}

.admin-stat-card .lb {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.admin-stat-card.primary .num {
    color: var(--primary-strong);
}

.admin-stat-card.success .num {
    color: #0e9f75;
}

.admin-stat-card.danger .num {
    color: #d43b52;
}

.admin-stat-card.warning .num {
    color: #c2410c;
}

.admin-stat-card.purple .num {
    color: #6941c6;
}

.admin-card-flat {
    border: 1px solid rgba(77, 163, 255, 0.12);
    border-radius: 12px;
    background: rgba(245, 250, 255, 0.92);
    padding: 10px 12px;
}

.admin-card-flat.alt {
    background: rgba(244, 243, 255, 0.95);
}

.admin-card-flat.soft {
    background: rgba(235, 246, 255, 0.95);
}

.admin-card-flat.success {
    background: rgba(236, 251, 246, 0.95);
}

.admin-card-flat.warning {
    background: rgba(255, 247, 237, 0.95);
}

.admin-card-flat.danger {
    background: rgba(255, 241, 240, 0.95);
}

.admin-kpi-number {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.1;
}

.admin-kpi-number.primary {
    color: var(--text-primary);
}

.admin-kpi-number.brand {
    color: var(--primary-strong);
}

.admin-kpi-number.purple {
    color: #6941c6;
}

.admin-kpi-number.warning {
    color: #c2410c;
}

.admin-kpi-number.small {
    font-size: 20px;
}

.admin-chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 120px;
    padding: 8px 0;
}

.admin-chart-item {
    flex: 1;
    text-align: center;
}

.admin-chart-bar-wrap {
    height: 100px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.admin-chart-bar {
    width: 70%;
    border-radius: 4px 4px 0 0;
    transition: height 0.3s;
}

.admin-chart-bar.today {
    background: #534ab7;
}

.admin-chart-bar.normal {
    background: #cecbf6;
}

.admin-chart-label {
    font-size: 10px;
    color: #888;
    margin-top: 4px;
}

.admin-chart-value {
    font-size: 11px;
    font-weight: 600;
    color: #534ab7;
}

.admin-bar-item {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    font-size: 12px;
}

.admin-bar-fill {
    height: 6px;
    border-radius: 3px;
    min-width: 4px;
}

.admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.admin-toolbar-right {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-summary-block {
    font-size: 12px;
    color: var(--text-secondary);
    background: rgba(245, 250, 255, 0.92);
    border: 1px solid rgba(77, 163, 255, 0.12);
    border-radius: 12px;
    padding: 10px 12px;
}

.admin-summary-block.alt {
    background: rgba(244, 243, 255, 0.95);
}

.admin-summary-block.soft {
    background: rgba(248, 250, 252, 0.92);
    border-color: #e5e7eb;
}

.admin-summary-block.warn {
    background: #fff7ed;
    border-color: #fed7aa;
}

.admin-summary-block.info {
    background: #eef2ff;
    border-color: #c7d2fe;
}

.admin-top-gap {
    margin-top: 12px;
}

.admin-mt-0 {
    margin-top: 0;
}

.admin-mb-0 {
    margin-bottom: 0;
}

.admin-mb-8 {
    margin-bottom: 8px;
}

.admin-mb-16 {
    margin-bottom: 18px;
}

.admin-ml-auto {
    margin-left: auto;
}

.admin-btn-light {
    background: #eee;
    color: #555;
}

.admin-btn-indigo {
    background: #E0E7FF;
    color: #3730A3;
}

.admin-btn-emerald {
    background: #ECFDF3;
    color: #027A48;
}

.admin-link-primary {
    color: #3B82F6;
}

.admin-link-danger {
    color: #D85A30;
}

.admin-box-info {
    font-size: 12px;
    color: #0f172a;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: 10px;
    padding: 10px 12px;
    margin-top: 12px;
}

.admin-box-soft {
    padding: 10px 12px;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    background: #F8FAFC;
    font-size: 13px;
    color: #475467;
}

.admin-inline-check {
    margin: 0;
    font-weight: 600;
    gap: 6px;
    display: inline-flex;
    align-items: center;
}

.admin-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 12px;
}

.admin-actions.wrap {
    flex-wrap: wrap;
}

.admin-gap-6 {
    gap: 6px;
}

.admin-gap-10 {
    gap: 10px;
}

.admin-fs-12 {
    font-size: 12px;
}

.admin-fs-13 {
    font-size: 13px;
}

.admin-w-30 {
    width: 30px;
}

.admin-w-50 {
    width: 50px;
}

.admin-w-60 {
    width: 60px;
}

.admin-w-70 {
    width: 70px;
}

.admin-w-80 {
    width: 80px;
}

.admin-w-90 {
    width: 90px;
}

.admin-w-100 {
    width: 100px;
}

.admin-w-120 {
    width: 120px;
}

/* ============================================================================
   后台旧类兼容
   ============================================================================ */

.card {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(77, 163, 255, 0.14);
    border-radius: 18px;
    padding: 22px 26px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 14px;
    backdrop-filter: blur(14px);
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
}

.topbar .t {
    font-size: 16px;
    font-weight: 700;
}

.topbar a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 13px;
    margin-left: 12px;
}

.nav {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.56);
    border: 1px solid rgba(77, 163, 255, 0.12);
    border-radius: 14px;
    padding: 4px;
    flex-wrap: wrap;
    backdrop-filter: blur(12px);
}

.nav a {
    padding: 7px 14px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.nav a.act {
    background: rgba(77, 163, 255, 0.12);
    color: var(--primary-color);
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.msg {
    padding: 9px 14px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 12px;
    backdrop-filter: blur(10px);
}

.msg.ok {
    background: rgba(75, 201, 163, 0.12);
    color: #0e9f75;
    border: 1px solid rgba(75, 201, 163, 0.18);
}

.msg.err {
    background: rgba(255, 107, 122, 0.12);
    color: #d43b52;
    border: 1px solid rgba(255, 107, 122, 0.18);
}

.btn-p {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-strong));
    color: #fff;
}

.btn-p:hover {
    transform: translateY(-1px);
}

.btn-g {
    background: linear-gradient(135deg, var(--success-color), #37b18a);
    color: #fff;
}

.btn-d {
    background: linear-gradient(135deg, var(--error-color), #e0566b);
    color: #fff;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

.btn-export {
    background: rgba(235, 246, 255, 0.95);
    color: var(--primary-strong);
    text-decoration: none;
    font-size: 12px;
    border: 1px solid rgba(77, 163, 255, 0.14);
}

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

.g3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}

.srch-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.srch-row input,
.srch-row select {
    width: auto;
    min-width: 120px;
    flex: 1;
}

.checkbox-cell {
    text-align: center;
}

.checkbox-cell input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
}

.meta {
    font-size: 12px;
    color: var(--text-disabled);
}

.login-card {
    max-width: 360px;
    margin: 80px auto;
}

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

.subnav a {
    padding: 8px 14px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 12px;
    background: rgba(245, 250, 255, 0.92);
    color: var(--text-secondary);
    border: 1px solid rgba(77, 163, 255, 0.1);
}

.subnav a.act {
    background: rgba(77, 163, 255, 0.12);
    color: var(--primary-color);
}

.template-grid-admin {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 14px;
}

.template-card-admin {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(77, 163, 255, 0.12);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.template-card-cover {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: linear-gradient(135deg, #eff6ff, #f6fbff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    color: var(--primary-strong);
}

.template-card-body {
    padding: 14px;
}

.template-card-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.template-card-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
    min-height: 38px;
}

.template-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.template-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.template-chip {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    background: rgba(245, 250, 255, 0.92);
    color: var(--text-secondary);
    border: 1px solid rgba(77, 163, 255, 0.1);
}

.template-chip.ok {
    background: rgba(75, 201, 163, 0.12);
    color: #0e9f75;
}

.template-chip.warn {
    background: rgba(255, 219, 147, 0.18);
    color: #9a6700;
}

.template-chip.info {
    background: rgba(77, 163, 255, 0.12);
    color: var(--primary-strong);
}

.batch-preset-panel {
    margin-top: 14px;
    padding: 16px;
    border: 1px solid rgba(77, 163, 255, 0.12);
    border-radius: 16px;
    background: rgba(245, 250, 255, 0.92);
}

.batch-preset-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-bottom: 14px;
}

.batch-preset-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.batch-preset-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: 4px;
}

.batch-preset-items {
    display: grid;
    gap: 12px;
}

.batch-preset-item {
    border: 1px solid rgba(77, 163, 255, 0.12);
    border-radius: 16px;
    background: #fff;
    padding: 14px;
}

.batch-preset-item-hd {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 12px;
}

.batch-preset-item-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--text-primary);
}

.batch-preset-item-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 12px;
}

.batch-preset-item-grid .full {
    grid-column: 1 / -1;
}

.batch-preset-item-grid input[type="text"],
.batch-preset-item-grid input[type="number"] {
    min-width: 0;
}

.batch-preset-advanced {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed rgba(77, 163, 255, 0.16);
}

.template-empty {
    padding: 28px 16px;
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
    background: rgba(245, 250, 255, 0.92);
    border: 1px dashed rgba(77, 163, 255, 0.16);
    border-radius: 16px;
}

.template-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.template-modal-mask {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(12, 28, 50, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.template-modal-mask.show {
    display: flex;
}

.template-modal-panel {
    width: min(760px, 100%);
    max-height: 90vh;
    overflow: auto;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(12, 28, 50, 0.22);
}

.template-modal-hd {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(77, 163, 255, 0.12);
}

.template-modal-bd {
    padding: 20px 22px;
}

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

.template-form-grid .full {
    grid-column: 1 / -1;
}

.template-close-btn {
    border: none;
    background: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: var(--text-disabled);
}

.share-box {
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(245, 250, 255, 0.95);
    border: 1px solid rgba(77, 163, 255, 0.12);
    font-size: 12px;
    color: var(--text-primary);
    word-break: break-all;
}

.style-swatch {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, #F8FAFC, #E2E8F0);
    position: relative;
}

.style-swatch::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, .55), rgba(15, 23, 42, .06));
}

.range-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.range-field {
    padding: 12px;
    border: 1px solid rgba(77, 163, 255, 0.12);
    border-radius: 12px;
    background: rgba(245, 250, 255, 0.92);
}

.range-field input[type="range"] {
    padding: 0;
    border: none;
}

@media (max-width: 700px) {
    .g2,
    .g3,
    .template-form-grid,
    .range-grid,
    .batch-preset-item-grid {
        grid-template-columns: 1fr;
    }
}

.admin-soft-panel {
    background: rgba(245, 250, 255, 0.92);
    border: 1px solid rgba(77, 163, 255, 0.12);
    border-radius: 12px;
    padding: 10px 12px;
}

.admin-soft-panel.info {
    background: #eef2ff;
    border-color: #c7d2fe;
}

.admin-soft-panel.warn {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.admin-soft-panel.narrow {
    max-width: 560px;
}

.admin-flex-gap {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-flex-gap.center {
    align-items: center;
}

.admin-flex-gap.end {
    justify-content: flex-end;
}

.admin-section-title {
    margin-bottom: 10px;
}

.admin-section-title.tight {
    margin-bottom: 6px;
}

.admin-w-400 {
    max-width: 400px;
}

.admin-center {
    margin-left: auto;
    margin-right: auto;
}

.admin-mt-16 {
    margin-top: 16px;
}

.admin-mt-10 {
    margin-top: 10px;
}

.admin-mt-12 {
    margin-top: 12px;
}

.admin-w-450 {
    max-width: 450px;
}

.admin-w-500 {
    max-width: 500px;
}

.admin-w-560 {
    max-width: 560px;
}

.admin-w-760 {
    max-width: 760px;
}

.admin-btn-wide {
    width: 100%;
}

.admin-auto-width {
    width: auto;
}

.admin-wide-30 {
    width: 30px;
}

.admin-wide-90 {
    width: 90px;
}

.admin-wide-50 {
    width: 50px;
}

.admin-wide-70 {
    width: 70px;
}

.admin-wide-80 {
    width: 80px;
}

.admin-wide-100 {
    width: 100px;
}

.admin-wide-120 {
    width: 120px;
}

.admin-wide-60 {
    width: 60px;
}

.admin-wide-100p {
    width: 100%;
}

.admin-text-muted {
    color: #888;
}

.admin-summary-muted {
    color: #4B5563;
}

.admin-card-inline {
    display: inline;
}

.admin-card-inline-flex {
    display: inline-flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.admin-card-inline-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-grid-five {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.admin-grid-wrap {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-grid-wrap.gap-10 {
    gap: 10px;
}

.admin-flex-1 {
    flex: 1;
}

.admin-mb-18 {
    margin-bottom: 18px;
}

.admin-bg-soft {
    background: #FAFCFF;
}

.admin-inline-flex {
    display: inline-flex;
}

.admin-cursor-pointer {
    cursor: pointer;
}

.admin-mr-6 {
    margin-right: 6px;
}

.admin-mr-8 {
    margin-right: 8px;
}

.admin-align-center {
    align-items: center;
}

.admin-text-center {
    text-align: center;
}
