/* ============================================================
   查验报告系统 · 前台样式（黑白科技 · MONO TECH EDITION）
   主题：黑白科技感
   主背景 #0a0a0f / 层次 #0f0f16 #14141d / 面板 rgba(18,18,26,.85)
   主文字 #e9e9f0 / 次文字 #8f8fa0 / 弱文字 #5d5d6e
   边框 #26262f / 高亮边框 #3a3a46
   点缀色：冰蓝 #8ab4ff #9be8ff / 银白 #d8d8e2
   ============================================================ */

:root {
    --bg-0: #0a0a0f;
    --bg-1: #0f0f16;
    --bg-2: #14141d;
    --panel: rgba(18, 18, 26, 0.85);
    --tx-0: #e9e9f0;
    --tx-1: #8f8fa0;
    --tx-2: #5d5d6e;
    --bd: #26262f;
    --bd-hi: #3a3a46;
    --ice: #8ab4ff;
    --ice-2: #9be8ff;
    --silver: #d8d8e2;
    --danger: #ff7a7a;
    --mono: Consolas, "JetBrains Mono", monospace;
    --sans: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--sans);
    background:
        radial-gradient(1100px 560px at 50% -120px, rgba(138, 180, 255, 0.05), transparent 62%),
        var(--bg-0);
    color: var(--tx-0);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

::selection {
    background: rgba(138, 180, 255, 0.28);
    color: #ffffff;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-0);
}

::-webkit-scrollbar-thumb {
    background: var(--bd-hi);
    border-radius: 5px;
    border: 2px solid var(--bg-0);
}

::-webkit-scrollbar-thumb:hover {
    background: #4a4a58;
}

:focus-visible {
    outline: 2px solid rgba(138, 180, 255, 0.7);
    outline-offset: 2px;
}

/* ==================== 背景层 ==================== */

/* 1px 细网格（叠加粗网格增强纵深） */
.bg-grid {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(216, 216, 226, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(216, 216, 226, 0.05) 1px, transparent 1px),
        linear-gradient(rgba(138, 180, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(138, 180, 255, 0.03) 1px, transparent 1px);
    background-size: 44px 44px, 44px 44px, 220px 220px, 220px 220px;
    -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 38%, rgba(0, 0, 0, 0.85), transparent 78%);
    mask-image: radial-gradient(ellipse 90% 70% at 50% 38%, rgba(0, 0, 0, 0.85), transparent 78%);
}

/* 顶部冰蓝环境光 */
.bg-glow {
    position: fixed;
    top: -220px;
    left: 50%;
    transform: translateX(-50%);
    width: 980px;
    height: 520px;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at center, rgba(138, 180, 255, 0.09) 0%, rgba(138, 180, 255, 0.03) 40%, transparent 70%);
    filter: blur(24px);
}

.particles-container {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

/* 上浮粒子（银白星点） */
.particle {
    position: absolute;
    bottom: -10px;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(216, 216, 226, 0.95), rgba(138, 180, 255, 0.15));
    box-shadow: 0 0 6px rgba(138, 180, 255, 0.55);
    opacity: 0;
    animation: starTwinkle linear infinite;
}

@keyframes starTwinkle {
    0%   { transform: translateY(0) scale(0.6); opacity: 0; }
    10%  { opacity: 0.9; }
    90%  { opacity: 0.5; }
    100% { transform: translateY(-105vh) scale(1.1); opacity: 0; }
}

/* ==================== 顶部信息栏 ==================== */
.top-bar {
    position: relative;
    z-index: 10;
    padding: 10px 6%;
    border-bottom: 1px solid var(--bd);
    background: linear-gradient(180deg, rgba(15, 15, 22, 0.92), rgba(10, 10, 15, 0.55));
    backdrop-filter: blur(8px);
}

.top-info {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    max-width: 1100px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    color: var(--tx-1);
    letter-spacing: 0.5px;
}

