.c-footer {
    background-color: #2f2f2f;
    color: #d5d5d5;
    line-height: 1.6;
    padding: 24px 0;
    font-size: 16px; /* 使用px或rem */
    text-align: justify;
}

.c-footer a {
    color: inherit;
    vertical-align: middle;
}

.c-footer__item a {
    font-size: 14px; /* 使用px或rem */
    text-decoration: none;
}

.c-footer__header {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #555;
}

.c-footer__list,
.c-footer__list--inline {
    list-style: none;
    margin: 0;
    padding: 0;
}

.c-footer__grid {
    display: -webkit-box; /* 旧版Safari支持 */
    display: -webkit-flex; /* 旧版Safari支持 */
    display: flex;
    flex-wrap: wrap;
}

@supports (display: grid) {
    .c-footer__grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        grid-column-gap: 32px;
        grid-row-gap: 32px;
    }
}

.c-footer__group {
    flex: 1 1 50%;
    max-width: 50%;
    padding-right: 16px;
    margin-bottom: 16px;
}

@supports (display: grid) {
    .c-footer__group {
        padding-right: 0;
        max-width: none;
        margin-bottom: 0;
    }
}

.c-footer__heading {
    color: #eee;
    margin-bottom: 16px;
    font-weight: 700;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.c-footer__heading--visually-hidden {
    border: 0;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    margin: -100%;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

.c-footer__item:not(:last-child) {
    margin-bottom: 4px;
}

.c-footer__menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    font-size: 1rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.3;
}

.c-footer__menu:not(:last-child) {
    margin-right: 32px;
}

.c-footer__menu-item:not(:last-child) {
    margin-right: 16px;
}

.c-footer__menu-link {
    display: inline-block;
    text-decoration: none;
    color: inherit;
}

.c-footer__menu-icon {
    fill: currentColor;
    display: inline-block;
    vertical-align: middle; /* Changed to middle for better alignment */
    width: 1em;
    height: 1em;
}

.c-corporate-footer {
    background-color: #222;
    border-top: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    padding-top: 16px;
    padding-bottom: 24px;
}

.c-corporate-footer__legal {
    color: #a2a2a2;
    font-size: 0.813rem; /* Use rem for better scalability */
    margin-bottom: 0;
    padding-top: 4px;
}

.u-container {
    margin: 0 auto;
    max-width: 1600px;
    padding: 0 16px;
}

/* Add a reset for box-sizing for better consistency */
*,
*::before,
*::after {
    box-sizing: border-box;
}
