/* public/assets/css/hardware/touch-test.css */
.touch-wrapper { --p-bg: #ffffff; --p-border: #e2e8f0; --p-primary: #3b82f6; --p-primary-hover: #2563eb; --p-success: #10b981; --p-text: #0f172a; --p-text-muted: #64748b; width: 100%; max-width: 1100px; margin: 0 auto; background: var(--p-bg); border-radius: 20px; padding: 24px; border: 1px solid var(--p-border); box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05); box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.touch-wrapper *, .touch-wrapper *::before, .touch-wrapper *::after { box-sizing: border-box; }

.touch-header { text-align: center; margin-bottom: 24px; border-bottom: 1px solid var(--p-border); padding-bottom: 24px; }
.touch-title { font-size: 1.7rem; font-weight: 800; color: var(--p-text); margin: 0 0 10px 0; }
.touch-subtitle { font-size: 0.95rem; color: var(--p-text-muted); max-width: 800px; margin: 0 auto; line-height: 1.6; }

/* Dashboard */
.touch-dashboard { display: flex; gap: 16px; margin-bottom: 24px; background: #f8fafc; border: 1px solid var(--p-border); padding: 20px; border-radius: 16px; align-items: center; flex-wrap: wrap; }
.touch-stat-box { flex: 1; min-width: 150px; display: flex; flex-direction: column; gap: 6px; border-right: 1px solid var(--p-border); padding-right: 16px; }
.touch-stat-box:last-child { border-right: none; padding-right: 0; }
.touch-stat-label { font-size: 0.85rem; color: #64748b; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.touch-stat-val { font-size: 1.8rem; font-weight: 800; color: #1e293b; font-family: monospace; }
.touch-stat-val.highlight { color: var(--p-primary); }
.touch-stat-val.text-success { color: var(--p-success); }

.touch-stat-actions { margin-left: auto; display: flex; gap: 12px; }
.touch-btn-reset { padding: 12px 24px; border-radius: 10px; font-weight: 700; font-size: 1rem; color: #475569; background: #ffffff; border: 2px solid #cbd5e1; cursor: pointer; transition: 0.2s; }
.touch-btn-reset:hover { border-color: var(--p-primary); color: var(--p-primary); box-shadow: 0 4px 10px rgba(59, 130, 246, 0.1); }
.touch-btn-primary { padding: 12px 24px; border-radius: 10px; font-weight: 700; font-size: 1rem; color: #ffffff; background: var(--p-primary); border: none; cursor: pointer; transition: 0.2s; box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3); }
.touch-btn-primary:hover { background: var(--p-primary-hover); transform: translateY(-2px); box-shadow: 0 6px 15px rgba(59, 130, 246, 0.4); }

/* Radar Board */
.touch-board-container { position: relative; width: 100%; height: 500px; background: #020617; border-radius: 16px; box-shadow: inset 0 4px 30px rgba(0,0,0,0.6); overflow: hidden; 
    /* 【极客核心】彻底禁用浏览器的默认触控行为 (滑动、缩放) */
    touch-action: none; 
    user-select: none; 
    -webkit-user-select: none;
}
/* 全屏状态下的样式适配 */
.touch-board-container:fullscreen { height: 100vh; border-radius: 0; }
.touch-board-container:-webkit-full-screen { height: 100vh; border-radius: 0; }

.touch-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }

.touch-zone-hint { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 12px; pointer-events: none; z-index: 2; transition: opacity 0.3s; }
.touch-hint-icon { font-size: 3.5rem; opacity: 0.5; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5)); animation: float 3s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }
.touch-hint-text { color: rgba(255, 255, 255, 0.6); font-size: 1.2rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; text-align: center; }
.touch-hint-sub { color: rgba(255, 255, 255, 0.3); font-size: 0.9rem; text-align: center; }

/* 动态悬浮数据层 */
.touch-info-layer { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }
.touch-data-tooltip { position: absolute; background: rgba(15, 23, 42, 0.85); color: #fff; padding: 8px 12px; border-radius: 8px; font-family: monospace; font-size: 0.85rem; border-left: 4px solid; backdrop-filter: blur(4px); box-shadow: 0 4px 15px rgba(0,0,0,0.5); transform: translate(15px, -15px); pointer-events: none; }
.touch-data-tooltip div { margin-bottom: 3px; }
.touch-data-tooltip div:last-child { margin-bottom: 0; }

.touch-hint-card { background: #fef2f2; border-left: 4px solid #ef4444; padding: 16px; border-radius: 0 10px 10px 0; font-size: 0.9rem; color: #7f1d1d; line-height: 1.6; margin-top: 24px; }
.touch-hint-card code { background: rgba(239, 68, 68, 0.1); padding: 2px 6px; border-radius: 4px; font-family: monospace; }

/* 黑夜模式 */
[data-theme="dark"] .touch-wrapper { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .touch-title, [data-theme="dark"] .touch-stat-val { color: #f8fafc; }
[data-theme="dark"] .touch-subtitle, [data-theme="dark"] .touch-stat-label { color: #94a3b8; }
[data-theme="dark"] .touch-dashboard { background: #0f172a; border-color: #475569; }
[data-theme="dark"] .touch-stat-box { border-color: #334155; }
[data-theme="dark"] .touch-btn-reset { background: #1e293b; border-color: #475569; color: #cbd5e1; }
[data-theme="dark"] .touch-btn-reset:hover { border-color: var(--p-primary); color: #60a5fa; }
[data-theme="dark"] .touch-hint-card { background: rgba(239, 68, 68, 0.1); border-left-color: #ef4444; color: #fca5a5; }