/* ===== 页面自定义样式 ===== */
.coupon-header {
    background: linear-gradient(135deg, #FF6B35 0%, #FF8C5A 100%);
    border-radius: 16px;
    padding: 28px 32px;
    color: #fff;
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
}
.coupon-header::after {
    content: '🎫';
    position: absolute;
    right: 20px;
    bottom: 10px;
    font-size: 80px;
    opacity: 0.15;
    transform: rotate(-10deg);
}
.coupon-header h2 {
    font-weight: 700;
    font-size: 28px;
    margin-bottom: 6px;
    letter-spacing: 1px;
}
.coupon-header .sub-info {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 30px;
    font-size: 14px;
    opacity: 0.92;
    margin-top: 8px;
}
.coupon-header .sub-info span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.coupon-header .sub-info .badge-tag {
    background: rgba(255, 255, 255, 0.25);
    padding: 2px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

/* 分类筛选 */
.filter-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    padding: 4px 0;
}
.filter-nav .btn-filter {
    border-radius: 30px;
    padding: 6px 22px;
    font-size: 14px;
    font-weight: 500;
    border: 2px solid #e9ecef;
    background: #fff;
    color: #495057;
    transition: all 0.2s;
    cursor: pointer;
}
.filter-nav .btn-filter:hover {
    border-color: #FF6B35;
    color: #FF6B35;
    background: #fff5f0;
}
.filter-nav .btn-filter.active {
    background: #FF6B35;
    border-color: #FF6B35;
    color: #fff;
}

/* 搜索框 */
.search-wrap {
    max-width: 320px;
    margin-left: auto;
}
.search-wrap .form-control {
    border-radius: 30px;
    border: 2px solid #e9ecef;
    padding: 8px 18px;
    font-size: 14px;
    transition: border-color 0.2s;
}
.search-wrap .form-control:focus {
    border-color: #FF6B35;
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.15);
}

/* 优惠券卡片 - 新布局 */
.coupon-card {
    border: none;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    height: 100%;
    background: #fff;
    overflow: hidden;
    position: relative;
}
.coupon-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(255, 107, 53, 0.12);
}
.coupon-card .card-body {
    padding: 20px 20px 18px;
    display: flex;
    align-items: stretch;
    gap: 16px;
}
.coupon-card .card-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.coupon-card .card-title {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.coupon-card .card-title .tag {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 12px;
    border-radius: 20px;
    background: #f0f0f0;
    color: #6c757d;
    white-space: nowrap;
}
.coupon-card .card-title .tag.hot {
    background: #ffe8e0;
    color: #FF6B35;
}
.coupon-card .card-title .tag.daily {
    background: #e3f0ff;
    color: #0d6efd;
}
.coupon-card .card-title .tag.shop {
    background: #fff3cd;
    color: #b88a00;
}
.coupon-card .card-title .tag.activity {
    background: #d1f7e8;
    color: #0f8b5e;
}
.coupon-card .card-title .tag.recent {
    background: #e7e7ff;
    color: #6c5ce7;
}

.coupon-card .desc {
    font-size: 13px;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
}
.coupon-card .action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}
.coupon-card .action-row .btn-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.coupon-card .btn-claim {
    background: #FF6B35;
    border: none;
    color: #fff;
    border-radius: 30px;
    padding: 6px 24px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.25s;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
}
.coupon-card .btn-claim:hover {
    background: #e55a2b;
    transform: scale(1.04);
    color: #fff;
}
.coupon-card .btn-claim:active {
    transform: scale(0.96);
}
.coupon-card .btn-claim.outline {
    background: transparent;
    border: 2px solid #FF6B35;
    color: #FF6B35;
}
.coupon-card .btn-claim.outline:hover {
    background: #FF6B35;
    color: #fff;
}

/* 二维码右侧区域 - 垂直居中 */
.qr-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    gap: 6px;
}
.qr-thumb {
    width: 128px;
    height: 128px;
    object-fit: contain;
    cursor: pointer;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
    transition: transform 0.2s, box-shadow 0.2s;
}
.qr-thumb:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.qr-wrapper .action-tip {
    font-size: 12px;
    color: #adb5bd;
    text-align: center;
    line-height: 1.4;
    max-width: 90px;
}
.qr-icon-btn {
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    color: #6c757d;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    padding: 0 4px;
}
.qr-icon-btn:hover {
    color: #FF6B35;
}

/* 卡片内装饰 */
.coupon-card .qr-deco {
    font-size: 28px;
    opacity: 0.12;
    position: absolute;
    right: 12px;
    bottom: 8px;
    pointer-events: none;
}

