
/* ============================================================
   tech-theme.css —— 科技感增强主题（叠加在 style.css 之上）
   保持深蓝基调，增加网格、光晕、扫描线、霓虹描边与悬浮动效
   ============================================================ */

/* ---------- 全局背景：深蓝渐变 + 科技网格 + 扫描光带 ---------- */
body {
    background:
        radial-gradient(1100px 620px at 10% -12%, rgba(0, 212, 255, .16), transparent 62%),
        radial-gradient(900px 520px at 102% -6%, rgba(0, 110, 255, .16), transparent 58%),
        radial-gradient(760px 460px at 50% 118%, rgba(0, 255, 214, .08), transparent 62%),
        #06101d;
    background-attachment: fixed;
}
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(0, 212, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, .05) 1px, transparent 1px);
    background-size: 46px 46px, 46px 46px;
    -webkit-mask-image: radial-gradient(circle at 50% 28%, #000 0%, transparent 76%);
    mask-image: radial-gradient(circle at 50% 28%, #000 0%, transparent 76%);
    animation: techGridDrift 26s linear infinite;
}
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 212, 255, .06) 50%, transparent 100%);
    background-size: 100% 240px;
    background-repeat: no-repeat;
    animation: techScanSweep 10s linear infinite;
    opacity: .65;
}
.layout, .m-layout { position: relative; z-index: 1; }
.m-layout { background: transparent; }

@keyframes techGridDrift {
    from { background-position: 0 0, 0 0; }
    to   { background-position: 46px 46px, 46px 46px; }
}
@keyframes techScanSweep {
    0%   { background-position: 0 -260px; }
    100% { background-position: 0 100vh; }
}

/* ---------- 侧边栏 / 顶栏：霓虹描边与玻璃质感 ---------- */
.sidebar {
    background: linear-gradient(180deg, #071624 0%, #04101d 58%, #06182b 100%);
    box-shadow: 4px 0 32px rgba(0, 0, 0, .45), 0 0 24px rgba(0, 212, 255, .06);
}
.sidebar .logo { position: relative; text-shadow: 0 0 14px rgba(0, 212, 255, .55); }
.sidebar .logo::after {
    content: '';
    position: absolute;
    left: 16px; right: 16px; bottom: 0; height: 1px;
    background: linear-gradient(90deg, transparent, #00d4ff, transparent);
    opacity: .8;
}
.sidebar .menu li a {
    position: relative;
    transition: background .2s, color .2s, padding-left .2s, box-shadow .2s;
}
.sidebar .menu li a:hover {
    padding-left: 24px;
    box-shadow: inset 0 0 24px rgba(0, 212, 255, .08);
}
.topbar {
    background: linear-gradient(90deg, rgba(9, 26, 45, .95), rgba(11, 34, 58, .78));
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 212, 255, .18), 0 10px 30px rgba(0, 0, 0, .35);
    position: sticky;
}
.topbar::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -1px; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, .75), transparent);
    background-size: 55% 100%;
    background-repeat: no-repeat;
    animation: techLineFlow 7s linear infinite;
}
@keyframes techLineFlow {
    from { background-position: -60% 0; }
    to   { background-position: 160% 0; }
}

/* ---------- 卡片：渐变玻璃 + 四角科技描边 ---------- */
.card {
    background: linear-gradient(160deg, rgba(17, 34, 64, .94) 0%, rgba(9, 24, 44, .9) 100%);
    box-shadow: inset 0 1px 0 rgba(120, 220, 255, .06), 0 12px 34px rgba(0, 0, 0, .28);
    position: relative;
}
.card::before,
.card::after {
    content: '';
    position: absolute;
    width: 18px; height: 18px;
    pointer-events: none;
    opacity: .65;
}
.card::before {
    top: -1px; left: -1px;
    border-top: 2px solid rgba(0, 212, 255, .55);
    border-left: 2px solid rgba(0, 212, 255, .55);
    border-top-left-radius: 8px;
}
.card::after {
    right: -1px; bottom: -1px;
    border-bottom: 2px solid rgba(0, 212, 255, .45);
    border-right: 2px solid rgba(0, 212, 255, .45);
    border-bottom-right-radius: 8px;
}
.card h3 { text-shadow: 0 0 12px rgba(0, 212, 255, .35); }

