/**
 * 道具商城 - 与寄售行/拍卖大会统一的活动页风格
 */

.shop-page .page-container {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 0 24px;
}

.shop-page .act-page-header h1 {
    font-size: 1.45rem;
    background: linear-gradient(90deg, #7ee787, #00d9ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shop-section {
    padding: 0 12px;
}

.shop-page .shop-panel.panel-box {
    border: none;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.shop-panel-head {
    padding: 14px 16px;
}

.shop-panel-head h2 {
    font-size: 1.05rem;
    color: #7ee787;
}

.shop-panel-head .panel-box-meta {
    color: var(--act-muted);
    font-size: 12px;
}

.shop-tabs {
    justify-content: center;
    padding: 0 14px 12px;
    margin: 0;
    border-bottom: 1px solid var(--act-border);
    background: rgba(0, 0, 0, 0.2);
}

.shop-panel-body {
    padding: 14px;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.shop-card {
    background: linear-gradient(180deg, rgba(26, 26, 46, 0.95) 0%, rgba(22, 33, 62, 0.95) 100%);
    border: 1px solid rgba(126, 231, 135, 0.22);
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    text-align: left;
}

.shop-card:active {
    transform: scale(0.98);
}

.shop-card:hover {
    border-color: rgba(126, 231, 135, 0.45);
    box-shadow: 0 8px 24px rgba(126, 231, 135, 0.12);
}

.shop-card-img-wrap {
    aspect-ratio: 1;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
}

.shop-card-img-wrap img {
    width: 100%;
    height: 100%;
    max-height: 100px;
    object-fit: contain;
    border-radius: 8px;
}

.shop-card-body {
    padding: 10px 12px 12px;
}

.shop-card-name {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--act-text);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
}

.shop-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    flex-wrap: wrap;
}

.shop-card-price {
    font-size: 15px;
    font-weight: 800;
    color: #7ee787;
}

.shop-card-price small {
    font-size: 11px;
    font-weight: 500;
    color: var(--act-muted);
}

.shop-card-limit {
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 8px;
    background: rgba(255, 61, 0, 0.2);
    color: #ffab40;
    border: 1px solid rgba(255, 145, 0, 0.35);
    white-space: nowrap;
}

.shop-card-limit.is-ok {
    background: rgba(126, 231, 135, 0.15);
    color: #7ee787;
    border-color: rgba(126, 231, 135, 0.3);
}

.shop-empty,
.shop-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 16px;
    color: var(--act-muted);
    font-size: 14px;
}

.shop-loading .spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(126, 231, 135, 0.2);
    border-top-color: #7ee787;
    border-radius: 50%;
    margin: 0 auto 12px;
    animation: shopSpin 0.8s linear infinite;
}

@keyframes shopSpin {
    to { transform: rotate(360deg); }
}

/* 购买抽屉 */
.shop-modal-sheet {
    border-top: 2px solid rgba(126, 231, 135, 0.45);
}

.shop-detail-top {
    display: flex;
    gap: 14px;
    margin-bottom: 18px;
}

.shop-detail-img {
    width: 96px;
    height: 96px;
    flex-shrink: 0;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--act-border);
    object-fit: contain;
    padding: 6px;
    box-sizing: border-box;
}

.shop-detail-info {
    flex: 1;
    min-width: 0;
}

.shop-detail-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: #7ee787;
    margin: 0 0 8px;
}

.shop-detail-price span {
    font-size: 13px;
    font-weight: 500;
    color: var(--act-muted);
}

.shop-detail-desc,
.shop-detail-limit {
    margin: 0 0 6px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--act-muted);
}

.shop-detail-limit {
    color: #ffab40;
}

.shop-buy-block label {
    display: block;
    font-size: 13px;
    color: var(--act-muted);
    margin-bottom: 8px;
}

.shop-qty-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.shop-qty-row .qty-btn {
    width: 44px;
    height: 44px;
    border: 1px solid var(--act-border);
    background: rgba(0, 0, 0, 0.35);
    color: var(--act-text);
    border-radius: 10px;
    font-size: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

.shop-qty-row input {
    flex: 1;
    min-height: 44px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    border-radius: 10px;
    border: 1px solid var(--act-border);
    background: rgba(0, 0, 0, 0.35);
    color: var(--act-text);
}

.shop-total-line {
    text-align: center;
    margin-bottom: 4px;
    font-size: 15px;
    color: var(--act-text);
}

.shop-total-line strong {
    color: #7ee787;
    font-size: 1.25rem;
}

.shop-page .act-btn-primary.shop-btn-buy {
    background: linear-gradient(90deg, #2ecc71, #7ee787);
    color: #0f1419;
    box-shadow: 0 4px 16px rgba(126, 231, 135, 0.35);
}

.shop-modal-open {
    overflow: hidden;
}

@media (max-width: 380px) {
    .shop-grid {
        gap: 10px;
    }

    .shop-card-body {
        padding: 8px 10px 10px;
    }

    .shop-card-name {
        font-size: 12px;
        min-height: auto;
        -webkit-line-clamp: 2;
    }
}
