:root {
  --jane-blue: #0052ff;
  --jane-blue-light: #4f7dff;
  --jane-blue-dark: #0038b8;
  --jane-white: #ffffff;
  --jane-gray: #c7d2ff;
  --jane-black: #050816;
}

/* ===== 全局布局 & 背景 ===== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  color: var(--jane-white);
  background: var(--jane-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.app {
  position: relative;
  width: 100%;
  max-width: 1080px;
  min-height: 640px;
  padding: 24px 24px 20px;
  background: transparent;
  border: 4px solid var(--jane-blue-light);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

/* 背景叠加：模糊文字 + 大水印头像 */
.app::before,
.app::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

/* 模糊文字背景 */
.app::before {
  background: url("fuzzy-bg.svg") no-repeat;
  background-position: left 80px center;
  background-size: 820px auto;
  opacity: 0.75;
  mix-blend-mode: screen;
}

/* 大号 JANE 头像水印 */
.app::after {
  background: url("jane-logo.png") no-repeat;
  background-position: right 5% center;
  background-size: 420px 420px;
  opacity: 0.1;
  mix-blend-mode: screen;
}

/* 像素边角装饰 */
.pixel-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  background: var(--jane-white);
  image-rendering: pixelated;
}

.pixel-corner.tl {
  top: 0;
  left: 0;
}

.pixel-corner.tr {
  top: 0;
  right: 0;
}

.pixel-corner.bl {
  bottom: 0;
  left: 0;
}

.pixel-corner.br {
  bottom: 0;
  right: 0;
}

/* ===== 头部 ===== */

.header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

/* 左上角头像：使用 JANE 头像 */
.avatar {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: url("jane-logo.png") center/cover no-repeat;
  image-rendering: pixelated;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.45),
    0 12px 24px rgba(0, 0, 0, 0.6);
  flex-shrink: 0;
}

.title-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.subtitle {
  font-size: 13px;
  color: var(--jane-gray);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.social {
  margin-top: 2px;
  font-size: 12px;
  color: var(--jane-gray);
  display: flex;
  align-items: center;
  gap: 8px;
}

.social a {
  color: var(--jane-white);
  text-decoration: none;
  opacity: 0.9;
}

.social a:hover {
  text-decoration: underline;
}

.social .dot {
  opacity: 0.7;
}

/* ===== 主体网格 ===== */

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 16px;
}

.panel {
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 15, 0.18);
  padding: 16px 14px 14px;
  border-radius: 18px;
  backdrop-filter: blur(18px);
}

.panel-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ===== 表单行 ===== */

.form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
}

.form-row label {
  font-size: 13px;
  margin-bottom: 4px;
  color: var(--jane-gray);
}

input,
select {
  width: 100%;
  padding: 8px 9px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.25);
  color: var(--jane-white);
  font-size: 13px;
  outline: none;
}

input::placeholder {
  color: rgba(199, 210, 255, 0.4);
}

input:focus,
select:focus {
  border-color: var(--jane-blue-light);
  box-shadow: 0 0 0 1px var(--jane-blue-light);
}

/* hint 文本 */

.hint {
  font-size: 11px;
  color: var(--jane-gray);
  opacity: 0.85;
  margin-top: -4px;
  margin-bottom: 8px;
}

/* ===== 结果网格（小卡片） ===== */

.results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 6px;
}

.stat {
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 14px;
  padding: 10px 9px;
  background: radial-gradient(
      circle at top left,
      rgba(255, 255, 255, 0.12),
      transparent 55%
    ),
    rgba(0, 6, 40, 0.7);
}

.stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--jane-gray);
  margin-bottom: 4px;
}

.stat-value {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.stat-sub {
  margin-top: 4px;
  font-size: 11px;
  color: rgba(199, 210, 255, 0.85);
}

/* ===== 大号结果块 ===== */

.mega-block {
  margin-top: 16px;
  border-radius: 18px;
  padding: 14px 12px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.16),
      transparent 55%
    ),
    rgba(0, 6, 60, 0.85);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.65);
}

.mega-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--jane-gray);
  margin-bottom: 6px;
}

.mega-main {
  font-size: 18px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.mega-main span {
  font-size: 24px;
  font-weight: 800;
}

.mega-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.mega-tag {
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 11px;
}

.mega-sub {
  margin-top: 8px;
  font-size: 10px;
  color: rgba(199, 210, 255, 0.8);
}

/* ===== 徽章行 ===== */

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.badge {
  font-size: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(0, 0, 0, 0.3);
}

.badge.accent {
  background: linear-gradient(
    135deg,
    #fffbeb,
    #fee4e2
  );
  color: #111827;
  border-color: rgba(255, 255, 255, 0.7);
}

/* ===== 页脚 ===== */

.footer {
  margin-top: 14px;
  font-size: 10px;
  color: rgba(199, 210, 255, 0.85);
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

/* ===== 响应式 ===== */

@media (max-width: 900px) {
  .app {
    max-width: 100%;
    min-height: 100vh;
    border-radius: 0;
  }

  .grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .pixel-corner {
    display: none;
  }

  .app::after {
    background-position: center bottom;
    background-size: 320px 320px;
  }
}
