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

:root {
  --bg-primary: #0f0f11;
  --bg-secondary: #1a1a1f;
  --bg-tertiary: #242429;
  --accent: #6366f1;
  --accent-hover: #818cf8;
  --accent-light: rgba(99, 102, 241, 0.1);
  --text-primary: #e8e8ed;
  --text-secondary: #9898a0;
  --text-muted: #6b6b73;
  --border: #2a2a30;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
}

body {
  font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 12px 16px;
  padding-top: calc(12px + env(safe-area-inset-top, 20px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 15, 17, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-primary);
}
.logo-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}
.logo-text {
  font-size: 18px;
  font-weight: 700;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s;
}
.header-btn:active {
  background: var(--bg-tertiary);
  color: var(--accent);
}

/* ===== Main Content ===== */
.main-content {
  padding: 80px 16px 20px;
  padding-top: calc(80px + env(safe-area-inset-top, 20px));
  padding-bottom: calc(100px + env(safe-area-inset-bottom, 20px));
}

/* ===== Section Header ===== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 28px 0 14px;
}
.section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title::before {
  content: '';
  width: 4px;
  height: 16px;
  background: linear-gradient(180deg, var(--accent), #a855f7);
  border-radius: 2px;
}
.section-link {
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.section-link:active { opacity: 0.7; }

/* ===== Greeting Card ===== */
.greeting-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  padding: 24px;
}
.greeting-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
}
.greeting-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(99,102,241,0.3) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(168,85,247,0.2) 0%, transparent 50%);
}
.greeting-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.greeting-text { flex: 1; }
.greeting-title {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}
.greeting-name {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  margin-bottom: 4px;
}
.greeting-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}
.greeting-streak {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 12px 16px;
  flex-shrink: 0;
}
.streak-icon {
  font-size: 28px;
  filter: drop-shadow(0 2px 4px rgba(251,146,60,0.5));
}
.streak-info { text-align: center; }
.streak-num {
  font-size: 22px;
  font-weight: 800;
  color: #fbbf24;
  line-height: 1;
}
.streak-label {
  font-size: 11px;
  color: rgba(255,255,255,0.8);
  margin-top: 2px;
}

/* ===== Primary Card (Voice Call) ===== */
.primary-card {
  display: block;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: white;
  margin-top: 20px;
}
.primary-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 40%, #ec4899 100%);
}
.primary-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 50%, rgba(255,255,255,0.2) 0%, transparent 60%);
}
.primary-glow {
  position: absolute;
  top: -50%;
  left: -20%;
  width: 140%;
  height: 200%;
  background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.1) 50%, transparent 60%);
  animation: glow-move 3s ease-in-out infinite;
}
@keyframes glow-move {
  0%, 100% { transform: translateX(-30%); }
  50% { transform: translateX(30%); }
}
.primary-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
}
.primary-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}
.primary-icon {
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,0.2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.primary-text { flex: 1; }
.primary-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}
.primary-desc {
  font-size: 13px;
  opacity: 0.9;
}
.primary-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 100px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}
.primary-card:active .primary-glow { animation: none; }
.primary-card:active .primary-btn { transform: scale(0.95); }

