.edu-footer {
    background:
        linear-gradient(180deg, #071b33 0%, #06162b 100%);
    color: #fff;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

.edu-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.edu-footer-main {
    padding: 54px 0 40px;
}

.edu-footer-grid {
    display: grid;
    grid-template-columns: 1.8fr .9fr .9fr .9fr 1.5fr;
    gap: 42px;
}

.edu-footer-logo {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 18px;
    font-size: 20px;
    font-weight: 900;
}

.edu-footer-logo img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.edu-footer-desc {
    max-width: 260px;
    margin: 0 0 22px;
    color: #9fb2ce;
    font-size: 14px;
    line-height: 1.8;
}

.edu-footer-social {
    display: flex;
    gap: 12px;
}

.edu-footer-social a {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .18);
    color: #d8e6fb;
    text-decoration: none;
}

.edu-footer-nav h4,
.edu-footer-contact h4 {
    margin: 0 0 18px;
    color: #fff;
    font-size: 16px;
    font-weight: 900;
}

.edu-footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.edu-footer-nav li {
    margin-bottom: 11px;
}

.edu-footer-nav a,
.edu-footer-links a {
    color: #9fb2ce;
    text-decoration: none;
    font-size: 14px;
    transition: color .2s ease;
}

.edu-footer-nav a:hover,
.edu-footer-links a:hover {
    color: #fff;
}

.edu-footer-contact p {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 0 0 11px;
    color: #c6d4e8;
    font-size: 14px;
    line-height: 1.55;
}

.edu-footer-contact i {
    margin-top: 3px;
    color: #8db8ff;
}

.edu-footer-qr-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.edu-footer-qr-row img {
    width: 88px;
    height: 88px;
    padding: 5px;
    border-radius: 8px;
    background: #fff;
    object-fit: cover;
}

.edu-footer-qr-row span {
    color: #c6d4e8;
    font-size: 13px;
    line-height: 1.65;
}

.edu-footer-bottom {
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
    background: rgba(1, 11, 24, .34);
}

.edu-footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    color: #8ea2bd;
    font-size: 13px;
}

.edu-footer-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.edu-footer-links span {
    color: rgba(255, 255, 255, .22);
}

.cnasedu-modal-open {
    overflow: hidden;
}

.cnasedu-floating-tools {
    position: fixed;
    right: 0;
    top: 50%;
    z-index: 9990;
    display: flex;
    flex-direction: column;
    width: 58px;
    border-radius: 0;
    transform: translateY(-50%);
    box-shadow: 0 10px 24px rgba(2, 30, 74, .2);
}

.cnasedu-tool-item {
    position: relative;
    margin: 0;
}

.cnasedu-tool-btn {
    width: 58px;
    min-height: 58px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 7px 4px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .18);
    border-radius: 0;
    background: #0872d8;
    color: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background .18s ease;
}

.cnasedu-tool-btn:hover,
.cnasedu-tool-btn:focus {
    background: #0062bf;
    color: #fff;
    outline: none;
    text-decoration: none;
}

.cnasedu-tool-btn i {
    font-size: 19px;
    line-height: 1;
}

.cnasedu-tool-btn span {
    display: block;
    white-space: nowrap;
}

.cnasedu-tool-popover {
    position: absolute;
    right: 72px;
    top: 50%;
    min-width: 162px;
    padding: 16px 18px;
    border-radius: 6px;
    background: #fff;
    color: #26384f;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .18);
    opacity: 0;
    visibility: hidden;
    transform: translate(8px, -50%);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    pointer-events: none;
}

.cnasedu-tool-item:hover .cnasedu-tool-popover,
.cnasedu-tool-item:focus-within .cnasedu-tool-popover {
    opacity: 1;
    visibility: visible;
    transform: translate(0, -50%);
    pointer-events: auto;
}

.cnasedu-tool-popover strong {
    display: block;
    margin-bottom: 8px;
    color: #334155;
    font-size: 14px;
    font-weight: 800;
}

.cnasedu-tool-popover a {
    display: block;
    color: #0670d8;
    font-size: 16px;
    font-weight: 850;
    line-height: 1.55;
    text-decoration: none;
}

