/* 新首页 Footer 的基础颜色、字体和宽度。 */
.hddjt-footer-shell {
    --hddjt-footer-background: #e7e8dd;
    --hddjt-footer-text: #34342f;
    --hddjt-footer-muted: #55554f;
    --hddjt-footer-accent: #a0a17f;
    --hddjt-footer-divider: #bbbca2;

    box-sizing: border-box;
    width: 100%;
    margin: 0;
    background: var(--hddjt-footer-background);
    color: var(--hddjt-footer-text);
    font-family: Urbanist, Arial, sans-serif;
}

.hddjt-footer-shell *,
.hddjt-footer-shell *::before,
.hddjt-footer-shell *::after {
    box-sizing: border-box;
}

/* 与桌面端 Header 保持一致的 44px 左右留白。 */
.hddjt-footer-inner {
    width: 100%;
    margin: 0 auto;
    padding: 104px 44px 18px;
}

.hddjt-footer-signup {
    max-width: 720px;
    margin: 0 auto 84px;
    text-align: center;
}

.hddjt-footer-signup-title {
    margin: 0;
    color: #2C2A27;
    font-size: 28px;
    font-weight: 500;
    line-height: 1.2;
}

.hddjt-footer-title-mobile,
.hddjt-footer-mobile-navigation,
.hddjt-footer-copyright-mobile {
    display: none;
}

.hddjt-footer-signup-description {
    margin: 10px 0 26px;
    color: #4D4A45;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
}

.hddjt-footer-signup-form {
    display: flex;
    align-items: stretch;
    width: min(100%, 640px);
    height: 54px;
    min-height: 54px;
    margin: 0 auto;
}

.hddjt-footer-signup-input,
.hddjt-footer-signup-button {
    box-sizing: border-box !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    margin: 0 !important;
    vertical-align: top;
}

.hddjt-footer-signup-input {
    min-width: 0;
    flex: 1 1 auto;
    padding: 0 16px;
    border: 0 !important;
    border-radius: 5px 0 0 5px;
    background: #ffffff;
    color: var(--hddjt-footer-text);
    font: inherit;
    font-size: 17px;
    line-height: 1;
    outline: none;
    box-shadow: none;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.hddjt-footer-signup-input::placeholder {
    color: #4D4A45;
    opacity: 1;
}

.hddjt-footer-signup-input:focus {
    position: relative;
    z-index: 1;
    border-color: var(--hddjt-footer-accent);
    box-shadow: 0 0 0 3px rgba(160, 161, 127, 0.22);
}

.hddjt-footer-signup-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 106px;
    padding-top: 0 !important;
    padding-right: 16px;
    padding-bottom: 0 !important;
    padding-left: 16px;
    border-radius: 0 5px 5px 0;
    background: #A0A17F !important;
    color: #ffffff;
    font: inherit;
    font-size: 16px;
    font-weight: 400;
    line-height: 1 !important;
    cursor: pointer;
    transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.hddjt-footer-signup-button:hover {
    border-color: #A0A17F;
    background: #A0A17F;
}

.hddjt-footer-signup-button:focus-visible {
    position: relative;
    z-index: 2;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 52, 47, 0.24);
}

/* 桌面端内容宽度与效果图一致，四栏保持开放的无卡片布局。 */
.hddjt-footer-columns {
    display: grid;
    grid-template-columns: minmax(130px, 1fr) minmax(200px, 1fr) minmax(100px, 0.6fr) minmax(350px, 1.5fr);
    gap: 36px;
    width: min(100%, 1244px);
    margin: 0 auto 68px;
}

.hddjt-footer-column {
    min-width: 0;
    margin: 0;
}

.hddjt-footer-column-title {
    margin: 0 0 13px;
    color: #2C2A27;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
}

.hddjt-footer-link-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.hddjt-footer-link-list li + li {
    margin-top: 13px;
}

.hddjt-footer-link-list a,
.hddjt-footer-copyright a {
    color: #222222;
    text-decoration: none;
    text-underline-offset: 3px;
    transition: color 180ms ease;
}

.hddjt-footer-link-list a {
    display: inline-block;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.55;
}

.hddjt-footer-link-list a:hover,
.hddjt-footer-link-list a:focus-visible,
.hddjt-footer-copyright a:hover,
.hddjt-footer-copyright a:focus-visible {
    color: #2C2A27;
    text-decoration: underline;
}

.hddjt-footer-link-list a:focus-visible,
.hddjt-footer-copyright a:focus-visible,
.hddjt-footer-social-link:focus-visible {
    outline: 2px solid var(--hddjt-footer-text);
    outline-offset: 3px;
}

.hddjt-footer-follow-text {
    margin: 0 0 20px;
    color: #2C2A27;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.45;
}

.hddjt-footer-social-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 17px;
}

.hddjt-footer-payment {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 28px;
    margin: 24px 0 0;
}

.hddjt-footer-payment img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.hddjt-footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--hddjt-footer-accent);
    color: #ffffff;
    text-decoration: none;
    transition: background-color 180ms ease, transform 180ms ease;
}

