/* ===============================
⭐ 全局
=============================== */
html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
    color: #fff;
    box-sizing: border-box;
}

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

body {
    background: linear-gradient(135deg, #073A67 0%, #4F46E5 55%, #00C2FF 100%);
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.3)), url('/images/hero.jpg') center/cover no-repeat fixed;
}

    body::before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: -1;
        background: linear-gradient(rgba(10,10,20,0.65), rgba(10,10,20,0.4)), url('/images/hero.png') center/cover no-repeat;
    }
/* ===============================


:root {
    --brand-dark: #073A67; /* 深蓝底色，稳重可信 */
/*--brand-ai: #00C2FF; */
/* AI智能体标志色 */
/*--brand-web3: #4F46E5;*/
/* Web3标志色 */
/*--brand-purple: #7C3AED;*/
/* 科技紫，可做渐变辅助 */
/* --brand-bg: #071A2F;*/
/* 深色科技背景 */
/* --brand-text: #FFFFFF;*/
} /*
Web3 的代表色：#4F46E5
AI智能体的代表色：#00C2FF
MaxAI 这种 AI智能体平台的最佳主色：#073A67 + #00C2FF + #4F46E5 渐变
=============================== */
/* ===============================
⭐ 顶部导航（玻璃）
=============================== */
.top-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    box-sizing: border-box;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
}

.logo-title {
    font-size: 17px;
    font-weight: 700;
    white-space: nowrap;
    color: #FFD700;
    text-shadow: 0 0 6px rgba(255, 215, 0, 0.7);
}
/* ===============================
⭐ PC菜单
=============================== */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: nowrap;
}

    .nav-menu .nav-link,
    .nav-menu a {
        font-size: 1.5em;
        font-weight: 800;
        color: white !important;
        text-decoration: none;
        white-space: nowrap;
    }

.nav-link {
    font-size: 25px;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
}





.nav-menu form {
    display: inline;
}

.nav-menu button {
    background: none;
    border: none;
    color: white;
    padding: 0;
}

/* ===============================
⭐ 页面主体
=============================== */
.main-container {
    width: 100%;
    min-height: 100vh;
    padding-top: 140px;
    padding-left: 20px;
    padding-right: 20px;
    display: flex;
    justify-content: center;
    overflow-x: hidden;
}

/* ===============================
⭐ 主玻璃卡
=============================== */
.glass-card,
.product-card {
    width: 100%;
    max-width: 1200px;
    margin: 30px auto;
    padding: 50px 30px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(16px) saturate(120%) brightness(1.02);
    -webkit-backdrop-filter: blur(16px) saturate(120%) brightness(1.02);
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 25px 50px rgba(0,0,0,0.35);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* ===============================
⭐ HERO
=============================== */
.hero-center {
    text-align: center;
    margin-bottom: 50px;
}

.hero-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #00f0ff, #6a5cff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    font-size: 18px;
    opacity: 0.9;
}

.hero-buttons {
    margin-top: 30px;
    display: flex;
    gap: 20px;
}