.info-item #beijing-time,
.info-item #ip-address {
    font-family: var(--mono);
    color: var(--tx-0);
    font-size: 12px;
}

.info-icon {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--ice);
    border: 1px solid var(--bd-hi);
    border-radius: 4px;
    background: rgba(138, 180, 255, 0.06);
    filter: grayscale(1) brightness(1.35);
}

.info-label {
    font-family: var(--mono);
    font-size: 9.5px;
    letter-spacing: 2px;
    color: var(--tx-2);
}

/* ==================== 主容器 ==================== */
.main-container {
    position: relative;
    z-index: 5;
    max-width: 640px;
    margin: 0 auto;
    padding: 46px 20px 30px;
}

/* ==================== 标题区域 ==================== */
.header-section {
    text-align: center;
    margin-bottom: 38px;
}

/* 圆形品牌徽章（黑白内衬 + 冰蓝描边 + 扫描线） */
.circle-logo-badge {
    position: relative;
    width: 104px;
    height: 104px;
    margin: 0 auto 26px;
}

/* 外圈旋转虚线环 */
.circle-logo-badge::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px dashed rgba(138, 180, 255, 0.35);
    animation: ringSpin 18s linear infinite;
}

/* 内衬深色圆盘 + 冰蓝外发光 */
.circle-logo-badge::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(20, 20, 29, 0.6), rgba(10, 10, 15, 0.92));
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.65), 0 0 26px rgba(138, 180, 255, 0.1);
    z-index: 1;
}

@keyframes ringSpin {
    to { transform: rotate(360deg); }
}

.circle-logo-ring {
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    z-index: 2;
    background: linear-gradient(160deg, #3a3a46, #14141d 55%, #26262f);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    padding: 2px;
}

.circle-logo-img-wrap {
    position: absolute;
    inset: 9px;
    border-radius: 50%;
    overflow: hidden;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(138, 180, 255, 0.28);
    background: var(--bg-1);
}

.circle-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

/* 徽章扫描霓虹线 */
.circle-logo-scan {
    position: absolute;
    inset: 0;
    z-index: 4;
    border-radius: 50%;
    overflow: hidden;
    pointer-events: none;
}

.circle-logo-scan::after {
    content: '';
    position: absolute;
    left: 6px;
    right: 6px;
    top: -10px;
    height: 26px;
    background: linear-gradient(180deg, transparent, rgba(155, 232, 255, 0.55), transparent);
    animation: logoScan 3.2s ease-in-out infinite;
}

@keyframes logoScan {
    0%   { top: -10px; opacity: 0; }
    12%  { opacity: 1; }
    100% { top: 104px; opacity: 0; }
}

.brand-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 8px;
    text-indent: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #d8d8e2 45%, #8f8fa0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    margin-bottom: 12px;
    text-align: center;
}

/* 标识标签 */
.title-tags {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 14px;
}

.title-tag {
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 3px;
    padding: 4px 12px;
    color: var(--tx-1);
    border: 1px solid var(--bd);
    border-radius: 3px;
    background: rgba(20, 20, 29, 0.6);
}

.title-tag.accent {
    color: var(--ice);
    border-color: rgba(138, 180, 255, 0.45);
    background: rgba(138, 180, 255, 0.06);
}

.main-title {
    font-size: 44px;
    font-weight: 800;
    letter-spacing: 18px;
    text-indent: 18px;
    background: linear-gradient(180deg, #f4f4fa 0%, #d8d8e2 55%, #a9b4cc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.title-sub {
    margin-top: 10px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 6px;
    color: var(--tx-2);
    text-transform: uppercase;
}

/* 发光分隔线 + 中点 */
.title-line {
    width: 200px;
    height: 1px;
    margin: 22px auto 0;
    position: relative;
    background: linear-gradient(90deg, transparent, rgba(138, 180, 255, 0.55) 30%, rgba(155, 232, 255, 0.75) 50%, rgba(138, 180, 255, 0.55) 70%, transparent);
}

.title-line::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--ice-2);
    box-shadow: 0 0 10px rgba(155, 232, 255, 0.9);
}