/* ---------- 统计卡片：悬浮 + 光斑 ---------- */
.stat-row { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.stat-card {
    background: linear-gradient(135deg, rgba(17, 34, 64, .96), rgba(9, 26, 48, .88));
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.stat-card::after {
    content: '';
    position: absolute;
    right: -36px; top: -36px;
    width: 100px; height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 255, .18), transparent 70%);
    pointer-events: none;
}
.stat-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 212, 255, .45);
    box-shadow: 0 14px 34px rgba(0, 212, 255, .12);
}
.stat-card .num { text-shadow: 0 0 16px rgba(0, 212, 255, .35); }

/* ---------- 表格：表头发光 + 斑马纹 ---------- */
table.tbl th {
    background: linear-gradient(180deg, #0a1830 0%, #081426 100%);
    letter-spacing: .4px;
    box-shadow: inset 0 -1px 0 rgba(0, 212, 255, .18);
}
table.tbl tbody tr:nth-child(even) { background: rgba(255, 255, 255, .014); }
table.tbl tbody tr { transition: background .15s; }
table.tbl tbody tr:hover { background: rgba(0, 212, 255, .07); }

/* ---------- 按钮：霓虹光晕 ---------- */
.btn { transition: opacity .2s, box-shadow .25s, transform .15s; }
.btn:hover { box-shadow: 0 0 18px rgba(0, 212, 255, .42); }
.btn:active { transform: translateY(1px); }
.btn.ghost:hover { box-shadow: 0 0 16px rgba(0, 212, 255, .3); }

/* ---------- 登录页：光环 + 网格 ---------- */
.login-wrap {
    background:
        radial-gradient(circle at 50% 40%, rgba(0, 212, 255, .14), transparent 48%),
        radial-gradient(ellipse at center, #0f2540 0%, #071322 72%);
    position: relative;
    overflow: hidden;
}
.login-wrap::before {
    content: '';
    position: absolute;
    width: 520px; height: 520px;
    border: 1px solid rgba(0, 212, 255, .18);
    border-radius: 50%;
    animation: techRing 18s linear infinite;
}
.login-wrap::after {
    content: '';
    position: absolute;
    width: 360px; height: 360px;
    border: 1px dashed rgba(0, 212, 255, .14);
    border-radius: 50%;
    animation: techRing 14s linear infinite reverse;
}
@keyframes techRing {
    from { transform: rotate(0deg) scale(1); }
    50%  { transform: rotate(180deg) scale(1.04); }
    to   { transform: rotate(360deg) scale(1); }
}
.login-card {
    position: relative;
    z-index: 2;
    box-shadow: 0 0 60px rgba(0, 212, 255, .2), inset 0 0 0 1px rgba(0, 212, 255, .08);
}

/* ---------- 移动端：顶栏光效 + 入口卡片 ---------- */
.m-header {
    background: linear-gradient(90deg, rgba(8, 24, 44, .96), rgba(12, 38, 64, .82));
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(0, 212, 255, .3), 0 10px 26px rgba(0, 0, 0, .38);
    text-shadow: 0 0 14px rgba(0, 212, 255, .55);
    position: sticky;
}
.m-header::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -1px; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, .8), transparent);
    background-size: 55% 100%;
    background-repeat: no-repeat;
    animation: techLineFlow 6s linear infinite;
}
.m-entry {
    background: linear-gradient(160deg, rgba(17, 34, 64, .94), rgba(9, 24, 44, .92));
    position: relative;
    overflow: hidden;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.m-entry::before {
    content: '';
    position: absolute;
    top: -20px; right: -20px;
    width: 72px; height: 72px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 255, .22), transparent 70%);
    pointer-events: none;
}
.m-entry::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 14px; height: 14px;
    border-top: 1px solid rgba(0, 212, 255, .6);
    border-left: 1px solid rgba(0, 212, 255, .6);
    border-top-left-radius: 8px;
    pointer-events: none;
}
.m-entry:active {
    transform: scale(.965);
    border-color: rgba(0, 212, 255, .55);
    box-shadow: 0 0 22px rgba(0, 212, 255, .16);
}
.m-entry .icon {
    filter: drop-shadow(0 0 12px rgba(0, 212, 255, .5));
}
.m-info-card {
    background: linear-gradient(160deg, rgba(17, 34, 64, .94), rgba(9, 24, 44, .9));
    box-shadow: inset 0 1px 0 rgba(120, 220, 255, .05), 0 8px 24px rgba(0, 0, 0, .25);
}