.btn-primary {
    padding: 12px 28px;
    border-radius: 30px;
    background: linear-gradient(135deg, #00f0ff, #6a5cff);
    color: #fff;
    text-decoration: none;
}

.btn-secondary {
    padding: 12px 28px;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
    text-decoration: none;
}

/* ===============================
⭐ 手机菜单系统
=============================== */
.menu-toggle,
.mobile-menu {
    display: none;
}

.mobile-panel {
    position: absolute;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    max-width: 320px;
    padding: 28px;
    background: rgba(20,20,35,0.08);
    backdrop-filter: blur(14px) saturate(120%);
    -webkit-backdrop-filter: blur(14px) saturate(120%);
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 25px 60px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

    .mobile-panel .nav-link {
        font-size: 18px;
        margin: 14px 0;
        font-weight: 600;
    }

/* ===============================
⭐ 手机端媒體查詢响应式 (修復斷點及歪斜)
=============================== */
@media (max-width: 900px) {
    html,
    body {
        width: 100%;
        overflow-x: hidden;
    }

    .nav-menu {
        display: none !important;
    }

    .top-nav {
        width: 100%;
        padding: 12px 15px;
    }

    .nav-left {
        width: 100%;
        display: flex;
        align-items: center;
    }

    .logo-img {
        width: 58px;
        height: 58px;
        min-width: 58px;
    }

    .logo-title {
        font-size: 12px;
        margin-left: 10px;
        flex: 1;
        text-align: left;
    }

    /* ⭐ 主容器寬度修正 */
    .main-container {
        width: 100% !important;
        max-width: 100vw !important;
        padding-top: 110px;
        padding-left: 12px !important;
        padding-right: 12px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* ⭐ 核心玻璃卡修復與隔離 */
    .glass-card,
    .product-card,
    .main-panel {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto 20px auto !important;
        padding: 20px 14px !important;
        border-radius: 28px !important;
        background: rgba(255, 255, 255, 0.06) !important;
        -webkit-backdrop-filter: blur(20px) saturate(150%) !important;
        backdrop-filter: blur(20px) saturate(150%) !important;
        box-shadow: 0 10px 35px rgba(0,0,0,0.28) !important;
        overflow: hidden !important;
        transform: translateZ(0);
        will-change: transform;
    }

    .products-grid,
    .plans-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 22px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* ⭐ HERO */
    .hero-title {
        font-size: 30px;
        line-height: 1.3;
        word-break: break-word;
    }

    .hero-sub {
        font-size: 15px;
        line-height: 1.7;
    }

    .hero-buttons {
        width: 100%;
        flex-direction: column;
        gap: 12px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }

    /* ⭐ 手机菜单 */
    .mobile-menu {
        position: fixed;
        inset: 0;
        display: none;
        justify-content: center;
        align-items: flex-start;
        z-index: 2500;
        width: 100vw;
        max-width: 100vw;
        background: rgba(0,0,0,0.18);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

        .mobile-menu.show {
            display: flex;
        }

    .menu-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 26px;
        height: 18px;
        cursor: pointer;
        margin-left: auto;
        flex-shrink: 0;
    }

        .menu-toggle span {
            width: 100%;
            height: 3px;
            background: #fff;
            border-radius: 2px;
        }

    .mobile-panel {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: min(85vw, 320px);
        max-width: calc(100vw - 30px);
        margin: 90px auto 0 auto;
        padding: 28px;
        background: linear-gradient(rgba(10,10,20,0.65), rgba(10,10,20,0.4)), url('/images/hero.png') center/cover no-repeat;
        backdrop-filter: blur(45px) saturate(180%) brightness(1.1);
        -webkit-backdrop-filter: blur(45px) saturate(180%) brightness(1.1);
        border-radius: 28px;
        border: 1px solid rgba(255,255,255,0.25);
        box-shadow: 0 25px 60px rgba(0,0,0,0.4);
        display: flex;
        flex-direction: column;
        align-items: center;
    }

        .mobile-panel .nav-link {
            font-size: 18px;
            margin: 14px 0;
            font-weight: 600;
        }

    /* ⭐ 輸入框與按鈕的統一安全覆蓋 */
    input, textarea {
        background: rgba(255,255,255,0.2) !important;
        border: 1px solid rgba(255,255,255,0.25) !important;
        color: #fff !important;
        border-radius: 20px !important;
    }

    button:not(.pay-btn):not(.free-btn) {
        background: linear-gradient(135deg, #3b82f6, #8b5cf6) !important;
        color: white !important;
        border-radius: 30px !important;
        border: none !important;
    }

    /* ===============================
    ⭐ CONTACT CARD 修正 
    =============================== */
    .contact-card,
    .contact-form,
    .ai-chat-card {
        width: 100% !important;
        max-width: 100% !important;
        padding: 30px 16px !important;
        border-radius: 28px !important;
    }
}


/* ===============================
⭐ Free 版本入口按钮
   与月付/季付按钮同一蓝色质感，保持产品名称原字体大小
=============================== */
.free-plan-form {
    margin: 0 0 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.free-btn {
    width: min(100%, 560px);
    min-height: 78px;
    padding: 10px 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: none;
    border-radius: 22px;
    color: #fff;
    font-size: 40px;
    font-weight: 800;
    line-height: 1.2;
    cursor: pointer;
    background: linear-gradient(145deg, #4f7cff, #5b4dff);
    box-shadow: 0 10px 18px rgba(0,0,0,.28), inset 0 2px 4px rgba(255,255,255,.35), inset 0 -4px 8px rgba(0,0,0,.22);
    transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
    text-decoration: none;
    white-space: normal;
}

    .free-btn:hover {
        transform: translateY(-4px) scale(1.03);
        filter: brightness(1.08);
        box-shadow: 0 16px 28px rgba(0,0,0,.34), inset 0 2px 5px rgba(255,255,255,.45), inset 0 -5px 10px rgba(0,0,0,.24);
    }

    .free-btn:active {
        transform: translateY(3px) scale(.98);
        box-shadow: 0 4px 8px rgba(0,0,0,.22), inset 0 4px 10px rgba(0,0,0,.28);
        filter: brightness(.95);
    }

@media (max-width: 900px) {
    .free-plan-form {
        margin-bottom: 20px;
    }

    .free-btn {
        width: 100%;
        min-height: 64px;
        padding: 10px 16px;
        font-size: 28px;
        line-height: 1.35;
        border-radius: 20px;
    }
}

/* ===============================
⭐ Products 頁手機玻璃修復（SmarterASP / iOS Safari）
   避免 nested backdrop-filter + fixed background + translateZ 在手機變白板
=============================== */
.main-panel,
.product-glass,
.plan-glass,
.contact-form,
.ai-chat-card {
    position: relative;
    z-index: 0;
    background: rgba(35, 38, 55, 0.34);
    background-clip: padding-box;
    border: 1px solid rgba(255,255,255,0.20);
    overflow: hidden;
    isolation: isolate;
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
}

    .main-panel::before,
    .product-glass::before,
    .plan-glass::before,
    .contact-form::before,
    .ai-chat-card::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        border-radius: inherit;
        pointer-events: none;
        background: linear-gradient(135deg, rgba(255,255,255,0.16), rgba(255,255,255,0.055));
    }

@media (max-width: 900px) {
    body {
        background-attachment: scroll !important;
        background-color: #101322 !important;
    }

        body::before {
            position: fixed;
            transform: none !important;
            will-change: auto !important;
        }

    .glass-card,
    .product-card,
    .main-panel,
    .product-glass,
    .plan-glass,
    .contact-form,
    .ai-chat-card,
    .mobile-panel {
        transform: none !important;
        will-change: auto !important;
        background-color: rgba(35, 38, 55, 0.46) !important;
        background-clip: padding-box !important;
        -webkit-backdrop-filter: blur(16px) saturate(140%) !important;
        backdrop-filter: blur(16px) saturate(140%) !important;
        isolation: isolate !important;
    }

    .product-glass {
        background: rgba(35, 38, 55, 0.42) !important;
    }

    .plan-glass {
        background: rgba(35, 38, 55, 0.46) !important;
    }
}

@supports (-webkit-touch-callout: none) {
    @media (max-width: 900px) {
        .glass-card,
        .product-card,
        .main-panel,
        .product-glass,
        .plan-glass,
        .contact-form,
        .ai-chat-card,
        .mobile-panel {
            background-color: rgba(35, 38, 55, 0.54) !important;
            -webkit-backdrop-filter: blur(14px) saturate(135%) !important;
            backdrop-filter: blur(14px) saturate(135%) !important;
        }
    }
}

/* ===============================
⭐ Medical Translator press-and-hold layout
=============================== */
.chatcat-page {
    min-height: calc(100vh - 120px);
    color: #fff;
    padding: 60px 20px;
}

.translator-wrap {
    max-width: 980px;
    margin: 0 auto;
    text-align: center;
}

.conversation-glass-frame {
    width: min(100%, 940px);
    height: min(58vh, 560px);
    min-height: 360px;
    margin: 38px auto 24px;
    padding: 20px;
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.52);
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 24px 70px rgba(0,0,0,0.38);
    backdrop-filter: blur(22px) saturate(150%);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
    overflow: hidden;
}

.chat-container {
    height: 100%;
    overflow-y: auto;
    padding: 4px 10px 4px 4px;
    scroll-behavior: smooth;
}

.empty-hint {
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    color: rgba(255,255,255,0.72);
    font-size: 18px;
    line-height: 1.8;
}

.message-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
    align-items: stretch;
}

.mini-glass-card {
    text-align: left;
    min-height: 118px;
    padding: 18px;
    border-radius: 20px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.20);
    backdrop-filter: blur(18px) saturate(145%);
    -webkit-backdrop-filter: blur(18px) saturate(145%);
    box-shadow: 0 12px 34px rgba(0,0,0,0.28);
}

.button-row-below {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    width: min(100%, 560px);
    margin: 0 auto;
}

.hold-record-btn {
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

.speak-btn.recording {
    transform: scale(0.97);
    filter: brightness(1.14);
}

@media (max-width: 700px) {
    .conversation-glass-frame {
        height: 56vh;
        min-height: 420px;
        margin-top: 28px;
        padding: 14px;
        border-radius: 24px;
    }

    .message-row {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .mini-glass-card {
        min-height: 108px;
        padding: 16px;
    }

    .button-row-below {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
}
/* Voicemail Translator page */
.vt-page {
    min-height: calc(100vh - 80px);
    padding: 24px 12px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.vt-main {
    width: min(980px, 100%);
}

.vt-glass,
.vt-small-glass,
.vt-panel {
    border: 1px solid rgba(255,255,255,.25);
    background: rgba(255,255,255,.16);
    box-shadow: 0 18px 45px rgba(0,0,0,.18);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 24px;
}

.vt-glass {
    padding: 22px;
}

.vt-main h1 {
    text-align: center;
    margin: 0 0 8px;
    font-size: clamp(1.7rem, 5vw, 2.5rem);
    font-weight: 800;
}

.vt-subtitle {
    text-align: center;
    margin: 0 0 18px;
    opacity: .86;
}

.vt-panel {
    position: relative;
    overflow: hidden;
    padding: 18px;
    margin-bottom: 18px;
}

.vt-row {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
}

    .vt-row label,
    .vt-upload label {
        font-weight: 700;
    }

    .vt-row select,
    .vt-upload input {
        width: 100%;
        border-radius: 14px;
        border: 1px solid rgba(255,255,255,.38);
        background: rgba(255,255,255,.72);
        padding: 11px 12px;
        color: #111;
    }

.vt-actions,
.vt-upload {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 14px 0;
}

.vt-upload {
    align-items: center;
}

.vt-btn {
    border: 0;
    border-radius: 999px;
    padding: 11px 18px;
    font-weight: 800;
    cursor: pointer;
    background: rgba(120,120,120,.45);
    color: #fff;
    transition: transform .12s ease, opacity .12s ease;
}

    .vt-btn:hover:not(:disabled) {
        transform: translateY(-1px);
    }

    .vt-btn:disabled {
        opacity: .45;
        cursor: not-allowed;
    }

.vt-btn-primary {
    background: linear-gradient(135deg, #1278ff, #36a3ff);
}

.vt-btn-secondary {
    background: linear-gradient(135deg, #4b5563, #111827);
}

.vt-status {
    min-height: 28px;
    padding-top: 6px;
    font-weight: 700;
}

.vt-result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.vt-small-glass {
    padding: 16px;
    min-height: 210px;
}

    .vt-small-glass h2 {
        margin: 0 0 10px;
        font-size: 1.15rem;
    }

.vt-textbox {
    min-height: 135px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    line-height: 1.55;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255,255,255,.45);
    color: #111;
}

.vt-speak {
    margin-top: 12px;
}

.vt-recording-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

.vt-scan-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 4px;
    background: #39ff14;
    box-shadow: 0 0 18px #39ff14;
    animation: vtScan 1.4s linear infinite alternate;
}

.vt-scan-text {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: #39ff14;
    font-weight: 900;
    text-shadow: 0 0 14px rgba(57,255,20,.85);
    animation: vtScanText 1.4s linear infinite alternate;
    white-space: nowrap;
}

.d-none {
    display: none !important;
}

@keyframes vtScan {
    from {
        top: 18px;
    }

    to {
        top: calc(100% - 18px);
    }
}

@keyframes vtScanText {
    from {
        top: 0;
    }

    to {
        top: calc(100% - 36px);
    }
}

@media (max-width: 720px) {
    .vt-page {
        padding: 14px 10px;
    }

    .vt-glass {
        padding: 16px;
        border-radius: 20px;
    }

    .vt-result-grid {
        grid-template-columns: 1fr;
    }

    .vt-actions,
    .vt-upload {
        flex-direction: column;
        align-items: stretch;
    }

    .vt-btn {
        width: 100%;
    }
}


/* ===============================
   Contact page contrast fix
   Makes text readable on dark/glass mobile backgrounds
=============================== */
.contact-page .contact-form,
.contact-page .ai-chat-card {
    background: rgba(18, 24, 42, 0.62) !important;
    color: #ffffff !important;
}

    .contact-page .contact-form .card,
    .contact-page .contact-form h1,
    .contact-page .ai-chat-card h2,
    .contact-page .ai-chat-card .ai-subtitle {
        color: #ffffff !important;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
    }

    .contact-page .contact-form input,
    .contact-page .contact-form textarea,
    .contact-page .ai-chat-card textarea,
    .contact-page .ai-chat-card .ai-answer-box {
        background: rgba(12, 18, 34, 0.42) !important;
        color: #ffffff !important;
        border: 1px solid rgba(255, 255, 255, 0.42) !important;
        caret-color: #ffffff;
    }

        .contact-page .contact-form input::placeholder,
        .contact-page .contact-form textarea::placeholder,
        .contact-page .ai-chat-card textarea::placeholder {
            color: rgba(255, 244, 190, 0.92) !important;
            opacity: 1;
        }

        .contact-page .contact-form input:focus,
        .contact-page .contact-form textarea:focus,
        .contact-page .ai-chat-card textarea:focus {
            border-color: rgba(255, 244, 190, 0.82) !important;
            box-shadow: 0 0 0 3px rgba(255, 244, 190, 0.18) !important;
            background: rgba(8, 13, 28, 0.56) !important;
        }

@media (max-width: 900px) {
    .contact-page .contact-form,
    .contact-page .ai-chat-card {
        background: rgba(18, 24, 42, 0.68) !important;
        background-color: rgba(18, 24, 42, 0.68) !important;
    }
}

@supports (-webkit-touch-callout: none) {
    @media (max-width: 900px) {
        .contact-page .contact-form,
        .contact-page .ai-chat-card {
            background: rgba(18, 24, 42, 0.76) !important;
            background-color: rgba(18, 24, 42, 0.76) !important;
        }
    }
}

/* =========================================================
   Product 2 手机端横向溢出保护
   ========================================================= */
@media (max-width: 900px) {
    html,
    body,
    .main-container,
    .glass-card,
    .product-card,
    .main-panel,
    .counting-page,
    .counting-main-card {
        max-width: 100vw !important;
        min-width: 0 !important;
        overflow-x: hidden !important;
    }

    .top-nav,
    .nav-left {
        min-width: 0;
        max-width: 100vw;
    }

    .logo-title {
        min-width: 0;
        max-width: calc(100vw - 120px);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}


/* =========================================================
   ✅ MaxAI 顶部菜单最终强制修正版 v3
   目标：PC端 Logo 在左，菜单在右，全部在同一行；效果对齐第二张截图。
   说明：同时兼容 <nav class="nav-menu"> 和 <nav> 未加 class 的情况。
   ========================================================= */
@media (min-width: 769px) {
    html body header.top-nav,
    body > header.top-nav,
    .top-nav {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        min-width: 100vw !important;
        height: 135px !important;
        min-height: 135px !important;
        margin: 0 !important;
        padding: 0 38px !important;
        z-index: 99999 !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 28px !important;
        overflow: visible !important;
        background: rgba(11, 18, 51, 0.94) !important;
        border: none !important;
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.22) !important;
        -webkit-backdrop-filter: blur(20px) saturate(160%) !important;
        backdrop-filter: blur(20px) saturate(160%) !important;
        box-sizing: border-box !important;
    }

        .top-nav > .nav-left,
        header.top-nav > .nav-left {
            width: auto !important;
            max-width: none !important;
            min-width: 295px !important;
            height: 100% !important;
            margin: 0 !important;
            padding: 0 !important;
            flex: 0 0 auto !important;
            display: flex !important;
            flex-direction: row !important;
            flex-wrap: nowrap !important;
            align-items: center !important;
            justify-content: flex-start !important;
            gap: 18px !important;
            overflow: visible !important;
            box-sizing: border-box !important;
        }

        .top-nav .logo-img,
        header.top-nav .logo-img {
            width: 82px !important;
            height: 82px !important;
            min-width: 82px !important;
            max-width: 82px !important;
            max-height: 82px !important;
            display: block !important;
            object-fit: cover !important;
            border-radius: 50% !important;
            flex: 0 0 auto !important;
            margin: 0 !important;
        }

        .top-nav .logo-title,
        header.top-nav .logo-title {
            display: block !important;
            margin: 0 !important;
            padding: 0 !important;
            font-size: 30px !important;
            line-height: 1.15 !important;
            font-weight: 800 !important;
            color: #ffffff !important;
            white-space: nowrap !important;
            text-align: left !important;
            text-shadow: 0 2px 10px rgba(0,0,0,.35) !important;
        }

        /* 关键：不管 nav 有没有 nav-menu class，都强制放到右侧横排 */
        .top-nav > nav,
        .top-nav > .nav-menu,
        header.top-nav > nav,
        header.top-nav > .nav-menu {
            width: auto !important;
            max-width: none !important;
            height: 100% !important;
            margin: 0 0 0 auto !important;
            padding: 0 !important;
            flex: 1 1 auto !important;
            display: flex !important;
            flex-direction: row !important;
            flex-wrap: nowrap !important;
            align-items: center !important;
            justify-content: flex-end !important;
            gap: 28px !important;
            overflow: visible !important;
            background: transparent !important;
            border: none !important;
            box-shadow: none !important;
            box-sizing: border-box !important;
        }

            .top-nav > nav a,
            .top-nav > nav .nav-link,
            .top-nav > .nav-menu a,
            .top-nav > .nav-menu .nav-link,
            .top-nav > nav button,
            .top-nav > .nav-menu button,
            .top-nav > nav form button,
            .top-nav > .nav-menu form button {
                position: static !important;
                display: inline-flex !important;
                align-items: center !important;
                justify-content: center !important;
                width: auto !important;
                height: auto !important;
                margin: 0 !important;
                padding: 0 !important;
                color: #ffffff !important;
                background: transparent !important;
                border: 0 !important;
                border-radius: 0 !important;
                box-shadow: none !important;
                text-decoration: none !important;
                white-space: nowrap !important;
                font-size: 30px !important;
                line-height: 1.1 !important;
                font-weight: 800 !important;
                font-family: "Segoe UI", "Microsoft YaHei", sans-serif !important;
                cursor: pointer !important;
                text-shadow: 0 2px 10px rgba(0,0,0,.35) !important;
            }

            .top-nav > nav form,
            .top-nav > .nav-menu form,
            header.top-nav > nav form,
            header.top-nav > .nav-menu form {
                display: inline-flex !important;
                align-items: center !important;
                justify-content: center !important;
                width: auto !important;
                height: auto !important;
                margin: 0 !important;
                padding: 0 !important;
            }

            .top-nav > nav a:hover,
            .top-nav > .nav-menu a:hover,
            .top-nav > nav button:hover,
            .top-nav > .nav-menu button:hover {
                transform: translateY(-1px) !important;
                color: #ffffff !important;
                filter: brightness(1.08) !important;
            }

        .top-nav .menu-toggle,
        header.top-nav .menu-toggle,
        body > .mobile-menu {
            display: none !important;
        }

    .main-container {
        padding-top: 165px !important;
    }
}

/* 电脑窄屏/浏览器缩放时，自动把字体缩小，避免菜单再次换行 */
@media (min-width: 769px) and (max-width: 1500px) {
    html body header.top-nav,
    body > header.top-nav,
    .top-nav {
        height: 115px !important;
        min-height: 115px !important;
        padding-left: 26px !important;
        padding-right: 26px !important;
        gap: 20px !important;
    }

        .top-nav > .nav-left,
        header.top-nav > .nav-left {
            min-width: 250px !important;
            gap: 14px !important;
        }

        .top-nav .logo-img,
        header.top-nav .logo-img {
            width: 68px !important;
            height: 68px !important;
            min-width: 68px !important;
            max-width: 68px !important;
            max-height: 68px !important;
        }

        .top-nav .logo-title,
        header.top-nav .logo-title {
            font-size: 24px !important;
        }

        .top-nav > nav,
        .top-nav > .nav-menu,
        header.top-nav > nav,
        header.top-nav > .nav-menu {
            gap: 18px !important;
        }

            .top-nav > nav a,
            .top-nav > nav .nav-link,
            .top-nav > .nav-menu a,
            .top-nav > .nav-menu .nav-link,
            .top-nav > nav button,
            .top-nav > .nav-menu button,
            .top-nav > nav form button,
            .top-nav > .nav-menu form button {
                font-size: 23px !important;
            }

    .main-container {
        padding-top: 142px !important;
    }
}

@media (min-width: 769px) and (max-width: 1120px) {
    .top-nav > .nav-left,
    header.top-nav > .nav-left {
        min-width: 210px !important;
    }

    .top-nav .logo-img,
    header.top-nav .logo-img {
        width: 58px !important;
        height: 58px !important;
        min-width: 58px !important;
        max-width: 58px !important;
        max-height: 58px !important;
    }

    .top-nav .logo-title,
    header.top-nav .logo-title {
        font-size: 20px !important;
    }

    .top-nav > nav,
    .top-nav > .nav-menu,
    header.top-nav > nav,
    header.top-nav > .nav-menu {
        gap: 13px !important;
    }

        .top-nav > nav a,
        .top-nav > nav .nav-link,
        .top-nav > .nav-menu a,
        .top-nav > .nav-menu .nav-link,
        .top-nav > nav button,
        .top-nav > .nav-menu button,
        .top-nav > nav form button,
        .top-nav > .nav-menu form button {
            font-size: 18px !important;
        }
}

/* 手机端继续用汉堡菜单 */
@media (max-width: 768px) {
    .top-nav {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        min-height: 84px !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 10px 15px !important;
        background: rgba(11, 18, 51, 0.94) !important;
        z-index: 99999 !important;
    }

        .top-nav > nav,
        .top-nav > .nav-menu,
        header.top-nav > nav,
        header.top-nav > .nav-menu {
            display: none !important;
        }

    .menu-toggle {
        display: flex !important;
    }
}

/* =========================================================
   ✅ 表单输入框 / 按钮玻璃圆角最终修正版
   目标：
   1. 所有输入框、下拉框、文件框、文本框都有圆角；
   2. 输入框使用半透明玻璃背景，不再是白板；
   3. 页面主体里的按钮统一圆角，并保持蓝紫渐变按钮质感；
   说明：放在 site.css 文件最后面，用来覆盖 Bootstrap 默认白色输入框。
   ========================================================= */

/* 普通输入框、文件框、文本框、下拉框 */
input:not([type="checkbox"]):not([type="radio"]),
textarea,
select,
.form-control,
.form-select {
    width: 100%;
    min-height: 36px;
    padding: 9px 12px !important;
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.38) !important;
    border-radius: 15px !important;
    outline: none !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.20), 0 8px 22px rgba(0, 0, 0, 0.12) !important;
    backdrop-filter: blur(14px) saturate(145%);
    -webkit-backdrop-filter: blur(14px) saturate(145%);
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}

    /* 文本框 */
    textarea,
    .form-control[rows] {
        min-height: 110px;
        resize: vertical;
    }

    /* 文件上传框 */
    input[type="file"],
    .form-control[type="file"] {
        padding: 6px 10px !important;
        cursor: pointer;
    }

        input[type="file"]::file-selector-button,
        .form-control[type="file"]::file-selector-button {
            margin-right: 12px;
            padding: 7px 14px;
            color: #ffffff;
            font-weight: 700;
            border: 0;
            border-radius: 999px;
            cursor: pointer;
            background: linear-gradient(135deg, #22c7ff, #635bff);
            box-shadow: inset 0 1px 2px rgba(255,255,255,0.35), 0 6px 14px rgba(0,0,0,0.22);
        }

    /* 占位文字 */
    input::placeholder,
    textarea::placeholder,
    .form-control::placeholder {
        color: rgba(255, 255, 255, 0.70) !important;
        opacity: 1;
    }

    /* 下拉菜单选项，避免打开下拉框时白底白字看不清 */
    select option,
    .form-select option {
        color: #ffffff;
        background: #111b33;
    }

    /* 输入框获得焦点 */
    input:not([type="checkbox"]):not([type="radio"]):focus,
    textarea:focus,
    select:focus,
    .form-control:focus,
    .form-select:focus {
        color: #ffffff !important;
        background: rgba(255, 255, 255, 0.23) !important;
        border-color: rgba(0, 240, 255, 0.88) !important;
        box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.18), 0 0 24px rgba(0, 194, 255, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.26) !important;
        transform: translateY(-1px);
    }

    /* Chrome 自动填充时，防止输入框又变成白色或黄色 */
    input:-webkit-autofill,
    input:-webkit-autofill:hover,
    input:-webkit-autofill:focus,
    textarea:-webkit-autofill,
    textarea:-webkit-autofill:hover,
    textarea:-webkit-autofill:focus,
    select:-webkit-autofill,
    select:-webkit-autofill:hover,
    select:-webkit-autofill:focus {
        -webkit-text-fill-color: #ffffff !important;
        caret-color: #ffffff !important;
        border-radius: 15px !important;
        box-shadow: 0 0 0 1000px rgba(18, 28, 56, 0.72) inset !important;
        transition: background-color 9999s ease-in-out 0s !important;
    }

/* checkbox 也做成玻璃圆角，避免和页面风格不一致 */
input[type="checkbox"],
.form-check-input {
    width: 18px;
    height: 18px;
    border-radius: 6px !important;
    border: 1px solid rgba(255,255,255,0.45) !important;
    background-color: rgba(255,255,255,0.16) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18) !important;
    cursor: pointer;
}

    input[type="checkbox"]:checked,
    .form-check-input:checked {
        background-color: #22c7ff !important;
        border-color: #22c7ff !important;
    }

/* 页面主体按钮圆角：不会破坏顶部导航菜单按钮 */
.main-container button:not(.menu-toggle),
main button:not(.menu-toggle),
#registerForm button,
#account button,
#external-account button,
.btn {
    border-radius: 999px !important;
    overflow: hidden;
}

    /* 注册、登录、普通提交按钮统一蓝紫渐变 */
    #registerForm button[type="submit"],
    #account button[type="submit"],
    #external-account button[type="submit"],
    .main-container .btn-primary,
    main .btn-primary {
        color: #ffffff !important;
        font-weight: 800 !important;
        border: 0 !important;
        background: linear-gradient(135deg, #22c7ff, #635bff) !important;
        box-shadow: 0 10px 20px rgba(0,0,0,0.26), inset 0 2px 4px rgba(255,255,255,0.32), inset 0 -4px 8px rgba(0,0,0,0.20) !important;
        transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
    }

        #registerForm button[type="submit"]:hover,
        #account button[type="submit"]:hover,
        #external-account button[type="submit"]:hover,
        .main-container .btn-primary:hover,
        main .btn-primary:hover {
            transform: translateY(-2px);
            filter: brightness(1.08);
            box-shadow: 0 15px 28px rgba(0,0,0,0.32), inset 0 2px 5px rgba(255,255,255,0.40), inset 0 -5px 10px rgba(0,0,0,0.22) !important;
        }

        #registerForm button[type="submit"]:active,
        #account button[type="submit"]:active,
        #external-account button[type="submit"]:active,
        .main-container .btn-primary:active,
        main .btn-primary:active {
            transform: translateY(2px) scale(0.98);
            filter: brightness(0.96);
            box-shadow: 0 5px 10px rgba(0,0,0,0.22), inset 0 4px 10px rgba(0,0,0,0.28) !important;
        }

/* 手机端稍微放大触控区域 */
@media (max-width: 768px) {
    input:not([type="checkbox"]):not([type="radio"]),
    textarea,
    select,
    .form-control,
    .form-select {
        min-height: 42px;
        border-radius: 16px !important;
        font-size: 16px !important;
        background: rgba(255, 255, 255, 0.17) !important;
    }

    #registerForm button[type="submit"],
    #account button[type="submit"],
    #external-account button[type="submit"],
    .main-container .btn-primary,
    main .btn-primary {
        min-height: 46px;
        font-size: 17px !important;
    }
}

/* =========================================================
   ✅ 登录页底部链接颜色修正
   目标：把“忘记密码 / 注册新账号 / 重新发送邮箱确认邮件 /
        ASP.NET 外部登录服务文章”等蓝色链接改成亮绿色，深色背景下更清楚。
   ========================================================= */
.login-page a,
.login-page a:visited,
.login-page a:hover,
.login-page a:focus,
.login-page a:active {
    color: #f59c70 !important;
    font-weight: 800 !important;
    text-decoration-color: rgba(57, 255, 20, 0.9) !important;
    text-underline-offset: 4px;
    text-shadow: 0 0 10px rgba(57, 255, 20, 0.45), 0 2px 8px rgba(0, 0, 0, 0.65);
}

    .login-page a:hover,
    .login-page a:focus {
        color: #f5ea70 !important;
        text-decoration-thickness: 2px;
    }

/* =========================================================
   ✅ 登录 / 注册页面字体放大 125%
   目标：登录页、注册页内的标题、说明文字、表单标签、
        输入框、按钮、链接、错误提示统一放大到原来的 125%。
   说明：放在 site.css 最后，用来覆盖 Bootstrap 默认字号。
   ========================================================= */

.auth-page-title {
    font-size: 3.125rem !important; /* Bootstrap h1 2.5rem × 125% */
    line-height: 1.25 !important;
    font-weight: 900 !important;
    text-align: center !important;
    margin-bottom: 1.5rem !important;
}

.login-page,
.register-page {
    font-size: 1.25rem !important; /* 16px × 125% = 20px */
    line-height: 1.65 !important;
}

    .login-page h2,
    .register-page h2 {
        font-size: 2.5rem !important; /* Bootstrap h2 2rem × 125% */
        line-height: 1.28 !important;
        font-weight: 900 !important;
    }

    .login-page h3,
    .register-page h3 {
        font-size: 2.1875rem !important; /* Bootstrap h3 1.75rem × 125% */
        line-height: 1.3 !important;
        font-weight: 850 !important;
    }

    .login-page p,
    .register-page p,
    .login-page label,
    .register-page label,
    .login-page .form-label,
    .register-page .form-label,
    .login-page span,
    .register-page span,
    .login-page .text-danger,
    .register-page .text-danger {
        font-size: 1.25rem !important;
        line-height: 1.65 !important;
    }

    .login-page a,
    .register-page a {
        font-size: 1.25rem !important;
        line-height: 1.65 !important;
    }

    .login-page input:not([type="checkbox"]):not([type="radio"]),
    .register-page input:not([type="checkbox"]):not([type="radio"]),
    .login-page textarea,
    .register-page textarea,
    .login-page select,
    .register-page select,
    .login-page .form-control,
    .register-page .form-control,
    .login-page .form-select,
    .register-page .form-select {
        font-size: 1.25rem !important;
        line-height: 1.55 !important;
        min-height: 45px !important;
    }

        .login-page input[type="file"],
        .register-page input[type="file"],
        .login-page .form-control[type="file"],
        .register-page .form-control[type="file"] {
            min-height: 48px !important;
        }

            .login-page input[type="file"]::file-selector-button,
            .register-page input[type="file"]::file-selector-button,
            .login-page .form-control[type="file"]::file-selector-button,
            .register-page .form-control[type="file"]::file-selector-button {
                font-size: 1.125rem !important;
            }

    .login-page input[type="checkbox"],
    .register-page input[type="checkbox"],
    .login-page .form-check-input,
    .register-page .form-check-input {
        width: 22.5px !important; /* 18px × 125% */
        height: 22.5px !important;
        margin-top: 0.35em !important;
    }

    .login-page button,
    .register-page button,
    .login-page .btn,
    .register-page .btn {
        font-size: 1.25rem !important;
        line-height: 1.45 !important;
    }

    .login-page .btn-lg,
    .register-page .btn-lg {
        font-size: 1.5625rem !important; /* Bootstrap btn-lg 1.25rem × 125% */
        min-height: 58px !important;
    }

@media (max-width: 768px) {
    .auth-page-title {
        font-size: 2.5rem !important;
    }

    .login-page,
    .register-page {
        font-size: 1.125rem !important;
        line-height: 1.6 !important;
    }

        .login-page h2,
        .register-page h2 {
            font-size: 2rem !important;
        }

        .login-page h3,
        .register-page h3 {
            font-size: 1.75rem !important;
        }

        .login-page p,
        .register-page p,
        .login-page label,
        .register-page label,
        .login-page .form-label,
        .register-page .form-label,
        .login-page span,
        .register-page span,
        .login-page .text-danger,
        .register-page .text-danger,
        .login-page a,
        .register-page a {
            font-size: 1.125rem !important;
        }

        .login-page input:not([type="checkbox"]):not([type="radio"]),
        .register-page input:not([type="checkbox"]):not([type="radio"]),
        .login-page textarea,
        .register-page textarea,
        .login-page select,
        .register-page select,
        .login-page .form-control,
        .register-page .form-control,
        .login-page .form-select,
        .register-page .form-select {
            font-size: 1.125rem !important;
            min-height: 46px !important;
        }

        .login-page .btn-lg,
        .register-page .btn-lg {
            font-size: 1.375rem !important;
            min-height: 54px !important;
        }
}

/* =========================================================
   发票打印页：所有白卡透明毛玻璃 + 深蓝字体
   适用于 /AIA/p1/ProPlan/InvoicePrint 与 /AIA/p1/EEPlan/InvoicePrint
   ========================================================= */
.invoice-shell,
.invoice-shell * {
    color: #073A67 !important;
    text-shadow: none !important;
}

    .invoice-shell.glass-panel {
        position: relative;
        isolation: isolate;
        background: linear-gradient(135deg, rgba(255,255,255,.22), rgba(255,255,255,.08)) !important;
        background-color: rgba(255,255,255,.12) !important;
        border: 1px solid rgba(255,255,255,.34) !important;
        box-shadow: 0 26px 76px rgba(3, 18, 43, .30) !important;
        backdrop-filter: blur(28px) saturate(175%) !important;
        -webkit-backdrop-filter: blur(28px) saturate(175%) !important;
    }

        .invoice-shell.glass-panel::before {
            content: "";
            position: absolute;
            inset: 0;
            z-index: -1;
            border-radius: inherit;
            pointer-events: none;
            background: radial-gradient(circle at 18% 0%, rgba(255,255,255,.26), transparent 36%), radial-gradient(circle at 90% 8%, rgba(0,194,255,.10), transparent 34%), linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.035));
        }

    .invoice-shell .glass-card,
    .invoice-shell .invoice-paper,
    .invoice-shell .customer-search,
    .invoice-shell .customer-editor,
    .invoice-shell .bill-ship-grid > div,
    .invoice-shell .meta-grid > div,
    .invoice-shell .notice-total-grid > div,
    .invoice-shell .totals,
    .invoice-shell .company-block,
    .invoice-shell .invoice-title-block,
    .invoice-shell .status-message,
    .invoice-shell .action-bar,
    .invoice-shell .confirm-table-wrap,
    .invoice-shell .confirm-dialog {
        background: linear-gradient(135deg, rgba(255,255,255,.20), rgba(255,255,255,.07)) !important;
        background-color: rgba(255,255,255,.10) !important;
        border: 1px solid rgba(255,255,255,.32) !important;
        box-shadow: 0 18px 48px rgba(3,18,43,.22) !important;
        backdrop-filter: blur(22px) saturate(165%) !important;
        -webkit-backdrop-filter: blur(22px) saturate(165%) !important;
    }

    .invoice-shell input,
    .invoice-shell textarea,
    .invoice-shell select,
    .invoice-shell .form-control,
    .invoice-shell .form-select {
        background: rgba(255,255,255,.24) !important;
        border: 1px solid rgba(7,58,103,.22) !important;
        color: #073A67 !important;
        -webkit-text-fill-color: #073A67 !important;
        caret-color: #073A67 !important;
        box-shadow: inset 0 1px 0 rgba(255,255,255,.38), 0 8px 22px rgba(3,18,43,.10) !important;
        backdrop-filter: blur(16px) saturate(150%) !important;
        -webkit-backdrop-filter: blur(16px) saturate(150%) !important;
    }

        .invoice-shell input::placeholder,
        .invoice-shell textarea::placeholder {
            color: rgba(7,58,103,.62) !important;
            opacity: 1 !important;
            -webkit-text-fill-color: rgba(7,58,103,.62) !important;
        }

        .invoice-shell input:focus,
        .invoice-shell textarea:focus,
        .invoice-shell select:focus {
            background: rgba(255,255,255,.32) !important;
            border-color: rgba(7,58,103,.58) !important;
            box-shadow: 0 0 0 4px rgba(0,194,255,.18), inset 0 1px 0 rgba(255,255,255,.45) !important;
        }

        .invoice-shell input[readonly],
        .invoice-shell textarea[readonly] {
            background: rgba(255,255,255,.16) !important;
            color: #073A67 !important;
            -webkit-text-fill-color: #073A67 !important;
        }

        .invoice-shell select option {
            color: #073A67 !important;
            background: #e9f5ff !important;
        }

    .invoice-shell .items-table {
        background: rgba(255,255,255,.10) !important;
        border: 1px solid rgba(255,255,255,.30) !important;
        border-radius: 18px !important;
        overflow: hidden;
        border-collapse: separate;
        border-spacing: 0;
        backdrop-filter: blur(22px) saturate(165%) !important;
        -webkit-backdrop-filter: blur(22px) saturate(165%) !important;
        box-shadow: 0 18px 48px rgba(3,18,43,.18) !important;
    }

        .invoice-shell .items-table thead,
        .invoice-shell .items-table th {
            background: rgba(255,255,255,.20) !important;
            color: #073A67 !important;
            border-color: rgba(7,58,103,.16) !important;
        }

        .invoice-shell .items-table td {
            background: rgba(255,255,255,.075) !important;
            color: #073A67 !important;
            border-color: rgba(7,58,103,.12) !important;
        }

    .invoice-shell .btn-primary,
    .invoice-shell .btn-secondary,
    .invoice-shell .btn-small,
    .invoice-shell button {
        background: linear-gradient(135deg, rgba(255,255,255,.28), rgba(255,255,255,.11)) !important;
        border: 1px solid rgba(7,58,103,.28) !important;
        color: #073A67 !important;
        -webkit-text-fill-color: #073A67 !important;
        box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 10px 26px rgba(3,18,43,.18) !important;
        backdrop-filter: blur(16px) saturate(150%) !important;
        -webkit-backdrop-filter: blur(16px) saturate(150%) !important;
    }

    .invoice-shell hr,
    .invoice-shell .invoice-header,
    .invoice-shell .bill-ship-grid,
    .invoice-shell .meta-grid,
    .invoice-shell .notice-total-grid {
        border-color: rgba(7,58,103,.18) !important;
    }

    .invoice-shell .confirm-dialog::backdrop {
        background: rgba(7, 21, 47, .38);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

@media print {
    .invoice-shell,
    .invoice-shell * {
        color: #111827 !important;
        -webkit-text-fill-color: #111827 !important;
        text-shadow: none !important;
    }

        .invoice-shell.glass-panel,
        .invoice-shell .invoice-paper,
        .invoice-shell .glass-card,
        .invoice-shell .bill-ship-grid > div,
        .invoice-shell .meta-grid > div,
        .invoice-shell .notice-total-grid > div,
        .invoice-shell .totals {
            background: #ffffff !important;
            color: #111827 !important;
            box-shadow: none !important;
            backdrop-filter: none !important;
            -webkit-backdrop-filter: none !important;
        }
}

/* ===== InvoicePrint final override from invoice-print.css, kept here to defeat global/bootstrap white-card rules ===== */
/* =========================================================
   ✅ InvoicePrint 最终强制版：所有白卡/输入框透明毛玻璃 + 深蓝字体
   说明：
   - 只作用在 .invoice-shell 内，不影响其它页面；
   - 普通页面显示透明毛玻璃；
   - 打印时恢复白底黑字，保证发票打印/PDF正常。
   ========================================================= */
@media screen {
    html body .invoice-shell,
    html body .invoice-shell *,
    html body dialog.confirm-dialog,
    html body dialog.confirm-dialog * {
        color: #073A67 !important;
        -webkit-text-fill-color: #073A67 !important;
        text-shadow: none !important;
    }

        html body .invoice-shell.glass-panel {
            max-width: 1120px;
            margin: 24px auto !important;
            padding: 22px !important;
            position: relative !important;
            isolation: isolate !important;
            overflow: hidden !important;
            border-radius: 22px !important;
            background: rgba(255, 255, 255, 0.055) !important;
            background-color: rgba(255, 255, 255, 0.055) !important;
            background-image: radial-gradient(circle at 16% 0%, rgba(255, 255, 255, 0.13), transparent 36%), radial-gradient(circle at 88% 7%, rgba(0, 194, 255, 0.10), transparent 34%), linear-gradient(135deg, rgba(255,255,255,.075), rgba(255,255,255,.028)) !important;
            border: 1px solid rgba(255, 255, 255, 0.26) !important;
            box-shadow: 0 26px 72px rgba(3, 18, 43, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.20) !important;
            -webkit-backdrop-filter: blur(30px) saturate(175%) !important;
            backdrop-filter: blur(30px) saturate(175%) !important;
        }

            html body .invoice-shell.glass-panel::before {
                content: "";
                position: absolute;
                inset: 0;
                z-index: -1;
                border-radius: inherit;
                pointer-events: none;
                background: linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.02)), radial-gradient(circle at 50% 0%, rgba(255,255,255,.16), transparent 42%) !important;
            }

        html body .invoice-shell .glass-panel,
        html body .invoice-shell .glass-card,
        html body .invoice-shell .invoice-paper,
        html body .invoice-shell .customer-search,
        html body .invoice-shell .customer-editor,
        html body .invoice-shell .invoice-header,
        html body .invoice-shell .company-block,
        html body .invoice-shell .invoice-title-block,
        html body .invoice-shell .bill-ship-grid > div,
        html body .invoice-shell .meta-grid > div,
        html body .invoice-shell .notice-box,
        html body .invoice-shell .totals,
        html body .invoice-shell .action-bar,
        html body .invoice-shell .status-message,
        html body .invoice-shell .confirm-table-wrap,
        html body dialog.confirm-dialog {
            background: rgba(255, 255, 255, 0.075) !important;
            background-color: rgba(255, 255, 255, 0.075) !important;
            background-image: linear-gradient(135deg, rgba(255,255,255,.11), rgba(255,255,255,.025)) !important;
            border: 1px solid rgba(255, 255, 255, 0.24) !important;
            border-radius: 18px !important;
            box-shadow: 0 16px 42px rgba(3, 18, 43, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
            -webkit-backdrop-filter: blur(24px) saturate(165%) !important;
            backdrop-filter: blur(24px) saturate(165%) !important;
        }

        html body .invoice-shell .invoice-paper {
            background: rgba(255, 255, 255, 0.065) !important;
            background-color: rgba(255, 255, 255, 0.065) !important;
        }

        html body .invoice-shell .invoice-header {
            border-bottom: 1px solid rgba(7, 58, 103, 0.20) !important;
        }

        html body .invoice-shell input,
        html body .invoice-shell textarea,
        html body .invoice-shell select,
        html body .invoice-shell .form-control,
        html body .invoice-shell .form-select,
        html body dialog.confirm-dialog input,
        html body dialog.confirm-dialog textarea,
        html body dialog.confirm-dialog select {
            color: #073A67 !important;
            -webkit-text-fill-color: #073A67 !important;
            caret-color: #073A67 !important;
            background: rgba(255, 255, 255, 0.105) !important;
            background-color: rgba(255, 255, 255, 0.105) !important;
            border: 1px solid rgba(7, 58, 103, 0.26) !important;
            border-radius: 14px !important;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 8px 20px rgba(3, 18, 43, 0.09) !important;
            -webkit-backdrop-filter: blur(18px) saturate(155%) !important;
            backdrop-filter: blur(18px) saturate(155%) !important;
            outline: none !important;
        }

        html body .invoice-shell textarea {
            min-height: 70px;
        }

            html body .invoice-shell input::placeholder,
            html body .invoice-shell textarea::placeholder,
            html body dialog.confirm-dialog input::placeholder,
            html body dialog.confirm-dialog textarea::placeholder {
                color: rgba(7, 58, 103, 0.72) !important;
                -webkit-text-fill-color: rgba(7, 58, 103, 0.72) !important;
                opacity: 1 !important;
            }

            html body .invoice-shell input:focus,
            html body .invoice-shell textarea:focus,
            html body .invoice-shell select:focus {
                color: #073A67 !important;
                -webkit-text-fill-color: #073A67 !important;
                background: rgba(255, 255, 255, 0.16) !important;
                background-color: rgba(255, 255, 255, 0.16) !important;
                border-color: rgba(7, 58, 103, 0.58) !important;
                box-shadow: 0 0 0 4px rgba(0, 194, 255, 0.16), 0 0 26px rgba(0, 194, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.32) !important;
            }

            html body .invoice-shell input[readonly],
            html body .invoice-shell textarea[readonly],
            html body .invoice-shell input:disabled,
            html body .invoice-shell textarea:disabled,
            html body .invoice-shell select:disabled {
                color: #073A67 !important;
                -webkit-text-fill-color: #073A67 !important;
                opacity: 1 !important;
                background: rgba(255, 255, 255, 0.08) !important;
                background-color: rgba(255, 255, 255, 0.08) !important;
            }

            html body .invoice-shell input:-webkit-autofill,
            html body .invoice-shell input:-webkit-autofill:hover,
            html body .invoice-shell input:-webkit-autofill:focus,
            html body .invoice-shell textarea:-webkit-autofill,
            html body .invoice-shell textarea:-webkit-autofill:hover,
            html body .invoice-shell textarea:-webkit-autofill:focus,
            html body .invoice-shell select:-webkit-autofill,
            html body .invoice-shell select:-webkit-autofill:hover,
            html body .invoice-shell select:-webkit-autofill:focus {
                -webkit-text-fill-color: #073A67 !important;
                caret-color: #073A67 !important;
                box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.10) inset !important;
                transition: background-color 9999s ease-in-out 0s !important;
            }

        html body .invoice-shell select option {
            color: #073A67 !important;
            -webkit-text-fill-color: #073A67 !important;
            background: #dff3ff !important;
        }

        html body .invoice-shell .items-table,
        html body dialog.confirm-dialog table {
            width: 100%;
            overflow: hidden;
            border-collapse: separate !important;
            border-spacing: 0 !important;
            border-radius: 18px !important;
            background: rgba(255, 255, 255, 0.055) !important;
            background-color: rgba(255, 255, 255, 0.055) !important;
            border: 1px solid rgba(255, 255, 255, 0.24) !important;
            box-shadow: 0 14px 38px rgba(3, 18, 43, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
            -webkit-backdrop-filter: blur(22px) saturate(160%) !important;
            backdrop-filter: blur(22px) saturate(160%) !important;
        }

            html body .invoice-shell .items-table th,
            html body .invoice-shell .items-table td,
            html body dialog.confirm-dialog th,
            html body dialog.confirm-dialog td {
                color: #073A67 !important;
                -webkit-text-fill-color: #073A67 !important;
                border-color: rgba(7, 58, 103, 0.14) !important;
                background: rgba(255, 255, 255, 0.055) !important;
                background-color: rgba(255, 255, 255, 0.055) !important;
            }

            html body .invoice-shell .items-table th,
            html body dialog.confirm-dialog th {
                font-weight: 900 !important;
                background: rgba(255, 255, 255, 0.095) !important;
                background-color: rgba(255, 255, 255, 0.095) !important;
            }

        html body .invoice-shell .btn-primary,
        html body .invoice-shell .btn-secondary,
        html body .invoice-shell .btn-small,
        html body .invoice-shell button,
        html body dialog.confirm-dialog button {
            color: #073A67 !important;
            -webkit-text-fill-color: #073A67 !important;
            font-weight: 900 !important;
            border: 1px solid rgba(7, 58, 103, 0.28) !important;
            border-radius: 999px !important;
            background: rgba(255, 255, 255, 0.12) !important;
            background-color: rgba(255, 255, 255, 0.12) !important;
            background-image: linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.05)) !important;
            box-shadow: 0 10px 24px rgba(3, 18, 43, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.26) !important;
            -webkit-backdrop-filter: blur(18px) saturate(155%) !important;
            backdrop-filter: blur(18px) saturate(155%) !important;
        }

            html body .invoice-shell .btn-primary:hover,
            html body .invoice-shell .btn-secondary:hover,
            html body .invoice-shell .btn-small:hover,
            html body .invoice-shell button:hover,
            html body dialog.confirm-dialog button:hover {
                background: rgba(255, 255, 255, 0.18) !important;
                background-color: rgba(255, 255, 255, 0.18) !important;
                transform: translateY(-1px);
            }

        html body .invoice-shell label,
        html body .invoice-shell h1,
        html body .invoice-shell h2,
        html body .invoice-shell h3,
        html body .invoice-shell p,
        html body .invoice-shell span,
        html body .invoice-shell div,
        html body .invoice-shell b,
        html body .invoice-shell strong,
        html body .invoice-shell .status-message,
        html body .invoice-shell .text-danger,
        html body .invoice-shell .totals .grand,
        html body .invoice-shell #grandTotal {
            color: #073A67 !important;
            -webkit-text-fill-color: #073A67 !important;
        }

        html body .invoice-shell .text-danger {
            font-weight: 900 !important;
        }

        html body dialog.confirm-dialog::backdrop {
            background: rgba(7, 21, 47, 0.42) !important;
            -webkit-backdrop-filter: blur(10px) !important;
            backdrop-filter: blur(10px) !important;
        }
}

