/* ===============================
⭐ 全局
=============================== */
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;
    }
}

/* =========================================================
   桌面端登录邮箱：菜单栏第二行最右侧
   ========================================================= */
@media (min-width: 769px) {
    html body header.top-nav,
    body > header.top-nav,
    .top-nav {
        height: 165px !important;
        min-height: 165px !important;
    }

    .top-nav > .nav-menu > .login-email,
    header.top-nav > .nav-menu > .login-email {
        position: absolute !important;
        left: auto !important;
        right: 24px !important;
        bottom: 12px !important;
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        transform: none !important;
        font-size: 27px !important;
        line-height: 1.2 !important;
        text-align: right !important;
        white-space: nowrap !important;
        z-index: 2 !important;
    }

    .top-nav > .nav-menu > .login-email:hover,
    header.top-nav > .nav-menu > .login-email:hover {
        transform: translateY(-1px) !important;
    }

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

@media (min-width: 769px) and (max-width: 1500px) {
    html body header.top-nav,
    body > header.top-nav,
    .top-nav {
        height: 145px !important;
        min-height: 145px !important;
    }

    .top-nav > .nav-menu > .login-email,
    header.top-nav > .nav-menu > .login-email {
        bottom: 8px !important;
        right: 18px !important;
        font-size: 23px !important;
    }

    .main-container {
        padding-top: 172px !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/Premium/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;
    }
}
