﻿/* Homepage footer v2 (scoped) */
#home-footer-v2 {
    --home-footer-title-bar: #5A84FF;
    --home-footer-link-hover-color: #5B6CF0;
    --home-footer-link-hover-bg: rgba(91, 108, 240, 0.12);
    --home-footer-more-color: #5B74E8;
    --home-footer-more-bg: rgba(91, 116, 232, 0.1);
    --home-footer-main-gutter: 1.5rem;
    --home-footer-main-max-width: calc(1400px - (var(--home-footer-main-gutter) * 2));
    --home-footer-main-aside-width: 300px;

    width: min(var(--home-footer-main-max-width), calc(100% - (var(--home-footer-main-gutter) * 2)));
    box-sizing: border-box;
    padding-right: var(--home-footer-main-aside-width);
    margin: 0 auto 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media screen and (max-width: 1200px) {
    #home-footer-v2 {
        padding-right: 0;
    }
}

#home-footer-v2 .home-footer-v2-card,
#home-footer-v2 .home-footer-v2-bar {
    border-radius: 14px;
    border: var(--style-border);
    background: var(--heo-card-bg);
    box-shadow: var(--heo-shadow-border);
}

#home-footer-v2 .home-footer-v2-card {
    padding: 0.9rem 1rem;
}

#home-footer-v2 .home-footer-v2-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

#home-footer-v2 .home-footer-v2-title {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.52rem;
    padding-left: 0.24rem;
    min-height: 1.3rem;
    font-size: 1.04rem;
    line-height: 1.3;
    color: var(--heo-fontcolor);
    font-weight: 700;
}

#home-footer-v2 .home-footer-v2-title::before {
    content: "";
    flex-shrink: 0;
    width: 5px;
    height: 17px;
    border-radius: 4px;
    background: var(--home-footer-title-bar);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22) inset;
    transform: translateY(0.4px);
}

#home-footer-v2 .home-footer-v2-more,
#home-footer-v2 .home-footer-v2-more:link,
#home-footer-v2 .home-footer-v2-more:visited,
#home-footer-v2 .home-footer-v2-more:hover,
#home-footer-v2 .home-footer-v2-more:focus,
#home-footer-v2 .home-footer-v2-more:active {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.64rem;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none !important;
    border-bottom: none !important;
    color: var(--home-footer-more-color);
    background: var(--home-footer-more-bg);
    font-size: 0.85rem;
    line-height: 1.2;
    font-weight: 600;
    flex-shrink: 0;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

#home-footer-v2 .home-footer-v2-more::after {
    content: ">";
    font-size: 0.76rem;
    line-height: 1;
}

#home-footer-v2 .home-footer-v2-more:hover,
#home-footer-v2 .home-footer-v2-more:focus-visible {
    color: var(--home-footer-link-hover-color);
    background: var(--heo-card-btn-bg);
    border-color: rgba(91, 108, 240, 0.28);
    transform: translateY(-1px);
    outline: none;
}

#home-footer-v2 .home-footer-v2-links {
    margin-top: 0.7rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.42rem 0.68rem;
    max-height: 6.6rem;
    overflow: auto;
    padding-right: 0.2rem;
}

#home-footer-v2 .home-footer-v2-link,
#home-footer-v2 .home-footer-v2-link:link,
#home-footer-v2 .home-footer-v2-link:visited,
#home-footer-v2 .home-footer-v2-link:hover,
#home-footer-v2 .home-footer-v2-link:focus,
#home-footer-v2 .home-footer-v2-link:active {
    display: inline-flex;
    align-items: center;
    padding: 0.14rem 0.42rem;
    border-radius: 8px;
    color: var(--heo-fontcolor);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.5;
    text-decoration: none !important;
    border-bottom: none !important;
    word-break: break-word;
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

#home-footer-v2 .home-footer-v2-link:hover,
#home-footer-v2 .home-footer-v2-link:focus-visible {
    color: var(--home-footer-link-hover-color);
    background: var(--home-footer-link-hover-bg);
    transform: translateY(-1px);
    outline: none;
}