/* 打印时不要毛玻璃，避免发票/PDF变灰 */
@media print {
    body {
        background: #ffffff !important;
    }

    .invoice-shell,
    .invoice-shell *,
    dialog.confirm-dialog,
    dialog.confirm-dialog * {
        color: #111827 !important;
        -webkit-text-fill-color: #111827 !important;
        text-shadow: none !important;
        box-shadow: none !important;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
    }

        .invoice-shell.glass-panel,
        .invoice-shell .glass-card,
        .invoice-shell .invoice-paper,
        .invoice-shell .invoice-header,
        .invoice-shell .company-block,
        .invoice-shell .invoice-title-block,
        .invoice-shell .bill-ship-grid > div,
        .invoice-shell .meta-grid > div,
        .invoice-shell .notice-box,
        .invoice-shell .totals,
        .invoice-shell .action-bar {
            background: #ffffff !important;
            border-color: #cccccc !important;
        }

        .invoice-shell input,
        .invoice-shell textarea,
        .invoice-shell select {
            background: transparent !important;
            border: 0 !important;
        }
}


/* =========================================================
   ✅ v4 票据识别页手机端兜底：防止全局样式把白卡/输入框撑宽
   ========================================================= */
@media screen and (max-width: 900px) {
    body.ticket-agent-page-body .ticket-shell,
    body.ticket-agent-page-body .ticket-card,
    body.ticket-agent-page-body .ticket-top-links a,
    body.ticket-agent-page-body .file-label,
    body.ticket-agent-page-body .summary-grid div,
    body.ticket-agent-page-body .ticket-results {
        background-color: rgba(255,255,255,.10) !important;
        border: 1px solid rgba(255,255,255,.30) !important;
        -webkit-backdrop-filter: blur(22px) saturate(160%) !important;
        backdrop-filter: blur(22px) saturate(160%) !important;
    }

    body.ticket-agent-page-body .ticket-shell,
    body.ticket-agent-page-body .ticket-card,
    body.ticket-agent-page-body .ticket-fields,
    body.ticket-agent-page-body .ticket-fields label,
    body.ticket-agent-page-body .ticket-fields input,
    body.ticket-agent-page-body .ticket-fields textarea,
    body.ticket-agent-page-body .ticket-fields select,
    body.ticket-agent-page-body input#ticketFile,
    body.ticket-agent-page-body input#batchFiles {
        max-width: 100% !important;
        min-width: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box !important;
    }
}

