﻿:root[data-theme="minimal"] {
    /* =========================================================
       Core
       ========================================================= */
    --bg: #f7f7f8;
    --bg-soft: #efeff1;
    --bg-elevated: #ffffff;
    --card: #ffffff;
    --card-2: #f8f8fa;
    --text: #121212;
    --text-muted: rgba(18,18,18,.68);
    --text-soft: rgba(18,18,18,.48);
    --primary: #1f1f1f;
    --primary-soft: rgba(0,0,0,.06);
    --primary-strong: #000000;
    --danger: #d94141;
    --success: #1f9d61;
    --warning: #d28a1d;
    --info: #2a78d1;
    --border: rgba(0,0,0,.10);
    --border-strong: rgba(0,0,0,.16);
    /* =========================================================
       Radius
       ========================================================= */
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    /* =========================================================
       Shadow
       ========================================================= */
    --shadow-sm: 0 4px 14px rgba(0,0,0,.05);
    --shadow-md: 0 10px 28px rgba(0,0,0,.08);
    --shadow-lg: 0 18px 44px rgba(0,0,0,.10);
    /* =========================================================
       Buttons
       ========================================================= */
    --btn-text: var(--text);
    --btn-bg: var(--card);
    --btn-border: var(--border);
    --btn-primary-text: #ffffff;
    --btn-primary-bg: #1f1f1f;
    --btn-primary-border: #1f1f1f;
    --btn-secondary-text: var(--text);
    --btn-secondary-bg: #ffffff;
    --btn-secondary-border: var(--border);
    --btn-hover-brightness: 1.02;
    /* =========================================================
       Layout helpers
       ========================================================= */
    --header-h: 64px;
    --footer-h: 56px;
}

    /* =========================================================
   Minimal Theme - Extra Polish
   ========================================================= */

    :root[data-theme="minimal"] body {
        background: var(--bg);
        color: var(--text);
    }

    /* Header / Footer */
    :root[data-theme="minimal"] .site-header,
    :root[data-theme="minimal"] .site-footer {
        background: rgba(255,255,255,.92);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    /* Promo */
    :root[data-theme="minimal"] .promo-carousel,
    :root[data-theme="minimal"] .hf-card,
    :root[data-theme="minimal"] .hp-card,
    :root[data-theme="minimal"] .product-card,
    :root[data-theme="minimal"] .pd-gal,
    :root[data-theme="minimal"] .pd-info,
    :root[data-theme="minimal"] .ck-card,
    :root[data-theme="minimal"] .mini-cart-drawer,
    :root[data-theme="minimal"] .modal-box {
        background: var(--card);
        border-color: var(--border);
        box-shadow: var(--shadow-md);
    }

    /* 首页大图文字层：白主题下减少暗黑感 */
    :root[data-theme="minimal"] .promo-overlay {
        background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,0)), linear-gradient(90deg, rgba(255,255,255,.72), rgba(255,255,255,.16) 58%, rgba(255,255,255,0));
    }

    :root[data-theme="minimal"] .promo-title,
    :root[data-theme="minimal"] .promo-sub,
    :root[data-theme="minimal"] .promo-btn {
        color: var(--text);
    }

    :root[data-theme="minimal"] .promo-btn {
        background: #ffffff;
        border-color: var(--border);
    }

    /* 各种列表项、表单、抽屉小卡片 */
    :root[data-theme="minimal"] .hf-item,
    :root[data-theme="minimal"] .mini-cart-item,
    :root[data-theme="minimal"] .ck-addr,
    :root[data-theme="minimal"] .pd-spec-item,
    :root[data-theme="minimal"] .p-review,
    :root[data-theme="minimal"] .product-card,
    :root[data-theme="minimal"] .pd-thumb,
    :root[data-theme="minimal"] .os-thumb .media {
        background: var(--bg-elevated);
        border-color: var(--border);
    }

    /* 输入框 */
    :root[data-theme="minimal"] .input,
    :root[data-theme="minimal"] input,
    :root[data-theme="minimal"] select,
    :root[data-theme="minimal"] textarea,
    :root[data-theme="minimal"] .shop-filter__input,
    :root[data-theme="minimal"] .shop-filter__select,
    :root[data-theme="minimal"] .ck-input,
    :root[data-theme="minimal"] .ck-select,
    :root[data-theme="minimal"] .ck-textarea,
    :root[data-theme="minimal"] .p-reviews__textarea,
    :root[data-theme="minimal"] .modal-form input {
        background: #ffffff;
        color: var(--text);
        border-color: var(--border);
    }

    /* hover 稍微克制一点 */
    :root[data-theme="minimal"] .product-card:hover,
    :root[data-theme="minimal"] .hf-item:hover,
    :root[data-theme="minimal"] .mini-cart-close:hover,
    :root[data-theme="minimal"] .mc-qty-btn:hover,
    :root[data-theme="minimal"] .nav-toggle:hover,
    :root[data-theme="minimal"] .site-header .nav-links a:hover {
        background: var(--bg-soft);
    }

    /* 价格统一更清楚 */
    :root[data-theme="minimal"] .hp-price,
    :root[data-theme="minimal"] .product-price,
    :root[data-theme="minimal"] .pd-price,
    :root[data-theme="minimal"] .mini-cart-price,
    :root[data-theme="minimal"] .ck-total__price {
        color: var(--primary);
    }

    /* dots */
    :root[data-theme="minimal"] .dot {
        background: rgba(0,0,0,.14);
    }

        :root[data-theme="minimal"] .dot.is-active {
            background: rgba(0,0,0,.82);
        }


