/* ════════════════════════════════════════════════════
   AHQONE — Footer
   Design ref: Goldsmith (elegant, minimal, dark)
════════════════════════════════════════════════════ */

/* ── Trust Bar (above footer) ── */
.ahq-trust-bar {
    background: var(--ahq-bg-secondary);
    border-top: 1px solid var(--ahq-border, rgba(0,0,0,.08));
    border-bottom: 1px solid var(--ahq-border, rgba(0,0,0,.08));
    padding: 20px 0;
}

.ahq-trust-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.ahq-trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 140px;
}

.ahq-trust-item svg {
    color: var(--ahq-gold, #c9a96e);
    flex-shrink: 0;
}

.ahq-trust-item > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ahq-trust-label {
    font-size: .8125rem;
    font-weight: 600;
    color: var(--ahq-text, #2c2420);
    line-height: 1.2;
}

.ahq-trust-sub {
    font-size: .7rem;
    color: var(--ahq-muted, #9a8e84);
    line-height: 1.2;
}

/* 首页已有 ahq-service-strip，全断点隐藏页脚 Trust Bar，避免 PC 重复 */
body.home .ahq-trust-bar {
    display: none !important;
}

/* Tablet + phone — 2×2 trust cards (iPad 768 不再单列留白) */
@media (max-width: 1024px) {
    .ahq-trust-bar {
        padding: clamp(0.85rem, 2.5vw, 1.25rem) clamp(1rem, 4vw, 1.75rem) 0.5rem;
        background: transparent;
        border-top: none;
        border-bottom: none;
    }

    .ahq-trust-bar-inner {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: clamp(0.65rem, 2vw, 0.85rem);
        padding: 0 !important;
        max-width: 720px;
        margin: 0 auto;
    }

    .ahq-trust-item,
    .ahq-trust-item:last-child:nth-child(odd) {
        flex: none;
        min-width: 0;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: start;
        gap: clamp(0.55rem, 1.5vw, 0.65rem);
        width: auto;
        padding: clamp(0.78rem, 2vw, 1rem);
        margin: 0;
        border: 1px solid rgba(154, 122, 8, 0.12) !important;
        border-radius: 14px;
        background: rgba(255, 253, 248, 0.76);
        box-shadow: 0 10px 24px rgba(82, 57, 20, 0.04);
    }

    .ahq-trust-item:last-child {
        padding-bottom: clamp(0.78rem, 2vw, 1rem);
    }

    .ahq-trust-item:last-child:nth-child(odd) {
        grid-column: auto;
        max-width: none;
    }

    .ahq-trust-item svg {
        width: clamp(18px, 2.5vw, 22px);
        height: clamp(18px, 2.5vw, 22px);
        flex-shrink: 0;
        margin-top: 0.08rem;
        color: #a8813a;
    }

    .ahq-trust-item > div {
        min-width: 0;
        text-align: left;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .ahq-trust-label {
        display: block;
        font-family: var(--ahq-font-badge, 'Jost', sans-serif);
        font-size: clamp(0.58rem, 1.6vw, 0.68rem);
        font-weight: 600;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        line-height: 1.35;
        white-space: normal;
        color: #7b6026;
    }

    .ahq-trust-sub {
        display: block;
        margin-top: 0.12rem;
        font-family: var(--ahq-font-body, 'DM Sans', sans-serif);
        font-size: clamp(0.66rem, 1.8vw, 0.75rem);
        line-height: 1.4;
        color: rgba(26, 21, 9, 0.58);
    }
}

.ahq-footer {
    background: var(--ahq-bg-secondary);
    border-top: 1px solid var(--ahq-border);
    margin-top: 5rem;
    margin-bottom: 0;
    padding-bottom: 0;
}

#page > .ahq-footer:last-of-type {
    margin-bottom: 0;
}

body.home .ahq-footer {
    margin-top: 0;
}

body.ahq-product-page .ahq-footer {
    margin-top: 0;
}

/* ── Ornamental divider (service strip → footer) ── */
.ahq-footer-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.75rem, 2vw, 1.25rem);
    max-width: 1440px;
    margin: 0 auto;
    padding: clamp(1.25rem, 2.5vw, 1.75rem) clamp(1.5rem, 5vw, 3rem) clamp(0.5rem, 1vw, 0.75rem);
}

.ahq-footer-divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(154, 122, 8, 0.12) 15%,
        rgba(154, 122, 8, 0.38) 50%,
        rgba(154, 122, 8, 0.12) 85%,
        transparent 100%
    );
}

.ahq-footer-divider-ornament {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    color: rgba(154, 122, 8, 0.55);
    transform: rotate(0deg);
}

