/* ============================================
   足球推演系统 - Premium 暗色主题 V2
   移动端优先 · 设计变量统一 · 组件化
   ============================================ */

/* ── CSS 设计变量 ── */
:root {
    /* 主色调 */
    --bg-deep:    #0a0a0f;
    --bg-base:    #111118;
    --bg-card:    #1a1a24;
    --bg-hover:   #252530;
    --bg-glass:   rgba(17, 17, 24, 0.6);

    /* 文字 */
    --text-white:  #ffffff;
    --text-base:   #e5e7eb;
    --text-muted:  #9ca3af;
    --text-dim:    #6b7280;
    --text-faint:  #4b5563;

    /* 功能色 */
    --emerald:     #34d399;
    --emerald-dim: #10b981;
    --cyan:        #22d3ee;
    --orange:      #fb923c;
    --red:         #f87171;
    --yellow:      #facc15;
    --blue:        #60a5fa;
    --purple:      #c084fc;
    --amber:       #f59e0b;
    --rose:        #fb7185;

    /* 边框 */
    --border-card:   rgba(26, 26, 36, 0.5);
    --border-subtle: rgba(37, 37, 48, 0.3);
    --border-emerald: rgba(16, 185, 129, 0.2);

    /* 间距 */
    --space-xs:  0.25rem;
    --space-sm:  0.5rem;
    --space-md:  0.75rem;
    --space-lg:  1rem;
    --space-xl:  1.5rem;
    --space-2xl: 2rem;

    /* 圆角 */
    --radius-md:  0.5rem;
    --radius-lg:  0.75rem;
    --radius-xl:  1rem;
    --radius-full: 9999px;
}

/* ── Reset & Base ── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, "Noto Sans SC", "PingFang SC",
        "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ── 颜色工具类 ── */
.bg-gray-950 { background: var(--bg-deep); }
.bg-gray-900 { background: var(--bg-base); }
.bg-gray-800 { background: var(--bg-card); }
.bg-gray-700 { background: var(--bg-hover); }

.text-white    { color: var(--text-white); }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: var(--text-muted); }
.text-gray-500 { color: var(--text-dim); }
.text-gray-600 { color: var(--text-faint); }

.text-emerald-400 { color: var(--emerald); }
.text-cyan-400    { color: var(--cyan); }
.text-orange-400  { color: var(--orange); }
.text-red-400     { color: var(--red); }
.text-yellow-400  { color: var(--yellow); }
.text-blue-400    { color: var(--blue); }
.text-purple-400  { color: var(--purple); }
.text-amber-400   { color: var(--amber); }
.text-rose-400    { color: var(--rose); }

/* ── 边框 ── */
.border-gray-800     { border-color: var(--bg-card); }
.border-gray-700     { border-color: var(--bg-hover); }
.border-gray-800\/30 { border-color: rgba(26, 26, 36, 0.3); }
.border-gray-800\/50 { border-color: var(--border-card); }
.border-gray-700\/30 { border-color: var(--border-subtle); }
.border-gray-700\/50 { border-color: rgba(37, 37, 48, 0.5); }
.border-emerald-500\/20 { border-color: var(--border-emerald); }
.border-emerald-500\/30 { border-color: rgba(16, 185, 129, 0.3); }
.border-red-500\/20  { border-color: rgba(239, 68, 68, 0.2); }
.border-cyan-500\/20 { border-color: rgba(6, 182, 212, 0.2); }
.border-purple-500\/20 { border-color: rgba(168, 85, 247, 0.2); }
.border-amber-500\/20  { border-color: rgba(245, 158, 11, 0.2); }
.border-amber-500\/30  { border-color: rgba(245, 158, 11, 0.3); }
.border-b { border-bottom-width: 1px; }
.border-t { border-top-width: 1px; }

/* ── 背景变体 ── */
.bg-gray-900\/60 { background: var(--bg-glass); }
.bg-gray-900\/80 { background: rgba(17, 17, 24, 0.8); }
.bg-gray-800\/30 { background: rgba(26, 26, 36, 0.3); }
.bg-gray-800\/40 { background: rgba(26, 26, 36, 0.4); }
.bg-gray-800\/50 { background: rgba(26, 26, 36, 0.5); }