/* =========================
   Minimal Theme - My Orders Page
   ========================= */

body.theme-minimal .orders-title {
    color: #111 !important;
    font-size: 30px;
    font-weight: 950;
    letter-spacing: -0.04em;
}

body.theme-minimal .orders-sub {
    color: #6f6a61 !important;
}

body.theme-minimal .orders-count {
    color: #111 !important;
}

body.theme-minimal .orders-tools {
    background: #fff !important;
    border: 1px solid rgba(0,0,0,.08) !important;
    border-radius: 22px !important;
    box-shadow: 0 18px 45px rgba(0,0,0,.06) !important;
}

body.theme-minimal .tool-input,
body.theme-minimal .tool-select {
    background: #fff !important;
    color: #111 !important;
    border: 1px solid rgba(0,0,0,.14) !important;
}

    body.theme-minimal .tool-input::placeholder {
        color: #8b867d !important;
    }

body.theme-minimal .tool-btn {
    background: #111 !important;
    color: #fff !important;
    border: 1px solid #111 !important;
    box-shadow: 0 10px 22px rgba(0,0,0,.14) !important;
}

body.theme-minimal .tool-btn-secondary {
    background: #eeeae2 !important;
    color: #111 !important;
    border: 1px solid rgba(0,0,0,.12) !important;
}

body.theme-minimal .order-card {
    background: #fff !important;
    border: 1px solid rgba(0,0,0,.08) !important;
    border-radius: 22px !important;
    box-shadow: 0 20px 45px rgba(0,0,0,.07) !important;
}

body.theme-minimal .k {
    color: #8a8175 !important;
}

body.theme-minimal .v,
body.theme-minimal .order-no {
    color: #111 !important;
}

body.theme-minimal .amt-pay {
    color: #b8860b !important;
}

body.theme-minimal .order-badge {
    border: none !important;
    color: #fff !important;
}

body.theme-minimal .order-badge-paid,
body.theme-minimal .order-badge-done {
    background: #16a34a !important;
}

body.theme-minimal .order-badge-ship {
    background: #2563eb !important;
}

body.theme-minimal .order-badge-cancel {
    background: #6b7280 !important;
}

body.theme-minimal .order-badge-pending {
    background: #d97706 !important;
}

body.theme-minimal .act button,
body.theme-minimal .act-btn,
body.theme-minimal .act-btn-mini {
    background: #111 !important;
    color: #fff !important;
    border: 1px solid #111 !important;
    border-radius: 999px !important;
    padding: 8px 16px !important;
    font-weight: 900 !important;
}

body.theme-minimal .order-details {
    background: #faf8f3 !important;
}

body.theme-minimal .od-head {
    border-top: 1px solid rgba(0,0,0,.08) !important;
}

body.theme-minimal .od-title {
    color: #111 !important;
}

body.theme-minimal .od-dim {
    color: #6f6a61 !important;
}

body.theme-minimal .od-table {
    background: #fff !important;
    color: #111 !important;
    border: 1px solid rgba(0,0,0,.08) !important;
}

    body.theme-minimal .od-table th {
        color: #8a8175 !important;
    }

    body.theme-minimal .od-table td {
        color: #111 !important;
        border-bottom: 1px solid rgba(0,0,0,.06) !important;
    }

body.theme-minimal .orders-empty {
    background: #fff !important;
    border: 1px solid rgba(0,0,0,.08) !important;
    color: #111 !important;
}

