/**
 * ============================================================
 * CtrlEat Official Shopping Website
 * ============================================================
 * CtrlEat 正式版购物网站
 * 版权归天河星雨工作室[thxymc Studio] thxymc.com所有
 * Copyright © 2026 thxymc.com. All rights reserved.
 * 网页由天河星雨工作室制作 thxymc.com
 * ！！未经允许禁止公开源码！！
 * ============================================================
 */

.wish-topbar {
    position: sticky;
    top: 0;
    z-index: 80;
    min-height: 68px;
    padding: 0 5vw;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.95);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.wish-topbar .ce-logo {
    color: #16a34a;
    font-size: 1.5rem;
    font-weight: 1000;
    text-decoration: none;
}

.wish-topbar .ce-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.wish-topbar .ce-nav a {
    color: #334155;
    text-decoration: none;
    font-weight: 900;
}

.wish-topbar .ce-nav a.active,
.wish-topbar .ce-nav a:hover {
    color: #16a34a;
}

.wish-page {
    width: min(1120px, calc(100% - 28px));
    margin: 28px auto 56px;
}

.wish-page-narrow {
    width: min(760px, calc(100% - 28px));
}

.wish-hero,
.wish-form-card,
.wish-detail,
.wish-alert,
.wish-empty,
.wish-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.wish-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 24px;
    margin-bottom: 18px;
}

.wish-hero h1,
.wish-form-head h1,
.wish-detail h1 {
    margin: 4px 0 8px;
    font-size: clamp(1.9rem, 4vw, 3.2rem);
    letter-spacing: 0;
}

.wish-hero p,
.wish-form-head p {
    margin: 0;
    color: #64748b;
    font-weight: 800;
    line-height: 1.7;
}

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

.wish-card {
    display: grid;
    grid-template-rows: 170px minmax(0, 1fr);
    overflow: hidden;
    min-width: 0;
}

.wish-card-image,
.wish-card-image img,
.wish-detail > img {
    display: block;
    width: 100%;
    height: 100%;
}

.wish-card-image img,
.wish-detail > img,
.wish-admin-detail img {
    object-fit: contain;
    background: #f8fafc;
}

.wish-card-body {
    padding: 14px;
    display: grid;
    gap: 8px;
    min-width: 0;
}

.wish-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.wish-badge,
.wish-status-badge {
    width: fit-content;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 0.78rem;
    font-weight: 1000;
    line-height: 1.25;
}

.wish-badge {
    background: #ecfdf5;
    color: #166534;
}

.wish-badge.muted {
    background: #f1f5f9;
    color: #475569;
}

.wish-status-badge {
    background: #f1f5f9;
    color: #475569;
}

.wish-status-badge.status-approved {
    background: #dcfce7;
    color: #166534;
}

.wish-status-badge.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.wish-status-badge.status-hidden,
.wish-status-badge.status-closed,
.wish-status-badge.status-archived,
.wish-status-badge.status-rejected,
.wish-status-badge.status-deleted {
    background: #fee2e2;
    color: #991b1b;
}

.wish-card h2,
.wish-card h3 {
    margin: 0;
    color: #0f172a;
    font-size: 1.05rem;
    overflow-wrap: anywhere;
}

.wish-card p,
.wish-description,
.wish-admin-description {
    margin: 0;
    color: #64748b;
    line-height: 1.65;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.wish-meta,
.wish-admin-info {
    display: grid;
    gap: 6px;
    margin: 0;
}

.wish-meta div,
.wish-admin-info div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    color: #64748b;
    font-size: 0.84rem;
    font-weight: 850;
}

.wish-meta dt,
.wish-admin-info dt {
    margin: 0;
    color: #94a3b8;
}

.wish-meta dd,
.wish-admin-info dd {
    margin: 0;
    text-align: right;
    color: #0f172a;
    overflow-wrap: anywhere;
}

.wish-card-actions,
.wish-form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.wish-card-actions form {
    margin: 0;
}

.wish-btn,
.wish-outline-btn {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0 16px;
    font-weight: 1000;
    text-decoration: none;
    cursor: pointer;
}

.wish-btn {
    border: 0;
    background: #16a34a;
    color: #fff;
    box-shadow: 0 10px 22px rgba(22, 163, 74, 0.18);
}

.wish-btn.compact,
.wish-outline-btn {
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.86rem;
}

