/* style_6 公共样式：仅保留顶部导航和底部导航，避免覆盖页面主体样式 */
body {
    margin: 0;
}

.header,
.footer {
    font-family: var(--font-sans);
    line-height: 1.6;
}

.header a,
.footer a {
    color: inherit;
    text-decoration: none;
}

.header img,
.footer img {
    display: block;
    max-width: 100%;
}

.header button {
    font-family: inherit;
}

/* ===== 头部导航 ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 99999;
    background: #ffffff;
    border-bottom: 1px solid var(--gray-100, #f3f4f6);
    transition: box-shadow var(--transition-base);
}

.header.scrolled {
    box-shadow: var(--shadow-sm);
}

.header .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    height: 68px;
    box-sizing: border-box;
    min-width: 0;
}

.header .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 20px;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    border: none;
}

.header .btn-primary {
    background: var(--color-primary);
    color: #ffffff;
}

.header .btn-primary:hover {
    background: var(--color-primary-hover, #e00e1f);
}

.header .btn-outline {
    background: transparent;
    border: 1.5px solid var(--gray-200, #e5e7eb);
    color: var(--gray-600, #4b5563);
}

.header .btn-outline:hover {
    border-color: var(--gray-400, #9ca3af);
    background: var(--gray-50, #f9fafb);
    color: var(--gray-700, #374151);
}

.header .logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    min-width: 0;
}

.header .logo img {
    width: auto;
    height: 40px;
    max-width: none;
}

.header .nav {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-left: 40px;
}

.header .nav-link {
    position: relative;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-gray-600);
    padding: 6px 0;
    transition: color var(--transition-fast);
    letter-spacing: 0.01em;
}

.header .nav-link:hover {
    color: var(--color-black-700);
}

.header .nav-link.active {
    color: var(--color-primary);
    font-weight: 600;
}

.header .nav-link.active::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 2px;
}

.header .nav-link:not(.active)::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 20px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: transform var(--transition-base);
}

.header .nav-link:not(.active):hover::after {
    transform: translateX(-50%) scaleX(1);
}

.header .header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    min-width: 0;
}

.header .nav-mobile-toggle {
    display: none;
    font-size: 1.4rem;
    color: var(--color-black-700);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.header .nav-mobile-toggle:hover {
    background: var(--color-gray-50);
}

.header .nav-mobile-toggle .icon-bars {
    display: block;
}

.header .nav-mobile-toggle .icon-times {
    display: none;
}

.header .nav-mobile.open ~ * .nav-mobile-toggle .icon-bars,
body.nav-open .header .nav-mobile-toggle .icon-bars {
    display: none;
}

body.nav-open .header .nav-mobile-toggle .icon-times {
    display: block;
}

.header .nav-mobile {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 12px 0 16px;
    border-top: 1px solid var(--color-gray-100);
    width: 100%;
}

.header .nav-mobile.open {
    display: flex;
}

.header .nav-mobile .nav-link {
    padding: 10px 4px;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.header .nav-mobile .nav-link:hover {
    background: var(--color-gray-50);
}

.header .nav-mobile .nav-link.active {
    background: var(--color-primary-light);
}

.header--dark {
    background: rgba(30, 10, 15, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.header--dark.scrolled {
    background: rgba(30, 10, 15, 0.92);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}

.header--dark .nav-link {
    color: rgba(255, 255, 255, 0.65);
}

.header--dark .nav-link:hover,
.header--dark .nav-link.active {
    color: #ffffff;
}

.header--dark .nav-mobile-toggle {
    color: rgba(255, 255, 255, 0.8);
}

.header--dark .nav-mobile-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
}

.header--dark .nav-mobile {
    background: rgba(30, 10, 15, 0.96);
    border-top-color: rgba(255, 255, 255, 0.06);
}

.header--dark .nav-mobile .nav-link {
    color: rgba(255, 255, 255, 0.7);
}

.header--dark .nav-mobile .nav-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.header--dark .nav-mobile .nav-link.active {
    color: #ffffff;
    background: rgba(255, 16, 35, 0.15);
}

.header--dark .header-actions .btn {
    height: 34px;
    padding: 0 18px;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 40px;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
}

.header--dark .header-actions .btn-primary {
    background: rgba(255, 255, 255, 0.15);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.header--dark .header-actions .btn-primary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.header--dark .header-actions .btn-outline {
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.65);
}

.header--dark .header-actions .btn-outline:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.35);
    color: #ffffff;
}

/* ===== 页脚 ===== */
.footer {
    background: var(--color-black-500);
    color: rgba(255, 255, 255, 0.7);
    padding: 32px 0 0;
}

.footer-top {
    display: flex;
    gap: 40px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
}

.footer-brand {
    flex-shrink: 0;
}

.footer-brand img {
    height: 32px;
    width: auto;
}

.footer-contact {
    flex: 0 0 auto;
}

