/* =========================================================
   好物推薦網 — index.css
   首頁專用樣式：Hero、Categories、Deals、Steps、
   Share Sites、Promo Banner、首頁 Responsive
   ========================================================= */

/* ===== HERO ===== */
.hero {
    background: linear-gradient(160deg, #2d5a3d 0%, var(--color-primary) 40%, var(--color-primary-light) 100%);
    color: #fff;
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(249, 166, 32, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(138, 181, 152, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero h1 {
    font-size: 2.75rem;
    font-weight: 400;
    line-height: 1.25;
    margin-bottom: 1rem;
    color: #fff;
}

.hero .lead {
    font-size: 1.1rem;
    opacity: 0.92;
    max-width: 520px;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.hero-search {
    max-width: 520px;
    position: relative;
}

.hero-search input {
    width: 100%;
    padding: 1rem 1.25rem;
    padding-right: 3.5rem;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.hero-search input::placeholder {
    color: rgba(255, 255, 255, 0.65);
}

.hero-search input:focus {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.18);
}

.hero-search button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: none;
    background: var(--color-cta);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.hero-search button:hover {
    background: var(--color-cta-dark);
}

.hero-stats {
    margin-top: 2.5rem;
    display: flex;
    gap: 2.5rem;
}

.hero-stats .stat {
    text-align: center;
}

.hero-stats .stat-value {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 400;
}

.hero-stats .stat-label {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Hero floating card */
.hero-illustration {
    position: relative;
    z-index: 1;
}

.hero-card-stack {
    position: relative;
    max-width: 380px;
    margin: 0 auto;
}

.hero-float-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-lg);
    color: var(--color-text);
}

.hero-float-card.card-main {
    position: relative;
    z-index: 2;
}

.hero-float-card.card-behind {
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    z-index: 1;
    opacity: 0.4;
    background: rgba(255, 255, 255, 0.25);
}

.float-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.float-card-img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ddeee2, #b8d9c1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-primary);
}

.float-card-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.float-card-subtitle {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.float-card-coupon {
    background: linear-gradient(135deg, #fef8ec, #fdf0d5);
    border: 1px dashed var(--color-cta);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.coupon-code {
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--color-cta-dark);
    letter-spacing: 1px;
}

.coupon-discount {
    font-weight: 700;
    color: var(--color-accent);
    font-size: 1.1rem;
}

/* ===== CATEGORIES ===== */
.category-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.75rem 1.25rem;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    cursor: pointer;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
}

.category-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.4rem;
}

.category-card h6 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.category-card small {
    color: var(--color-text-muted);
    font-size: 0.8rem;
}

/* ===== DEALS CARDS ===== */
.deal-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.deal-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.deal-card-img {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.deal-card-img i {
    font-size: 3rem;
    opacity: 0.4;
}

.deal-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
}

.deal-badge.hot {
    background: var(--color-accent);
}

.deal-badge.new {
    background: var(--color-primary);
}

.deal-badge.exclusive {
    background: var(--color-cta-dark);
}

.deal-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.deal-card-brand {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-weight: 500;
    margin-bottom: 0.35rem;
}

.deal-card-title {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.deal-card-desc {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin-bottom: 1rem;
    flex: 1;
}

.deal-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.deal-coupon-inline {
    background: #fef8ec;
    border: 1px dashed var(--color-cta);
    border-radius: 50px;
    padding: 0.35rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-cta-dark);
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.deal-coupon-inline:hover {
    background: #fdf0d5;
}

.btn-deal {
    background: var(--color-primary);
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.btn-deal:hover {
    background: var(--color-primary-dark);
    color: #fff;
    transform: translateY(-1px);
}

/* ===== HOW IT WORKS (Steps) ===== */
.section-steps {
    background: linear-gradient(180deg, #eaf2ec 0%, var(--color-bg) 100%);
}

.step-card {
    text-align: center;
    padding: 2rem 1.5rem;
    position: relative;
}

.step-number {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--color-surface);
    border: 3px solid var(--color-primary);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1.5rem;
    margin: 0 auto 1.25rem;
    position: relative;
}

.step-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-cta);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    position: absolute;
    bottom: -6px;
    right: -6px;
}

.step-card h5 {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.step-card p {
    color: var(--color-text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
}

.step-connector {
    position: absolute;
    top: 54px;
    right: -16px;
    color: var(--color-primary-light);
    font-size: 1.2rem;
    z-index: 1;
    opacity: 0.5;
}

/* ===== SHARE SITES ===== */
.share-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
    height: 100%;
}

.share-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.share-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.share-card h6 {
    font-family: var(--font-body);
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.share-card p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.share-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.share-link:hover {
    color: var(--color-primary-dark);
}

/* ===== PROMO BANNER ===== */
.promo-banner {
    background: linear-gradient(135deg, #2d5a3d 0%, var(--color-primary) 100%);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.promo-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(249, 166, 32, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.promo-banner h3 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    color: #fff;
}

.promo-banner p {
    opacity: 0.92;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    max-width: 500px;
}

.promo-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.promo-features li {
    padding: 0.35rem 0;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.promo-features li i {
    color: var(--color-cta);
}

.btn-promo {
    background: var(--color-cta);
    color: #fff;
    border: none;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.btn-promo:hover {
    background: var(--color-cta-dark);
    color: #fff;
    transform: translateY(-2px);
}

.promo-illustration {
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-gift-box {
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.promo-gift-box i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.85);
}

.promo-gift-box::after {
    content: '';
    position: absolute;
    inset: -10px;
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    pointer-events: none;
}

/* ===== RESPONSIVE (Index-specific) ===== */
@media (max-width: 991.98px) {
    .hero {
        padding: 5rem 0 3rem;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.1rem;
    }

    .hero .lead {
        margin: 0 auto 1.5rem;
    }

    .hero-search {
        margin: 0 auto;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-illustration {
        margin-top: 2.5rem;
    }

    .step-connector {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .hero h1 {
        font-size: 1.75rem;
    }

    .hero .lead {
        font-size: 1rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .hero-stats .stat-value {
        font-size: 1.4rem;
    }

    .promo-banner {
        padding: 2rem 1.5rem;
        text-align: center;
    }

    .promo-banner h3 {
        font-size: 1.4rem;
    }

    .promo-features {
        display: inline-block;
        text-align: left;
    }

    .promo-illustration {
        margin-top: 2rem;
    }

    .promo-gift-box {
        width: 140px;
        height: 140px;
    }

    .promo-gift-box i {
        font-size: 3rem;
    }
}

@media (max-width: 575.98px) {
    .hero-card-stack {
        max-width: 100%;
    }

    .hero-float-card.card-behind {
        right: -10px;
        bottom: -10px;
        left: 10px;
        top: 10px;
    }
}
