.shop-page {
    padding-top: 12px;
}
.shop-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.shop-head h4 {
    margin: 0;
    font-weight: 700;
}
.shop-head .shop-notice {
    color: #888;
    font-size: .8rem;
}
.shop-head-btn,
.shop-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    transition: all .2s ease;
}
.shop-head-btn {
    color: #fff !important;
    background: linear-gradient(135deg, #8f7bff, #6C4CE0);
    box-shadow: 0 3px 10px rgba(108,76,224,.25);
}
.shop-head-btn:hover {
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(108,76,224,.32);
}
.shop-back-btn {
    color: #6C4CE0 !important;
    background: #f0ebff;
    border: 1px solid #ddd2ff;
}
.shop-back-btn:hover {
    color: #4f35c0 !important;
    background: #e6dcff;
    transform: translateY(-1px);
}
.shop-detail-top {
    margin-bottom: 10px;
}
.shop-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.shop-card {
    min-width: 0;
    padding: 8px;
    background: #fff;
    border: 1px solid rgba(108,76,224,.10);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(77,70,150,.05);
}
.shop-card-img {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
    background: #f6f2ff;
    border-radius: 9px;
}
.shop-card-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.shop-card-noimg {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    color: #b9a9e6;
    font-size: 1.2rem;
    text-align: center;
}
.shop-card-name {
    height: 2.2em;
    margin-top: 7px;
    overflow: hidden;
    color: #333;
    font-size: .78rem;
    line-height: 1.1em;
    word-break: break-all;
}
.shop-card-price {
    margin-top: 3px;
    color: #6C4CE0;
    font-size: .82rem;
    font-weight: 700;
}
.shop-card-stock {
    margin-top: 1px;
    color: #999;
    font-size: .68rem;
}
.shop-buy {
    width: 100%;
    margin-top: 5px;
    padding: 3px 0;
    background: #6C4CE0;
    border-color: #6C4CE0;
    border-radius: 999px;
    font-size: .72rem;
}
.shop-buy:hover {
    background: #4f35c0;
    border-color: #4f35c0;
}
.shop-detail {
    padding: 14px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(77,70,150,.05);
}
.shop-detail-img {
    width: 100%;
    max-height: 360px;
    object-fit: contain;
    background: #f6f2ff;
    border-radius: 12px;
}
.shop-detail-name {
    margin: 12px 0 6px;
    font-size: 1.1rem;
    font-weight: 700;
}
.shop-detail-price {
    color: #6C4CE0;
    font-size: 1.2rem;
    font-weight: 700;
}
.shop-detail-block {
    margin-top: 12px;
    color: #555;
    font-size: .9rem;
    line-height: 1.7;
}
.shop-detail-block h5 {
    margin: 0 0 4px;
    color: #333;
    font-size: .92rem;
    font-weight: 700;
}
.shop-orders {
    padding: 12px;
}
.shop-order {
    margin-bottom: 12px;
    padding: 12px;
    background: #fff;
    border: 1px solid rgba(108,76,224,.10);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(77,70,150,.05);
}
.shop-order-top {
    display: flex;
    justify-content: space-between;
    color: #888;
    font-size: .75rem;
}
.shop-order-name {
    margin: 6px 0;
    color: #333;
    font-size: .95rem;
    font-weight: 700;
}
.shop-order-status {
    color: #6C4CE0;
    font-weight: 700;
}
.shop-order-status.wait {
    color: #e67e22;
}
.shop-order-status.done {
    color: #27ae60;
}
.shop-order-content {
    margin-top: 8px;
    padding: 8px;
    background: #faf8ff;
    border-radius: 8px;
    color: #444;
    font-size: .82rem;
    line-height: 1.6;
    word-break: break-all;
}
.shop-order-content pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-all;
    font-family: inherit;
}
.shop-form label {
    font-weight: 600;
}
@media (max-width: 991.98px) {
    .shop-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }
    .shop-card {
        padding: 5px;
        border-radius: 9px;
    }
    .shop-card-name {
        font-size: .68rem;
    }
    .shop-card-price {
        font-size: .72rem;
    }
    .shop-card-stock {
        font-size: .62rem;
    }
    .shop-buy {
        font-size: .64rem;
    }
}