/* =========================================================
   ✅ Legal / Policy pages for Stripe review
   中文为基准，页面文字通过 SharedResource 按用户语言自动本地化
   ========================================================= */
.legal-page {
    width: min(100%, 980px);
    margin: 18px auto 30px auto;
    padding: 36px 42px;
    color: #073A67 !important;
    line-height: 1.78;
    font-size: 1.08rem;
    text-align: left;
    background: linear-gradient(135deg, rgba(255,255,255,.28), rgba(255,255,255,.10));
    border: 1px solid rgba(255,255,255,.34);
    border-radius: 24px;
    box-shadow: 0 22px 70px rgba(3,18,43,.28);
    -webkit-backdrop-filter: blur(24px) saturate(170%);
    backdrop-filter: blur(24px) saturate(170%);
}

    .legal-page,
    .legal-page * {
        color: #073A67 !important;
        -webkit-text-fill-color: #073A67 !important;
        text-shadow: none !important;
    }

        .legal-page h1 {
            margin: 0 0 24px 0;
            text-align: center;
            font-size: 2.25rem;
            line-height: 1.25;
            font-weight: 900;
        }

        .legal-page h2 {
            margin: 32px 0 12px 0;
            font-size: 1.35rem;
            line-height: 1.35;
            font-weight: 850;
        }

        .legal-page p {
            margin: 0 0 14px 0;
        }

        .legal-page ul {
            margin: 8px 0 18px 1.25rem;
            padding-left: 1.1rem;
        }

        .legal-page li {
            margin-bottom: 7px;
        }

        .legal-page a {
            color: #7a4a16 !important;
            -webkit-text-fill-color: #7a4a16 !important;
            font-weight: 800;
            text-decoration: none;
            border-bottom: 1px solid rgba(122, 74, 22, .45);
        }

            .legal-page a:hover,
            .legal-page a:focus {
                color: #5f3510 !important;
                -webkit-text-fill-color: #5f3510 !important;
                border-bottom-color: rgba(95, 53, 16, .9);
            }