/* ===== Progress Section ===== */
.progress-section { margin-top: 8px; }
.progress-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
}
.progress-ring {
  position: relative;
  width: 100px;
  height: 100px;
  flex-shrink: 0;
}
.ring-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.ring-bg {
  stroke: var(--bg-tertiary);
}
.ring-progress {
  stroke: url(#progressGradient);
  stroke: var(--accent);
  stroke-dasharray: 326.7;
  stroke-dashoffset: 326.7;
  transition: stroke-dashoffset 0.6s ease;
}
.ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.ring-percent {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
}
.ring-label {
  font-size: 11px;
  color: var(--text-muted);
}
.progress-stats {
  flex: 1;
  display: flex;
  align-items: center;
}
.stat-item {
  flex: 1;
  text-align: center;
}
.stat-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}
.stat-value.stat-warn { color: var(--warning); }
.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* ===== Modes Section ===== */
.modes-section { margin-top: 8px; }
.modes-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mode-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}
.mode-item:active {
  transform: scale(0.98);
  border-color: var(--accent);
  background: var(--bg-tertiary);
}
.mode-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mode-chat .mode-icon-wrap {
  background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(99,102,241,0.1));
}
.mode-chat .mode-icon-inner { color: #818cf8; }

.mode-word .mode-icon-wrap {
  background: linear-gradient(135deg, rgba(16,185,129,0.2), rgba(16,185,129,0.1));
}
.mode-word .mode-icon-inner { color: #34d399; }

.mode-dialogue .mode-icon-wrap {
  background: linear-gradient(135deg, rgba(168,85,247,0.2), rgba(168,85,247,0.1));
}
.mode-dialogue .mode-icon-inner { color: #c084fc; }

.mode-match .mode-icon-wrap {
  background: linear-gradient(135deg, rgba(245,158,11,0.2), rgba(245,158,11,0.1));
}
.mode-match .mode-icon-inner { color: #fbbf24; }

.mode-basic .mode-icon-wrap {
  background: linear-gradient(135deg, rgba(236,72,153,0.2), rgba(236,72,153,0.1));
}
.mode-basic .mode-icon-inner { color: #f472b6; }

.mode-icon-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}
.mode-info { flex: 1; }
.mode-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.mode-desc {
  font-size: 12px;
  color: var(--text-muted);
}
.mode-arrow {
  font-size: 24px;
  color: var(--text-muted);
  font-weight: 300;
  flex-shrink: 0;
}

/* ===== Stats Section ===== */
.stats-section { margin-top: 8px; }
.stats-card {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.stat-card-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}
.stat-card-item:active {
  transform: scale(0.97);
  border-color: var(--accent);
}
.stat-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stat-blue { background: rgba(59,130,246,0.15); color: #60a5fa; }
.stat-orange { background: rgba(249,115,22,0.15); color: #fb923c; }
.stat-green { background: rgba(34,197,94,0.15); color: #4ade80; }
.stat-purple { background: rgba(168,85,247,0.15); color: #c084fc; }
.stat-text { flex: 1; min-width: 0; }
.stat-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.stat-sub {
  font-size: 12px;
  color: var(--text-muted);
}

/* ===== Bottom Nav ===== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: rgba(15, 15, 17, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 10px 0;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 20px));
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 16px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
  min-width: 60px;
}
.nav-item.active { color: var(--accent); }
.nav-item svg { width: 22px; height: 22px; stroke: currentColor; }
.nav-item span { font-size: 10px; }
.nav-item:active { opacity: 0.7; }

/* ===== Login Overlay ===== */
.login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 15, 17, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-overlay-content {
  text-align: center;
  padding: 40px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 20px;
  width: 85%;
  max-width: 320px;
}
.login-overlay-icon {
  font-size: 48px;
  margin-bottom: 16px;
}
.login-overlay-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.login-overlay-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.login-overlay-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
}
.login-overlay-btn:active {
  transform: scale(0.98);
  opacity: 0.9;
}
.login-overlay-close {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}
.login-overlay-close:hover {
  background: var(--bg-tertiary);
}

/* ===== Disabled State ===== */
.primary-card.disabled,
.mode-item.disabled,
.stat-card-item.disabled {
  opacity: 0.5;
  background: var(--bg-tertiary) !important;
  border-color: var(--border) !important;
  cursor: not-allowed;
}

/* ===== 12 Foreign Languages Showcase (纯展示) ===== */
.lang12-showcase {
  margin-top: 14px;
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 22px 20px 20px 20px;
  color: var(--text-primary);
  background:
    radial-gradient(100% 70% at 0% 0%, rgba(132, 94, 247, 0.22) 0%, rgba(132, 94, 247, 0) 55%),
    radial-gradient(100% 80% at 100% 0%, rgba(236, 72, 153, 0.18) 0%, rgba(236, 72, 153, 0) 55%),
    radial-gradient(140% 110% at 50% 100%, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0) 60%),
    linear-gradient(160deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%),
    var(--bg-card);
  border: 1px solid rgba(132, 94, 247, 0.18);
  box-shadow:
    0 20px 48px -26px rgba(132, 94, 247, 0.45),
    0 10px 28px -18px rgba(236, 72, 153, 0.30),
    inset 0 1px 0 rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.lang12-showcase > * {
  position: relative;
  z-index: 1;
}
/* 背景装饰 */
.l12-deco {
  position: absolute;
  border-radius: 999px;
  filter: blur(34px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}
.l12-deco-1 { top: -50px; left: -40px; width: 180px; height: 180px; background: radial-gradient(closest-side, #845ef7, transparent 70%); }
.l12-deco-2 { top: 20px; right: -60px; width: 210px; height: 210px; background: radial-gradient(closest-side, #ec4899, transparent 70%); opacity: 0.40; }
.l12-deco-3 { bottom: -70px; right: 20%; width: 220px; height: 220px; background: radial-gradient(closest-side, #10b981, transparent 70%); opacity: 0.30; }
.l12-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.6) 0%, transparent 72%);
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.6) 0%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}

/* ===== Header: 标题 + KPI ===== */
.l12-head { margin-bottom: 16px; }
.l12-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(236, 72, 153, 0.12);
  border: 1px solid rgba(236, 72, 153, 0.25);
  font-size: 11.5px;
  font-weight: 500;
  color: #f9a8d4;
  letter-spacing: 0.02em;
}
.l12-eyebrow .l12-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #ec4899;
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.15);
  animation: l12Pulse 2.2s ease-in-out infinite;
}
.l12-eyebrow-sep { opacity: 0.5; }
@keyframes l12Pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.15); }
  50%      { box-shadow: 0 0 0 6px rgba(236, 72, 153, 0.08); }
}

.l12-head-row {
  margin-top: 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.l12-title-wrap { min-width: 0; flex: 1 1 220px; }
.l12-title {
  margin: 0;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text-primary);
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.l12-title-grad {
  background: linear-gradient(90deg, #845ef7 0%, #ec4899 45%, #10b981 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 30px;
}
.l12-subtitle {
  margin: 8px 0 0 0;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--text-secondary);
  opacity: 0.95;
}

.l12-kpis {
  display: flex;
  align-items: stretch;
  padding: 10px 10px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%),
    rgba(132, 94, 247, 0.06);
  border: 1px solid rgba(255,255,255,0.06);
  gap: 6px;
  flex: 0 0 auto;
}
.l12-kpi {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  min-width: 66px;
  text-align: center;
}
.l12-kpi-num {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  line-height: 1.1;
  background: linear-gradient(180deg, #fff, #c4b5fd 120%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.l12-kpi-label {
  margin-top: 3px;
  font-size: 10.5px;
  color: var(--text-tertiary);
  white-space: nowrap;
}
.l12-kpi-sep {
  width: 1px;
  margin: 6px 0;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.14), transparent);
}

/* ===== 12 国旗条（4列 x 3行） ===== */
.l12-flags {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 12px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045) 0%, rgba(255,255,255,0.015) 100%),
    rgba(15,15,17,0.26);
  border: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.l12-flag-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 10px 6px 9px 6px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%),
    rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
  cursor: default;
  position: relative;
  overflow: hidden;
}
.l12-flag-card::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(60% 120% at 50% 120%, rgba(132, 94, 247, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: none;
}
.l12-flag-card:hover {
  transform: translateY(-2px);
  border-color: rgba(132, 94, 247, 0.30);
}
.l12-flag-card:hover::after { opacity: 1; }
.l12-fg {
  font-size: 24px;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.35));
}
.l12-fn {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.1;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.l12-fl {
  font-size: 10.5px;
  color: var(--text-tertiary);
  line-height: 1;
}
.l12-f-hi {
  background:
    linear-gradient(135deg, rgba(236, 72, 153, 0.18), rgba(132, 94, 247, 0.14)),
    rgba(255,255,255,0.02);
  border-color: rgba(236, 72, 153, 0.30);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 6px 18px -10px rgba(236, 72, 153, 0.5);
}
.l12-f-hi .l12-fn {
  background: linear-gradient(90deg, #f9a8d4, #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}
.l12-f-hi .l12-fl { color: #fbcfe8; opacity: 0.8; }

/* 每种语种的专属小配色（hover 细微微调） */
.l12-f-en:hover { border-color: rgba(59, 130, 246, 0.35); }
.l12-f-ja:hover { border-color: rgba(239, 68, 68, 0.35); }
.l12-f-ko:hover { border-color: rgba(236, 72, 153, 0.38); }
.l12-f-es:hover { border-color: rgba(251, 146, 60, 0.38); }
.l12-f-fr:hover { border-color: rgba(59, 130, 246, 0.35); }
.l12-f-de:hover { border-color: rgba(234, 179, 8, 0.38); }
.l12-f-it:hover { border-color: rgba(34, 197, 94, 0.38); }
.l12-f-pt:hover { border-color: rgba(34, 197, 94, 0.35); }
.l12-f-ru:hover { border-color: rgba(59, 130, 246, 0.38); }
.l12-f-vi:hover { border-color: rgba(234, 179, 8, 0.35); }
.l12-f-id:hover { border-color: rgba(239, 68, 68, 0.35); }

/* ===== 4 个能力模块 ===== */
.l12-caps {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.l12-cap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 12px 12px 11px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
  min-width: 0;
}
.l12-cap::before {
  content: '';
  position: absolute;
  left: -30%; top: -40%;
  width: 120px; height: 120px;
  border-radius: 50%;
  filter: blur(28px);
  opacity: 0.30;
  pointer-events: none;
}
.l12-cap.c-1::before { background: #fbbf24; }
.l12-cap.c-2::before { background: #10b981; }
.l12-cap.c-3::before { background: #3b82f6; }
.l12-cap.c-4::before { background: #ec4899; }

.l12-cap-ic {
  width: 30px; height: 30px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  position: relative;
  z-index: 1;
}
.l12-cap.c-1 .l12-cap-ic { background: rgba(251, 191, 36, 0.16); border: 1px solid rgba(251, 191, 36, 0.28); }
.l12-cap.c-2 .l12-cap-ic { background: rgba(16, 185, 129, 0.16); border: 1px solid rgba(16, 185, 129, 0.28); }
.l12-cap.c-3 .l12-cap-ic { background: rgba(59, 130, 246, 0.16); border: 1px solid rgba(59, 130, 246, 0.28); }
.l12-cap.c-4 .l12-cap-ic { background: rgba(236, 72, 153, 0.16); border: 1px solid rgba(236, 72, 153, 0.28); }

.l12-cap-t {
  position: relative; z-index: 1;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}
.l12-cap-d {
  position: relative; z-index: 1;
  font-size: 11px;
  line-height: 1.4;
  color: var(--text-tertiary);
}

/* ===== 宽屏：左右双栏 ===== */
@media (min-width: 640px) {
  .lang12-showcase {
    padding: 26px 26px 24px 26px;
  }
  .l12-title { font-size: 28px; }
  .l12-title-grad { font-size: 34px; }
  .l12-head-row { gap: 22px; }
  .l12-subtitle { font-size: 13px; }
  .l12-kpi { min-width: 74px; padding: 4px 14px; }
  .l12-kpi-num { font-size: 18px; }
}

/* ===== Responsive ===== */
@media (max-width: 420px) {
  .l12-caps { grid-template-columns: repeat(2, 1fr); }
  .l12-flags { grid-template-columns: repeat(3, 1fr); }
  .l12-title-grad { font-size: 26px; }
}
@media (max-width: 360px) {
  .greeting-content { flex-direction: column; align-items: flex-start; }
  .greeting-streak { align-self: flex-start; }
  .stats-card { grid-template-columns: 1fr; }
  .l12-kpis { width: 100%; justify-content: space-between; }
  .l12-kpi { min-width: 0; flex: 1; }
  .l12-flags { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .l12-caps { grid-template-columns: 1fr; }
  .l12-title { font-size: 22px; }
  .l12-title-grad { font-size: 24px; }
}