.hddjt-footer-social-link:hover {
    background: #8f906f;
    color: #ffffff;
    transform: translateY(-2px);
}

.hddjt-footer-social-image {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.hddjt-footer-bottom {
    width: min(100%, 1584px);
    margin: 0 auto;
    padding: 16px 0 0;
    border-top: 1px solid var(--hddjt-footer-divider);
}

.hddjt-footer-copyright {
    margin: 0;
    color: #2C2A27;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
}

.hddjt-footer-copyright a {
    text-decoration: underline;
}

.hddjt-footer-visually-hidden {
    position: absolute !important;
    overflow: hidden;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

/* 平板：四栏调整为两栏，并延用 Header 的 20px 左右留白。 */
@media (max-width: 991px) {
    .hddjt-footer-inner {
        padding: 72px 20px 24px;
    }

    .hddjt-footer-signup {
        margin-bottom: 64px;
    }

    .hddjt-footer-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 48px 64px;
        max-width: 720px;
        margin-bottom: 56px;
    }
}

/* 手机端：按移动端效果图改为订阅、社交图标、折叠导航和底部信息。 */
@media (max-width: 640px) {
    .hddjt-footer-inner {
        display: flex;
        flex-direction: column;
        padding: 60px 25px 59px;
    }

    .hddjt-footer-signup {
        order: 1;
        margin-bottom: 30px;
    }

    .hddjt-footer-signup-title {
        font-size: clamp(20px, 5.3vw, 22px);
        line-height: 1.3;
        letter-spacing: -0.015em;
    }

    .hddjt-footer-title-desktop {
        display: none;
    }

    .hddjt-footer-title-mobile {
        display: inline;
    }

    .hddjt-footer-signup-description {
        display: none;
    }

    .hddjt-footer-signup-form {
        width: 100%;
        height: 44px;
        min-height: 44px;
        margin-top: 15px;
    }

    .hddjt-footer-signup-input {
        padding: 0 11px;
        border-radius: 4px 0 0 4px;
        font-size: 15px;
    }

    .hddjt-footer-signup-button {
        flex: 0 0 112px;
        padding: 0 12px;
        border-radius: 0 4px 4px 0;
        font-size: 18px;
    }

    .hddjt-footer-columns {
        display: contents;
        width: 100%;
        margin: 0 0 31px;
    }

    .hddjt-footer-columns > .hddjt-footer-column:not(.hddjt-footer-follow) {
        display: none;
    }

    .hddjt-footer-follow .hddjt-footer-column-title,
    .hddjt-footer-follow-text {
        display: none;
    }

    .hddjt-footer-follow {
        display: contents;
    }

    .hddjt-footer-social-links {
        order: 2;
        justify-content: center;
        gap: 14px;
        margin-bottom: 31px;
    }

    .hddjt-footer-social-link {
        width: 40px;
        height: 40px;
    }

    .hddjt-footer-social-image {
        width: 26px;
        height: 26px;
    }

    .hddjt-footer-mobile-navigation {
        display: block;
        order: 3;
        width: 100%;
        margin: 0;
    }

    .hddjt-footer-mobile-menu {
        margin: 0;
        padding: 0;
    }

    .hddjt-footer-mobile-menu summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 48px;
        margin: 0;
        padding: 0;
        color: #222222;
        font-size: 15px;
        font-weight: 500;
        line-height: 1.35;
        list-style: none;
        cursor: pointer;
    }

    .hddjt-footer-mobile-menu summary::-webkit-details-marker {
        display: none;
    }

    .hddjt-footer-mobile-menu summary::after {
        content: "";
        flex: 0 0 auto;
        width: 11px;
        height: 11px;
        margin: -5px 3px 0 18px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg);
        transition: transform 180ms ease, margin 180ms ease;
    }

    .hddjt-footer-mobile-menu[open] summary::after {
        margin-top: 5px;
        transform: rotate(225deg);
    }

    .hddjt-footer-mobile-menu summary:focus-visible {
        outline: 2px solid var(--hddjt-footer-text);
        outline-offset: 3px;
    }

    

    .hddjt-footer-mobile-menu .hddjt-footer-link-list li + li {
        margin-top: 7px;
    }

    .hddjt-footer-mobile-menu .hddjt-footer-link-list a {
        font-size: 12px;
    }

    .hddjt-footer-payment {
        display: flex;
        align-items: center;
        order: 4;
        width: 100%;
        min-height: 28px;
        margin: 29px 0 13px;
    }

    .hddjt-footer-payment img {
        display: block;
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .hddjt-footer-bottom {
        width: 100%;
        order: 5;
        margin: 0;
        padding: 0;
        border-top: 0;
    }

    .hddjt-footer-copyright-desktop {
        display: none;
    }

    .hddjt-footer-copyright-mobile {
        margin-top: 10px;
        display: block;
        color: #2C2A27;
        font-size: 8px;
        line-height: 1.45;
        letter-spacing: 0.02em;
    }

    .hddjt-footer-copyright-mobile a {
        color: inherit;
        text-decoration: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hddjt-footer-shell *,
    .hddjt-footer-shell *::before,
    .hddjt-footer-shell *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