.legal-meta {
    padding: 16px 18px;
    margin-bottom: 22px;
    border-radius: 18px;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.28);
}

    .legal-meta p:last-child {
        margin-bottom: 0;
    }

.site-footer {
    width: 100%;
    margin-top: 18px;
    padding: 18px 12px 24px 12px;
    background: rgba(11, 18, 51, 0.78);
    border-top: 1px solid rgba(255,255,255,.18);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    backdrop-filter: blur(14px) saturate(150%);
}

.footer-policy-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,.92);
    font-size: 1rem;
    line-height: 1.55;
    text-align: center;
}

    .footer-policy-links a {
        color: #f5ea70 !important;
        font-weight: 800;
        text-decoration: none;
    }

        .footer-policy-links a:hover,
        .footer-policy-links a:focus {
            color: #ffffff !important;
            text-decoration: underline;
            text-underline-offset: 4px;
        }

@media (max-width: 768px) {
    .legal-page {
        width: 100%;
        margin: 0 auto 22px auto;
        padding: 24px 18px;
        border-radius: 20px;
        font-size: 1rem;
    }

        .legal-page h1 {
            font-size: 1.72rem;
        }

        .legal-page h2 {
            font-size: 1.18rem;
        }

    .footer-policy-links {
        flex-direction: column;
        gap: 4px;
        font-size: .98rem;
    }

        .footer-policy-links span:not(:first-child) {
            display: none;
        }
}