.cnasedu-tool-popover img {
    width: 132px;
    height: 132px;
    display: block;
    margin: 0 auto 10px;
    padding: 6px;
    border: 1px solid #e5edf7;
    background: #fff;
    object-fit: cover;
}

.cnasedu-tool-popover p {
    margin: 0;
    color: #4b5f78;
    font-size: 13px;
    line-height: 1.45;
    text-align: center;
}

.cnasedu-consult-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, .58);
}

.cnasedu-consult-dialog {
    position: relative;
    width: min(500px, 100%);
    padding: 26px 25px 24px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .28);
}

.cnasedu-consult-close {
    position: absolute;
    right: 18px;
    top: 17px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: #0b63c7;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.cnasedu-consult-title {
    margin: 0 42px 10px 0;
    color: #0069d9;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 900;
}

.cnasedu-consult-tip {
    margin: 0 0 18px;
    padding-bottom: 16px;
    border-bottom: 1px dashed #d8e1ee;
    color: #58677c;
    font-size: 14px;
    line-height: 1.7;
}

.cnasedu-consult-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

.cnasedu-consult-form input,
.cnasedu-consult-form textarea {
    width: 100%;
    border: 1px solid #d8e0eb;
    border-radius: 4px;
    background: #fff;
    color: #172033;
    font: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.cnasedu-consult-form input {
    height: 46px;
    padding: 0 14px;
}

.cnasedu-consult-form textarea {
    min-height: 118px;
    padding: 13px 14px;
    resize: vertical;
}

.cnasedu-consult-form input:focus,
.cnasedu-consult-form textarea:focus {
    border-color: #0b63f6;
    box-shadow: 0 0 0 3px rgba(11, 99, 246, .12);
}

.cnasedu-consult-note {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin: 14px 0 18px;
    color: #d92d20;
    font-size: 14px;
    font-weight: 700;
}

.cnasedu-consult-note i {
    margin-top: 3px;
    font-size: 13px;
}

.cnasedu-consult-submit {
    width: 100%;
    min-height: 44px;
    border: 0;
    border-radius: 4px;
    background: #0872d8;
    color: #fff;
    font: inherit;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: background .18s ease, opacity .18s ease;
}

.cnasedu-consult-submit:hover,
.cnasedu-consult-submit:focus {
    background: #0062bf;
    outline: none;
}

.cnasedu-consult-submit:disabled {
    cursor: not-allowed;
    opacity: .72;
}

.cnasedu-consult-status {
    min-height: 20px;
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.5;
}

.cnasedu-consult-status.is-success {
    color: #0f8a52;
}

.cnasedu-consult-status.is-error {
    color: #d92d20;
}

@media (max-width: 1050px) {
    .edu-footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .edu-footer-brand,
    .edu-footer-contact {
        grid-column: span 2;
    }
}

@media (max-width: 640px) {
    .edu-footer-main {
        padding: 18px 0 12px;
    }

    .edu-footer-container {
        padding-right: 12px;
        padding-left: 12px;
    }

    .edu-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px 18px;
    }

    .edu-footer-brand,
    .edu-footer-contact {
        grid-column: 1 / -1;
    }

    .edu-footer-logo {
        margin-bottom: 8px;
        font-size: 17px;
    }

    .edu-footer-logo img {
        width: 32px;
        height: 32px;
    }

    .edu-footer-desc,
    .edu-footer-social,
    .edu-footer-qr-row {
        display: none;
    }

    .edu-footer-nav h4,
    .edu-footer-contact h4 {
        margin-bottom: 8px;
        font-size: 14px;
    }

    .edu-footer-nav li {
        margin-bottom: 7px;
    }

    .edu-footer-nav a,
    .edu-footer-links a,
    .edu-footer-contact p {
        font-size: 12px;
        line-height: 1.45;
    }

    .edu-footer-contact {
        display: grid;
        gap: 6px;
    }

    .edu-footer-contact p {
        margin-bottom: 0;
    }

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

    .edu-footer-bottom {
        padding: 10px 0 calc(72px + env(safe-area-inset-bottom));
    }

    .cnasedu-floating-tools {
        display: none;
    }

    .cnasedu-tool-btn {
        width: 46px;
        min-height: 46px;
        padding: 7px 4px;
        gap: 0;
    }

    .cnasedu-tool-btn span {
        display: none;
    }

    .cnasedu-tool-btn i {
        font-size: 20px;
    }

    .cnasedu-tool-popover {
        right: 58px;
    }

    .cnasedu-consult-modal {
        padding: 14px;
    }

    .cnasedu-consult-dialog {
        padding: 22px 18px 18px;
    }

    .cnasedu-consult-title {
        font-size: 20px;
    }

    .cnasedu-consult-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 10px;
    }

    .cnasedu-consult-form textarea {
        min-height: 96px;
    }
}

