/* 御文翼全站科技视觉系统 */
:root {
    --tech-cyan: #26e8ff;
    --tech-blue: #2388ff;
    --tech-violet: #735cff;
    --tech-line: rgba(63, 221, 255, .18);
    --tech-panel: rgba(7, 18, 35, .72);
}

html { scrollbar-color: #18bddd #07101f; }
body.tech-ui {
    background:
        radial-gradient(circle at 12% 12%, rgba(0, 180, 216, .12), transparent 30rem),
        radial-gradient(circle at 88% 48%, rgba(56, 87, 255, .10), transparent 34rem),
        #060b18;
}
body.tech-ui::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: .38;
    /* The repeated grid's horizontal strokes are visually indistinguishable
       from section dividers on the continuous page canvas. Remove only this
       paint layer; it is fixed and has no influence on document layout. */
    background-image: none;
    mask-image: linear-gradient(to bottom, #000, transparent 88%);
}
body.tech-ui > nav,
body.tech-ui > header,
body.tech-ui > main,
body.tech-ui > section,
body.tech-ui > footer,
body.tech-ui > div:not(#mobile-menu):not(#successModal):not(.site-float-controls):not(.tech-scroll-progress):not(.tech-route):not(.tech-cursor):not(.tech-cursor-dot) {
    position: relative;
    z-index: 2;
}

/* Submission feedback must remain a viewport-level modal. It is appended as
   a direct body child, so exclude it from the generic content stacking rule. */
body.tech-ui > #successModal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 3000 !important;
}

/* Business-page sections use their own stacking contexts for imagery and
   reveal effects.  They must never sit above the persistent global header:
   otherwise the visible navigation is not actually clickable after scrolling
   into a content module. */
body.tech-ui.customer-fidelity > .site-primary-header {
    position: fixed !important;
    z-index: 2200 !important;
    pointer-events: auto;
}
body.tech-ui.customer-fidelity > #mobile-menu {
    z-index: 2190 !important;
}

/* 客服与返回顶部保持原有悬浮控件形态，不参与科技界面重绘 */
.tech-ui > .site-float-controls {
    position: fixed !important;
    right: 2rem !important;
    bottom: 2rem !important;
    left: auto !important;
    top: auto !important;
    z-index: 100 !important;
    width: auto !important;
    transform: none !important;
}
.tech-ui > .site-float-controls > button,
.tech-ui > .site-float-controls > #customer-btn-container > button {
    width: 3.5rem !important;
    height: 3.5rem !important;
    min-width: 3.5rem !important;
    padding: 0 !important;
    border-radius: 9999px !important;
    overflow: hidden;
}
.tech-ui > .site-float-controls .blue-gradient-bg::after {
    display: none !important;
}

.tech-scroll-progress {
    position: fixed;
    inset: 0 auto auto 0;
    width: 0;
    height: 2px;
    z-index: 100;
    background: linear-gradient(90deg, var(--tech-blue), var(--tech-cyan), #fff);
    box-shadow: 0 0 16px var(--tech-cyan);
}


.tech-ui .glass-header {
    background: rgba(4, 11, 24, .78) !important;
    border-bottom: 1px solid rgba(38, 232, 255, .14) !important;
    box-shadow: 0 12px 45px rgba(0, 0, 0, .22), inset 0 -1px rgba(255,255,255,.025);
}
.tech-ui .glass-header::before,
.tech-ui > nav::before,
.tech-ui > header::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent 3%, var(--tech-cyan) 25%, transparent 48%, var(--tech-blue) 72%, transparent 97%);
    opacity: .55;
}
.tech-ui .nav-link { letter-spacing: .06em; }
.tech-ui .nav-link::before {
    content: "◇";
    margin-right: 5px;
    color: var(--tech-cyan);
    opacity: 0;
    transition: opacity .25s;
}
.tech-ui .nav-link:hover::before,
.tech-ui .nav-link.active::before { opacity: 1; }

.tech-ui section {
    isolation: isolate;
    /* Separator paint removed; the 1px border remains so no section height
       or responsive layout calculation changes. */
    border-top: 1px solid transparent;
}
.tech-ui section::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(105deg, transparent 0 48%, rgba(28, 216, 255, .025) 48.1% 48.25%, transparent 48.35%),
        radial-gradient(circle at 8% 50%, rgba(0, 202, 255, .06), transparent 24rem);
}

.tech-ui h1,
.tech-ui h2 {
    text-wrap: balance;
    text-shadow: 0 0 34px rgba(44, 216, 255, .12);
}
.tech-ui h2::after {
    content: "";
    display: block;
    width: 74px;
    height: 2px;
    margin-top: .55em;
    background: linear-gradient(90deg, var(--tech-cyan), transparent);
    box-shadow: 0 0 12px rgba(38,232,255,.5);
}
.tech-ui .text-center h2::after,
.tech-ui h2.text-center::after { margin-inline: auto; }