/* =========================================================
   首页 MaxHr 多语言文字覆盖图容器辅助样式
   主要 CSS 已放在 Index.cshtml 内，这里只保留图片显示保护。
   ========================================================= */
.hero-art-wrap img.hero-art-image {
    user-select: none;
    -webkit-user-drag: none;
}


/* =========================================================
   AI 产品说明页 Menu.cshtml：广告式产品落地页
   ========================================================= */
.ai-menu-page {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto 70px;
    padding: 10px 16px 60px;
    color: #fff
}

.ai-menu-hero {
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    padding: clamp(28px,5vw,64px);
    background: radial-gradient(circle at 15% 0%,rgba(0,240,255,.26),transparent 34%),radial-gradient(circle at 88% 15%,rgba(124,58,237,.34),transparent 38%),linear-gradient(135deg,rgba(15,23,42,.70),rgba(30,41,93,.48));
    border: 1px solid rgba(255,255,255,.22);
    box-shadow: 0 28px 80px rgba(0,0,0,.36),inset 0 1px 0 rgba(255,255,255,.20);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    backdrop-filter: blur(24px) saturate(160%)
}

.ai-menu-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    border-radius: 999px;
    font-size: clamp(14px,1.4vw,18px);
    font-weight: 800;
    color: #dff8ff;
    background: rgba(0,194,255,.13);
    border: 1px solid rgba(0,240,255,.30);
    box-shadow: 0 0 24px rgba(0,194,255,.16)
}

.ai-menu-title {
    margin: 22px 0 18px;
    font-size: clamp(34px,6.2vw,76px);
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: .01em;
    color: #fff;
    text-shadow: 0 5px 22px rgba(0,0,0,.55),0 0 22px rgba(0,194,255,.38)
}

.ai-menu-subtitle {
    max-width: 940px;
    font-size: clamp(19px,2.1vw,28px);
    line-height: 1.65;
    color: rgba(244,249,255,.94);
    font-weight: 700
}

.ai-menu-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 30px
}

.ai-menu-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 54px;
    padding: 14px 28px;
    border-radius: 999px;
    color: #fff !important;
    text-decoration: none;
    font-size: clamp(18px,1.8vw,24px);
    font-weight: 900;
    border: 0;
    background: linear-gradient(135deg,#00c2ff,#635bff);
    box-shadow: 0 14px 30px rgba(0,0,0,.32),inset 0 2px 4px rgba(255,255,255,.32);
    transition: transform .15s ease,filter .15s ease,box-shadow .15s ease
}

    .ai-menu-btn:hover {
        transform: translateY(-3px) scale(1.02);
        filter: brightness(1.08);
        box-shadow: 0 18px 40px rgba(0,0,0,.38),0 0 28px rgba(0,194,255,.30),inset 0 2px 5px rgba(255,255,255,.40)
    }

.ai-menu-btn-secondary {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.28)
}

.ai-menu-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 20px;
    margin-top: 28px
}

.ai-menu-card, .ai-menu-section {
    border-radius: 26px;
    padding: 26px;
    background: rgba(255,255,255,.09);
    border: 1px solid rgba(255,255,255,.16);
    box-shadow: 0 20px 46px rgba(0,0,0,.22),inset 0 1px 0 rgba(255,255,255,.12);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    backdrop-filter: blur(18px) saturate(150%)
}

    .ai-menu-card h2, .ai-menu-section h2 {
        margin: 0 0 14px;
        font-size: clamp(22px,2.4vw,32px);
        font-weight: 920;
        color: #fff
    }

    .ai-menu-card p, .ai-menu-section p, .ai-menu-list li {
        font-size: clamp(16px,1.55vw,21px);
        line-height: 1.75;
        color: rgba(244,249,255,.90)
    }

.ai-menu-list {
    margin: 12px 0 0;
    padding-left: 1.2em
}

    .ai-menu-list li {
        margin: 10px 0
    }

.ai-menu-section {
    margin-top: 22px
}

@media(max-width:900px) {
    .ai-menu-page {
        padding: 0 10px 45px
    }

    .ai-menu-hero {
        border-radius: 26px;
        padding: 28px 18px
    }

    .ai-menu-grid {
        grid-template-columns: 1fr
    }

    .ai-menu-actions {
        flex-direction: column
    }

    .ai-menu-btn {
        width: 100%
    }
}