/* ==================== 输入区域 ==================== */
.input-card {
    position: relative;
    background: linear-gradient(175deg, rgba(20, 20, 29, 0.94) 0%, rgba(18, 18, 26, 0.9) 100%);
    border: 1px solid var(--bd);
    border-radius: 6px;
    padding: 34px 34px 24px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6), 0 0 20px rgba(138, 180, 255, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

/* 四角 L 形角标 */
.corner {
    position: absolute;
    width: 20px;
    height: 20px;
    pointer-events: none;
    z-index: 2;
}

.corner.tl { top: 0; left: 0; border-top: 2px solid var(--bd-hi); border-left: 2px solid var(--bd-hi); }
.corner.tr { top: 0; right: 0; border-top: 2px solid var(--bd-hi); border-right: 2px solid var(--bd-hi); }
.corner.bl { bottom: 0; left: 0; border-bottom: 2px solid var(--bd-hi); border-left: 2px solid var(--bd-hi); }
.corner.br { bottom: 0; right: 0; border-bottom: 2px solid var(--bd-hi); border-right: 2px solid var(--bd-hi); }

.input-card:focus-within .corner {
    border-color: rgba(138, 180, 255, 0.55);
}

/* 卡片顶部扫描霓虹线 */
.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(155, 232, 255, 0.85), transparent);
    animation: scanMove 3.6s ease-in-out infinite;
}

@keyframes scanMove {
    0%   { transform: translateX(-100%); opacity: 0; }
    15%  { opacity: 1; }
    85%  { opacity: 1; }
    100% { transform: translateX(100%); opacity: 0; }
}

/* 卡片头部（终端状态行） */
.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.card-title {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 3px;
    color: var(--tx-1);
}

.card-idx {
    color: var(--ice);
    margin-right: 8px;
}

.card-status {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--tx-2);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ice-2);
    box-shadow: 0 0 8px rgba(155, 232, 255, 0.8);
    animation: pulseDot 1.8s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.35; }
}

.input-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--tx-0);
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.label-icon {
    font-size: 14px;
    color: var(--ice);
    filter: grayscale(1) brightness(1.4);
}

.input-wrapper {
    position: relative;
}

.tech-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    letter-spacing: 2px;
    font-family: var(--mono);
    color: var(--tx-0);
    background: rgba(10, 10, 15, 0.9);
    border: 1px solid var(--bd);
    border-radius: 4px;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.tech-input::placeholder {
    color: rgba(93, 93, 110, 0.8);
    letter-spacing: 1px;
    font-family: var(--sans);
}

.tech-input:focus {
    border-color: rgba(138, 180, 255, 0.55);
    box-shadow: 0 0 0 1px rgba(138, 180, 255, 0.18), 0 0 22px rgba(138, 180, 255, 0.14);
    background: rgba(12, 12, 18, 0.95);
}

.input-glow {
    position: absolute;
    inset: 0;
    border-radius: 4px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.input-wrapper:focus-within .input-glow {
    opacity: 1;
    box-shadow: inset 0 -1px 0 rgba(155, 232, 255, 0.55);
}

.input-hint {
    margin-top: 8px;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--tx-2);
    letter-spacing: 1px;
}

.input-hint::before {
    content: '// ';
    color: rgba(138, 180, 255, 0.6);
}

/* 剩余次数（扫描圆环仪表） */
.attempts-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 20px 0 22px;
    padding-top: 16px;
    border-top: 1px dashed var(--bd);
}

.attempts-text {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    color: var(--tx-1);
    letter-spacing: 2px;
}

.attempts-text::before {
    content: '';
    width: 7px;
    height: 7px;
    border: 1px solid rgba(138, 180, 255, 0.7);
    box-shadow: 0 0 8px rgba(138, 180, 255, 0.5);
    background: transparent;
}

