/* ================================================================
 * style_5 公共样式
 * 统一承接头部导航、底部导航等跨页面公共区域样式
 * ================================================================ */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    width: 100%;
    background-color: transparent;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header__spacer {
    width: 100%;
    height: 4rem;
}

.site-header__inner {
    max-width: 1920px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.site-header__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
}

@media (min-width: 640px) {
    .site-header__inner {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .site-header__inner {
        padding-left: 200px;
        padding-right: 200px;
    }
}

.site-header__logo {
    display: flex;
    align-items: center;
    column-gap: 0.625rem;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.site-header__logo-mark {
    width: auto;
    height: 40px;
    max-width: none;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #ffffff;
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.site-header__logo-text {
    font-size: 1.25rem;
    line-height: 1.75rem;
    font-weight: 700;
    color: #ffffff;
}

.site-header__nav {
    display: none;
    align-items: center;
    column-gap: 2rem;
}

@media (min-width: 768px) {
    .site-header__nav {
        display: flex;
    }
}

.site-header__link {
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    color: #cbd5e1;
    text-decoration: none;
    transition-property: color, background-color, border-color;
    transition-duration: 0.2s;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.site-header__link:hover {
    color: #ffffff;
}

.site-header__link--active {
    color: var(--color-primary);
}

.site-header__user {
    display: flex;
    align-items: center;
    column-gap: 0.75rem;
    margin-left: 1rem;
}

.site-header__user-relative {
    position: relative;
}

.site-header__user-btn {
    display: flex;
    align-items: center;
    column-gap: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    color: #cbd5e1;
    text-decoration: none;
    cursor: pointer;
    background-color: transparent;
    border: 0;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    transition-property: color, background-color;
    transition-duration: 0.2s;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header__user-btn:hover {
    color: #ffffff;
    background-color: rgba(30, 41, 59, 0.5);
    text-decoration: none;
}

.site-header__user-avatar {
    width: 1.75rem;
    height: 1.75rem;
    background-image: var(--gradient-btn);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.site-header__user-avatar svg {
    width: 1rem;
    height: 1rem;
}

.site-header__user-name {
    max-width: 7.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-header__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 0.5rem;
    color: #ffffff;
    background-color: transparent;
    border: 0;
    cursor: pointer;
}

.site-header__toggle svg {
    width: 1.5rem;
    height: 1.5rem;
}

@media (min-width: 768px) {
    .site-header__toggle {
        display: none;
    }
}

.site-header__mobile {
    display: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background-color: #0f172a;
    padding: 0.5rem 0;
    animation: siteHeaderSlide 0.2s ease-out;
}

.site-header__mobile[hidden] {
    display: none !important;
}

@keyframes siteHeaderSlide {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.site-header__mobile-link {
    display: block;
    padding: 0.75rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.15s, background-color 0.15s;
}

.site-header__mobile-link:active {
    background-color: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.site-header__mobile-link--active {
    color: #ffffff;
    background-color: rgba(59, 130, 246, 0.15);
}

.site-header__mobile-user {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 0.5rem;
    padding-top: 0.5rem;
}

@media (min-width: 768px) {
    .site-header__mobile {
        display: none !important;
    }
}

.site-header.is-scrolled {
    background-color: #0f172a;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

#mainNav.site-header {
    background-color: #0f172a;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.footer {
    background-color: #1a1e2b;
    color: #cbd5e6;
    font-size: 14px;
    line-height: 1.6;
    padding: 48px 0 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.ftop {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px 40px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ftop dl {
    margin: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    width: auto;
}

.ftop dt {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    position: relative;
    display: inline-block;
}

.ftop dt::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
}

.ftop dd {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #b9c2d4;
}

.ftop dd span.white,
.ftop dd span {
    color: #eaeef5;
    font-weight: 500;
    margin-right: 6px;
}

.ftop a {
    color: #b9c2d4;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s;
}

.ftop a:hover {
    color: var(--color-primary-hover);
    text-decoration: none;
}

.contact p {
    margin: 12px 0;
}

.go-link {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.go-link a {
    display: inline-block;
    width: fit-content;
}

.about img {
    max-width: 110px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    background-color: #fff;
    padding: 4px;
    transition: 0.2s;
}

.about img:hover {
    border-color: var(--color-primary);
    transform: scale(1.02);
}

.fbtm {
    text-align: center;
    padding-top: 28px;
    font-size: 13px;
    color: #8f9bb3;
    border-top: none;
}

.fbtm p {
    margin: 8px 0;
}

.fbtm a {
    color: #b9c2d4;
    text-decoration: none;
    margin: 0 4px;
}

.fbtm a:hover {
    color: var(--color-primary);
}

.authentication {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
}

.authentication a,
.authentication span {
    display: inline-flex;
    align-items: center;
    transition: opacity 0.2s;
}

.authentication img {
    height: 38px;
    width: auto;
    background: #fff;
    border-radius: 6px;
    padding: 4px 8px;
    opacity: 0.9;
}

.authentication img:hover {
    opacity: 1;
}

.footer-brand-slogan {
    text-align: center;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 500;
    color: #fff;
    letter-spacing: 2px;
}

.footer-brand-slogan small {
    font-size: 13px;
    color: var(--color-primary);
    display: block;
    margin-top: 6px;
}

@media (max-width: 768px) {
    .footer {
        margin-top: 40px;
        padding: 32px 0 calc(20px + env(safe-area-inset-bottom));
    }

    .ftop {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 0 16px 24px;
        text-align: center;
    }

    .ftop dt::after {
        left: 50%;
        transform: translateX(-50%);
        width: 50px;
    }

    .ftop dd {
        font-size: 13px;
        line-height: 1.8;
    }

    .go-link {
        align-items: center;
    }

    .go-link a {
        width: auto;
        min-height: 36px;
        display: inline-flex;
        align-items: center;
    }

    .contact p {
        margin: 8px 0;
    }

    .about img {
        display: block;
        margin: 0 auto;
        max-width: 96px;
    }

    .fbtm {
        padding: 20px 16px 0;
        font-size: 12px;
    }

    .fbtm p {
        word-break: break-word;
    }

    .authentication {
        flex-direction: row;
        justify-content: center;
        gap: 10px;
    }

    .authentication a,
    .authentication span {
        max-width: calc(50% - 5px);
        justify-content: center;
    }

    .authentication img {
        width: 100%;
        max-width: 140px;
        height: auto;
        padding: 4px 6px;
    }
}

@media (max-width: 480px) {
    .footer {
        padding-top: 28px;
    }

    .ftop {
        gap: 24px;
    }

    .ftop dt {
        font-size: 16px;
    }

    .authentication {
        flex-direction: column;
    }

    .authentication a,
    .authentication span {
        max-width: 100%;
    }
}

.ftop .logo img {
    max-height: 48px;
    width: auto;
    /*filter: brightness(0) invert(1);*/
}

.contact .white {
    color: #ffffff;
    font-weight: 600;
}

.iconfont {
    font-family: "iconfont" !important;
}

.footer-gotop {
    position: fixed;
    right: 24px;
    bottom: 80px;
    background: var(--color-primary);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    opacity: 0;
    transition: 0.2s;
    z-index: 99;
}

.footer-gotop.show {
    opacity: 0.8;
}

.footer-gotop:hover {
    opacity: 1;
    transform: translateY(-3px);
}

.flex {
    display: flex;
}

.flex-jc {
    justify-content: center;
}

/* 顶部卡券回收导航下拉 */
.top-recycle-nav{position:relative!important}
.top-recycle-nav--inline{display:inline-flex;align-items:center;height:100%}
.top-recycle-nav>.top-recycle-dropdown{position:absolute;top:calc(100% + 10px);left:50%;z-index:10000;width:532px;padding:10px 10px 9px;background:#fff;border:1px solid #eef1f5;border-radius:0 0 12px 12px;box-shadow:0 16px 36px rgba(15,23,42,.14);opacity:0;visibility:hidden;pointer-events:none;transform:translateX(-50%) translateY(10px);transition:opacity .18s ease,visibility .18s ease,transform .18s ease;box-sizing:border-box}
.top-recycle-nav>.top-recycle-dropdown:before{content:"";position:absolute;left:0;right:0;top:-12px;height:12px}
.top-recycle-nav:hover>.top-recycle-dropdown{opacity:1;visibility:visible;pointer-events:auto;transform:translateX(-50%) translateY(0)}
.top-recycle-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px 11px}
.top-recycle-nav .top-recycle-dropdown a.top-recycle-card{display:flex!important;align-items:center!important;justify-content:space-between!important;width:auto!important;height:62px!important;min-width:0!important;margin:0!important;padding:10px 12px!important;border:0!important;border-radius:8px!important;text-decoration:none!important;overflow:hidden;box-shadow:none!important;transform:none!important;box-sizing:border-box}
.top-recycle-card:nth-child(8n+1){background:linear-gradient(135deg,#d9e8ff 0%,#cbc5ff 100%)}
.top-recycle-card:nth-child(8n+2){background:linear-gradient(135deg,#ffd8f1 0%,#fb8de1 100%)}
.top-recycle-card:nth-child(8n+3){background:linear-gradient(135deg,#c9ecff 0%,#6fc8ff 100%)}
.top-recycle-card:nth-child(8n+4){background:linear-gradient(135deg,#b7f6d4 0%,#79e4ba 100%)}
.top-recycle-card:nth-child(8n+5){background:linear-gradient(135deg,#ffc8c8 0%,#ff8d8a 100%)}
.top-recycle-card:nth-child(8n+6){background:linear-gradient(135deg,#9ff4e4 0%,#42ddbd 100%)}
.top-recycle-card:nth-child(8n+7){background:linear-gradient(135deg,#ffc3b4 0%,#ff8f73 100%)}
.top-recycle-card:nth-child(8n+8){background:linear-gradient(135deg,#ffe69a 0%,#ffc85d 100%)}
.top-recycle-card__copy{position:relative;z-index:2;display:flex;flex-direction:column;align-items:flex-start;gap:7px;min-width:0}
.top-recycle-card__copy strong{display:block;max-width:70px;color:#2269ff!important;font-size:16px!important;line-height:1.1!important;font-weight:800!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.top-recycle-card:nth-child(8n+2) .top-recycle-card__copy strong,.top-recycle-card:nth-child(8n+5) .top-recycle-card__copy strong,.top-recycle-card:nth-child(8n+7) .top-recycle-card__copy strong{color:#ff4a37!important}
.top-recycle-card:nth-child(8n+4) .top-recycle-card__copy strong,.top-recycle-card:nth-child(8n+6) .top-recycle-card__copy strong{color:#10b981!important}
.top-recycle-card:nth-child(8n+8) .top-recycle-card__copy strong{color:#ff8a00!important}
.top-recycle-card__copy em{display:inline-flex;align-items:center;height:20px;padding:0 8px;border-radius:999px;background:rgba(34,105,255,.56);color:#fff!important;font-size:12px!important;line-height:20px!important;font-style:normal!important;font-weight:700!important;white-space:nowrap}
.top-recycle-card:nth-child(8n+2) .top-recycle-card__copy em{background:rgba(255,74,185,.58)}
.top-recycle-card:nth-child(8n+3) .top-recycle-card__copy em{background:rgba(28,154,238,.58)}
.top-recycle-card:nth-child(8n+4) .top-recycle-card__copy em{background:rgba(16,185,129,.58)}
.top-recycle-card:nth-child(8n+5) .top-recycle-card__copy em{background:rgba(255,83,65,.58)}
.top-recycle-card:nth-child(8n+6) .top-recycle-card__copy em{background:rgba(14,184,154,.58)}
.top-recycle-card:nth-child(8n+7) .top-recycle-card__copy em{background:rgba(255,104,78,.58)}
.top-recycle-card:nth-child(8n+8) .top-recycle-card__copy em{background:rgba(255,160,24,.58)}
.top-recycle-card__icon{position:relative;z-index:1;width:42px!important;height:42px!important;margin:0!important;object-fit:contain!important;flex:0 0 auto;filter:drop-shadow(0 8px 10px rgba(0,0,0,.12))}
.top-recycle-hot{display:flex;align-items:center;gap:0;margin-top:10px;padding:7px 2px 0;border-top:1px solid #e5e7eb;color:#525b66;font-size:12px;line-height:22px;white-space:nowrap;overflow:hidden}
.top-recycle-hot strong{display:inline-flex;align-items:center;flex:0 0 auto;height:22px;margin:0 10px 0 0;padding:0;color:#3f4650;font-weight:700;font-size:12px;line-height:22px}
.top-recycle-hot__list{display:flex;align-items:center;gap:10px;flex:1 1 auto;min-width:0;height:22px;line-height:22px;overflow:hidden}
.top-recycle-nav .top-recycle-hot a{display:inline-flex!important;align-items:center!important;flex:0 0 auto!important;width:auto!important;height:22px!important;min-width:0!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;color:#525b66!important;font-size:12px!important;line-height:22px!important;font-weight:400!important;text-decoration:none!important;transform:none!important;box-shadow:none!important}
.top-recycle-nav .top-recycle-hot a:hover{color:#ff6a2a!important}
@media (max-width:768px){.top-recycle-nav>.top-recycle-dropdown{display:none!important}}

/* style_5 footer：移动端紧凑排版，减少底部导航栏占用高度。 */
@media (max-width: 768px) {
    .style5-compact-footer.footer {
        margin-top: 28px;
        padding: 22px 0 calc(16px + env(safe-area-inset-bottom));
    }

    .style5-compact-footer .ftop {
        grid-template-columns: 1fr 1fr;
        gap: 16px 14px;
        padding: 0 16px 18px;
        text-align: left;
    }

    .style5-compact-footer .ftop .logo {
        display: none;
    }

    .style5-compact-footer .ftop dl:nth-child(2) {
        grid-column: 1 / -1;
        text-align: center;
    }

    .style5-compact-footer .ftop dt {
        margin-bottom: 12px;
        font-size: 15px;
        line-height: 1.3;
    }

    .style5-compact-footer .ftop dt::after {
        bottom: -5px;
        left: 50%;
        width: 34px;
        transform: translateX(-50%);
    }

    .style5-compact-footer .ftop dd {
        margin-bottom: 0;
        font-size: 12px;
        line-height: 1.55;
    }

    .style5-compact-footer .contact,
    .style5-compact-footer .contact .mgt10,
    .style5-compact-footer .contact p,
    .style5-compact-footer .go-link,
    .style5-compact-footer .about {
        margin-top: 0 !important;
    }

    .style5-compact-footer .contact p {
        margin: 4px 0;
    }

    .style5-compact-footer .ftop dl:nth-child(3),
    .style5-compact-footer .ftop dl:nth-child(4) {
        text-align: center;
    }

    .style5-compact-footer .go-link {
        align-items: center;
        gap: 6px;
    }

    .style5-compact-footer .go-link a {
        min-height: auto;
        line-height: 1.45;
    }

    .style5-compact-footer .about img {
        display: block;
        width: 78px !important;
        height: 78px !important;
        max-width: 78px !important;
        margin: 0 auto;
        padding: 3px;
        object-fit: contain;
        border-radius: 10px;
        box-sizing: border-box;
    }

    .style5-compact-footer .fbtm {
        padding: 14px 16px 0;
        font-size: 11px;
        line-height: 1.55;
    }

    .style5-compact-footer .fbtm p {
        margin: 4px 0;
    }

    .style5-compact-footer .authentication {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 118px));
        justify-content: center;
        gap: 8px;
        margin-top: 10px !important;
    }

    .style5-compact-footer .authentication a,
    .style5-compact-footer .authentication span {
        width: 100%;
        max-width: none;
        margin-left: 0 !important;
        justify-content: center;
    }

    .style5-compact-footer .authentication img {
        width: 100% !important;
        max-width: 118px !important;
        height: auto !important;
        padding: 3px 5px;
        object-fit: contain;
        box-sizing: border-box;
    }
}

@media (max-width: 360px) {
    .style5-compact-footer .ftop {
        gap: 14px 10px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .style5-compact-footer .authentication {
        grid-template-columns: repeat(2, minmax(0, 108px));
        gap: 7px;
    }

    .style5-compact-footer .authentication img {
        max-width: 108px !important;
    }
}
