
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button {
    font-family: inherit;
    cursor: pointer;
}


/* 通慧立方 - 公共头部 / 底部 */
:root {
    --header-h: 72px;
    --footer-h: 88px;
    --layout-max-w: 1440px;
}

/* ========== Header ========== */
.header {
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--header-h);
    background: linear-gradient(90deg, #152443 0%, #1b2d52 55%, #1e3560 100%);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.header--sticky {
    position: sticky;
}

.header--fixed {
    position: fixed;
}

.header-inner {
    height: 100%;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand-logo-img {
    height: var(--header-h);
    width: 320px;
    object-fit: contain;
    object-position: left center;
}

.header-right {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-slogan {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.wechat-trigger {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    line-height: 0;
}

.wechat-trigger img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.wechat-trigger:hover {
    opacity: 0.85;
}

.qr-panel {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 200;
    background: #fff;
    border-radius: 10px;
    padding: 14px 16px 12px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
    gap: 10px;
}

.qr-panel.is-open {
    display: flex;
}

.qr-item {
    text-align: center;
}

.qr-box {
    width: 88px;
    height: auto;
}

.qr-box img {
    width: 100%;
    height: auto;
}

.qr-label {
    font-size: 13px;
    color: #333;
    font-weight: 500;
}

/* ========== Footer ========== */
.footer {
    width: 100%;
}

.footer-inner {
    width: 100%;
    max-width: var(--layout-max-w);
    margin: 0 auto;
    font-size: 13px;
    line-height: 1.9;
    text-align: center;
}

.footer-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px clamp(20px, 4vw, 48px);
}

.footer-row + .footer-row {
    margin-top: 4px;
}

.footer-row span {
    white-space: nowrap;
}

/* 首页：浅色固定底栏 */
.footer--light {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    color: #27254f;
    background: transparent;
}

.footer--light .footer-inner {
    font-size: 14px;
    color: #27254f;
}

.footer--fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--footer-h);
}

/* 内页：深色底栏 */
.footer--dark {
    background: #1a1a1a;
    color: rgba(255, 255, 255, 0.75);
    padding: 28px 20px;
}

@media (max-width: 768px) {
    .brand-logo-img {
        width: 220px;
    }

    .header-slogan {
        display: none;
    }

    .footer-row {
        flex-direction: column;
        gap: 2px;
    }
}