/* MaxAI Logo 标题最终颜色 */
/* MaxAI Logo 标题最终颜色：清晰版（无发光、无模糊） */
.top-nav .logo-title,
header.top-nav .logo-title {
    color: #FFD700 !important;
    /* 关键：彻底取消模糊发光 */
    text-shadow: none !important;
    filter: none !important;
    -webkit-text-stroke: 0 !important;
    /* 清晰字体 */
    font-family: "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif !important;
    font-weight: 800 !important;
    /* 尽量提高字体边缘清晰度 */
    text-rendering: geometricPrecision;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =========================================================
   MaxAI Logo 标题：清晰金色 + 白色滑块沿矩形边框循环移动
   ========================================================= */
.top-nav .logo-title,
header.top-nav .logo-title {
    position: relative !important;
    display: inline-block !important;
    padding: 8px 14px !important;
    /* 字体保持清晰，不做发光 */
    color: #FFD700 !important;
    text-shadow: none !important;
    filter: none !important;
    -webkit-text-stroke: 0 !important;
    font-family: "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif !important;
    font-weight: 800 !important;
    text-rendering: geometricPrecision;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* 长方形提示框 */
    border: 1px solid rgba(255, 255, 255, 0.42) !important;
    border-radius: 7px !important;
    background: rgba(255, 255, 255, 0.025) !important;
    box-sizing: border-box !important;
    overflow: visible !important;
}

    /* 白色滑块 */
    .top-nav .logo-title::after,
    header.top-nav .logo-title::after {
        content: "";
        position: absolute;
        z-index: 3;
        width: 16px;
        height: 4px;
        left: 0;
        top: -3px;
        border-radius: 999px;
        background: #ffffff;
        box-shadow: 0 0 4px rgba(255, 255, 255, 0.95);
        pointer-events: none;
        will-change: left, top;
        animation: maxai-logo-border-slider 4s linear infinite;
    }

/* 顺时针：上边 -> 右边 -> 下边 -> 左边 */
@keyframes maxai-logo-border-slider {
    0% {
        left: 0;
        top: -3px;
    }

    25% {
        left: calc(100% - 16px);
        top: -3px;
    }

    50% {
        left: calc(100% - 16px);
        top: calc(100% - 1px);
    }

    75% {
        left: 0;
        top: calc(100% - 1px);
    }

    100% {
        left: 0;
        top: -3px;
    }
}

/* 手机端缩小边框内边距，避免占用过多宽度 */
@media (max-width: 768px) {
    .top-nav .logo-title,
    header.top-nav .logo-title {
        padding: 6px 9px !important;
        border-radius: 6px !important;
    }

        .top-nav .logo-title::after,
        header.top-nav .logo-title::after {
            width: 12px;
            height: 4px;
            animation-duration: 3.6s;
        }

    @keyframes maxai-logo-border-slider {
        0% {
            left: 0;
            top: -3px;
        }

        25% {
            left: calc(100% - 12px);
            top: -3px;
        }

        50% {
            left: calc(100% - 12px);
            top: calc(100% - 1px);
        }

        75% {
            left: 0;
            top: calc(100% - 1px);
        }

        100% {
            left: 0;
            top: -3px;
        }
    }
}

/* 尊重系统“减少动画”设置 */
@media (prefers-reduced-motion: reduce) {
    .top-nav .logo-title::after,
    header.top-nav .logo-title::after {
        animation: none !important;
        left: calc(50% - 8px);
        top: -3px;
    }
}


/*==============================================*/

:root {
    --ink: #091427;
    --muted: #64748b;
    --blue: #2962ff;
    --cyan: #22d3ee;
    --panel: #f6f8fc;
    --line: #dfe7f2;
    --nav: #071426;
    --radius: 20px
}

* {
    box-sizing: border-box
}

html {
    font-size: 15px
}

body {
    margin: 0;
    color: var(--ink);
    font-family: Inter,"Segoe UI","Microsoft YaHei",Arial,sans-serif;
    background: #fff
}

a {
    color: var(--blue);
    text-decoration: none
}

.site-main {
    min-height: 72vh
}

.main-nav {
    background: rgba(7,20,38,.97);
    padding: .75rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(14px)
}

.nav-shell {
    max-width: 1440px;
    padding: 0 4vw
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: .7rem;
    color: #fff !important;
    font-weight: 800;
    font-size: 1.2rem
}

    .navbar-brand small {
        display: block;
        font-size: .55rem;
        letter-spacing: .13em;
        color: #8fa4c0;
        font-weight: 600
    }

.logo-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(145deg,var(--blue),var(--cyan));
    box-shadow: 0 0 28px #2962ff66;
    color: #fff
}

.navbar .nav-link {
    color: #cbd5e1 !important;
    font-weight: 600;
    margin: 0 .45rem
}

    .navbar .nav-link:hover {
        color: #fff !important
    }

.language-menu {
    margin-right: .6rem
}

    .language-menu > .btn {
        color: #cbd5e1;
        border: 1px solid #334155
    }

.navbar-toggler {
    border-color: #64748b
}

.home-hero {
    min-height: 620px;
    padding: 80px max(6vw,30px);
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 3rem;
    color: #fff;
    background: radial-gradient(circle at 78% 42%,#1649a8 0,#0b2659 20%,transparent 45%),linear-gradient(125deg,#061226 15%,#0c1e3d 62%,#071426);
    overflow: hidden
}

.eyebrow {
    font-size: .75rem;
    letter-spacing: .17em;
    color: #1da8de;
    font-weight: 800
}

.home-hero .eyebrow, .teacher-cta .eyebrow {
    color: #67e8f9
}

.hero-copy h1 {
    font-size: clamp(3.4rem,6vw,6.6rem);
    line-height: .94;
    letter-spacing: -.055em;
    margin: 1rem 0 1.5rem;
    font-weight: 850
}

    .hero-copy h1 em {
        font-style: normal;
        color: transparent;
        background: linear-gradient(90deg,#67e8f9,#6c8cff);
        background-clip: text
    }

.hero-copy > p {
    max-width: 690px;
    font-size: 1.25rem;
    line-height: 1.8;
    color: #bdc9dc
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin: 2rem 0
}

.hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 1.4rem;
    color: #9fb2cb
}

.hero-visual {
    height: 500px;
    position: relative;
    display: grid;
    place-items: center
}

.ai-core {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    display: grid;
    place-content: center;
    text-align: center;
    background: radial-gradient(circle at 35% 30%,#3f77ff,#102d75 58%,#071426);
    border: 1px solid #66e8ff99;
    box-shadow: 0 0 80px #2a64ff88,inset 0 0 35px #73eaff44;
    z-index: 3
}

    .ai-core b {
        font-size: 5rem;
        line-height: 1
    }

    .ai-core small, .ai-core span {
        letter-spacing: .15em;
        color: #a8daf1
    }

    .ai-core span {
        font-size: .55rem
    }

.orbit {
    position: absolute;
    border-radius: 50%;
    border: 1px solid #54dff655
}

.orbit-a {
    width: 390px;
    height: 390px
}

.orbit-b {
    width: 500px;
    height: 280px;
    transform: rotate(-24deg)
}

.float-chip {
    position: absolute;
    padding: .65rem 1rem;
    border: 1px solid #5ddfff88;
    border-radius: 99px;
    background: #0b2456cc;
    color: #dffaff;
    box-shadow: 0 10px 30px #0005
}

.chip-1 {
    top: 10%;
    left: 10%
}

.chip-2 {
    right: 0;
    top: 35%
}

.chip-3 {
    bottom: 12%;
    left: 4%
}

.stats-strip {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    max-width: 1180px;
    margin: -38px auto 70px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 20px 55px #10244b22;
    position: relative;
    z-index: 5;
    padding: 1.5rem
}

    .stats-strip div {
        display: grid;
        text-align: center;
        border-right: 1px solid var(--line)
    }

        .stats-strip div:last-child {
            border: 0
        }

    .stats-strip b {
        font-size: 1.8rem;
        color: var(--blue)
    }

    .stats-strip span {
        color: var(--muted)
    }

.home-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 55px 30px
}

    .home-section.soft {
        max-width: none;
        background: var(--panel);
        padding-left: max(calc((100vw - 1220px)/2),30px);
        padding-right: max(calc((100vw - 1220px)/2),30px)
    }

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin-bottom: 2rem
}

    .section-heading h2 {
        font-size: 2.25rem;
        margin: .5rem 0
    }

.knowledge-grid, .course-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 1.35rem
}

.knowledge-grid {
    grid-template-columns: repeat(4,1fr)
}

.knowledge-card, .course-card, .content-card, .data-card, .form-card, .status-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 12px 35px #0f28520b
}

.knowledge-card {
    padding: 1.55rem;
    color: var(--ink);
    transition: .25s
}

    .knowledge-card:hover, .course-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 22px 45px #1640901c
    }

    .knowledge-card > span, .tags span {
        font-size: .72rem;
        color: var(--blue);
        background: #eef3ff;
        border-radius: 99px;
        padding: .35rem .55rem;
        font-weight: 700
    }

    .knowledge-card h2, .knowledge-card h3 {
        font-size: 1.15rem;
        margin: 1.2rem 0 .6rem
    }

    .knowledge-card p, .course-card p {
        color: var(--muted);
        line-height: 1.7
    }

.course-card {
    overflow: hidden;
    transition: .25s
}

.course-cover {
    height: 160px;
    background: linear-gradient(140deg,#0a1c3d,#164ebc);
    color: #fff;
    padding: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: start;
    position: relative;
    overflow: hidden
}

    .course-cover:after {
        content: "";
        position: absolute;
        width: 150px;
        height: 150px;
        border: 1px solid #55e7ff88;
        border-radius: 50%;
        right: -25px;
        bottom: -70px;
        box-shadow: 0 0 55px #4b8aff
    }

    .course-cover strong {
        font-size: 3.5rem;
        align-self: center;
        z-index: 2
    }

    .course-cover span {
        border: 1px solid #ffffff55;
        border-radius: 99px;
        padding: .3rem .65rem
    }

.course-body {
    padding: 1.35rem
}

.tags {
    display: flex;
    gap: .4rem;
    flex-wrap: wrap
}

.course-body h2, .course-body h3 {
    font-size: 1.25rem;
    margin: 1rem 0 .5rem
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--line);
    padding-top: 1rem
}

    .course-footer b {
        font-size: 1.12rem
    }