/* =========================
   Minimal Theme - Agent Center
   ========================= */

body.theme-minimal .agent-wrap {
    color: #111;
}

body.theme-minimal .agent-hero {
    padding: 32px;
    margin-bottom: 22px;
    border-radius: 28px;
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 22px 55px rgba(0,0,0,.07);
}

body.theme-minimal .agent-title {
    margin: 0;
    font-size: 38px;
    font-weight: 950;
    letter-spacing: -0.05em;
    color: #111;
}

body.theme-minimal .agent-sub {
    margin-top: 10px;
    color: #6f6a61;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.6;
}

body.theme-minimal .agent-status {
    display: inline-flex;
    margin-top: 20px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 950;
}

    body.theme-minimal .agent-status.active {
        background: #dcfce7;
        color: #15803d;
    }

    body.theme-minimal .agent-status.pending {
        background: #fef3c7;
        color: #b45309;
    }

    body.theme-minimal .agent-status.rejected {
        background: #fee2e2;
        color: #b91c1c;
    }

body.theme-minimal .agent-linkbox {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    margin-top: 22px;
}

body.theme-minimal .agent-input {
    height: 48px;
    padding: 0 16px;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,.12);
    background: #faf8f3;
    color: #111;
    font-weight: 800;
}

body.theme-minimal .agent-btn {
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid #111;
    background: #111;
    color: #fff;
    font-weight: 950;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 26px rgba(0,0,0,.14);
    cursor: pointer;
}

body.theme-minimal .agent-actions {
    margin-top: 22px;
}

body.theme-minimal .agent-note {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fed7aa;
    font-weight: 800;
}

body.theme-minimal .agent-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

body.theme-minimal .agent-card {
    padding: 22px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 18px 42px rgba(0,0,0,.06);
}

body.theme-minimal .agent-card-label {
    color: #8a8175;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

body.theme-minimal .agent-card-value {
    margin-top: 12px;
    color: #111;
    font-size: 26px;
    font-weight: 950;
    letter-spacing: -0.03em;
}

body.theme-minimal .agent-date {
    font-size: 20px;
}

body.theme-minimal .agent-section-title {
    margin: 0 0 16px;
    color: #111;
    font-size: 24px;
    font-weight: 950;
}

body.theme-minimal .agent-empty {
    padding: 18px;
    border-radius: 18px;
    background: #faf8f3;
    border: 1px dashed rgba(0,0,0,.14);
    color: #6f6a61;
    font-weight: 800;
}

body.theme-minimal .agent-customer-list {
    display: grid;
    gap: 12px;
}

body.theme-minimal .agent-customer {
    border-radius: 20px;
    background: #faf8f3;
    border: 1px solid rgba(0,0,0,.08);
    overflow: hidden;
}

    body.theme-minimal .agent-customer summary {
        list-style: none;
        cursor: pointer;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 16px;
        align-items: center;
        padding: 18px;
    }

        body.theme-minimal .agent-customer summary::-webkit-details-marker {
            display: none;
        }

body.theme-minimal .agent-customer-email {
    color: #111;
    font-weight: 950;
    font-size: 16px;
}

body.theme-minimal .agent-customer-id {
    margin-top: 4px;
    color: #8a8175;
    font-size: 12px;
    font-weight: 700;
    word-break: break-all;
}

body.theme-minimal .agent-customer-stats {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    color: #6f6a61;
    font-weight: 850;
}

    body.theme-minimal .agent-customer-stats b {
        color: #b8860b;
    }

body.theme-minimal .agent-customer-body {
    padding: 0 18px 18px;
}

body.theme-minimal .agent-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
}

    body.theme-minimal .agent-table th,
    body.theme-minimal .agent-table td {
        padding: 12px;
        border-bottom: 1px solid rgba(0,0,0,.06);
        color: #111;
    }

    body.theme-minimal .agent-table th {
        color: #8a8175;
        font-size: 12px;
        font-weight: 950;
        letter-spacing: .08em;
        text-transform: uppercase;
    }

@media (max-width: 1100px) {
    body.theme-minimal .agent-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    body.theme-minimal .agent-hero {
        padding: 22px;
    }

    body.theme-minimal .agent-title {
        font-size: 30px;
    }

    body.theme-minimal .agent-linkbox,
    body.theme-minimal .agent-customer summary {
        grid-template-columns: 1fr;
    }

    body.theme-minimal .agent-grid {
        grid-template-columns: 1fr;
    }

    body.theme-minimal .agent-btn {
        width: 100%;
    }
}