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

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f8f9fa;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}


.btn-primary {
    display: inline-block;
    background-color: #1369d2;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #0d5bb9;
}

.btn-secondary {
    display: inline-block;
    background-color: #f8f9fa;
    color: #1369d2;
    border: 1px solid #1369d2;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background-color: #1369d2;
    color: white;
}


header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    /*top: 0;*/
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo img {
    width: 70px;
    height: 60px;
}


.hero {
    background-color: #f0f0f0;
    text-align: center;
}


.filter-section {
    padding: 20px 0;
    background-color: white;
    border-bottom: 1px solid #eee;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    padding: 6px 16px;
    background-color: #f0f0f0;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.tag.active,
.tag:hover {
    background-color: #1369d2;
    color: white;
}


.coupons-section {
    padding: 40px 0;
}

.section-title {
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #1369d2;
}

.coupons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.coupon-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.coupon-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.coupon-header {
    padding: 15px;
    background-color: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.discount-tag {
    background-color: #ff6b6b;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
}

.coupon-body {
    padding: 20px;
}

.coupon-body h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.coupon-body p {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

.coupon-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.expiry-date {
    font-size: 14px;
    color: #888;
}

.load-more {
    text-align: center;
}


.popular-brands {
    padding: 40px 0;
    background-color: white;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

.brand-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    background-color: #f8f9fa;
    transition: transform 0.3s;
}

.brand-item:hover {
    transform: translateY(-5px);
}

.brand-item img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 10px;
}

.brand-item span {
    font-weight: 500;
}

/* 页脚 */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-logo {
    flex: 0 0 100%;
    margin-bottom: 30px;
}

.footer-logo h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
}

.link-group {
    flex: 0 0 30%;
    margin-bottom: 20px;
}

.link-group h3 {
    font-size: 18px;
    margin-bottom: 15px;
    position: relative;
}

.link-group h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: #1369d2;
}

.link-group ul li {
    margin-bottom: 8px;
}

.link-group ul li a {
    color: #ddd;
    transition: color 0.3s;
}

.link-group ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}


.brand-hero {
    padding: 20px 0;
    background-color: #f0f4f8;
}

.brand-profile {
    display: flex;
    align-items: center;
    height: 120px;
}

.brand-logo-large {
    width: 100px;
    height: 100px;
    background-color: white;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-right: 15px;
}

.brand-logo-large img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-info {
    flex: 1;
}

.brand-info h1 {
    font-size: 20px;
    margin-bottom: 5px;
    color: #333;
}

.brand-info h2 {
    font-size: 14px;
    font-weight: normal;
    color: #666;
    margin: 0;
}


.coupons-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.coupon-item {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    height: 100px;
}

.coupon-content {
    display: flex;
    height: 100%;
}

.coupon-left {
    flex: 1;
    padding: 12px 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.coupon-left h3 {
    font-size: 16px;
    margin: 0 0 5px 0;
    color: #333;
}

.coupon-left p {
    font-size: 12px;
    color: #666;
    margin: 0 0 5px 0;
    line-height: 1.3;
}

.expiry-date {
    font-size: 14px;
    color: #999;
}


.coupon-right {
    width: 120px;
    background-color: rgb(0, 76, 162);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 8px;
    border-left: 1px dashed rgba(255, 255, 255, 0.3);
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    color: white;
    cursor: pointer;
    height: 104px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: normal;
    line-height: 20px;
    text-size-adjust: 100%;
    -webkit-font-smoothing: antialased;
}


.coupon-right .discount-tag,
.coupon-right .btn-primary {
    display: none;
}

.coupon-right .discount-tag {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 12px;
    margin-bottom: 10px;
}


.coupon-right .btn-primary {
    width: 100%;
    padding: 6px 0;
    font-size: 13px;
    background-color: transparent;
    border: 1px solid white;
    color: white;
}

.coupon-right .btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.2); /* 悬停时半透明白色背景 */
}


.brand-stats {
    display: none;
}


@media (max-width: 576px) {
    .brand-profile {
        height: 100px;
    }
    
    .brand-logo-large {
        width: 100px;
        height: 100px;
        padding: 0px;
    }
    
    .brand-info h1 {
        font-size: 18px;
    }
    
    .brand-info h2 {
        font-size: 12px;
    }
    
    .coupon-item {
        height: 90px;
    }
    
    .coupon-left {
        padding: 10px;
    }
    
    .coupon-left h3 {
        font-size: 14px;
    }
    
    .coupon-right {
        width: 90px;
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
}

.close-modal:hover {
    color: #333;
}

.modal-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.modal-header h2 {
    margin: 0;
    color: #333;
    font-size: 22px;
}

.modal-body {
    margin-bottom: 20px;
}

.coupon-details h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #1369d2;
}

.coupon-details p {
    margin-bottom: 15px;
    color: #555;
}

.discount-tag-large {
    display: inline-block;
    background-color: #ff6b6b;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 20px;
}

.coupon-code {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    background-color: #f8f9fa;
    border: 1px dashed #ddd;
    padding: 10px;
    border-radius: 4px;
}

.coupon-code span {
    flex-grow: 1;
    font-family: monospace;
    font-size: 18px;
    letter-spacing: 1px;
    color: #333;
    font-weight: 600;
}

.code-tip {
    font-size: 14px;
    color: #777;
    margin-bottom: 20px;
}

.modal-footer {
    text-align: center;
    padding-top: 15px;
}


body.modal-open {
    overflow: hidden;
}