.attempts-badge {
    position: relative;
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(138, 180, 255, 0.4);
    background: conic-gradient(from 0deg, rgba(138, 180, 255, 0.16), rgba(138, 180, 255, 0.02) 55%, transparent 55%);
    box-shadow: 0 0 16px rgba(138, 180, 255, 0.12), inset 0 0 12px rgba(138, 180, 255, 0.06);
}

.attempts-badge::before {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    border: 1px dashed rgba(216, 216, 226, 0.25);
}

.attempts-badge::after {
    content: 'REMAIN';
    position: absolute;
    bottom: -4px;
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 1px;
    color: var(--tx-2);
    white-space: nowrap;
}

.attempts-count {
    font-family: var(--mono);
    font-size: 20px;
    font-weight: 700;
    color: var(--silver);
    text-shadow: 0 0 10px rgba(216, 216, 226, 0.45);
}

.attempts-count.warning {
    color: var(--ice-2);
    text-shadow: 0 0 12px rgba(155, 232, 255, 0.55);
}

.attempts-count.danger {
    color: var(--danger);
    text-shadow: 0 0 12px rgba(255, 122, 122, 0.5);
}

/* 查验按钮（银白渐变 + 扫光） */
.verify-btn {
    position: relative;
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 8px;
    text-indent: 8px;
    color: #0a0a0f;
    font-family: var(--sans);
    background: linear-gradient(135deg, #f0f0f6 0%, #d8d8e2 40%, #a9a9b8 100%);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: transform 0.18s ease, filter 0.25s ease, box-shadow 0.25s ease;
}

.verify-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.55), 0 0 24px rgba(138, 180, 255, 0.28);
}

.verify-btn:active {
    transform: translateY(0);
}

.verify-btn.small {
    width: auto;
    padding: 11px 30px;
    font-size: 13px;
    letter-spacing: 4px;
    text-indent: 4px;
    margin-top: 14px;
}

.btn-text {
    position: relative;
    z-index: 2;
}

.btn-icon {
    position: relative;
    z-index: 2;
    margin-left: 4px;
}

/* 按钮扫光动画 */
.btn-glow {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 46px;
    z-index: 1;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.85), transparent);
    transform: skewX(-20deg);
    animation: btnSweep 3s ease-in-out infinite;
}

@keyframes btnSweep {
    0%   { left: -70px; }
    55%  { left: 115%; }
    100% { left: 115%; }
}

/* 卡片底部状态行 */
.card-foot {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--bd);
    font-family: var(--mono);
    font-size: 9.5px;
    letter-spacing: 1.5px;
    color: var(--tx-2);
}

/* ==================== 结果展示区域 ==================== */
.result-card {
    position: relative;
    background: linear-gradient(175deg, rgba(20, 20, 29, 0.96) 0%, rgba(18, 18, 26, 0.92) 100%);
    border: 1px solid var(--bd);
    border-radius: 6px;
    padding: 30px 34px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6), 0 0 20px rgba(138, 180, 255, 0.06);
    overflow: hidden;
    animation: cardIn 0.45s ease;
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.result-header {
    text-align: center;
    padding-bottom: 22px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--bd);
}

.result-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 4px;
    margin-bottom: 12px;
    padding: 6px 18px;
    border-radius: 3px;
}

.result-status.success {
    color: var(--ice-2);
    border: 1px solid rgba(138, 180, 255, 0.55);
    background: rgba(138, 180, 255, 0.08);
    text-shadow: 0 0 14px rgba(155, 232, 255, 0.4);
}

.result-status.success::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ice-2);
    box-shadow: 0 0 8px rgba(155, 232, 255, 0.9);
}

.result-status.error {
    color: #ff9a94;
    border: 1px solid rgba(255, 122, 122, 0.5);
    background: rgba(255, 122, 122, 0.07);
    text-shadow: 0 0 14px rgba(255, 122, 122, 0.35);
}

.result-status.error::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ff9a94;
    box-shadow: 0 0 8px rgba(255, 122, 122, 0.8);
}