.bg-emerald-500\/5  { background: rgba(16, 185, 129, 0.05); }
.bg-emerald-500\/10 { background: rgba(16, 185, 129, 0.1); }
.bg-emerald-500\/15 { background: rgba(16, 185, 129, 0.15); }
.bg-emerald-500\/20 { background: rgba(16, 185, 129, 0.2); }
.bg-red-500\/5      { background: rgba(239, 68, 68, 0.05); }
.bg-red-500\/10     { background: rgba(239, 68, 68, 0.1); }
.bg-yellow-500\/5   { background: rgba(250, 204, 21, 0.05); }
.bg-yellow-500\/10  { background: rgba(250, 204, 21, 0.1); }
.bg-blue-500\/5     { background: rgba(59, 130, 246, 0.05); }
.bg-blue-500\/10    { background: rgba(59, 130, 246, 0.1); }
.bg-cyan-500\/10    { background: rgba(6, 182, 212, 0.1); }
.bg-cyan-500\/20    { background: rgba(6, 182, 212, 0.2); }
.bg-purple-500\/5   { background: rgba(168, 85, 247, 0.05); }
.bg-purple-500\/10  { background: rgba(168, 85, 247, 0.1); }
.bg-purple-500\/20  { background: rgba(168, 85, 247, 0.2); }
.bg-amber-500\/10   { background: rgba(245, 158, 11, 0.1); }
.bg-amber-500\/20   { background: rgba(245, 158, 11, 0.2); }
.bg-rose-500\/5     { background: rgba(251, 113, 133, 0.05); }
.bg-rose-500\/10    { background: rgba(251, 113, 133, 0.1); }
.bg-rose-500\/15    { background: rgba(251, 113, 133, 0.15); }
.bg-orange-500\/5   { background: rgba(251, 146, 60, 0.05); }