.ahq-footer-divider-ornament svg {
    display: block;
    width: 14px;
    height: 14px;
}

/* ── Footer Main: 4-column grid ── */
.ahq-footer-main {
    padding: clamp(2rem, 3.5vw, 3rem) clamp(1.5rem, 5vw, 3rem) clamp(1.25rem, 2vw, 1.75rem);
    border-bottom: 1px solid var(--ahq-border);
}

.ahq-footer-wrap {
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr 1fr;
    gap: clamp(2rem, 4vw, 4rem);
}

/* ── Brand Column ── */
.ahq-footer-brand {}

.ahq-footer-logo-link {
    display: inline-block;
    text-align: center;
    text-decoration: none;
    margin-bottom: 1.25rem;
    line-height: 1;
}

/* Reuse the wordmark style from header */
.ahq-footer-logo-link .ahq-logo-name {
    display: block;
    font-family: var(--ahq-font-display);
    font-size: 1.45rem;
    font-weight: 400;
    letter-spacing: 0.17em;
    text-indent: 0.17em;
    text-transform: uppercase;
    color: #14110b;
    line-height: 1;
    white-space: nowrap;
}

.ahq-footer-logo-link .ahq-logo-tagline {
    display: block;
    position: relative;
    margin-top: 7px;
    padding-top: 7px;
    font-family: var(--ahq-font-badge);
    font-size: 0.56rem;
    font-weight: 500;
    letter-spacing: 0.33em;
    text-indent: 0.33em;
    text-transform: uppercase;
    color: #8A6508;
    line-height: 1;
    white-space: nowrap;
}

.ahq-footer-logo-link .ahq-logo-tagline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 62px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #A8813A 18%, #A8813A 82%, transparent);
    transform: translateX(-50%);
}

.ahq-footer-about {
    font-family: var(--font-body, 'DM Sans', sans-serif);
    font-size: 0.875rem;
    color: var(--ahq-text-secondary);
    line-height: 1.8;
    margin: 0 0 1rem;
    max-width: 28ch;
}

/* Editorial disclaimer — matches footer column typography */
.ahq-footer-disclaimer {
    margin: 0 0 1.35rem;
    padding: 0.85rem 0 0;
    max-width: 34ch;
    border-top: 1px solid rgba(154, 122, 8, 0.14);
}