.result-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--tx-0);
    letter-spacing: 2px;
    word-break: break-all;
}

/* 密码输入区域 */
.password-input-group {
    margin-bottom: 4px;
}

/* 文件展示区域 */
.file-info {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--bd);
    background: rgba(15, 15, 22, 0.65);
    border-radius: 4px;
    margin-bottom: 16px;
}

.file-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: linear-gradient(160deg, rgba(138, 180, 255, 0.14), rgba(138, 180, 255, 0.03));
    border: 1px solid rgba(138, 180, 255, 0.35);
    border-radius: 6px;
    filter: grayscale(1) brightness(1.2) contrast(0.95);
}

.file-details {
    min-width: 0;
}

.file-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--tx-0);
    word-break: break-all;
    margin-bottom: 6px;
}

.file-meta {
    font-family: var(--mono);
    font-size: 11.5px;
    color: var(--tx-1);
    letter-spacing: 0.5px;
}

.file-preview {
    margin-bottom: 16px;
}

.preview-image {
    width: 100%;
    max-height: 460px;
    object-fit: contain;
    border: 1px solid var(--bd);
    border-radius: 4px;
    cursor: zoom-in;
    background: rgba(10, 10, 15, 0.7);
    box-shadow: 0 0 20px rgba(138, 180, 255, 0.06);
}

.preview-placeholder {
    text-align: center;
    padding: 44px 20px;
    border: 1px dashed var(--bd-hi);
    border-radius: 4px;
    color: var(--tx-1);
    font-size: 14px;
    line-height: 1.9;
}

.placeholder-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 10px;
    filter: grayscale(1) brightness(1.1);
}

/* 文件操作按钮 */
.file-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.action-btn,
.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 26px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.18s ease, filter 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.action-btn.primary {
    flex: 1;
    min-width: 140px;
    color: #0a0a0f;
    background: linear-gradient(135deg, #f0f0f6 0%, #d8d8e2 40%, #a9a9b8 100%);
    border: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.download-btn {
    flex: 1;
    min-width: 140px;
    color: var(--silver);
    background: rgba(15, 15, 22, 0.7);
    border: 1px solid var(--bd-hi);
}

.action-btn.primary:hover,
.download-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
}

.action-btn.primary:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 22px rgba(138, 180, 255, 0.25);
}

.download-btn:hover {
    border-color: rgba(138, 180, 255, 0.5);
    color: var(--ice-2);
    box-shadow: 0 0 18px rgba(138, 180, 255, 0.15);
}

/* ==================== 底部信息 ==================== */
.footer {
    margin-top: 46px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(138, 180, 255, 0.35), transparent);
}

.footer-hud {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 2px;
    color: var(--tx-2);
}

.footer-dot {
    color: var(--ice);
}

/* ==================== 加载动画 ==================== */
.loading-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 18px;
    background: rgba(10, 10, 15, 0.88);
    backdrop-filter: blur(4px);
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    position: relative;
    width: 66px;
    height: 66px;
}

.spinner-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--ice);
    border-right-color: rgba(138, 180, 255, 0.25);
    animation: spin 1.1s linear infinite;
}

.spinner-ring:nth-child(2) {
    inset: 9px;
    border-top-color: var(--silver);
    border-right-color: rgba(216, 216, 226, 0.2);
    animation-duration: 1.6s;
    animation-direction: reverse;
}

.spinner-ring:nth-child(3) {
    inset: 18px;
    border-top-color: var(--bd-hi);
    animation-duration: 0.9s;
}

.loading-text {
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: 4px;
    color: var(--tx-1);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==================== 图片放大弹窗 ==================== */
.image-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(10, 10, 15, 0.94);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 40px;
}

.image-modal.active {
    display: flex;
}

.image-modal-content {
    max-width: 92vw;
    max-height: 82vh;
    object-fit: contain;
    border: 1px solid var(--bd-hi);
    border-radius: 4px;
    background: var(--bg-1);
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(138, 180, 255, 0.08);
}

