@font-face {
    font-family: "华康金文体W3";
    src: url("../asset/fonts/华康金文体W3.TTF") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}


/*样式设置*/
:root {
    --bg: #0a0a0a;
    --panel: #111;
    --text: #e5e5e5;
    --muted: #c4ba78;
    --accent: #ffb700;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, sans-serif;
    overflow: hidden;
}

/* ---------- 固定网格背景 ---------- */
:root {
    --cursor-x: 50%;
    --cursor-y: 50%;
    --grid-size: 48px;
    --grid-color: rgba(255, 255, 255, 0.06);
    --grid-glow-color: rgba(120, 180, 255, 0.35);
}

/* 基础网格：永远存在 */
.grid-base {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: var(--grid-size) var(--grid-size);
}

/* 发光网格：只在鼠标附近显示 */
.grid-glow {
    position: fixed;
    inset: 0;
    z-index: 1;
    /* 低于 header / 页面内容 */
    pointer-events: none;

    background-image:
        linear-gradient(var(--grid-glow-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-glow-color) 1px, transparent 1px);
    background-size: var(--grid-size) var(--grid-size);

    /* 关键：圆形遮罩 */
    -webkit-mask-image: radial-gradient(circle 280px at var(--cursor-x) var(--cursor-y),
            black 0%,
            rgba(0, 0, 0, 0.6) 40%,
            transparent 100%);
    mask-image: radial-gradient(circle 280px at var(--cursor-x) var(--cursor-y),
            black 0%,
            rgba(0, 0, 0, 0.6) 40%,
            transparent 100%);

    /* 发光叠加更自然 */
    mix-blend-mode: screen;
    opacity: 0.9;
}

/* ---------- 页眉 ---------- */
:root {
    --header-h: 72px;
    --header-bg: rgba(5, 8, 12, 0.62);
    --glass-border: rgba(255, 255, 255, 0.04);
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 28px;
    background: var(--header-bg);
    backdrop-filter: blur(6px) saturate(120%);
    border-bottom: 1px solid var(--glass-border);
    z-index: 100;
    pointer-events: auto;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    outline: none;
}

.header-left:focus {
    box-shadow: 0 0 0 4px rgba(111, 180, 255, 0.06);
    border-radius: 8px;
}

.logo {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: transform .18s ease, box-shadow .18s ease;
    box-shadow: 0 2px 10px rgba(15, 20, 25, 0.25), inset 0 -2px 6px rgba(0, 0, 0, 0.25);
}

.header-left:hover .logo,
.header-left:focus .logo {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 18px rgba(15, 20, 25, 0.35);
}

.company-meta {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.company-name {
    font-family: "Oswald", system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: 0.12em;
    font-size: 0.95rem;
    color: #fff;
}

.company-sub {
    font-size: 19px;
    color: var(--muted);
    margin-top: 2px;
    transform: translateY(1px);
}

.header-right {
    display: flex;
    gap: 18px;
    align-items: center;
    color: var(--muted);
    font-family: "Roboto Mono", monospace;
    font-size: 13px;
}

.info-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    min-width: 96px;
}

.coord-label {
    font-size: 10px;
    color: #8e9aa6;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.coord-box {
    background: rgba(255, 255, 255, 0.02);
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    min-width: 84px;
    text-align: right;
}

.coord-row {
    line-height: 1;
    font-variant-numeric: tabular-nums;
    color: #dfe8ef;
    font-size: 13px;
}

.clock-box {
    background: linear-gradient(90deg, rgba(111, 180, 255, 0.08), rgba(77, 168, 255, 0.06));
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid rgba(111, 180, 255, 0.12);
    color: #eaf6ff;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

/* 小屏适配 */
@media (max-width: 880px) {
    .site-header {
        padding: 0 14px;
    }

    .company-name {
        font-size: .88rem;
    }

    .header-right {
        gap: 10px;
        font-size: 12px;
    }

    .info-group {
        min-width: 72px;
    }
}

/* ---------- 页面容器 ---------- */
#pager {
    position: relative;
    width: 100%;
    height: calc(100% - 64px - 80px);
    margin-top: 64px;
    z-index: 1;
}



/* ---------- 单页 ---------- */
/* ---------- 单页（卡片本体） ---------- */

.page {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.page.active {
    pointer-events: auto;
    z-index: 2;
}

.page.prev {
    z-index: 1;
}

/* 只让 frame 动画 */
.page-frame {

    position: absolute;
    inset: 0;
    padding: 70px;

    opacity: 0;
    transform: translateY(40px);

    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}

.page.active .page-frame {
    opacity: 1;
    transform: translateY(0);
}

.page.prev .page-frame {
    opacity: 0;
    transform: scale(0.98);
}

/* 滚动层不参与 transform */
.page-scroll {
    height: 100%;
    overflow-y: auto;

    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE / Edge Legacy */

    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.page-scroll::-webkit-scrollbar {
    width: 0;
    height: 0;
}

/* ---------- 内容 ---------- */
h1 {
    font-size: 48px;
    margin: 0 0 20px;
}

p {
    max-width: 720px;

    line-height: 1.6;
    color: var(--muted);
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.card {
    background: rgba(255, 255, 255, 0.03);
    padding: 24px;
    border: 1px solid rgba(255, 225, 0, 0.381);
}

/* ---------- 选中动画 ---------- */
#corner-indicator {
    position: fixed;
    left: 0;
    top: 0;
    width: 0;
    height: 0;
    pointer-events: none;
    z-index: 9999;

    transition:
        transform .45s cubic-bezier(.25, 1, .5, 1),
        width .35s cubic-bezier(.25, 1, .5, 1),
        height .35s cubic-bezier(.25, 1, .5, 1),
        opacity .2s ease;
    opacity: 0;
}

#corner-indicator span {
    position: absolute;
    font-size: 18px;
    color: var(--accent);
}

#corner-indicator .tl {
    left: -14px;
    top: -14px;
}

#corner-indicator .tr {
    right: -14px;
    top: -14px;
}

#corner-indicator .bl {
    left: -14px;
    bottom: -14px;
}

#corner-indicator .br {
    right: -14px;
    bottom: -14px;
}

/* ---------- 页脚 ---------- */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    padding: 12px 40px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-text {
    font-size: 12px;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
}

#progress {
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    position: relative;
}

#progress span {
    position: absolute;
    inset: 0;
    width: 0%;
    background: var(--accent);
    transition: width .4s ease;
}

/*小屏适配*/
@media (max-width: 1024px) {
    .page {
        padding: 48px;
    }
}

@media (max-width: 768px) {
    .page {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .page {
        padding: 16px;
    }
}

/*--------------------------------*/
@media (max-width: 768px) {
    h1 {
        font-size: 32px;
    }

    p {
        font-size: 14px;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 26px;
    }
}

/*--------------------------------*/
@media (max-width: 1024px) {
    .cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/*--------------------------------*/
@media (max-width: 480px) {
    .footer-text {
        flex-direction: column;
        gap: 4px;
    }
}

/*--------------------------------*/
@media (max-width: 768px) {
    .grid-glow {
        opacity: 0.5;
    }
}

@media (max-width: 480px) {
    .grid-glow {
        display: none;
    }
}

/*--------------------------------*/
@media (hover: none) {

    [data-selectable]::before,
    [data-selectable]::after,
    .corner-host::before,
    .corner-host::after {
        display: none;
    }
}

/*--------------------------------*/
@media (max-width: 480px) {
    .info-group {
        display: none;
    }
}

/*--------------------------------*/