.wish-outline-btn {
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.wish-linked-product {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    background: #f8fbff;
    color: #075985;
    font-weight: 900;
    margin: 10px 0;
    padding: 8px 10px;
    text-decoration: none;
}

.wish-linked-product img {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 10px;
    object-fit: contain;
    background: #fff;
}

.wish-linked-product span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.wish-linked-product b {
    color: #16a34a;
    white-space: nowrap;
}

.wish-linked-product.is-offline {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #64748b;
}

.wish-linked-product.admin {
    margin: 0;
}

.wish-form-card {
    padding: 22px;
}

.wish-form-head {
    display: grid;
    gap: 6px;
    margin-bottom: 18px;
}

.wish-form-card form {
    display: grid;
    gap: 13px;
}

.wish-form-card label {
    display: grid;
    gap: 6px;
    color: #0f172a;
    font-weight: 900;
}

.wish-form-card input,
.wish-form-card select,
.wish-form-card textarea {
    width: 100%;
    min-width: 0;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 11px 12px;
    font: inherit;
    background: #fff;
}

.wish-detail {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 22px;
    padding: 22px;
}

.wish-detail > img {
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.wish-detail-body {
    display: grid;
    gap: 12px;
    min-width: 0;
}

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

.detail-actions {
    margin-top: 8px;
}

.wish-alert,
.wish-empty {
    padding: 14px;
    margin-bottom: 14px;
    text-align: center;
    font-weight: 900;
}

.wish-alert.success {
    background: #ecfdf5;
    color: #166534;
}

.wish-alert.error {
    background: #fff1f2;
    color: #be123c;
}

.wish-admin-main {
    overflow-x: hidden;
}

.wish-admin-dashboard,
.wish-admin-layout {
    display: grid;
    gap: 18px;
}

.wish-admin-dashboard {
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
    margin-bottom: 18px;
}

.wish-admin-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    align-items: start;
}

.wish-admin-card {
    min-width: 0;
}

.wish-switch-grid,
.wish-admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.wish-filter-pills,
.wish-status-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wish-filter-pills a,
.wish-admin-link,
.wish-status-actions .admin-btn,
.wish-admin-card .admin-btn {
    text-decoration: none;
}

.wish-admin-topbar .admin-btn,
.wish-status-actions .admin-btn,
.wish-admin-card .admin-btn {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    padding: 0 14px;
    background: #f1f5f9;
    color: #334155;
    font-weight: 1000;
    cursor: pointer;
}

.wish-admin-topbar .admin-btn.primary,
.wish-status-actions .admin-btn.primary,
.wish-admin-card .admin-btn.primary {
    background: #16a34a;
    color: #fff;
    box-shadow: 0 10px 22px rgba(22, 163, 74, 0.18);
}

.wish-filter-pills a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    padding: 0 13px;
    border-radius: 999px;
    background: #f8fafc;
    color: #334155;
    border: 1px solid #e2e8f0;
    font-weight: 1000;
}

.wish-filter-pills a.active,
.wish-filter-pills a:hover {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
}

.wish-admin-table tr.is-selected td {
    background: #f0fdf4;
}

.wish-admin-link {
    color: #16a34a;
    font-weight: 1000;
}

.wish-admin-detail {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.wish-admin-detail img {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
}

.wish-admin-detail-body {
    min-width: 0;
    display: grid;
    gap: 10px;
}

.wish-admin-detail h3 {
    margin: 0;
    overflow-wrap: anywhere;
}

.wish-admin-section {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.wish-admin-section h3 {
    margin: 0 0 12px;
    font-size: 1rem;
}

.danger-zone {
    padding: 14px;
    border: 1px solid #fecaca;
    border-radius: 16px;
    background: #fff1f2;
}

.admin-btn.danger {
    background: #dc2626;
    color: #fff;
}

@media (max-width: 920px) {
    .wish-admin-dashboard,
    .wish-admin-layout {
        grid-template-columns: 1fr;
    }

    .wish-detail {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .wish-topbar {
        align-items: flex-start;
        flex-direction: column;
        padding: 10px 4vw;
        gap: 8px;
    }

    .wish-topbar .ce-logo {
        font-size: 1.25rem;
    }

    .wish-topbar .ce-nav {
        gap: 0.55rem;
    }

    .wish-topbar .ce-nav a {
        font-size: 0.8rem;
    }

    .wish-page,
    .wish-page-narrow {
        width: min(100% - 16px, 1120px);
        margin-top: 12px;
    }

    .wish-hero {
        align-items: stretch;
        flex-direction: column;
        padding: 16px;
    }

    .wish-grid {
        grid-template-columns: 1fr;
    }

    .wish-card {
        grid-template-columns: 96px minmax(0, 1fr);
        grid-template-rows: auto;
    }

    .wish-card-image {
        min-height: 118px;
    }

    .wish-card-body {
        padding: 10px;
    }

    .wish-card h2 {
        font-size: 0.98rem;
    }

    .wish-card p {
        font-size: 0.82rem;
        line-height: 1.45;
    }

    .wish-meta div {
        font-size: 0.76rem;
    }

    .detail-meta,
    .wish-switch-grid,
    .wish-admin-form-grid {
        grid-template-columns: 1fr;
    }

    .wish-form-card,
    .wish-detail {
        padding: 14px;
    }

    .wish-admin-detail {
        grid-template-columns: 1fr;
    }

    .wish-admin-detail img {
        max-height: 220px;
    }

    .wish-filter-pills a,
    .wish-status-actions .admin-btn,
    .wish-admin-card .admin-btn {
        min-height: 34px;
        padding-inline: 11px;
        font-size: 0.84rem;
    }
}
