:root {
  --bg: #02050a;
  --panel: rgba(11, 18, 28, 0.78);
  --panel-strong: rgba(8, 13, 22, 0.94);
  --line: rgba(132, 221, 255, 0.16);
  --line-strong: rgba(65, 245, 193, 0.36);
  --text: #f1f7ff;
  --muted: rgba(241, 247, 255, 0.68);
  --cyan: #45dcff;
  --green: #41f5c1;
  --violet: #9a7dff;
  --amber: #ffd37a;
  --pink: #ff72b6;
  --danger: #ff8268;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.44);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Avenir Next", "SF Pro Display", "PingFang TC", "Noto Sans TC", sans-serif;
  background:
    radial-gradient(circle at 18% 10%, rgba(69, 220, 255, 0.18), transparent 28%),
    radial-gradient(circle at 84% 26%, rgba(154, 125, 255, 0.18), transparent 26%),
    linear-gradient(180deg, #02050a 0%, #07101b 48%, #02050a 100%);
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 20%, black, transparent 70%);
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 76px;
}
.topbar, .nav-links, .hero-grid, .workspace, .card-head, .file-row, .report-top, .metric-row, .action-row { display: flex; }
.topbar { justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.nav-links { gap: 10px; flex-wrap: wrap; }
.brand-pill, .top-link, .panel, .secondary-btn, .icon-btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}
.brand-pill, .top-link { border-radius: 999px; padding: 11px 16px; color: var(--muted); font-size: 14px; }
.panel { border-radius: 30px; background: linear-gradient(180deg, rgba(17, 25, 38, 0.82), rgba(5, 9, 16, 0.9)); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 430px); gap: 22px; align-items: end; margin-bottom: 24px; }
.hero-copy { padding: 42px 0 22px; }
.eyebrow, .section-kicker { margin: 0 0 14px; color: var(--muted); letter-spacing: 0.22em; text-transform: uppercase; font-size: 0.78rem; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 16px; font-family: "Noto Serif TC", "Songti TC", serif; font-weight: 500; font-size: clamp(3rem, 7vw, 4.75rem); line-height: 1.04; letter-spacing: -0.04em; }
h2 { margin-bottom: 8px; font-family: "Noto Serif TC", "Songti TC", serif; font-size: clamp(1.55rem, 3vw, 2.25rem); font-weight: 500; }
h3 { margin-bottom: 12px; font-size: 1.08rem; }
.lead { max-width: 780px; color: var(--muted); line-height: 1.9; font-size: 1.05rem; }
.alias-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.alias-row span {
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  padding: 9px 12px;
  color: rgba(241,247,255,.78);
  background: linear-gradient(135deg, rgba(255,114,182,.12), rgba(69,220,255,.08));
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  font-size: .9rem;
}
.privacy-card { padding: 24px; border-color: rgba(65, 245, 193, 0.24); }
.shield-icon { color: var(--green); font-size: 1.5rem; margin-bottom: 12px; }
.privacy-card p, .privacy-card small, .soft-note, .empty-card p, .report-copy p { color: var(--muted); line-height: 1.75; }
.privacy-card small { display: block; }
.workspace { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.72fr); gap: 20px; align-items: start; }
.left-stack, .right-stack { display: grid; gap: 16px; }
.dropzone { width: 100%; min-height: 260px; padding: 32px; color: var(--text); border-style: dashed; border-color: rgba(69, 220, 255, 0.32); display: grid; place-items: center; text-align: center; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.dropzone input { display: none; }
.dropzone:hover, .dropzone.dragging { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: 0 0 44px rgba(69,220,255,.14); }
.upload-icon { width: 72px; height: 72px; border-radius: 24px; display: grid; place-items: center; margin-bottom: 18px; background: linear-gradient(135deg, rgba(69,220,255,.22), rgba(255,114,182,.16)); color: #83fbff; font-size: 2.4rem; }
.dropzone strong { font-size: clamp(1.25rem, 2vw, 1.75rem); }
.dropzone small { color: var(--muted); }
.preview-card, .control-card, .metadata-card, .empty-card, .report, .message { padding: 24px; }
.card-head { justify-content: space-between; align-items: center; gap: 16px; }
.card-head.compact { justify-content: flex-start; align-items: center; }
.icon-btn { width: 40px; height: 40px; border-radius: 14px; color: var(--text); font-size: 1.4rem; }
.image-frame { position: relative; overflow: hidden; margin-top: 14px; border-radius: 24px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.035); }
.image-frame img { width: 100%; max-height: 560px; object-fit: contain; }
.scan-line { position: absolute; inset-inline: 0; top: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--green), transparent); box-shadow: 0 0 26px rgba(65,245,193,.7); animation: scan 1.65s linear infinite; }
.file-row { flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.file-row span, .metric-row span { padding: 8px 11px; border-radius: 999px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.04); color: var(--muted); font-size: 13px; }
.empty-card strong { display: block; margin-bottom: 8px; }
.radar-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 15px; color: var(--cyan); background: rgba(69,220,255,.1); }
.step-list { display: grid; gap: 10px; margin: 18px 0; }
.step-list div { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: center; padding: 12px; border-radius: 16px; border: 1px solid rgba(255,255,255,.075); color: var(--muted); }
.step-list span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 12px; background: rgba(255,255,255,.06); }
.step-list p { margin: 0; }
.step-list div.active { border-color: rgba(69,220,255,.48); color: var(--text); box-shadow: 0 0 24px rgba(69,220,255,.16); }
.step-list div.done span { background: rgba(65,245,193,.13); color: var(--green); }
.primary-btn, .secondary-btn { min-height: 52px; border: none; border-radius: 16px; padding: 12px 18px; font-weight: 800; }
.primary-btn { width: 100%; color: #031018; background: linear-gradient(135deg, var(--cyan), var(--green) 55%, var(--amber)); box-shadow: 0 18px 40px rgba(65,245,193,.18); }
.primary-btn:disabled { opacity: .45; cursor: not-allowed; }
.meta-grid { display: grid; gap: 10px; }
.meta-grid div { display: grid; gap: 4px; padding: 12px; border-radius: 14px; border: 1px solid rgba(255,255,255,.075); background: rgba(255,255,255,.035); }
.meta-grid span { color: rgba(241,247,255,.52); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; }
.meta-grid strong { overflow-wrap: anywhere; }
.meta-grid div.warning { border-color: rgba(255,211,122,.42); background: rgba(255,211,122,.08); }
.message.error { border-color: rgba(255,130,104,.36); color: #ffe4dc; margin-top: 18px; }
.report { margin-top: 20px; }
.report-top { align-items: center; gap: 24px; margin-bottom: 20px; }
.gauge { flex: 0 0 auto; width: 184px; height: 184px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(from -90deg, var(--green), var(--amber), var(--pink) var(--score-angle, 0deg), rgba(255,255,255,.08) var(--score-angle, 0deg)); box-shadow: 0 0 36px rgba(69,220,255,.2); }
.gauge-core { width: 138px; height: 138px; border-radius: 50%; display: grid; place-items: center; text-align: center; background: #050912; }
.gauge-core span { font-size: 3.1rem; font-weight: 900; letter-spacing: -.08em; }
.gauge-core small { max-width: 86px; color: var(--muted); line-height: 1.25; }
.verdict { display: inline-flex; margin-bottom: 10px; padding: 9px 12px; border-radius: 999px; font-weight: 800; background: rgba(255,255,255,.08); }
.verdict.danger { background: rgba(255,130,104,.16); color: #ffad9b; }
.verdict.warning { background: rgba(255,211,122,.16); color: var(--amber); }
.verdict.safe { background: rgba(65,245,193,.14); color: var(--green); }
.metric-row, .action-row { flex-wrap: wrap; gap: 10px; }
.report-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.report-grid article { padding: 18px; border-radius: 20px; border: 1px solid rgba(255,255,255,.075); background: rgba(255,255,255,.035); }
.signal-list { display: grid; gap: 10px; }
.signal { padding: 12px; border-radius: 14px; border-left: 3px solid rgba(255,255,255,.2); background: rgba(0,0,0,.16); }
.signal p, .signal small { color: var(--muted); line-height: 1.6; }
.signal.high, .signal.critical { border-color: var(--danger); }
.signal.medium, .signal.warning { border-color: var(--amber); }
.signal.low, .signal.info { border-color: var(--green); }
.tip-list { display: grid; gap: 10px; padding: 0; margin: 0; list-style: none; color: var(--muted); line-height: 1.65; }
.tip-list li::before { content: "✓"; color: var(--green); margin-right: 8px; }
.secondary-btn { color: var(--text); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); margin-top: 18px; }
@keyframes scan { from { transform: translateY(0); } to { transform: translateY(560px); } }
@media (max-width: 980px) { .hero-grid, .workspace, .report-grid { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .page-shell { width: min(100vw - 24px, 1180px); padding-top: 18px; } .hero-copy { padding-top: 24px; } .dropzone, .preview-card, .control-card, .metadata-card, .empty-card, .report, .message { padding: 18px; border-radius: 24px; } .report-top { flex-direction: column; align-items: flex-start; } .gauge { width: 154px; height: 154px; } .gauge-core { width: 116px; height: 116px; } }