/* Mobile footer refinement: compact app-style navigation instead of desktop columns. */
@media (max-width: 640px) {
    .edu-footer {
        background: #061a31;
    }

    .edu-footer-main {
        padding: 22px 0 14px;
    }

    .edu-footer-container {
        padding-right: 14px;
        padding-left: 14px;
    }

    .edu-footer-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .edu-footer-brand,
    .edu-footer-contact {
        grid-column: auto;
    }

    .edu-footer-brand {
        padding-bottom: 12px;
        border-bottom: 1px solid rgba(255, 255, 255, .09);
    }

    .edu-footer-logo {
        margin: 0;
        font-size: 18px;
        line-height: 1.2;
    }

    .edu-footer-desc,
    .edu-footer-social,
    .edu-footer-qr-row {
        display: none;
    }

    .edu-footer-nav {
        padding-bottom: 12px;
        border-bottom: 1px solid rgba(255, 255, 255, .08);
    }

    .edu-footer-nav h4,
    .edu-footer-contact h4 {
        display: flex;
        align-items: center;
        gap: 8px;
        margin: 0 0 9px;
        color: #f7fbff;
        font-size: 13px;
        font-weight: 850;
        line-height: 1.2;
    }

    .edu-footer-nav h4::before,
    .edu-footer-contact h4::before {
        width: 3px;
        height: 12px;
        flex: 0 0 auto;
        border-radius: 6px;
        background: #3f96ff;
        content: "";
    }

    .edu-footer-nav ul {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .edu-footer-nav li {
        min-width: 0;
        margin: 0;
    }

    .edu-footer-nav a {
        min-height: 36px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 7px;
        padding: 0 10px;
        overflow: hidden;
        border: 1px solid rgba(142, 180, 225, .16);
        border-radius: 6px;
        background: rgba(255, 255, 255, .045);
        color: #d6e6fa;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.2;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .edu-footer-nav a::after {
        flex: 0 0 auto;
        color: #76aaf0;
        font-size: 12px;
        font-weight: 900;
        content: ">";
    }

    .edu-footer-nav a:hover,
    .edu-footer-nav a:focus {
        border-color: rgba(159, 194, 239, .34);
        background: rgba(255, 255, 255, .075);
        color: #fff;
        outline: none;
    }

    .edu-footer-contact {
        display: grid;
        gap: 7px;
        padding: 12px;
        border: 1px solid rgba(142, 180, 225, .14);
        border-radius: 8px;
        background: rgba(255, 255, 255, .045);
    }

    .edu-footer-contact p {
        align-items: center;
        margin: 0;
        color: #c8daf0;
        font-size: 12px;
        line-height: 1.45;
    }

    .edu-footer-contact p:first-of-type {
        color: #fff;
        font-size: 15px;
        font-weight: 850;
    }

    .edu-footer-contact p:nth-of-type(n+3) {
        display: none;
    }

    .edu-footer-contact i {
        width: 16px;
        margin-top: 0;
        color: #70aaff;
        text-align: center;
    }

    .edu-footer-bottom {
        padding: 12px 0 calc(76px + env(safe-area-inset-bottom));
    }

    .edu-footer-bottom-inner {
        align-items: center;
        gap: 6px;
        color: #8fa6c2;
        font-size: 11px;
        line-height: 1.55;
    }

    .edu-footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .edu-footer-links a {
        color: #bdd0e8;
        font-size: 11px;
    }

    .edu-footer-links span {
        display: none;
    }
}

@media (max-width: 360px) {
    .edu-footer-nav ul {
        gap: 7px;
    }

    .edu-footer-nav a {
        min-height: 34px;
        padding-right: 8px;
        padding-left: 8px;
        font-size: 11.5px;
    }
}
