/* 砍价小能手 */
.bargain-page .bargain-hero h1 {
    background: linear-gradient(90deg, #ffab40, #7ee787, #00d9ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bargain-rule-card,
.bargain-orders,
.bargain-order-card,
.bargain-invite-card,
.bargain-help-card,
.bargain-game-card {
    margin: 0 12px 14px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(126, 231, 135, 0.18);
    background: linear-gradient(180deg, rgba(26, 35, 50, 0.92), rgba(15, 20, 30, 0.92));
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.28);
}

.bargain-rule-card strong {
    color: #7ee787;
}

.bargain-rule-card p {
    margin: 8px 0 0;
    color: var(--act-muted);
    font-size: 13px;
    line-height: 1.6;
}

.bargain-config-box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.bargain-config-item {
    padding: 12px 8px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid var(--act-border);
    text-align: center;
}

.bargain-config-item span {
    display: block;
    color: var(--act-muted);
    font-size: 12px;
    margin-bottom: 6px;
}

.bargain-config-item strong {
    color: #ffab40;
    font-size: 14px;
}

.bargain-modal-actions {
    display: flex;
    gap: 10px;
}

.bargain-modal-actions button {
    flex: 1;
}

.act-btn-secondary.bargain-btn-direct {
    min-height: var(--act-touch);
    border: 1px solid rgba(126, 231, 135, 0.35);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: #7ee787;
    font-size: 16px;
    font-weight: 700;
}

.bargain-btn-invite {
    background: linear-gradient(90deg, #ff9f43, #7ee787);
    color: #0f1419;
    box-shadow: 0 4px 16px rgba(255, 171, 64, 0.28);
}

.bargain-card-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    margin-top: 6px;
    border-radius: 10px;
    color: #ffab40;
    background: rgba(255, 171, 64, 0.13);
    border: 1px solid rgba(255, 171, 64, 0.25);
    font-size: 10px;
}

.bargain-order-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bargain-order-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid var(--act-border);
    color: var(--act-text);
    text-decoration: none;
}

.bargain-order-item h4 {
    margin: 0 0 6px;
    font-size: 14px;
}

.bargain-order-item p {
    margin: 0;
    color: var(--act-muted);
    font-size: 12px;
    line-height: 1.5;
}

.bargain-status {
    align-self: flex-start;
    flex-shrink: 0;
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 12px;
    color: #7ee787;
    background: rgba(126, 231, 135, 0.12);
}

.bargain-status.status-1 { color: #ffab40; background: rgba(255, 171, 64, 0.14); }
.bargain-status.status-2 { color: #00d9ff; background: rgba(0, 217, 255, 0.12); }
.bargain-status.status-3 { color: #ff6b6b; background: rgba(255, 107, 107, 0.12); }

.bargain-order-main {
    display: flex;
    gap: 14px;
}

.bargain-order-img {
    width: 86px;
    height: 86px;
    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;
}

.bargain-order-info {
    flex: 1;
    min-width: 0;
}

.bargain-order-info h2 {
    margin: 0 0 8px;
    font-size: 17px;
}

.bargain-price-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 14px 0;
}

.bargain-price-cell {
    text-align: center;
    padding: 10px 6px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--act-border);
}

.bargain-price-cell span {
    display: block;
    color: var(--act-muted);
    font-size: 12px;
    margin-bottom: 5px;
}

.bargain-price-cell strong {
    color: #7ee787;
    font-size: 16px;
}

.bargain-progress {
    height: 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
    margin: 12px 0 8px;
}

.bargain-progress-fill {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #ff9f43, #7ee787);
    transition: width 0.3s ease;
}

.bargain-order-meta {
    color: var(--act-muted);
    font-size: 12px;
    line-height: 1.7;
}

.bargain-pay-btn {
    margin-top: 14px;
    background: linear-gradient(90deg, #2ecc71, #7ee787);
    color: #0f1419;
}

.bargain-pay-btn:disabled,
.bargain-btn-invite:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.bargain-copy-row {
    display: flex;
    gap: 8px;
}

.bargain-copy-row input {
    flex: 1;
    min-width: 0;
    min-height: 44px;
    padding: 0 10px;
    border-radius: 10px;
    border: 1px solid var(--act-border);
    background: rgba(0, 0, 0, 0.35);
    color: var(--act-text);
}

.bargain-copy-row button {
    min-width: 76px;
    border: none;
    border-radius: 10px;
    background: #7ee787;
    color: #0f1419;
    font-weight: 700;
}

.bargain-helper-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bargain-helper-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.24);
}

.bargain-helper-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.bargain-helper-avatar-text {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f1419;
    background: linear-gradient(135deg, #7ee787, #ffab40);
    font-weight: 800;
}

.bargain-helper-info {
    flex: 1;
    min-width: 0;
}

.bargain-helper-info strong {
    display: block;
    font-size: 13px;
}

.bargain-helper-info span {
    color: var(--act-muted);
    font-size: 12px;
}

.bargain-helper-cut {
    color: #ffab40;
    font-weight: 800;
}

.bargain-empty {
    text-align: center;
    padding: 26px 10px;
    color: var(--act-muted);
    font-size: 13px;
}

.bargain-game-card {
    text-align: center;
}

.bargain-help-code-box,
.bargain-help-game-head,
.bargain-help-info,
.bargain-help-preview {
    margin: 0;
}

.bargain-help-code-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bargain-help-label {
    display: block;
    text-align: left;
    color: var(--act-muted);
    font-size: 13px;
}

.bargain-help-input {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid var(--act-border);
    background: rgba(0, 0, 0, 0.35);
    color: var(--act-text);
}

.bargain-help-submit {
    width: 100%;
    min-height: 44px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
}

.bargain-help-game-head {
    text-align: center;
    margin-bottom: 12px;
}

.bargain-help-game-head h2 {
    margin: 0 0 6px;
    font-size: 18px;
    color: #7ee787;
}

.bargain-help-game-head p {
    margin: 0;
    color: var(--act-muted);
    font-size: 12px;
}

.bargain-help-info {
    text-align: left;
    padding: 12px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.24);
    border: 1px solid var(--act-border);
    margin-bottom: 12px;
}

.bargain-help-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.bargain-help-preview div {
    padding: 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
}

.bargain-help-preview strong {
    display: block;
    color: #7ee787;
    font-size: 12px;
    margin-bottom: 6px;
}

.bargain-help-preview p {
    margin: 0;
    color: var(--act-text);
    font-size: 13px;
    line-height: 1.4;
    word-break: break-all;
}

.bargain-wheel {
    width: 180px;
    height: 180px;
    margin: 12px auto 16px;
    border-radius: 50%;
    padding: 12px;
    background: conic-gradient(from 0deg, #ff9f43, #7ee787, #00d9ff, #ff6b6b, #ff9f43);
    box-shadow: 0 0 36px rgba(255, 171, 64, 0.32);
}

.bargain-wheel.spinning {
    animation: bargainSpin 0.9s linear infinite;
}

.bargain-wheel-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #111a26;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffab40;
    font-size: 4rem;
    font-weight: 900;
}

@keyframes bargainSpin {
    to { transform: rotate(360deg); }
}

.bargain-game-tip {
    color: var(--act-muted);
    font-size: 13px;
    margin: 0 0 14px;
}

@media (max-width: 380px) {
    .bargain-price-grid,
    .bargain-config-box,
    .bargain-help-preview {
        grid-template-columns: 1fr;
    }
}
