/* 优惠券吧页面 */
.coupon-hero {
    padding: 54px 0 46px;
    background: linear-gradient(135deg, #eef8ff 0%, #f4f0ff 55%, #ecfbf6 100%);
    border-bottom: 1px solid #e4eef7;
}

.coupon-hero-inner {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    text-align: center;
}

.coupon-hero h1 {
    margin: 0 0 10px;
    color: #173f6b;
    font-size: 34px;
}

.coupon-hero p {
    margin: 0;
    color: #60788f;
    font-size: 15px;
}

.coupon-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.coupon-tab {
    padding: 9px 20px;
    color: #55708a;
    font-size: 14px;
    background: #f4f8fc;
    border: 1px solid #dbe8f3;
    border-radius: 999px;
    cursor: pointer;
}

.coupon-tab.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, #2980b9, #2e9e4f);
    border-color: transparent;
}

.coupon-panel {
    display: none;
}

.coupon-panel.is-active {
    display: block;
}

.coupon-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.coupon-card {
    padding: 20px;
    background: linear-gradient(135deg, #fff7ed 0%, #fffdf8 100%);
    border: 1px solid #f2d7ad;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(180, 120, 40, 0.08);
}

.coupon-card.is-mine {
    background: linear-gradient(135deg, #edf9f2 0%, #f8fffb 100%);
    border-color: #bfe7cc;
}

.coupon-card-amount {
    color: #d97706;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.1;
}

.coupon-card-amount small {
    margin-left: 8px;
    color: #9a6b2f;
    font-size: 13px;
    font-weight: 400;
}

.coupon-card.is-mine .coupon-card-amount {
    color: #218c53;
}

.coupon-card.is-used,
.coupon-card.is-expired {
    opacity: 0.72;
    background: #f5f7fa;
    border-color: #dde4ec;
    box-shadow: none;
}

.coupon-card.is-used .coupon-card-amount,
.coupon-card.is-expired .coupon-card-amount {
    color: #8a97a6;
}

.coupon-card.is-used .coupon-card-tag {
    color: #7a8796;
    background: #e9edf2;
}

.coupon-card.is-expired .coupon-card-tag {
    color: #9a6b2f;
    background: #f7efe2;
}

.coupon-card-name {
    margin: 12px 0 6px;
    color: #25384d;
    font-size: 16px;
    font-weight: 600;
}

.coupon-card-time {
    color: #7b8fa3;
    font-size: 13px;
}

.coupon-claim-btn {
    width: 100%;
    padding: 9px 0;
    margin-top: 16px;
    color: #ffffff;
    font-size: 14px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}

.coupon-claim-btn:disabled {
    background: #d8dee6;
    cursor: default;
}

.coupon-card-tag {
    margin-top: 16px;
    padding: 8px 0;
    color: #218c53;
    font-size: 13px;
    text-align: center;
    background: #e9f8ef;
    border-radius: 8px;
}

.coupon-empty {
    padding: 42px 0;
    color: #9aabbb;
    font-size: 14px;
    text-align: center;
    background: #f8fbfe;
    border: 1px dashed #d9e7f2;
    border-radius: 12px;
}

.coupon-order-card {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid #e8eff6;
}

.coupon-order-title {
    margin: 0 0 14px;
    color: #173f6b;
    font-size: 18px;
}

.coupon-order-table-wrap {
    overflow-x: auto;
}

.coupon-order-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 13px;
}

.coupon-order-table th,
.coupon-order-table td {
    padding: 10px 12px;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-bottom: 1px solid #e8eff6;
}

.coupon-order-table th {
    color: #45637f;
    background: #f6fafe;
}

.coupon-order-table td {
    color: #5c7085;
}

.coupon-order-table .col-no {
    width: 130px;
}

.coupon-order-table .col-name {
    width: 120px;
}

.coupon-order-table .col-amount {
    width: 90px;
}

.coupon-order-table .col-coupon {
    width: 100px;
}

.coupon-order-table .col-discount {
    width: 100px;
}

.coupon-order-table .col-status {
    width: 80px;
}

.coupon-order-table .col-time {
    width: 140px;
}

@media (max-width: 992px) {
    .coupon-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .coupon-grid {
        grid-template-columns: 1fr;
    }
}