#home-footer-v2 .home-footer-v2-empty {
    font-size: 0.9rem;
    color: var(--heo-secondtext);
}

#home-footer-v2 .home-footer-v2-bar {
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.45rem 1rem;
    font-size: 0.9rem;
    line-height: 1.7;
}

#home-footer-v2 .home-footer-v2-meta-group,
#home-footer-v2 .home-footer-v2-contact-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.2rem 0.8rem;
    min-width: 0;
}

#home-footer-v2 .home-footer-v2-meta-item,
#home-footer-v2 .home-footer-v2-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    min-width: 0;
    color: var(--heo-secondtext);
}

#home-footer-v2 .home-footer-v2-meta-item + .home-footer-v2-meta-item::before,
#home-footer-v2 .home-footer-v2-contact-item + .home-footer-v2-contact-item::before {
    content: "/";
    color: var(--heo-secondtext);
    margin-right: 0.55rem;
}

#home-footer-v2 .home-footer-v2-meta-text,
#home-footer-v2 .home-footer-v2-contact-text {
    color: var(--heo-secondtext);
    word-break: break-all;
}

#home-footer-v2 .home-footer-v2-meta-link,
#home-footer-v2 .home-footer-v2-contact-link,
#home-footer-v2 .home-footer-v2-meta-link:link,
#home-footer-v2 .home-footer-v2-contact-link:link,
#home-footer-v2 .home-footer-v2-meta-link:visited,
#home-footer-v2 .home-footer-v2-contact-link:visited {
    color: var(--heo-main);
    text-decoration: none;
    border-bottom: none;
    word-break: break-all;
}

#home-footer-v2 .home-footer-v2-meta-link:hover,
#home-footer-v2 .home-footer-v2-contact-link:hover,
#home-footer-v2 .home-footer-v2-meta-link:focus-visible,
#home-footer-v2 .home-footer-v2-contact-link:focus-visible {
    color: var(--heo-main);
    text-decoration: none;
    border-bottom: none;
}

#home-footer-v2 .home-footer-v2-contact-group {
    justify-content: flex-end;
}

#home-footer-v2 .home-footer-v2-contact-label {
    color: var(--heo-fontcolor);
    font-weight: 600;
}

@media screen and (max-width: 768px) {
    #home-footer-v2 {
        width: calc(100% - 1rem);
    }

    #home-footer-v2 .home-footer-v2-card,
    #home-footer-v2 .home-footer-v2-bar {
        border-radius: 12px;
        padding-left: 0.8rem;
        padding-right: 0.8rem;
    }

    #home-footer-v2 .home-footer-v2-card-head {
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 0.48rem;
    }

    #home-footer-v2 .home-footer-v2-title {
        font-size: 1rem;
        padding-left: 0.18rem;
    }

    #home-footer-v2 .home-footer-v2-title::before {
        width: 4px;
        height: 15px;
        border-radius: 3px;
    }

    #home-footer-v2 .home-footer-v2-more {
        margin-left: auto;
    }

    #home-footer-v2 .home-footer-v2-links {
        max-height: none;
        gap: 0.38rem 0.56rem;
    }

    #home-footer-v2 .home-footer-v2-link,
    #home-footer-v2 .home-footer-v2-link:link,
    #home-footer-v2 .home-footer-v2-link:visited,
    #home-footer-v2 .home-footer-v2-link:hover,
    #home-footer-v2 .home-footer-v2-link:focus,
    #home-footer-v2 .home-footer-v2-link:active {
        font-size: 0.92rem;
        padding: 0.12rem 0.38rem;
    }

    #home-footer-v2 .home-footer-v2-bar {
        justify-content: flex-start;
        gap: 0.35rem 0.75rem;
    }

    #home-footer-v2 .home-footer-v2-contact-group {
        width: 100%;
        justify-content: flex-start;
    }
}