.bg-red-500     { background: #ef4444; }
.bg-red-500\/60 { background: rgba(239, 68, 68, 0.6); }
.bg-red-500\/70 { background: rgba(239, 68, 68, 0.7); }
.bg-yellow-500  { background: #eab308; }
.bg-blue-500    { background: #3b82f6; }
.bg-blue-500\/70 { background: rgba(59, 130, 246, 0.7); }
.bg-emerald-500 { background: #10b981; }
.bg-cyan-500    { background: #06b6d4; }
.bg-purple-500  { background: #a855f7; }
.bg-amber-500   { background: #f59e0b; }

/* ── 渐变 ── */
.bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--tw-gradient-from), var(--tw-gradient-to));
}
.bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-from), var(--tw-gradient-to));
}
.from-emerald-400 { --tw-gradient-from: var(--emerald); }
.from-emerald-500 { --tw-gradient-from: var(--emerald-dim); }
.from-emerald-600 { --tw-gradient-from: #059669; }
.from-cyan-500    { --tw-gradient-from: #06b6d4; }
.from-amber-500   { --tw-gradient-from: #f59e0b; }
.to-cyan-400   { --tw-gradient-to: var(--cyan); }
.to-cyan-500   { --tw-gradient-to: #06b6d4; }
.to-cyan-600   { --tw-gradient-to: #0891b2; }
.to-blue-500   { --tw-gradient-to: #3b82f6; }
.to-orange-500 { --tw-gradient-to: #f97316; }

.bg-clip-text {
    -webkit-background-clip: text;
    background-clip: text;
}
.text-transparent { color: transparent; }

.bg-gradient-to-r.from-emerald-400.to-cyan-400 {
    background-image: linear-gradient(to right, var(--emerald), var(--cyan));
}

/* ── 毛玻璃效果 ── */
.backdrop-blur-xl {
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}
.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-card);
}

/* ── 布局 ── */
.min-h-screen { min-height: 100vh; }
.max-w-6xl { max-width: 72rem; }
.max-w-sm  { max-width: 24rem; }
.mx-auto   { margin-left: auto; margin-right: auto; }
.px-4 { padding-left: var(--space-lg); padding-right: var(--space-lg); }
.py-4 { padding-top: var(--space-lg); padding-bottom: var(--space-lg); }

/* ── Flex & Grid ── */
.flex         { display: flex; }
.inline-flex  { display: inline-flex; }
.grid         { display: grid; }
.grid-cols-2  { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3  { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4  { grid-template-columns: repeat(4, 1fr); }
.flex-col     { flex-direction: column; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.items-end    { align-items: flex-end; }
.items-baseline { align-items: baseline; }
.justify-center  { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end     { justify-content: flex-end; }
.flex-1       { flex: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.shrink-0     { flex-shrink: 0; }
.gap-1   { gap: var(--space-xs); }
.gap-2   { gap: var(--space-sm); }
.gap-3   { gap: var(--space-md); }
.gap-4   { gap: var(--space-lg); }
.gap-6   { gap: var(--space-xl); }
.space-y-1 > * + * { margin-top: var(--space-xs); }
.space-y-2 > * + * { margin-top: var(--space-sm); }
.space-y-3 > * + * { margin-top: var(--space-md); }
.space-y-4 > * + * { margin-top: var(--space-lg); }

/* ── 排版 ── */
.text-5xl { font-size: 3rem; }
.text-3xl { font-size: 1.875rem; }
.text-2xl { font-size: 1.5rem; }
.text-xl  { font-size: 1.25rem; }
.text-lg  { font-size: 1.125rem; }
.text-base { font-size: 1rem; }
.text-sm  { font-size: 0.875rem; }
.text-xs  { font-size: 0.75rem; }
.font-bold    { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium  { font-weight: 500; }
.font-normal  { font-weight: 400; }
.font-mono {
    font-family: "SF Mono", "Fira Code", "Cascadia Code", monospace;
}
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-left   { text-align: left; }
.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.leading-tight  { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }

/* ── 间距 ── */
.p-3  { padding: var(--space-md); }
.p-4  { padding: var(--space-lg); }
.p-5  { padding: 1.25rem; }
.p-6  { padding: 1.5rem; }
.p-8  { padding: 2rem; }
.p-12 { padding: 3rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1    { padding-top: var(--space-xs); padding-bottom: var(--space-xs); }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2    { padding-top: var(--space-sm); padding-bottom: var(--space-sm); }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3    { padding-top: var(--space-md); padding-bottom: var(--space-md); }
.py-4    { padding-top: var(--space-lg); padding-bottom: var(--space-lg); }
.py-6    { padding-top: var(--space-xl); padding-bottom: var(--space-xl); }
.py-8    { padding-top: var(--space-2xl); padding-bottom: var(--space-2xl); }
.py-16   { padding-top: 4rem; padding-bottom: 4rem; }
.px-2    { padding-left: var(--space-sm); padding-right: var(--space-sm); }
.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.px-3    { padding-left: var(--space-md); padding-right: var(--space-md); }
.px-4    { padding-left: var(--space-lg); padding-right: var(--space-lg); }
.px-5    { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6    { padding-left: 1.5rem; padding-right: 1.5rem; }
.pt-1  { padding-top: var(--space-xs); }
.pt-2  { padding-top: var(--space-sm); }
.pt-3  { padding-top: var(--space-md); }
.pb-3  { padding-bottom: var(--space-md); }
.pb-4  { padding-bottom: var(--space-lg); }

.mt-0\.5 { margin-top: 0.125rem; }
.mt-1  { margin-top: var(--space-xs); }
.mt-2  { margin-top: var(--space-sm); }
.mt-3  { margin-top: var(--space-md); }
.mt-4  { margin-top: var(--space-lg); }
.mt-6  { margin-top: var(--space-xl); }
.mt-8  { margin-top: var(--space-2xl); }
.mb-0\.5 { margin-bottom: 0.125rem; }
.mb-1  { margin-bottom: var(--space-xs); }
.mb-1\.5 { margin-bottom: 0.375rem; }
.mb-2  { margin-bottom: var(--space-sm); }
.mb-3  { margin-bottom: var(--space-md); }
.mb-4  { margin-bottom: var(--space-lg); }
.mb-5  { margin-bottom: 1.25rem; }
.mb-6  { margin-bottom: var(--space-xl); }
.mb-8  { margin-bottom: var(--space-2xl); }
.ml-1  { margin-left: var(--space-xs); }
.ml-2  { margin-left: var(--space-sm); }
.ml-auto { margin-left: auto; }
.mr-1  { margin-right: var(--space-xs); }

/* ── 圆角 ── */
.rounded-lg   { border-radius: var(--radius-md); }
.rounded-xl   { border-radius: var(--radius-lg); }
.rounded-2xl  { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }
.rounded-l-full { border-radius: var(--radius-full) 0 0 var(--radius-full); }
.rounded-r-full { border-radius: 0 var(--radius-full) var(--radius-full) 0; }
.rounded-sm { border-radius: 0.125rem; }

/* ── 尺寸 ── */
.w-px  { width: 1px; }
.w-1   { width: var(--space-xs); }
.w-1\.5 { width: 0.375rem; }
.w-2   { width: var(--space-sm); }
.w-4   { width: var(--space-lg); }
.w-5   { width: 1.25rem; }
.w-7   { width: 1.75rem; }
.w-8   { width: var(--space-2xl); }
.w-9   { width: 2.25rem; }
.w-10  { width: 2.5rem; }
.w-11  { width: 2.75rem; }
.w-12  { width: 3rem; }
.w-16  { width: 4rem; }
.w-full { width: 100%; }
.h-1   { height: var(--space-xs); }
.h-1\.5 { height: 0.375rem; }
.h-2   { height: var(--space-sm); }
.h-3   { height: var(--space-md); }
.h-4   { height: var(--space-lg); }
.h-5   { height: 1.25rem; }
.h-7   { height: 1.75rem; }
.h-8   { height: var(--space-2xl); }
.h-9   { height: 2.25rem; }
.h-14  { height: 3.5rem; }
.h-16  { height: 4rem; }
.h-full { height: 100%; }

/* ── 定位 ── */
.sticky   { position: sticky; }
.relative { position: relative; }
.top-0    { top: 0; }
.z-50     { z-index: 50; }

/* ── 溢出 ── */
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.min-w-0 { min-width: 0; }

/* ── 过渡 ── */
.transition     { transition: all 0.2s ease; }
.transition-all { transition: all 0.3s ease; }
.duration-300   { transition-duration: 0.3s; }
.duration-700   { transition-duration: 0.7s; }

/* ── 交互状态 ── */
.active\:scale-\[0\.98\]\:active { transform: scale(0.98); }
.active\:scale-\[0\.99\]\:active { transform: scale(0.99); }

.hover\:bg-gray-700:hover          { background: var(--bg-hover); }
.hover\:bg-gray-800:hover          { background: var(--bg-card); }
.hover\:bg-gray-800\/50:hover      { background: rgba(26, 26, 36, 0.5); }
.hover\:bg-emerald-500\/20:hover   { background: rgba(16, 185, 129, 0.2); }
.hover\:bg-emerald-600:hover       { background: #059669; }
.hover\:bg-red-500\/20:hover       { background: rgba(239, 68, 68, 0.2); }
.hover\:text-white:hover           { color: var(--text-white); }
.hover\:text-gray-400:hover        { color: var(--text-muted); }
.hover\:text-emerald-400:hover     { color: var(--emerald); }
.hover\:text-purple-300:hover      { color: #a78bfa; }
.hover\:opacity-80:hover           { opacity: 0.8; }
.hover\:opacity-90:hover           { opacity: 0.9; }
.hover\:border-emerald-500\/20:hover { border-color: rgba(16, 185, 129, 0.2); }
.hover\:border-emerald-500\/30:hover { border-color: rgba(16, 185, 129, 0.3); }
.hover\:border-purple-500\/20:hover  { border-color: rgba(168, 85, 247, 0.2); }
.hover\:bg-gray-900\/80:hover        { background: rgba(17, 17, 24, 0.8); }

.focus\:outline-none:focus        { outline: none; }
.focus\:border-emerald-500\/50:focus { border-color: rgba(16, 185, 129, 0.5); }
.focus\:ring-1:focus              { box-shadow: 0 0 0 1px var(--tw-ring-color); }
.focus\:ring-emerald-500\/30:focus { --tw-ring-color: rgba(16, 185, 129, 0.3); }

/* ── 阴影 ── */
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3); }
.shadow-emerald-500\/25 { --tw-shadow-color: rgba(16, 185, 129, 0.25); }

/* ── 特殊工具类 ── */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar { display: none; }
.inline  { display: inline; }
.block   { display: block; }
.hidden  { display: none; }
.cursor-pointer { cursor: pointer; }
.select-none { user-select: none; }

/* ── 分割线 ── */
.divide-y > * + * { border-top-width: 1px; }
.divide-gray-800\/30 > * + * { border-color: rgba(26, 26, 36, 0.3); }

/* ── Placeholder ── */
.placeholder-gray-600::placeholder { color: var(--text-faint); }

/* ── Peer (用于 radio/checkbox 切换) ── */
.peer:checked ~ .peer-checked\:bg-cyan-500\/20 { background: rgba(6, 182, 212, 0.2); }
.peer:checked ~ .peer-checked\:text-cyan-400    { color: var(--cyan); }
.peer:checked ~ .peer-checked\:border-cyan-500\/30 { border-color: rgba(6, 182, 212, 0.3); }
.accent-cyan-500 { accent-color: #06b6d4; }

/* ── 滚动条 ── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg-hover); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: #374151; }

/* ── 选中 ── */
::selection {
    background: rgba(16, 185, 129, 0.3);
    color: #fff;
}

/* ── 动画 ── */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.5; }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-in { animation: fadeIn 0.4s ease-out; }
.animate-pulse   { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

/* ── 卡片入场动画 ── */
.card-enter {
    animation: slideUp 0.35s ease-out backwards;
}
.card-enter:nth-child(1) { animation-delay: 0.00s; }
.card-enter:nth-child(2) { animation-delay: 0.05s; }
.card-enter:nth-child(3) { animation-delay: 0.10s; }
.card-enter:nth-child(4) { animation-delay: 0.15s; }
.card-enter:nth-child(5) { animation-delay: 0.20s; }
.card-enter:nth-child(6) { animation-delay: 0.25s; }
.card-enter:nth-child(7) { animation-delay: 0.30s; }
.card-enter:nth-child(8) { animation-delay: 0.35s; }
.card-enter:nth-child(9) { animation-delay: 0.40s; }
.card-enter:nth-child(10) { animation-delay: 0.45s; }

/* ── 功能标签栏（均匀分布 + 按钮样式）── */
.tab-bar {
    display: flex;
    gap: 0.5rem;
    padding: 0 0.125rem;
}
.tab-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    padding: 0.5rem 0.375rem;
    border-radius: var(--radius-lg);
    color: var(--text-dim);
    background: rgba(26, 26, 36, 0.4);
    border: 1px solid rgba(37, 37, 48, 0.4);
    transition: all 0.2s ease;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    text-align: center;
    cursor: pointer;
}
.tab-item:active {
    transform: scale(0.95);
    background: rgba(26, 26, 36, 0.7);
}
.tab-active {
    background: rgba(16, 185, 129, 0.18);
    color: var(--emerald);
    border-color: rgba(16, 185, 129, 0.35);
    font-weight: 600;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.12);
}
.tab-item:not(.tab-active):hover {
    background: rgba(37, 37, 48, 0.55);
    color: var(--text-muted);
    border-color: rgba(37, 37, 48, 0.6);
}

/* ── 综合命中率独立卡片 ── */
.hit-card {
    border-radius: var(--radius-xl);
    padding: 0.75rem 0.5rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hit-card:active {
    transform: scale(0.97);
}
.hit-card-emerald {
    background: linear-gradient(160deg, rgba(16, 185, 129, 0.22), rgba(16, 185, 129, 0.06) 60%, rgba(10, 10, 15, 0.4));
    border-color: rgba(16, 185, 129, 0.2);
}
.hit-card-cyan {
    background: linear-gradient(160deg, rgba(6, 182, 212, 0.22), rgba(6, 182, 212, 0.06) 60%, rgba(10, 10, 15, 0.4));
    border-color: rgba(6, 182, 212, 0.2);
}
.hit-card-amber {
    background: linear-gradient(160deg, rgba(245, 158, 11, 0.22), rgba(245, 158, 11, 0.06) 60%, rgba(10, 10, 15, 0.4));
    border-color: rgba(245, 158, 11, 0.2);
}
.hit-card-purple {
    background: linear-gradient(160deg, rgba(168, 85, 247, 0.22), rgba(168, 85, 247, 0.06) 60%, rgba(10, 10, 15, 0.4));
    border-color: rgba(168, 85, 247, 0.2);
}

/* 旧版 nav-pill 保留兼容 */
.nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-full);
    border: 1px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}
.nav-pill-active {
    background: rgba(16, 185, 129, 0.15);
    color: var(--emerald);
    border-color: rgba(16, 185, 129, 0.3);
    font-weight: 600;
}
.nav-pill-inactive {
    background: rgba(26, 26, 36, 0.4);
    color: var(--text-dim);
    border-color: rgba(37, 37, 48, 0.3);
}
.nav-pill-inactive:hover {
    background: rgba(26, 26, 36, 0.7);
    color: var(--text-muted);
}

/* ── 页面标题 ── */
.page-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}
.page-subtitle {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: var(--space-xs);
}

/* ── 统计卡片 ── */
.stat-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
}
.stat-card-label {
    font-size: 0.625rem;
    color: var(--text-dim);
    margin-bottom: var(--space-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.stat-card-value {
    font-size: 1.5rem;
    font-weight: 700;
}
.stat-card-sub {
    font-size: 0.625rem;
    color: var(--text-faint);
}
.stat-card-bar {
    height: 0.375rem;
    background: var(--bg-card);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-top: var(--space-sm);
}
.stat-card-bar-fill {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width 0.7s ease;
}

/* ── 通用卡片 ── */
.content-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
}
.content-card-header {
    padding: 0.625rem var(--space-lg);
    border-bottom: 1px solid rgba(26, 26, 36, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.content-card-body {
    padding: var(--space-md) var(--space-lg);
}

/* ── 标签 ── */
.tag {
    display: inline-flex;
    align-items: center;
    font-size: 0.625rem;
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-full);
    font-weight: 500;
}
.tag-emerald { background: rgba(16, 185, 129, 0.1); color: var(--emerald); }
.tag-purple  { background: rgba(168, 85, 247, 0.1); color: var(--purple); }
.tag-amber   { background: rgba(245, 158, 11, 0.1); color: var(--amber); }
.tag-rose    { background: rgba(251, 113, 133, 0.1); color: var(--rose); }
.tag-cyan    { background: rgba(6, 182, 212, 0.1); color: var(--cyan); }
.tag-gray    { background: var(--bg-card); color: var(--text-dim); }

/* ── 空状态 ── */
.empty-state {
    background: var(--bg-glass);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xl);
    padding: 3rem;
    text-align: center;
}
.empty-state-icon {
    font-size: 3rem;
    margin-bottom: var(--space-lg);
}
.empty-state-title {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: var(--space-sm);
}
.empty-state-desc {
    color: var(--text-faint);
    font-size: 0.875rem;
}

/* ── 响应式 ── */
@media (min-width: 640px) {
    .sm\:inline { display: inline; }
    .sm\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
    .md\:flex-row { flex-direction: row; }
    .md\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
    .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
}

/* ── 复盘详情折叠 ── */
details summary {
    list-style: none;
}
details summary::-webkit-details-marker { display: none; }
details summary::before {
    content: '▸ ';
    font-size: 0.75rem;
}
details[open] summary::before {
    content: '▾ ';
}

/* ── 选中状态指示器 ── */
input[type="radio"]:checked + div,
input[type="checkbox"]:checked + div {
    /* handled by peer-* classes */
}

/* ── 概率条 ── */
.prob-bar {
    height: 0.75rem;
    background: var(--bg-card);
    border-radius: var(--radius-full);
    overflow: hidden;
    flex: 1;
}
.prob-bar-fill {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width 0.7s ease;
}

/* ── 涟漪动画 ── */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ── Toast 定位 ── */
.fixed { position: fixed; }
.bottom-20 { bottom: 5rem; }
.left-1\/2 { left: 50%; }
.transform { transform: translateX(-50%); }
.-translate-x-1\/2 { transform: translateX(-50%); }
.z-\[100\] { z-index: 100; }

/* ── 选中框样式 ── */
input[type="checkbox"] {
    accent-color: var(--emerald-dim);
}
input[type="radio"] {
    accent-color: var(--cyan);
}
select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2rem;
}

/* ── 聚焦环 ── */
input:focus-visible,
select:focus-visible,
button:focus-visible {
    outline: 2px solid rgba(16, 185, 129, 0.4);
    outline-offset: 2px;
}

/* ── 辅助：文字阴影 ── */
.drop-shadow-sm { text-shadow: 0 1px 2px rgba(0,0,0,0.3); }