.tech-ui .hover-lift,
.tech-ui .concept-card,
.tech-ui .glass-card,
.tech-ui [class*="rounded-2xl"][class*="border"]:not(#customer-panel),
.tech-ui [class*="rounded-3xl"][class*="border"]:not(#customer-panel) {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(18, 34, 57, .78), rgba(5, 14, 29, .74)) !important;
    border-color: rgba(66, 215, 255, .16) !important;
    box-shadow: inset 0 1px rgba(255,255,255,.035), 0 18px 60px rgba(0,0,0,.15);
}
.tech-ui .hover-lift::before,
.tech-ui .concept-card::before,
.tech-ui .glass-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, var(--tech-cyan), var(--tech-cyan)) left top / 24px 1px no-repeat,
        linear-gradient(var(--tech-cyan), var(--tech-cyan)) left top / 1px 24px no-repeat,
        linear-gradient(90deg, var(--tech-cyan), var(--tech-cyan)) right bottom / 24px 1px no-repeat,
        linear-gradient(var(--tech-cyan), var(--tech-cyan)) right bottom / 1px 24px no-repeat;
    opacity: .38;
}
.tech-ui .hover-lift::after,
.tech-ui .concept-card::after {
    content: "";
    position: absolute;
    inset: -120% 0 auto;
    height: 70%;
    pointer-events: none;
    background: linear-gradient(to bottom, transparent, rgba(56, 230, 255, .10), transparent);
    transition: transform .7s ease;
}
.tech-ui .hover-lift:hover,
.tech-ui .concept-card:hover {
    transform: translateY(-7px);
    border-color: rgba(70, 232, 255, .42) !important;
    box-shadow: 0 22px 70px rgba(0, 155, 210, .13), inset 0 0 35px rgba(33, 194, 255, .04);
}
.tech-ui .hover-lift:hover::after,
.tech-ui .concept-card:hover::after { transform: translateY(330%); }

.tech-ui .blue-gradient-bg {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(169, 248, 255, .32);
    background: linear-gradient(110deg, #0078bd, #00b8db 54%, #0579cc) !important;
    box-shadow: 0 0 0 1px rgba(16, 210, 255, .08), 0 0 24px rgba(0, 187, 225, .22);
}
.tech-ui .blue-gradient-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-120%) skewX(-20deg);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.26), transparent);
    animation: tech-button-scan 3.8s ease-in-out infinite;
}

/* 全站页脚邮箱订阅组件 */
.tech-ui .site-newsletter {
    position: relative !important;
    width: 100%;
}
.tech-ui .site-newsletter > input {
    box-sizing: border-box;
    width: 100% !important;
    height: 3rem !important;
    padding-right: 5.25rem !important;
}
.tech-ui .site-subscribe-button {
    position: absolute !important;
    top: 50% !important;
    right: .375rem !important;
    bottom: auto !important;
    left: auto !important;
    width: auto !important;
    min-width: 4rem !important;
    height: 2.25rem !important;
    padding: 0 .75rem !important;
    transform: translateY(-50%) !important;
    z-index: 3;
    white-space: nowrap;
}

.tech-ui img { transition: transform .7s cubic-bezier(.2,.8,.2,1), filter .5s; }
.tech-ui a:hover img { transform: scale(1.025); }

.tech-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .75s ease, transform .75s cubic-bezier(.2,.8,.2,1);
}
.tech-reveal.is-visible { opacity: 1; transform: none; }

.tech-hud {
    position: absolute;
    inset: 0;
    z-index: 25;
    pointer-events: none;
    overflow: hidden;
}
.tech-hud-coords {
    position: absolute;
    right: clamp(24px, 5vw, 72px);
    bottom: clamp(28px, 7vw, 92px);
    color: rgba(177, 240, 250, .78);
    font: 500 10px/1.8 ui-monospace, SFMono-Regular, Consolas, monospace;
    text-align: right;
    letter-spacing: .1em;
}
@keyframes tech-button-scan { 0%, 58% { transform: translateX(-120%) skewX(-20deg); } 78%, 100% { transform: translateX(140%) skewX(-20deg); } }

@media (max-width: 767px) {
    body.tech-ui::after { background-size: 36px 36px; opacity: .28; }
    .tech-hud-coords { right: 18px; bottom: 23px; font-size: 8px; }
    .tech-ui .hover-lift:hover,
    .tech-ui .concept-card:hover { transform: none; }
    .tech-cursor, .tech-cursor-dot { display: none; }
    .tech-ui > .site-float-controls {
        right: 1rem !important;
        bottom: max(1rem, env(safe-area-inset-bottom)) !important;
        gap: .75rem !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tech-reveal { opacity: 1; transform: none; }
    .tech-ui .blue-gradient-bg::after { animation: none !important; }
}