.footer-contact .label,
.footer-about .label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.footer-contact .phone {
    font-size: 1.4rem;
    font-weight: 600;
    color: #fff;
    margin: 4px 0 6px;
    letter-spacing: 0.02em;
}

.footer-contact .phone i {
    color: var(--color-primary);
    margin-right: 8px;
    font-size: 1.2rem;
}

.footer-contact .detail {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
}

.footer-about {
    flex: 1;
    min-width: 200px;
}

.footer-about .label {
    margin-bottom: 8px;
}

.footer-about p {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
    max-width: 460px;
}

.footer-bottom {
    background: var(--color-black-600);
    padding: 18px 0;
    margin-top: 20px;
}

.footer .container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    min-width: 0;
}

.footer-bottom-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.footer-bottom-inner p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
    line-height: 1.6;
}

.footer-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 4px 0 6px;
}

.footer-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px 4px 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    transition: background var(--transition-fast);
}

.footer-badge:hover {
    background: rgba(255, 255, 255, 0.1);
}

.footer-badge img {
    width: 18px;
    height: 18px;
    border-radius: 2px;
    object-fit: contain;
}

.footer-extra {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-extra img {
    width: 14px;
    height: 14px;
}

.footer-extra a {
    color: rgba(255, 255, 255, 0.35);
    transition: color var(--transition-fast);
}

.footer-extra a:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .header .nav {
        gap: 20px;
        margin-left: 24px;
    }

    .header .nav-link {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .header .header-inner {
        position: relative;
        height: 56px;
        padding: 0 12px;
        flex-wrap: wrap;
        overflow-x: clip;
    }

    .header .nav {
        display: none !important;
    }

    .header .logo img {
        width: auto;
        height: 40px;
        max-width: none;
    }

    .header .nav-mobile-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
        color: var(--color-black-700, #1f2937);
        background: transparent;
        border: none;
        padding: 0;
    }

    .header .nav-mobile-toggle svg {
        display: block;
    }

    .header .nav-mobile {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        padding: 8px 0 12px;
        background: #ffffff;
        border-top: 1px solid var(--color-gray-100, #f3f4f6);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
        max-height: calc(100vh - 56px);
        overflow-x: hidden;
        overflow-y: auto;
        z-index: 99998;
        box-sizing: border-box;
    }

    .header--dark .nav-mobile {
        background: rgba(30, 10, 15, 0.98);
    }

    .header .nav-mobile.open {
        display: flex !important;
    }

    .header .nav-mobile .nav-link {
        display: block;
        width: 100%;
        padding: 14px 20px;
        font-size: 1rem;
        color: var(--color-gray-700, #374151);
        border-bottom: 1px solid var(--color-gray-100, #f3f4f6);
        text-align: left;
        box-sizing: border-box;
    }

    .header .nav-mobile .nav-link:last-child {
        border-bottom: none;
    }

    .header .nav-mobile .nav-link.active {
        color: var(--color-primary, #ff1023);
        background: var(--color-primary-light, rgba(255, 16, 35, 0.08));
        font-weight: 600;
    }

    .header--dark .nav-mobile .nav-link {
        color: rgba(255, 255, 255, 0.85);
        border-bottom-color: rgba(255, 255, 255, 0.06);
    }

    .header--dark .nav-mobile .nav-link.active {
        color: #ffffff;
        background: rgba(255, 16, 35, 0.18);
    }

    .header .header-actions {
        gap: 8px;
    }

    .header .header-actions .btn {
        height: 34px;
        padding: 0 14px;
        font-size: 0.8rem;
        max-width: 100%;
        white-space: nowrap;
    }

    .header .header-actions .btn-outline {
        display: none;
    }

    body.nav-open {
        overflow: hidden;
    }

    .header .nav-mobile-backdrop {
        display: none;
        position: fixed;
        inset: 56px 0 0 0;
        background: rgba(0, 0, 0, 0.35);
        z-index: 99997;
    }

    .header .nav-mobile-backdrop.open {
        display: block;
    }

    .footer-top {
        flex-direction: column;
        gap: 20px;
    }

    .footer-about p {
        max-width: 100%;
    }

    .footer-badges {
        gap: 6px;
    }

    .footer-badge {
        font-size: 0.65rem;
        padding: 3px 8px 3px 6px;
    }

    .footer-badge img {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 480px) {
    .footer .container {
        padding: 0 14px;
    }
}

@media (max-width: 380px) {
    .header .header-inner {
        padding: 0 10px;
    }

    .header .logo img {
        width: auto;
        height: 40px;
        max-width: none;
    }

    .header .header-actions .btn {
        padding: 0 10px;
        font-size: 0.75rem;
        height: 32px;
    }

    .header .header-actions {
        gap: 6px;
    }

    .header .nav-mobile-toggle {
        width: 36px;
        height: 36px;
    }
}

/* 顶部卡券回收导航下拉 */
.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}}