/* 热门活动专区 */
.hot-zone {
    background: linear-gradient(135deg, #fef6f2 0%, #fff 100%);
    border-radius: 16px;
    padding: 24px 28px;
    border: 1px solid #fde8de;
    margin-top: 28px;
}
.hot-zone .hot-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.hot-zone .hot-title .fire {
    font-size: 24px;
}
.hot-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #f0ebe8;
}
.hot-item:last-child {
    border-bottom: none;
}
.hot-item .hot-info {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.hot-item .hot-info .name {
    font-weight: 600;
    font-size: 15px;
    color: #1a1a2e;
}
.hot-item .hot-info .badge-price {
    background: #ff6b351a;
    color: #FF6B35;
    padding: 2px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}
.hot-item .hot-info .badge-price strong {
    font-size: 16px;
}
.hot-item .btn-hot-claim {
    background: #FF6B35;
    border: none;
    color: #fff;
    border-radius: 30px;
    padding: 6px 28px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.25s;
}
.hot-item .btn-hot-claim:hover {
    background: #e55a2b;
    transform: scale(1.04);
    color: #fff;
}

/* 底部说明 */
.footer-tips {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px 24px;
    margin-top: 28px;
    border-left: 4px solid #FF6B35;
    font-size: 14px;
    color: #495057;
    line-height: 1.8;
}
.footer-tips strong {
    color: #FF6B35;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 40px 0;
    color: #adb5bd;
    display: none;
}
.empty-state .empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

/* 统计数字 */
.stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 14px;
    border-radius: 20px;
    font-size: 13px;
}

/* 二维码弹窗样式 */
.qr-modal-img {
    max-width: 200px;
    width: 100%;
    margin: 0 auto 16px;
    display: block;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.qr-modal-tip {
    text-align: center;
    font-size: 15px;
    color: #495057;
    margin-bottom: 20px;
}
.qr-modal-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.qr-modal-actions .btn {
    min-width: 120px;
    border-radius: 30px;
    padding: 8px 24px;
    font-weight: 600;
}

/* 工具介绍 & FAQ 样式 */
.info-section {
    margin-top: 40px;
}
.info-section .card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
    margin-bottom: 20px;
    overflow: hidden;
}
.info-section .card-header {
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    padding: 18px 24px;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.info-section .card-header:hover {
    background: #fafafa;
}
.info-section .card-header .bi {
    font-size: 20px;
    transition: transform 0.3s;
}
.info-section .card-header.collapsed .bi {
    transform: rotate(0deg);
}
.info-section .card-header .bi {
    transform: rotate(180deg);
}
.info-section .card-body {
    padding: 24px 28px;
    background: #fafcff;
    line-height: 1.8;
    font-size: 15px;
    color: #2d3748;
}
.info-section .card-body h6 {
    font-weight: 700;
    margin-top: 18px;
    margin-bottom: 8px;
    color: #1a1a2e;
}
.info-section .card-body ul {
    padding-left: 20px;
    margin-bottom: 12px;
}
.info-section .card-body ul li {
    margin-bottom: 4px;
}
.info-section .faq-item {
    padding: 12px 0;
    border-bottom: 1px solid #edf2f7;
}
.info-section .faq-item:last-child {
    border-bottom: none;
}
.info-section .faq-item .question {
    font-weight: 600;
    color: #1a1a2e;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.info-section .faq-item .question .bi {
    color: #FF6B35;
    font-size: 18px;
}
.info-section .faq-item .answer {
    margin-top: 6px;
    padding-left: 32px;
    color: #4a5568;
    font-size: 14px;
}
.info-section .badge-explore {
    background: #f0f4ff;
    color: #2b6cb0;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* 响应式微调 */
@media (max-width: 576px) {
    .coupon-header {
        padding: 20px 18px;
    }
    .coupon-header h2 {
        font-size: 22px;
    }
    .coupon-header .sub-info {
        font-size: 12px;
        gap: 10px;
    }
    .search-wrap {
        max-width: 100%;
        margin-left: 0;
        margin-top: 12px;
    }
    .filter-nav .btn-filter {
        padding: 4px 14px;
        font-size: 13px;
    }
    .coupon-card .card-body {
        padding: 16px;
        flex-wrap: wrap;
    }
    .qr-thumb {
        width: 70px;
        height: 70px;
    }
    .qr-wrapper .action-tip {
        max-width: 70px;
        font-size: 11px;
    }
    .coupon-card .action-row {
        flex-direction: column;
        align-items: stretch;
    }
    .coupon-card .action-row .btn-group {
        justify-content: flex-end;
    }
    .hot-zone {
        padding: 16px 18px;
    }
    .hot-item .hot-info .name {
        font-size: 14px;
    }
    .info-section .card-body {
        padding: 16px 18px;
    }
    .info-section .faq-item .answer {
        padding-left: 0;
    }
}
