body.main-bg {
    background: linear-gradient(135deg, #e6edfa 0%, #f5f8ff 60%, #e6eaff 100%);
    min-height: 100vh;
    position: relative;
}
.main-navbar {
    border-bottom: 1px solid #e6e6e6;
    background: #fff;
    font-size: 16px;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px 0 rgba(77,138,255,0.04);
}
.footer-bg {
    background: none;
    color: #8a94a6;
    /* 与页脚 HTML 上的 Bootstrap pt-4 一致，勿再用超大 padding 顶开内容 */
    z-index: 1000;
    position: relative;
}
.footer-bg .fw-bold {
    color: #222;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 18px;
}
.footer-bg .small {
    color: #8a94a6;
    font-size: 16px;
    margin-bottom: 8px;
}
.footer-bg .row {
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
}
.footer-bg .col-md-4 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    min-width: 320px;
    padding-bottom: 16px;
}
.footer-bg img {
    vertical-align: middle;
    box-shadow: none;
    border: none;
    background: none;
    margin-right: 8px;
}
.footer-bg .col-md-4 img[alt="微信"],
.footer-bg .col-md-4 img[alt="微博"] {
    margin-right: 12px;
    margin-top: 0;
    margin-bottom: 0;
}
/* 页脚：邮件订阅（与「联系我们」等列一致，无外层卡片底） */
.footer-newsletter {
    width: 100%;
    max-width: 420px;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
}
.footer-newsletter__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}
.footer-newsletter__title-icon .portal-icon {
    width: 1.35em;
    height: 1.35em;
    color: #0256ff;
    opacity: 0.92;
}
.footer-newsletter__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a2332;
    letter-spacing: 0.03em;
}
.footer-newsletter__hint {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: #8a94a6;
}
.footer-newsletter__form {
    margin: 0;
    margin-top: 14px;
}
.footer-newsletter__combo {
    display: flex;
    align-items: stretch;
    flex-wrap: nowrap;
    background: #fff;
    border: 1px solid rgba(2, 86, 255, 0.18);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.footer-newsletter__combo:focus-within {
    border-color: #4d8aff;
    box-shadow: 0 0 0 3px rgba(77, 138, 255, 0.16);
}
.footer-newsletter__row {
    display: flex;
    flex: 1;
    align-items: center;
    min-width: 0;
}
.footer-newsletter__prefix {
    display: flex;
    align-items: center;
    padding-left: 14px;
    color: #9aa5b8;
    flex-shrink: 0;
}
.footer-newsletter__prefix .portal-icon {
    width: 1.1em;
    height: 1.1em;
}
.footer-newsletter__input {
    flex: 1;
    min-width: 0;
    border: none;
    padding: 13px 14px 13px 10px;
    font-size: 0.9375rem;
    background: transparent;
    color: #1a2332;
}
.footer-newsletter__input::placeholder {
    color: #a8b0c0;
}
.footer-newsletter__input:focus {
    outline: none;
    box-shadow: none;
}
.footer-newsletter__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 20px;
    border: none;
    background: linear-gradient(135deg, #0256ff 0%, #3d7cff 55%, #5b90ff 100%);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    cursor: pointer;
    transition: filter 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    white-space: nowrap;
}
.footer-newsletter__submit:hover {
    filter: brightness(1.05);
    box-shadow: 0 6px 20px rgba(2, 86, 255, 0.32);
}
.footer-newsletter__submit:active {
    transform: scale(0.98);
}
.footer-newsletter__submit:focus-visible {
    outline: 2px solid rgba(77, 138, 255, 0.55);
    outline-offset: 2px;
}
.footer-newsletter__submit-icon {
    width: 1em;
    height: 1em;
    fill: #fff;
    opacity: 0.95;
}
.footer-bg .text-center.small {
    color: #b0b8c9;
    margin-top: 24px;
    font-size: 15px;
}
.footer-bg .social-icons {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 18px;
    margin-top: 8px;
    margin-bottom: 0;
}
.footer-bg .social-icons img {
    margin: 0;
    width: 32px;
    height: 32px;
}
@media (max-width: 900px) {
    .footer-bg .col-md-4 {
        min-width: 0;
        width: 100%;
        margin-bottom: 18px;
    }
    .footer-newsletter__combo {
        flex-direction: column;
        border-radius: 12px;
    }
    .footer-newsletter__row {
        border-bottom: 1px solid rgba(77, 138, 255, 0.1);
    }
    .footer-newsletter__input {
        padding: 14px 16px 14px 10px;
    }
    .footer-newsletter__submit {
        width: 100%;
        padding: 13px 16px;
        letter-spacing: 0.2em;
    }
    .footer-bg .social-icons {
        justify-content: flex-start;
        gap: 16px;
    }
}


/* 菜单优化 */
.navbar-nav .nav-link {
    padding: 0 24px;
    font-size: 18px;
    color: #222;
    transition: color 0.2s, border-bottom 0.2s;
    border-bottom: 2px solid transparent;
}
.navbar-nav .nav-link.active,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link:hover {
    color: #3A7BFF !important;
    font-weight: 600;
    border-bottom: 2px solid #3A7BFF;
    background: none;
}

/* 头部半透明毛玻璃效果 */
.custom-navbar {
  background: rgba(255,255,255,0.2) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  backdrop-filter: blur(8px);
  min-height: 64px;
  z-index: 1000;
}
/* 菜单项排版优化 */
.custom-navbar .navbar-nav {
  gap: 56px;
}
.custom-navbar .nav-link {
  font-weight: 500;
  font-size: 18px;
  color: #222 !important;
  padding: 0 8px;
  line-height: 64px;
  background: none;
}
.custom-navbar .nav-link.active,
.custom-navbar .nav-link:focus {
  color: #1976d2 !important;
  border-bottom: 2px solid #1976d2;
  background: none;
}

.brand-logo {
    gap: 0;
    padding: 4px 6px 4px 2px;
    border-radius: 14px;
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.brand-logo:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.45);
}

.brand-combined {
    height: 42px;
    width: auto;
    object-fit: contain;
    transform: translateY(1px);
    image-rendering: -webkit-optimize-contrast;
}

@media (max-width: 992px) {
    .brand-combined {
        height: 34px;
    }

    .custom-navbar .navbar-nav {
        gap: 28px;
    }
}

@media (max-width: 768px) {
    .brand-logo {
        gap: 8px;
    }

    .brand-combined {
        height: 28px;
    }

    .navbar-nav .nav-link {
        padding: 0 12px;
        font-size: 16px;
    }
}

/* 登录按钮样式 */
.login-btn {
    background: rgba(238, 244, 253, 0.88);
    color: #2552a4 !important;
    border-radius: 999px;
    padding: 7px 24px;
    font-weight: 600;
    font-size: 16px;
    border: 1px solid rgba(120, 157, 228, 0.55);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), inset 0 0 0 1px rgba(203, 221, 251, 0.35);
    transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.login-btn:hover {
    background: rgba(232, 240, 252, 0.92);
    color: #204b96 !important;
    border-color: rgba(103, 145, 222, 0.62);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 0 0 1px rgba(192, 213, 248, 0.42);
}