.teacher-cta {
    margin: 80px auto;
    max-width: 1220px;
    padding: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    border-radius: 30px;
    background: linear-gradient(125deg,#0a1730,#173e91)
}

    .teacher-cta h2 {
        font-size: 2.7rem;
        margin: 1rem 0
    }

    .teacher-cta p {
        color: #c4d0e5;
        max-width: 650px
    }

.revenue-ring {
    width: 220px;
    height: 220px;
    display: grid;
    place-content: center;
    text-align: center;
    border: 2px solid #62e8ff;
    border-radius: 50%;
    box-shadow: 0 0 70px #318cff77
}

    .revenue-ring b {
        font-size: 4rem
    }

    .revenue-ring span {
        font-size: .65rem;
        letter-spacing: .16em
    }

.page-hero {
    padding: 75px max(calc((100vw - 1180px)/2),30px);
    background: linear-gradient(120deg,#08162d,#123875);
    color: #fff
}

    .page-hero.compact {
        min-height: 280px
    }

    .page-hero h1 {
        font-size: clamp(2.2rem,4vw,4rem);
        margin: .7rem 0
    }

    .page-hero p {
        font-size: 1.12rem;
        color: #c5d2e6;
        max-width: 760px
    }

.search-panel, .filter-bar, .knowledge-grid:not(.home-section .knowledge-grid), .course-grid:not(.home-section .course-grid), .detail-grid, .article-layout, .form-card, .status-card, .metric-grid, .data-card, .checkout-wrap, .learning-grid, .empty-state, .section-heading:not(.home-section .section-heading) {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto
}

.search-panel {
    margin-top: -30px;
    position: relative;
    background: #fff;
    padding: 1.2rem;
    border-radius: 18px;
    box-shadow: 0 18px 45px #10244b22
}

    .search-panel + .knowledge-grid {
        padding: 50px 0
    }

.filter-bar {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: .8rem;
    margin-top: -28px;
    position: relative;
    background: #fff;
    padding: 1rem;
    border-radius: 16px;
    box-shadow: 0 18px 45px #10244b22
}

    .filter-bar input, .filter-bar select, .filter-bar button, .form-card input, .form-card select, .form-card textarea {
        padding: .85rem 1rem;
        border: 1px solid var(--line);
        border-radius: 10px;
        background: #fff
    }

    .filter-bar button {
        background: var(--blue);
        color: #fff;
        border: 0;
        font-weight: 700
    }

    .filter-bar + .course-grid {
        padding: 50px 0
    }

.article-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    padding: 60px 20px
}

    .article-layout aside {
        position: sticky;
        top: 100px;
        align-self: start
    }

        .article-layout aside small {
            display: block;
            color: var(--blue);
            margin-top: 2rem
        }

        .article-layout aside h1 {
            font-size: 2.2rem;
            margin: .7rem 0
        }

        .article-layout aside p {
            color: var(--muted);
            line-height: 1.7
        }

.content-card {
    padding: 2rem
}

.rich-content {
    font-size: 1.05rem;
    line-height: 1.85
}

    .rich-content h2 {
        font-size: 1.8rem;
        margin-top: 1rem
    }

    .rich-content h3 {
        font-size: 1.25rem;
        margin-top: 1.5rem
    }

.article-next {
    margin-top: 3rem;
    padding: 1.3rem;
    background: var(--panel);
    border-radius: 14px;
    display: flex;
    justify-content: space-between
}

.course-detail-hero {
    padding: 70px max(calc((100vw - 1180px)/2),30px);
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 4rem;
    color: #fff;
    background: linear-gradient(125deg,#071326,#173b80)
}

    .course-detail-hero h1 {
        font-size: 3rem;
        margin: 1rem 0
    }

    .course-detail-hero p {
        font-size: 1.15rem;
        color: #c9d6e8;
        line-height: 1.7
    }

.trust-line {
    color: #7eeaff;
    margin-top: 2rem
}

.buy-card {
    background: #fff;
    color: var(--ink);
    padding: 1.7rem;
    border-radius: 20px;
    box-shadow: 0 24px 60px #0005
}

    .buy-card .price {
        font-size: 2.2rem;
        font-weight: 800;
        margin-bottom: 1rem
    }

    .buy-card small {
        display: block;
        color: var(--muted);
        margin-top: 1rem
    }

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 1.5rem;
    padding: 50px 20px
}

.syllabus {
    display: grid;
    border: 1px solid var(--line);
    border-radius: 12px;
    margin: .8rem 0;
    overflow: hidden
}

    .syllabus > * {
        padding: .75rem 1rem;
        border-bottom: 1px solid var(--line)
    }

.checkout-wrap {
    display: grid;
    grid-template-columns: 1fr 390px;
    gap: 3rem;
    padding: 70px 20px
}

    .checkout-wrap h1 {
        font-size: 3rem
    }

.checkout-course {
    display: grid;
    grid-template-columns: 90px 1fr auto;
    gap: 1rem;
    align-items: center;
    margin: 2rem 0;
    padding: 1.2rem;
    border: 1px solid var(--line);
    border-radius: 16px
}

.mini-cover {
    width: 80px;
    height: 80px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg,#0b1d42,#2463dd);
    color: #fff;
    border-radius: 14px;
    font-size: 2rem;
    font-weight: 800
}

.notice {
    padding: 1.2rem;
    border-radius: 12px;
    background: #fff8dc;
    border: 1px solid #ffe28a
}

.payment-card {
    padding: 1.7rem;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 20px 50px #10244b18
}

    .payment-card label {
        display: grid;
        grid-template-columns: auto 1fr;
        column-gap: .7rem;
        padding: 1rem;
        border: 1px solid var(--line);
        border-radius: 12px;
        margin: .7rem 0
    }

        .payment-card label small {
            grid-column: 2;
            color: var(--muted)
        }

    .payment-card > .total {
        display: flex;
        justify-content: space-between;
        font-size: 1.2rem;
        margin: 1.3rem 0
    }

    .payment-card > small {
        display: block;
        margin-top: 1rem;
        color: var(--muted)
    }

.empty-state {
    text-align: center;
    padding: 80px 20px
}

    .empty-state > div {
        font-size: 4rem
    }

.learning-grid {
    padding: 50px 20px
}

.learning-card {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 1rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1.2rem;
    margin-bottom: 1rem
}

    .learning-card h2 {
        margin: .35rem 0
    }

    .learning-card p, .learning-card span {
        color: var(--muted)
    }

.learn-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    min-height: 72vh
}

.lesson-nav {
    background: #0b1930;
    color: #fff;
    padding: 2rem 1.2rem
}

    .lesson-nav > a:first-child {
        color: #7ddff2
    }

    .lesson-nav h2 {
        font-size: 1.2rem;
        margin: 2rem 0
    }

    .lesson-nav b {
        display: block;
        color: #6ee7f7;
        margin: 1.5rem .7rem .4rem
    }

    .lesson-nav a:not(:first-child) {
        display: block;
        color: #b9c5d8;
        padding: .65rem .7rem;
        border-radius: 8px
    }

    .lesson-nav a.active {
        background: #1d4ed8;
        color: #fff
    }

.lesson-view {
    padding: 3rem max(4vw,30px)
}

    .lesson-view h1 {
        font-size: 2.6rem
    }

.video-placeholder {
    height: 360px;
    display: grid;
    place-items: center;
    background: #071426;
    color: #fff;
    border-radius: 20px;
    margin: 1.5rem 0
}

.form-card {
    padding: 2rem;
    margin-top: 40px;
    margin-bottom: 70px
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
    margin-bottom: 1.5rem
}

    .form-grid label {
        font-weight: 700;
        display: grid;
        gap: .4rem
    }

    .form-grid .wide {
        grid-column: 1/-1
    }

.status-card {
    padding: 1.3rem;
    margin-top: 30px
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 1rem;
    padding: 40px 20px 25px
}

    .metric-grid div {
        padding: 1.3rem;
        border: 1px solid var(--line);
        border-radius: 16px
    }

    .metric-grid span {
        display: block;
        color: var(--muted)
    }

    .metric-grid b {
        display: block;
        font-size: 1.6rem;
        margin-top: .4rem
    }

.data-card {
    padding: 1.5rem;
    margin-bottom: 70px
}

.site-footer {
    background: #061225;
    color: #94a3b8;
    padding: 55px max(calc((100vw - 1180px)/2),30px) 20px
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem
}

    .footer-grid > div {
        display: flex;
        flex-direction: column;
        gap: .7rem
    }

    .footer-grid b {
        color: #fff
    }

    .footer-grid a {
        color: #a9b7cb
    }

.footer-bottom {
    border-top: 1px solid #22314a;
    margin-top: 2rem;
    padding-top: 1.2rem
}

.btn-primary {
    background: var(--blue);
    border-color: var(--blue)
}

@media(max-width:992px) {
    .home-hero {
        grid-template-columns: 1fr;
        padding-top: 50px
    }

    .hero-visual {
        height: 380px
    }

    .knowledge-grid, .course-grid {
        grid-template-columns: repeat(2,1fr)
    }

    .course-detail-hero, .checkout-wrap {
        grid-template-columns: 1fr
    }

    .buy-card {
        max-width: 500px
    }

    .main-nav .navbar-collapse {
        padding-top: 1rem
    }

    .language-menu {
        margin: 1rem 0
    }

    .metric-grid {
        grid-template-columns: repeat(2,1fr)
    }
}

@media(max-width:700px) {
    html {
        font-size: 14px
    }

    .home-hero {
        padding: 55px 20px
    }

    .hero-copy h1 {
        font-size: 3.6rem
    }

    .hero-actions {
        flex-direction: column
    }

    .hero-visual {
        height: 310px
    }

    .ai-core {
        width: 155px;
        height: 155px
    }

        .ai-core b {
            font-size: 3.5rem
        }

    .orbit-a {
        width: 260px;
        height: 260px
    }

    .orbit-b {
        width: 320px;
        height: 190px
    }

    .float-chip {
        font-size: .75rem
    }

    .stats-strip {
        grid-template-columns: repeat(2,1fr);
        margin: 0;
        border-radius: 0
    }

        .stats-strip div {
            padding: .7rem
        }

    .knowledge-grid, .course-grid {
        grid-template-columns: 1fr;
        padding-left: 20px !important;
        padding-right: 20px !important
    }

    .section-heading {
        align-items: start;
        flex-direction: column
    }

    .teacher-cta {
        margin: 40px 20px;
        padding: 2rem
    }

    .revenue-ring {
        display: none
    }

    .filter-bar {
        grid-template-columns: 1fr;
        margin-left: 20px;
        margin-right: 20px
    }

    .article-layout, .detail-grid {
        grid-template-columns: 1fr
    }

        .article-layout aside {
            position: static
        }

    .course-detail-hero {
        padding: 45px 20px
    }

        .course-detail-hero h1 {
            font-size: 2.4rem
        }

    .checkout-wrap {
        padding: 40px 20px
    }

    .checkout-course {
        grid-template-columns: 70px 1fr
    }

        .checkout-course > strong {
            grid-column: 2
        }

    .learn-layout {
        grid-template-columns: 1fr
    }

    .lesson-nav {
        position: static
    }

    .form-grid {
        grid-template-columns: 1fr
    }

        .form-grid .wide {
            grid-column: auto
        }

    .metric-grid {
        grid-template-columns: 1fr 1fr
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr
    }

        .footer-grid > div:first-child {
            grid-column: 1/-1
        }
}

/* V1.6 language selector */
.language-menu .form-select {
    min-width: 128px;
    border-color: #334155;
    background-color: #0f1f37;
    color: #e2e8f0;
    font-weight: 600;
}

.language-menu .form-select:focus {
    border-color: #64748b;
    box-shadow: none;
}
