:root {
  --app-bg: #112217;
  --app-card: #193322;
  --app-card-soft: #163020;
  --app-accent: #13ec5b;
  --app-accent-dark: #3a834e;
  --app-secondary: #23482f;
  --app-text-main: #e8f7ec;
  --app-text-sub: #92c9a4;
  --app-blue: #2563eb;
  --app-red: #f87171;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--app-bg);
  color: #fff;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

#root {
  min-height: 100vh;
  background: var(--app-bg);
  color: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
}

.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.w-full { width: 100%; }
.w-3\.5 { width: 0.875rem; }
.w-5 { width: 1.25rem; }
.w-8 { width: 2rem; }
.w-12 { width: 3rem; }
.w-20 { width: 5rem; }
.w-64 { width: 16rem; }
.h-3\.5 { height: 0.875rem; }
.h-5 { height: 1.25rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-20 { height: 5rem; }
.min-h-screen { min-height: 100vh; }
.min-h-14 { min-height: 3.5rem; }
.min-w-0 { min-width: 0; }
.flex-1 { flex: 1 1 0%; }
.flex-grow { flex-grow: 1; }
.shrink-0 { flex-shrink: 0; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-x-2 { column-gap: 0.5rem; }
.gap-x-3 { column-gap: 0.75rem; }
.gap-x-6 { column-gap: 1.5rem; }
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.whitespace-nowrap { white-space: nowrap; }
.object-cover { object-fit: cover; }
.bg-transparent { background: transparent; }
.bg-app-bg { background: var(--app-bg); }
.bg-app-card { background: var(--app-card); }
.bg-app-cardSoft { background: var(--app-card-soft); }
.bg-app-accent { background: var(--app-accent); }
.bg-app-accentDark { background: var(--app-accent-dark); }
.bg-app-secondary { background: var(--app-secondary); }
.bg-app-blue { background: var(--app-blue); }
.bg-app-red { background: var(--app-red); }
.bg-gray-700 { background: #374151; }
.bg-yellow-500 { background: #eab308; }
.bg-\[\#1A2C21\] { background: #1A2C21; }
.bg-red-500\/10 { background: rgba(239, 68, 68, 0.1); }
.bg-center { background-position: center; }
.bg-cover { background-size: cover; }
.bg-no-repeat { background-repeat: no-repeat; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-\[22px\] { font-size: 22px; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-normal { font-weight: 400; }
.font-sans { font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; }
.leading-tight { line-height: 1.25; }
.leading-normal { line-height: 1.5; }
.tracking-\[-0\.015em\] { letter-spacing: -0.015em; }
.tracking-\[0\.015em\] { letter-spacing: 0.015em; }
.text-white { color: #fff; }
.text-black { color: #000; }
.text-gray-500 { color: #6b7280; }
.text-red-400 { color: #f87171; }
.text-red-500 { color: #ef4444; }
.text-\[\#112217\] { color: #112217; }
.text-\[\#647C6C\] { color: #647c6c; }
.text-app-textMain { color: var(--app-text-main); }
.text-app-textSub { color: var(--app-text-sub); }
.text-app-accent { color: var(--app-accent); }
.text-app-red { color: var(--app-red); }
.underline { text-decoration: underline; }
.line-through { text-decoration: line-through; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }
.border-0 { border: 0; }
.border-t { border-top: 1px solid currentColor; }
.border-b { border-bottom: 1px solid currentColor; }
.border-2 { border: 2px solid currentColor; }
.border-4 { border: 4px solid currentColor; }
.border-dashed { border-style: dashed; }
.border-app-secondary { border-color: var(--app-secondary); }
.border-\[\#326744\] { border-color: #326744; }
.border-white { border-color: #fff; }
.border-app-accent { border-color: var(--app-accent); }
.border-t-transparent { border-top-color: transparent; }
.p-0 { padding: 0; }
.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.pt-1 { padding-top: 0.25rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-4 { padding-top: 1rem; }
.pt-5 { padding-top: 1.25rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-3 { padding-bottom: 0.75rem; }
.pb-4 { padding-bottom: 1rem; }
.pb-20 { padding-bottom: 5rem; }
.mt-4 { margin-top: 1rem; }
.m-4 { margin: 1rem; }
.mx-4 { margin-left: 1rem; margin-right: 1rem; }
.-ml-3 { margin-left: -0.75rem; }
.-mr-3 { margin-right: -0.75rem; }
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.inset-0 { inset: 0; }
.top-0 { top: 0; }
.top-1\/2 { top: 50%; }
.top-16 { top: 4rem; }
.left-1\/2 { left: 50%; }
.right-4 { right: 1rem; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-50 { z-index: 50; }
.cursor-pointer { cursor: pointer; }
.select-none { user-select: none; }
.transition-all { transition: all 0.2s ease; }
.transition-colors { transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease; }
.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.35), 0 4px 6px -4px rgba(0, 0, 0, 0.35); }
.pointer-events-none { pointer-events: none; }
.transform { transform: translate(0, 0); }
.-translate-x-1\/2 { transform: translateX(-50%); }
.-translate-y-1\/2 { transform: translateY(-50%); }
.-translate-x-1\/2.-translate-y-1\/2 { transform: translate(-50%, -50%); }
.peer:checked ~ .peer-checked\:opacity-100,
.peer:checked + .peer-checked\:opacity-100 { opacity: 1; }
.peer:checked { border-color: var(--app-accent); background: var(--app-accent); }
.checked\:border-app-accent:checked { border-color: var(--app-accent); }
.checked\:bg-app-accent:checked { background: var(--app-accent); }
.appearance-none { appearance: none; }
.focus\:ring-0:focus { box-shadow: none; outline: none; }
.focus\:ring-offset-0:focus { outline-offset: 0; }
.active\:scale-95:active { transform: scale(0.95); }
.hover\:bg-app-secondary\/80:hover { background: rgba(35, 72, 47, 0.8); }
.hover\:bg-\[\#1A2C21\]:hover { background: #1A2C21; }
.hover\:bg-app-card:hover { background: var(--app-card); }
.hover\:text-white:hover { color: #fff; }
.last\:border-0:last-child { border: 0; }
.animate-spin { animation: spin 1s linear infinite; }
.line-clamp-1 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}
.aspect-\[4\/3\] { aspect-ratio: 4 / 3; }
.top-\[60px\] { top: 60px; }
.min-h-\[56px\] { min-height: 56px; }
.min-h-\[72px\] { min-height: 72px; }
.size-4 { width: 1rem; height: 1rem; }
.size-5 { width: 1.25rem; height: 1.25rem; }
.size-7 { width: 1.75rem; height: 1.75rem; }
.size-12 { width: 3rem; height: 3rem; }

.surface-card {
  background: var(--app-card);
  color: #fff;
  border: 1px solid rgba(146, 201, 164, 0.12);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  min-height: 3rem;
  border-radius: 9999px;
  background: rgba(25, 51, 34, 0.92);
  color: #f3fff6;
  border: 1px solid rgba(146, 201, 164, 0.16);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.icon-button:hover {
  background: rgba(35, 72, 47, 0.96);
}

@media (min-width: 640px) {
  .sm\:aspect-video { aspect-ratio: 16 / 9; }
  .sm\:rounded-lg { border-radius: 0.5rem; }
  .sm\:mx-4 { margin-left: 1rem; margin-right: 1rem; }
  .sm\:w-auto { width: auto; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