.ahq-footer-disclaimer-label {
    font-family: var(--ahq-font-badge, 'Jost', sans-serif);
    font-size: 0.62rem;
    font-weight: 600;
    font-style: normal;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #8a6508;
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.ahq-footer-disclaimer-text {
    font-family: var(--font-body, 'DM Sans', sans-serif);
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.65;
    color: rgba(26, 21, 9, 0.58);
    margin: 0;
}

/* Social icons */
.ahq-footer-social {
    display: flex;
    gap: 0.5rem;
}

.ahq-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px; height: 34px;
    border-radius: 50%;
    border: 1px solid var(--ahq-gold-border);
    color: var(--ahq-text-muted);
    text-decoration: none;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.ahq-social-btn:hover {
    color: var(--color-gold, #d4af37);
    border-color: rgba(212, 175, 55, 0.45);
    background: rgba(212, 175, 55, 0.05);
}

/* ── Link Columns ── */
.ahq-footer-col-title {
    font-family: var(--ahq-font-badge, var(--font-body, 'DM Sans', sans-serif));
    font-size: 0.78rem;
    font-weight: 600;
    font-style: normal;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-gold, #d4af37);
    margin: 0 0 1.25rem;
}

.ahq-footer .ahq-footer-links,
.ahq-footer .ahq-footer-links li {
    list-style: none !important;
    list-style-type: none !important;
    padding-left: 0 !important;
    padding-inline-start: 0 !important;
    margin-left: 0 !important;
}

.ahq-footer .ahq-footer-links li::marker {
    content: none !important;
    display: none !important;
}

.ahq-footer-links {
    list-style: none !important;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.ahq-footer-links li {
    list-style: none !important;
    margin: 0;
    padding: 0;
}

.ahq-footer-links li::marker {
    content: none;
}

.ahq-footer-links li a {
    font-family: var(--font-body, 'DM Sans', sans-serif);
    font-size: 0.875rem;
    color: var(--ahq-text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.ahq-footer-links li a:hover {
    color: var(--ahq-text-primary);
}

/* ── Bottom Bar ── */
.ahq-footer .ahq-footer-bottom {
    display: block;
    border-top: none;
    padding-top: 0;
}

.ahq-footer-bottom {
    padding: 1.1rem clamp(1.5rem, 5vw, 3rem) clamp(0.85rem, 1.5vw, 1rem);
}

.ahq-footer-bottom-wrap {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.ahq-copyright {
    font-family: var(--font-body, 'DM Sans', sans-serif);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    color: var(--ahq-text-muted);
    margin: 0;
}

.ahq-footer-brand-name {
    flex: 1 1 100%;
    font-family: var(--font-display, 'Cormorant Garamond', serif);
    font-size: 0.86rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ahq-text-muted);
    margin: 0 0 0.25rem;
}

.ahq-footer-trader {
    flex: 1 1 100%;
    font-family: var(--font-body, 'DM Sans', sans-serif);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    color: var(--ahq-text-muted);
    margin: 0.35rem 0 0;
    line-height: 1.55;
}

.ahq-footer-trader a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Payment badges */
.ahq-pay-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.ahq-pay-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    flex-shrink: 0;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.ahq-pay-item:hover { opacity: 0.9; }

.ahq-pay-item span {
    font-family: var(--font-body, 'DM Sans', sans-serif);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--ahq-text-secondary);
    letter-spacing: 0.06em;
}


/* Card SVG badges */
.ahq-pay-item--card {
    opacity: 0.72;
    background: #ffffff;
    border: 1px solid rgba(180, 160, 130, 0.18);
    border-radius: 4px;
    padding: 3px 6px;
    width: 52px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.ahq-pay-item--card:hover { opacity: 1; }
.ahq-pay-item--card img {
    display: block;
    width: auto;
    height: 16px;
    max-width: 42px;
    object-fit: contain;
}

.ahq-pay-item--crypto {
    width: auto;
    height: 28px;
    padding: 0 2px;
}

.ahq-pay-item--crypto svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Crypto separator */
.ahq-pay-item--crypto:first-of-type { margin-left: 0.15rem; }

/* Legal links */
.ahq-footer-legal {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.ahq-footer-legal a {
    font-family: var(--font-body, 'DM Sans', sans-serif);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    color: var(--ahq-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.ahq-footer-legal a:hover { color: var(--ahq-text-primary); }

/* ── Responsive ── */
/* iPad / tablet — unified shell + richer card layout (641–1024) */
@media (min-width: 641px) and (max-width: 1024px) {
    :root {
        --ahq-tablet-shell-x: clamp(1.25rem, 4vw, 1.5rem);
        --ahq-tablet-shell-max: min(720px, calc(100vw - 2 * var(--ahq-tablet-shell-x)));
        --ahq-tablet-shell-gap: 0.75rem;
        --ahq-tablet-card-radius: 16px;
        --ahq-tablet-card-bg: rgba(255, 253, 248, 0.78);
        --ahq-tablet-card-border: 1px solid rgba(154, 122, 8, 0.14);
        --ahq-tablet-card-shadow: 0 12px 28px rgba(82, 57, 20, 0.06);
    }

    .ahq-footer {
        background:
            radial-gradient(circle at 50% 0%, rgba(168, 129, 58, 0.1), transparent 38%),
            linear-gradient(180deg, #f1eadf 0%, #fbf8f2 46%, #f7f1e8 100%);
        border-top: 0 !important;
        margin-top: 0;
        padding-top: clamp(0.85rem, 2vw, 1.1rem);
    }

    /* Trust bar — same shell width as footer cards */
    .ahq-trust-bar {
        background: transparent;
        border: 0;
        padding: 0 var(--ahq-tablet-shell-x) var(--ahq-tablet-shell-gap);
    }

    .ahq-trust-bar-inner.ahq-container,
    .ahq-trust-bar-inner {
        max-width: var(--ahq-tablet-shell-max) !important;
        width: 100%;
        margin: 0 auto;
        padding: 0 !important;
        gap: var(--ahq-tablet-shell-gap);
    }

    .ahq-trust-item,
    .ahq-trust-item:last-child:nth-child(odd) {
        position: relative;
        padding: clamp(0.85rem, 2vw, 1rem) clamp(0.85rem, 2vw, 1rem) clamp(0.85rem, 2vw, 1rem) clamp(0.75rem, 1.8vw, 0.9rem);
        border: var(--ahq-tablet-card-border) !important;
        border-radius: var(--ahq-tablet-card-radius);
        background: var(--ahq-tablet-card-bg);
        box-shadow: var(--ahq-tablet-card-shadow);
        overflow: hidden;
    }

    .ahq-trust-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 10%;
        right: 10%;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(168, 129, 58, 0.42), transparent);
        pointer-events: none;
    }

    .ahq-trust-item svg {
        width: clamp(18px, 2.4vw, 20px);
        height: clamp(18px, 2.4vw, 20px);
        padding: 7px;
        box-sizing: content-box;
        border-radius: 50%;
        background: rgba(168, 129, 58, 0.1);
        border: 1px solid rgba(154, 122, 8, 0.16);
        color: #9a7a08;
    }

    .ahq-trust-label {
        font-size: clamp(0.6rem, 1.5vw, 0.68rem);
        letter-spacing: 0.13em;
    }

    .ahq-trust-sub {
        font-size: clamp(0.68rem, 1.7vw, 0.74rem);
        line-height: 1.42;
    }

    .ahq-footer-divider {
        display: none;
    }

    .ahq-footer-main {
        padding: 0 var(--ahq-tablet-shell-x) var(--ahq-tablet-shell-gap);
        border-bottom: 0;
    }

    .ahq-footer-wrap {
        max-width: var(--ahq-tablet-shell-max);
        width: 100%;
        margin: 0 auto;
        box-sizing: border-box;
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "brand brand"
            "shop company"
            "shop support";
        gap: var(--ahq-tablet-shell-gap);
        align-items: stretch;
    }

    .ahq-footer-brand,
    .ahq-footer-col {
        position: relative;
        min-width: 0;
        border: var(--ahq-tablet-card-border) !important;
        border-radius: var(--ahq-tablet-card-radius);
        background: var(--ahq-tablet-card-bg);
        box-shadow: var(--ahq-tablet-card-shadow);
        overflow: hidden;
    }

    .ahq-footer-brand::before,
    .ahq-footer-col::before {
        content: '';
        position: absolute;
        top: 0;
        left: 8%;
        right: 8%;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(168, 129, 58, 0.4), transparent);
        pointer-events: none;
    }

    .ahq-footer-brand {
        grid-area: brand;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: clamp(1.05rem, 2.5vw, 1.3rem) clamp(1rem, 3vw, 1.5rem);
    }

    .ahq-footer-col--shop {
        grid-area: shop;
        padding: clamp(0.9rem, 2vw, 1.05rem) clamp(0.85rem, 2vw, 1rem);
    }

    .ahq-footer-col--company {
        grid-area: company;
        padding: clamp(0.9rem, 2vw, 1.05rem) clamp(0.85rem, 2vw, 1rem);
    }

    .ahq-footer-col--support {
        grid-area: support;
        padding: clamp(0.9rem, 2vw, 1.05rem) clamp(0.85rem, 2vw, 1rem);
    }

    .ahq-footer-logo-link {
        margin-bottom: 0.75rem;
    }

    .ahq-footer-about {
        max-width: 46ch;
        margin-bottom: 0.65rem;
        padding-bottom: 0;
        border-bottom: none;
        font-size: 0.8rem;
        line-height: 1.62;
        color: rgba(26, 21, 9, 0.6) !important;
    }

    .ahq-footer-disclaimer {
        max-width: 42ch;
        width: 100%;
        margin: 0 auto 0.85rem;
        padding-top: 0.75rem;
        text-align: center;
        border-top: 1px solid rgba(154, 122, 8, 0.12);
    }

    .ahq-footer-disclaimer-label {
        font-size: clamp(0.58rem, 1.4vw, 0.64rem);
        letter-spacing: 0.16em;
        color: #7b6026;
    }

    .ahq-footer-disclaimer-text {
        font-size: clamp(0.68rem, 1.6vw, 0.76rem);
        line-height: 1.58;
        color: rgba(26, 21, 9, 0.55) !important;
    }

    .ahq-footer-social {
        justify-content: center;
    }

    .ahq-social-btn {
        width: 34px;
        height: 34px;
        background: rgba(255, 255, 255, 0.62);
        border-color: rgba(154, 122, 8, 0.2);
    }

    .ahq-footer-col-title,
    .ahq-mode-light .ahq-footer-col-title {
        margin: 0 0 0.7rem !important;
        padding-bottom: 0.45rem;
        border-bottom: 1px solid rgba(154, 122, 8, 0.12);
        font-family: var(--ahq-font-badge, 'Jost', sans-serif) !important;
        font-size: clamp(0.62rem, 1.5vw, 0.7rem) !important;
        font-weight: 600 !important;
        letter-spacing: 0.16em !important;
        text-transform: uppercase !important;
        color: #7b6026 !important;
    }

    .ahq-footer .ahq-footer-links {
        display: grid;
        gap: 0.46rem 0.6rem;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }

    .ahq-footer-col--shop .ahq-footer-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ahq-footer-col--company .ahq-footer-links,
    .ahq-footer-col--support .ahq-footer-links {
        grid-template-columns: 1fr;
    }

    .ahq-footer-links li a {
        display: block;
        padding: 0.12rem 0;
        font-size: clamp(0.7rem, 1.55vw, 0.78rem);
        line-height: 1.38;
        color: rgba(26, 21, 9, 0.64) !important;
        overflow-wrap: anywhere;
        transition: color 0.2s;
    }

    .ahq-footer-links li a:hover {
        color: #7b6026 !important;
    }

    .ahq-footer-bottom {
        padding: 0 var(--ahq-tablet-shell-x) clamp(0.9rem, 2vw, 1.15rem);
        border-top: 0 !important;
    }

    .ahq-footer-bottom-wrap {
        position: relative;
        max-width: var(--ahq-tablet-shell-max);
        width: 100%;
        margin: 0 auto;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        flex-wrap: nowrap;
        text-align: center;
        gap: 0.62rem;
        padding: clamp(1rem, 2.2vw, 1.15rem) clamp(0.95rem, 2.5vw, 1.15rem);
        border: var(--ahq-tablet-card-border);
        border-radius: var(--ahq-tablet-card-radius);
        background: var(--ahq-tablet-card-bg);
        box-shadow: var(--ahq-tablet-card-shadow);
        overflow: hidden;
    }

    .ahq-footer-bottom-wrap::before {
        content: '';
        position: absolute;
        top: 0;
        left: 8%;
        right: 8%;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(168, 129, 58, 0.4), transparent);
        pointer-events: none;
    }

    .ahq-footer-brand-name {
        width: 100%;
        margin: 0;
        font-family: var(--ahq-font-badge, 'Jost', sans-serif);
        font-size: clamp(0.66rem, 1.5vw, 0.72rem);
        font-weight: 600;
        letter-spacing: 0.18em;
        text-transform: uppercase;
        text-align: center;
        color: rgba(26, 21, 9, 0.72);
    }

    .ahq-copyright,
    .ahq-footer-trader {
        width: 100%;
        max-width: 40ch;
        margin: 0 auto;
        font-size: clamp(0.64rem, 1.45vw, 0.68rem);
        line-height: 1.5;
        letter-spacing: 0.02em;
        text-align: center;
        color: rgba(26, 21, 9, 0.55);
    }

    .ahq-footer-trader a {
        color: #8a6508 !important;
        text-decoration: none;
    }

    .ahq-pay-badges {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 0.42rem 0.5rem;
        align-items: center;
        justify-items: center;
        margin-top: 0.15rem;
        padding: 0.55rem 0 0.35rem;
        border-top: 1px solid rgba(154, 122, 8, 0.12);
    }

    .ahq-pay-item {
        opacity: 0.88;
    }

    .ahq-pay-item--card {
        width: 100%;
        max-width: 52px;
        height: 26px;
        padding: 3px 4px;
        border: 1px solid rgba(154, 122, 8, 0.12);
        border-radius: 6px;
        background: rgba(255, 255, 255, 0.55);
    }

    .ahq-pay-item--card img {
        height: 14px;
        max-width: 38px;
        width: auto;
    }

    .ahq-pay-item--crypto {
        height: 24px;
        gap: 0.22rem;
        padding: 0 0.15rem;
    }

    .ahq-pay-item--crypto:nth-child(6) {
        grid-column: 2;
    }

    .ahq-pay-item--crypto:nth-child(7) {
        grid-column: 3;
    }

    .ahq-pay-item--crypto:nth-child(8) {
        grid-column: 4;
    }

    .ahq-pay-item--crypto svg {
        width: 14px;
        height: 14px;
    }

    .ahq-pay-item span {
        font-size: 0.58rem !important;
        letter-spacing: 0.02em;
    }

    .ahq-footer-legal {
        display: flex;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.35rem 0.65rem;
        padding-top: 0.2rem;
    }

    .ahq-footer-legal a {
        font-size: clamp(0.6rem, 1.35vw, 0.64rem);
        letter-spacing: 0.05em;
        text-transform: uppercase;
        color: rgba(26, 21, 9, 0.48) !important;
        text-decoration: none;
    }

    .ahq-mode-light .ahq-footer {
        background:
            radial-gradient(circle at 50% 0%, rgba(168, 129, 58, 0.1), transparent 38%),
            linear-gradient(180deg, #f1eadf 0%, #fbf8f2 46%, #f7f1e8 100%) !important;
        border-top: 0 !important;
    }
}

/* ── Ivory Luxe 浅色页脚 ── */
.ahq-mode-light .ahq-footer {
    background: var(--ahq-bg-secondary);
    border-top-color: rgba(154, 122, 8, 0.16);
}

.ahq-mode-light .ahq-footer-main {
    border-bottom-color: rgba(26, 18, 8, 0.08);
}

.ahq-mode-light .ahq-footer-logo-link .ahq-logo-tagline,
.ahq-mode-light .ahq-footer-about,
.ahq-mode-light .ahq-footer-disclaimer-text,
.ahq-mode-light .ahq-footer-col li a,
.ahq-mode-light .ahq-pay-item span,
.ahq-mode-light .ahq-footer-legal a,
.ahq-mode-light .ahq-footer-copy {
    color: rgba(26, 18, 8, 0.55);
}

.ahq-mode-light .ahq-footer-col-title,
.ahq-mode-light .ahq-footer-disclaimer-label,
.ahq-mode-light .ahq-footer-col h4 {
    font-family: var(--ahq-font-badge);
    font-style: normal;
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ahq-gold, #9a7a08);
}

.ahq-mode-light .ahq-social-btn {
    border-color: rgba(154, 122, 8, 0.22);
    color: rgba(26, 18, 8, 0.45);
}

.ahq-mode-light .ahq-footer-bottom {
    border-top-color: rgba(26, 18, 8, 0.08);
}

/* ── Landing / inner pages: flush seam into footer (match homepage) ── */
body.ahq-inner-page .ahq-footer,
body.ahq-mystery-design-page .ahq-footer,
body.ahq-ai-tryon-page .ahq-footer,
body.ahq-shop-archive .ahq-footer {
    margin-top: 0;
    border-top: none;
}

body.ahq-mystery-design-page .ahq-trust-bar,
body.ahq-ai-tryon-page .ahq-trust-bar {
    border-top: none;
}

/* Extend ivory footer bg through page shell (avoid white strip below footer) */
body.home,
body.ahq-inner-page,
body.ahq-mystery-design-page,
body.ahq-ai-tryon-page {
    background-color: var(--ahq-bg-secondary) !important;
}

body.home #page,
body.ahq-inner-page #page,
body.ahq-mystery-design-page #page,
body.ahq-ai-tryon-page #page {
    background-color: var(--ahq-bg-secondary) !important;
}

@media (max-width: 640px) {
    :root {
        --ahq-mobile-shell-x: clamp(1rem, 4.8vw, 1.35rem);
        --ahq-mobile-shell-max: min(520px, calc(100vw - 2 * var(--ahq-mobile-shell-x)));
        --ahq-mobile-shell-gap: 0.65rem;
        --ahq-mobile-card-radius: 16px;
        --ahq-mobile-card-bg: rgba(255, 253, 248, 0.78);
        --ahq-mobile-card-border: 1px solid rgba(154, 122, 8, 0.14);
        --ahq-mobile-card-shadow: 0 12px 28px rgba(82, 57, 20, 0.06);
    }

    body.home,
    body.ahq-inner-page,
    body.ahq-mystery-design-page,
    body.ahq-ai-tryon-page,
    body.ahq-shop-archive,
    body.woocommerce-cart,
    body.woocommerce-checkout,
    body.woocommerce-account {
        padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px));
        background-color: var(--ahq-bg-secondary) !important;
    }

    .ahq-footer-bottom {
        margin-bottom: 0;
    }

    .ahq-footer {
        --footer-mobile-pad: var(--ahq-mobile-shell-x);
        background:
            radial-gradient(circle at 50% 0%, rgba(168, 129, 58, 0.1), transparent 38%),
            linear-gradient(180deg, #f1eadf 0%, #fbf8f2 46%, #f7f1e8 100%);
        border-top: 0 !important;
        color: #1a1509;
        margin-top: 0;
        padding-top: clamp(0.75rem, 2vw, 0.95rem);
    }

    /* Trust bar — align with footer shell */
    .ahq-trust-bar {
        background: transparent;
        border: 0;
        padding: 0 var(--ahq-mobile-shell-x) var(--ahq-mobile-shell-gap);
    }

    .ahq-trust-bar-inner.ahq-container,
    .ahq-trust-bar-inner {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 1fr;
        gap: var(--ahq-mobile-shell-gap);
        max-width: var(--ahq-mobile-shell-max) !important;
        width: 100%;
        margin: 0 auto;
        padding: 0 !important;
    }

    .ahq-trust-item,
    .ahq-trust-item:last-child:nth-child(odd) {
        position: relative;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: start;
        gap: 0.5rem;
        min-height: 100%;
        height: 100%;
        padding: 0.78rem 0.72rem;
        margin: 0;
        border: var(--ahq-mobile-card-border) !important;
        border-radius: var(--ahq-mobile-card-radius);
        background: var(--ahq-mobile-card-bg);
        box-shadow: var(--ahq-mobile-card-shadow);
        overflow: hidden;
    }

    .ahq-trust-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 10%;
        right: 10%;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(168, 129, 58, 0.38), transparent);
        pointer-events: none;
    }

    .ahq-trust-item svg {
        width: 18px;
        height: 18px;
        padding: 6px;
        box-sizing: content-box;
        border-radius: 50%;
        background: rgba(168, 129, 58, 0.1);
        border: 1px solid rgba(154, 122, 8, 0.16);
        color: #9a7a08;
        flex-shrink: 0;
    }

    .ahq-trust-label {
        font-size: 0.58rem;
        letter-spacing: 0.12em;
    }

    .ahq-trust-sub {
        font-size: 0.66rem;
        line-height: 1.38;
    }

    .ahq-footer-divider {
        display: none;
    }

    .ahq-footer-main {
        padding: 0 var(--ahq-mobile-shell-x) var(--ahq-mobile-shell-gap);
        border-bottom: 0;
    }

    .ahq-footer-wrap {
        display: grid;
        grid-template-columns: 1fr;
        gap: var(--ahq-mobile-shell-gap);
        max-width: var(--ahq-mobile-shell-max);
        width: 100%;
        margin: 0 auto;
        padding: 0;
    }

    .ahq-footer-brand,
    .ahq-footer-col {
        position: relative;
        grid-column: 1 / -1;
        min-width: 0;
        border: var(--ahq-mobile-card-border) !important;
        border-radius: var(--ahq-mobile-card-radius);
        background: var(--ahq-mobile-card-bg);
        box-shadow: var(--ahq-mobile-card-shadow);
        overflow: hidden;
    }

    .ahq-footer-brand::before,
    .ahq-footer-col::before {
        content: '';
        position: absolute;
        top: 0;
        left: 8%;
        right: 8%;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(168, 129, 58, 0.38), transparent);
        pointer-events: none;
    }

    .ahq-footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.55rem;
        padding: 1.05rem 1rem 0.95rem;
        margin: 0;
    }

    .ahq-footer-logo-link {
        margin-bottom: 0.15rem;
    }

    .ahq-footer-logo-link .ahq-logo-name {
        font-size: 1rem;
        letter-spacing: 0.18em;
    }

    .ahq-footer-logo-link .ahq-logo-tagline {
        font-size: 0.43rem;
    }

    .ahq-footer-about {
        max-width: 32ch;
        width: 100%;
        margin: 0 auto 0.55rem;
        padding-bottom: 0;
        border-bottom: none;
        font-size: 0.72rem;
        line-height: 1.55;
        text-align: center;
        color: rgba(26, 21, 9, 0.58) !important;
    }

    .ahq-footer-disclaimer {
        max-width: 34ch;
        width: 100%;
        margin: 0 auto 0.75rem;
        padding-top: 0.65rem;
        text-align: center;
        border-top: 1px solid rgba(154, 122, 8, 0.12);
    }

    .ahq-footer-disclaimer-label {
        font-size: 0.56rem;
        letter-spacing: 0.15em;
        color: #7b6026;
        margin-bottom: 0.4rem;
    }

    .ahq-footer-disclaimer-text {
        font-size: 0.68rem;
        line-height: 1.55;
        color: rgba(26, 21, 9, 0.52) !important;
    }

    .ahq-footer-social {
        display: flex;
        justify-content: center;
        gap: 0.42rem;
        width: 100%;
    }

    .ahq-social-btn {
        width: 30px;
        height: 30px;
        background: rgba(255, 255, 255, 0.55);
        border-color: rgba(154, 122, 8, 0.2);
    }

    .ahq-footer-col {
        padding: 0.88rem 0.82rem;
    }

    .ahq-footer-col-title,
    .ahq-mode-light .ahq-footer-col-title {
        margin: 0 0 0.62rem !important;
        padding-bottom: 0.42rem;
        border-bottom: 1px solid rgba(154, 122, 8, 0.12);
        font-family: var(--ahq-font-badge, 'Jost', sans-serif) !important;
        font-size: 0.62rem !important;
        font-style: normal !important;
        font-weight: 600 !important;
        letter-spacing: 0.16em !important;
        line-height: 1.25;
        text-transform: uppercase !important;
        color: #7b6026 !important;
    }

    .ahq-footer .ahq-footer-links {
        display: grid;
        gap: 0.45rem 0.65rem;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }

    .ahq-footer-col--shop .ahq-footer-links,
    .ahq-footer-col--company .ahq-footer-links,
    .ahq-footer-col--support .ahq-footer-links {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .ahq-footer .ahq-footer-links li {
        min-height: 0;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }

    .ahq-footer .ahq-footer-links li::marker {
        content: "" !important;
        display: none !important;
    }

    .ahq-footer-links li a {
        display: block;
        padding: 0.1rem 0;
        font-size: 0.73rem;
        line-height: 1.38;
        color: rgba(26, 21, 9, 0.62) !important;
        overflow-wrap: anywhere;
    }

    .ahq-footer-bottom {
        padding: 0 var(--ahq-mobile-shell-x) calc(0.8rem + env(safe-area-inset-bottom, 0px));
        border-top: 0 !important;
    }

    .ahq-footer-bottom-wrap {
        position: relative;
        max-width: var(--ahq-mobile-shell-max);
        width: 100%;
        margin: 0 auto;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 0.58rem;
        padding: 0.95rem 0.9rem;
        border: var(--ahq-mobile-card-border);
        border-radius: var(--ahq-mobile-card-radius);
        background: var(--ahq-mobile-card-bg);
        box-shadow: var(--ahq-mobile-card-shadow);
        text-align: center;
        overflow: hidden;
    }

    .ahq-footer-bottom-wrap::before {
        content: '';
        position: absolute;
        top: 0;
        left: 8%;
        right: 8%;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(168, 129, 58, 0.38), transparent);
        pointer-events: none;
    }

    .ahq-footer-brand-name {
        width: 100%;
        margin: 0;
        font-family: var(--ahq-font-badge, 'Jost', sans-serif);
        font-size: 0.66rem;
        font-weight: 600;
        letter-spacing: 0.18em;
        text-transform: uppercase;
        text-align: center;
        color: rgba(26, 21, 9, 0.72);
    }

    .ahq-copyright,
    .ahq-footer-trader {
        width: 100%;
        max-width: 34ch;
        margin: 0 auto;
        font-size: 0.65rem;
        letter-spacing: 0.02em;
        line-height: 1.48;
        text-align: center;
        color: rgba(26, 21, 9, 0.55);
    }

    .ahq-footer-trader a {
        color: #8a6508 !important;
        text-decoration: none;
    }

    .ahq-pay-badges {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 0.38rem 0.42rem;
        align-items: center;
        justify-items: center;
        margin-top: 0.1rem;
        padding: 0.5rem 0 0.3rem;
        border-top: 1px solid rgba(154, 122, 8, 0.12);
    }

    .ahq-pay-item--crypto:nth-child(6) {
        grid-column: 2;
    }

    .ahq-pay-item--crypto:nth-child(7) {
        grid-column: 3;
    }

    .ahq-pay-item--crypto:nth-child(8) {
        grid-column: 4;
    }

    .ahq-pay-item {
        opacity: 0.82;
    }

    .ahq-pay-item--card {
        width: 100%;
        max-width: 48px;
        height: 23px;
        padding: 2px 3px;
        border-color: rgba(154, 122, 8, 0.12);
        border-radius: 5px;
    }

    .ahq-pay-item--card img {
        height: 13px;
        max-width: 36px;
    }

    .ahq-pay-item--crypto {
        height: 22px;
        gap: 0.18rem;
    }

    .ahq-pay-item--crypto:first-of-type {
        margin-left: 0;
    }

    .ahq-pay-item--crypto svg {
        width: 13px;
        height: 13px;
    }

    .ahq-pay-item span {
        font-size: 0.56rem !important;
        letter-spacing: 0.01em;
    }

    .ahq-footer-legal {
        display: flex;
        width: 100%;
        justify-content: center;
        gap: 0.35rem 0.6rem;
        padding-top: 0.12rem;
    }

    .ahq-footer-legal a {
        font-size: 0.6rem;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        color: rgba(26, 21, 9, 0.48) !important;
        text-decoration: none;
    }

    .ahq-mode-light .ahq-footer {
        background:
            radial-gradient(circle at 50% 0%, rgba(168, 129, 58, 0.1), transparent 38%),
            linear-gradient(180deg, #f1eadf 0%, #fbf8f2 46%, #f7f1e8 100%) !important;
        border-top: 0 !important;
    }

    body.ahq-product-page.has-mobile-bar .ahq-footer-bottom,
    body.ahq-product-page.has-mobile-bar.footer-in-view .ahq-footer-bottom {
        padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    }

    body.ahq-product-page.has-mobile-bar .ahq-footer {
        margin-bottom: 0 !important;
    }
}

@media (max-width: 374px) {
    .ahq-footer-wrap,
    .ahq-footer-col--shop .ahq-footer-links,
    .ahq-footer-col--company .ahq-footer-links,
    .ahq-footer-col--support .ahq-footer-links {
        grid-template-columns: 1fr !important;
    }

    .ahq-pay-badges {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
