/* ============================================================
   公共变量与容器（header/footer 依赖）
   ============================================================ */
:root {
    --main-color: #ff8888;
    --main-color-hover: #ff6b8a;
    --header-bg: #111114;
    --header-bg-solid: #111114;
    --text-primary: #1d1d1f;
    --text-secondary: #6e6e73;
    --text-tertiary: #86868b;
    --bg-white: #ffffff;
    --bg-light: #fbfbfd;
    --bg-gray: #f5f5f7;
    --border-light: rgba(0, 0, 0, 0.08);
    --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.16);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-full: 999px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --transition: all 0.35s var(--ease);
    --transition-fast: all 0.2s var(--ease);
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================
   头部导航
   ============================================================ */
header {
    background: var(--header-bg);
    color: #fff;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 9999;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 68px;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

.logo a:hover {
    opacity: 0.85;
}

.logo img {
    display: block;
    height: 40px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    background: transparent;
    padding: 0;
    box-shadow: none;
}

.logo-icon {
    background: #fff;
    color: var(--main-color);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 14px;
    font-weight: 800;
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 4px;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    position: relative;
    display: inline-block;
    letter-spacing: -0.005em;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.12);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    width: 60%;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: transform 0.3s var(--ease-out);
    opacity: 0.95;
}

nav ul li a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    transform: translateX(-50%) scaleX(1);
}

nav ul li a.active {
    color: #fff;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ============================================================
   Footer
   ============================================================ */
footer {
    background: #111114;
    color: #fff;
    padding: 72px 0 28px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

.footer-column h3 {
    font-size: 15px;
    margin-bottom: 22px;
    position: relative;
    padding-bottom: 12px;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
}

.footer-column .logo img {
    height: 36px;
    width: auto;
    max-width: 200px;
    display: block;
    background: transparent;
    padding: 0;
    box-shadow: none;
    margin-bottom: 16px;
}

.footer-column > p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 14px;
    line-height: 1.7;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.62);
    text-decoration: none;
    transition: var(--transition-fast);
    font-size: 14px;
    display: inline-block;
    position: relative;
}

.footer-links a:hover {
    color: #fff;
}

.footer-links li i {
    margin-right: 10px;
    color: rgba(255, 255, 255, 0.45);
    width: 16px;
    text-align: center;
}

/* 社交图标：支持 6 个换行排布 */
.social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.social-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    transition: var(--transition);
    text-decoration: none;
    flex-shrink: 0;
}

.social-icon:hover {
    background: var(--main-color);
    border-color: var(--main-color);
    color: #fff;
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.42);
    font-size: 13px;
    letter-spacing: 0.01em;
}

/* ============================================================
   Header / Footer 响应式
   ============================================================ */
@media (max-width: 768px) {
    .container {
        padding: 0 18px;
    }

    .header-container {
        height: 60px;
    }

    .logo img {
        height: 34px;
        max-width: 170px;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 14px;
        right: 18px;
        z-index: 10000;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    .menu-toggle.active {
        background: rgba(255, 255, 255, 0.2);
        transform: rotate(90deg);
    }

    nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 78%;
        max-width: 320px;
        height: 100vh;
        z-index: 9998;
        transform: translateX(100%);
        transition: transform 0.4s var(--ease-out);
        padding: 80px 24px 40px;
        overflow-y: auto;
        background: var(--header-bg-solid);
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.35);
    }

    nav.active {
        transform: translateX(0);
    }

    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.55);
        z-index: 9997;
    }

    .menu-overlay.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding-left: 0;
        text-align: left;
    }

    nav ul li {
        margin: 0;
        width: 100%;
    }

    nav ul li a {
        display: block;
        padding: 14px 16px;
        width: 100%;
        font-size: 16px;
        color: rgba(255, 255, 255, 0.85);
        border-radius: var(--radius-sm);
    }

    nav ul li a::after {
        display: none;
    }

    nav ul li a:hover,
    nav ul li a.active {
        background: rgba(255, 255, 255, 0.08);
        color: #fff;
        transform: none;
    }

    .footer-content {
        flex-direction: column;
        gap: 32px;
    }

    .footer-column:not(:first-child) {
        margin-top: 0;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 16px;
    }

    .logo {
        font-size: 18px;
    }

    .logo img {
        height: 30px;
        max-width: 150px;
    }

    .footer-column h3 {
        font-size: 14px;
    }
}
.footer-qrcodes {
    display: flex;
    gap: 10px;
    margin-top: 22px;
    flex-wrap: nowrap; /* ✅ 强制一行显示，不换行 */
    width: 100%;
}

.footer-qrcode-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.06);
    padding: 8px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    flex: 1; /* ✅ 让两个卡片平分可用宽度 */
    min-width: 0; /* 防止撑破容器 */
}

.footer-qrcode-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

.footer-qrcode-item img {
    height: 100px; /* ✅ 调整为100px，确保并排时放得下 */
    width: 100%;
    max-width: 100px;
    object-fit: contain;
    display: block;
    border-radius: 8px;
    background: #fff;   /* 白底，保证深色背景扫码识别率 */
    padding: 4px;
    box-sizing: border-box;
}

.footer-qrcode-item span {
    color: rgba(255, 255, 255, 0.75);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap; /* 文字也不换行 */
}

.footer-qrcode-item span i {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
}

/* 移动端屏幕极小时（例如 320px 宽），可以适当再缩小 */
@media (max-width: 400px) {
    .footer-qrcodes {
        gap: 8px;
    }
    .footer-qrcode-item {
        padding: 6px;
    }
    .footer-qrcode-item img {
        height: 85px;
    }
    .footer-qrcode-item span {
        font-size: 11px;
    }
}
