* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #f0f4f8 0%, #f9fafc 100%);
    color: #333;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部 */
header {
    background: linear-gradient(135deg, #e53935 0%, #ff5252 100%);
    color: white;
    padding: 40px 0;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(229, 57, 53, 0.3);
}

header h1 {
    font-size: 2rem;
    margin-bottom: 8px;
    font-weight: bold;
}

header p {
    font-size: 1rem;
    opacity: 0.95;
}

/* 分类筛选 */
.categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    background: white;
    padding: 12px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.category-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    background-color: #f0f4f8;
    font-size: 0.95rem;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
}

.category-btn:hover {
    background-color: #e2e8f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.category-btn.active {
    background: linear-gradient(135deg, #e53935 0%, #ff5252 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.3);
}

/* 优惠券网格 */
.coupon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

/* 优惠券卡片 */
.coupon-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.coupon-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.coupon-image {
    width: 100%;
    aspect-ratio: 16/9;
    height: auto;
    object-fit: cover;
}

.coupon-content {
    padding: 18px;
}

.coupon-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1a1f35;
}

.coupon-desc {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 15px;
    line-height: 1.6;
}

.coupon-progress {
    margin-bottom: 15px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 0.85rem;
    color: #475569;
}

.progress-bar {
    width: 100%;
    height: 18px;
    background-color: #e2e8f0;
    border-radius: 9px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4caf50 0%, #8bc34a 100%);
    border-radius: 9px;
    transition: width 0.5s ease;
}

.remaining {
    font-size: 1.1rem;
    color: #e53935;
    font-weight: 700;
}

.get-coupon-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #e53935 0%, #ff5252 100%);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.3);
    text-decoration: none;
    display: block;
    text-align: center;
}

.get-coupon-btn:hover {
    background: linear-gradient(135deg, #c62828 0%, #e53935 100%);
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(229, 57, 53, 0.4);
}

.get-coupon-btn:active {
    transform: scale(0.98);
}

/* 空状态 */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
    background: white;
    border-radius: 16px;
    font-size: 1.1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

/* 骨架屏 */
.skeleton {
    pointer-events: none;
}

.skeleton-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

.skeleton-title {
    width: 80%;
    height: 20px;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

.skeleton-desc {
    width: 100%;
    height: 14px;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

.skeleton-btn {
    width: 100%;
    height: 42px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 10px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@media (max-width: 768px) {
    .skeleton-image {
        height: 80px;
    }
    .skeleton-title {
        height: 14px;
    }
    .skeleton-desc {
        height: 10px;
    }
    .skeleton-btn {
        height: 32px;
    }
}

/* 页脚已删除 */

/* 响应式适配 */
@media (max-width: 768px) {
    header {
        padding: 25px 0;
        margin-bottom: 15px;
    }
    
    header h1 {
        font-size: 1.4rem;
    }

    header p {
        font-size: 0.85rem;
    }

    .categories {
        border-radius: 10px;
        justify-content: flex-start;
        padding: 8px;
        gap: 6px;
        margin-bottom: 12px;
    }

    .category-btn {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .coupon-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 0 8px;
    }

    .coupon-card {
        flex-direction: column;
        border-radius: 10px;
    }

    .coupon-image {
        width: 100%;
        aspect-ratio: 16/9;
        height: auto;
    }

    .coupon-content {
        padding: 8px;
    }

    .coupon-title {
        font-size: 0.8rem;
        margin-bottom: 4px;
    }

    .coupon-desc {
        font-size: 0.65rem;
        margin-bottom: 6px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .coupon-progress {
        margin-bottom: 8px;
    }

    .progress-label {
        font-size: 0.6rem;
        margin-bottom: 4px;
    }

    .progress-bar {
        height: 10px;
    }

    .remaining {
        font-size: 0.7rem;
    }

    .get-coupon-btn {
        padding: 6px;
        font-size: 0.7rem;
        border-radius: 6px;
    }
}

/* 弹窗样式已移除（羊毛群功能已删除） */

@media (max-width: 768px) {
    .modal-content {
        padding: 25px 20px;
    }

    .modal-content h2 {
        font-size: 1.2rem;
    }

    .modal-desc {
        font-size: 0.85rem;
    }

    .modal-qrcode img {
        width: 150px;
        height: 150px;
    }
}