.image-modal-caption {
    margin-top: 14px;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--tx-1);
}

.image-modal-close {
    position: absolute;
    top: 24px;
    right: 34px;
    font-size: 22px;
    color: var(--silver);
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--bd-hi);
    border-radius: 50%;
    background: rgba(20, 20, 29, 0.8);
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.image-modal-close:hover {
    background: rgba(138, 180, 255, 0.1);
    border-color: rgba(138, 180, 255, 0.5);
    color: var(--ice-2);
    transform: rotate(90deg);
}

/* ==================== Toast 提示 ==================== */
.toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-80px);
    z-index: 4000;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 240px;
    max-width: 88vw;
    padding: 13px 20px;
    border-radius: 4px;
    font-size: 14px;
    letter-spacing: 1px;
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2), opacity 0.3s ease;
    pointer-events: none;
    border: 1px solid var(--bd-hi);
    background: linear-gradient(175deg, rgba(20, 20, 29, 0.96), rgba(12, 12, 18, 0.96));
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.55);
}

.toast.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.success {
    color: var(--ice-2);
    border-color: rgba(138, 180, 255, 0.5);
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.55), 0 0 20px rgba(138, 180, 255, 0.1);
}

.toast.error {
    color: #ff9a94;
    border-color: rgba(255, 122, 122, 0.5);
}

.toast.warning {
    color: var(--silver);
    border-color: rgba(216, 216, 226, 0.4);
}

.toast.info {
    color: var(--tx-1);
    border-color: var(--bd-hi);
}

.toast-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    border-radius: 50%;
    border: 1px solid currentColor;
}

.toast.success .toast-icon { border-color: rgba(138, 180, 255, 0.6); color: var(--ice-2); }
.toast.error .toast-icon { border-color: rgba(255, 122, 122, 0.6); color: #ff9a94; }
.toast.warning .toast-icon { border-color: rgba(216, 216, 226, 0.5); color: var(--silver); }
.toast.info .toast-icon { border-color: var(--bd-hi); color: var(--tx-1); }

/* ==================== 响应式 ==================== */
@media (max-width: 560px) {
    .circle-logo-badge {
        width: 78px;
        height: 78px;
        margin-bottom: 18px;
    }

    .circle-logo-badge::before {
        inset: -5px;
    }

    .circle-logo-ring {
        inset: 4px;
    }

    .circle-logo-img-wrap {
        inset: 7px;
    }

    @keyframes logoScan {
        0%   { top: -8px; opacity: 0; }
        12%  { opacity: 1; }
        100% { top: 78px; opacity: 0; }
    }

    .brand-title {
        font-size: 18px;
        letter-spacing: 5px;
        text-indent: 5px;
        margin-bottom: 8px;
    }

    .main-container {
        padding: 28px 14px 20px;
    }

    .main-title {
        font-size: 30px;
        letter-spacing: 10px;
        text-indent: 10px;
    }

    .title-sub {
        font-size: 9.5px;
        letter-spacing: 4px;
    }

    .title-line {
        width: 160px;
    }

    .input-card {
        padding: 26px 20px 22px;
    }

    .result-card {
        padding: 22px 18px;
    }

    .file-actions {
        flex-direction: column;
    }

    .action-btn,
    .download-btn {
        width: 100%;
    }

    .card-foot {
        flex-direction: column;
        gap: 4px;
    }

    .top-bar {
        padding: 10px 4%;
    }

    .info-label {
        display: none;
    }
}

@media (max-width: 380px) {
    .main-title {
        font-size: 24px;
        letter-spacing: 8px;
        text-indent: 8px;
    }

    .footer-hud {
        flex-direction: column;
        gap: 4px;
    }

    .image-modal {
        padding: 20px;
    }

    .image-modal-close {
        top: 14px;
        right: 16px;
    }
}

/* ==================== 降级动效（无障碍） ==================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}