/* ---------- 移动端巡检统计页 ---------- */
.m-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}
.m-stat-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(150deg, rgba(17, 34, 64, .96), rgba(8, 22, 42, .9));
    border: 1px solid rgba(26, 58, 92, .95);
    border-radius: 8px;
    padding: 12px 14px;
}
.m-stat-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0; width: 3px;
    background: #00d4ff;
    box-shadow: 0 0 12px rgba(0, 212, 255, .6);
}
.m-stat-card.warn::before { background: #ff9f43; box-shadow: 0 0 12px rgba(255, 159, 67, .6); }
.m-stat-card.danger::before { background: #ff5e57; box-shadow: 0 0 12px rgba(255, 94, 87, .6); }
.m-stat-card.ok::before { background: #2ed573; box-shadow: 0 0 12px rgba(46, 213, 115, .6); }
.m-stat-card .label { color: #6b8fb5; font-size: 12px; }
.m-stat-card .num { font-size: 24px; font-weight: bold; color: #00d4ff; line-height: 1.2; margin-top: 4px; }
.m-stat-card.warn .num { color: #ff9f43; }
.m-stat-card.danger .num { color: #ff5e57; }
.m-stat-card.ok .num { color: #2ed573; }

.m-section {
    background: linear-gradient(160deg, rgba(17, 34, 64, .94), rgba(9, 24, 44, .9));
    border: 1px solid rgba(26, 58, 92, .95);
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 12px;
}
.m-section h3 {
    margin: 0 0 10px;
    font-size: 14px;
    color: #00d4ff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.m-section h3 .count {
    font-size: 12px;
    color: #6b8fb5;
    font-weight: normal;
}
.m-detail-list { max-height: 380px; overflow-y: auto; }
.m-detail-item {
    padding: 9px 0;
    border-bottom: 1px dashed rgba(26, 58, 92, .9);
}
.m-detail-item:last-child { border-bottom: none; }
.m-detail-item .di-top {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
}
.m-detail-item .di-top code { color: #00d4ff; font-size: 12px; word-break: break-all; }
.m-detail-item .di-park { color: #6b8fb5; font-size: 11px; white-space: nowrap; }
.m-detail-item .di-name { color: #cfe8ff; font-size: 13px; margin-top: 3px; }
.m-detail-item .di-meta { color: #8fa8c4; font-size: 11.5px; margin-top: 2px; }
.m-detail-item .di-remark { color: #ffd966; font-size: 12px; margin-top: 4px; line-height: 1.5; }
.m-detail-item .di-photos { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.m-detail-item .di-photos img {
    width: 58px; height: 58px; object-fit: cover;
    border-radius: 4px; border: 1px solid rgba(0, 212, 255, .3);
}
.m-empty { color: #6b8fb5; font-size: 12.5px; text-align: center; padding: 10px 0; }

@media (prefers-reduced-motion: reduce) {
    body::before, body::after, .topbar::after, .m-header::after,
    .login-wrap::before, .login-wrap::after { animation: none; }
    .stat-card, .m-entry, .btn, table.tbl tbody tr { transition: none; }
}

/* 登录页光环居中修正 */
.login-wrap::before {
    top: 50%; left: 50%;
    margin: -260px 0 0 -260px;
}
.login-wrap::after {
    top: 50%; left: 50%;
    margin: -180px 0 0 -180px;
}
