
#app {
  width: 100%;
  min-height: 100vh;
}
:root {
  --primary-color: #5DADE2;
  --primary-light: #85C1E9;
  --primary-dark: #3498DB;
  --secondary-color: #F8B4D9;
  --secondary-light: #FCE4EC;
  --secondary-dark: #F48FB1;
  --accent-color: #F9E79F;
  --accent-light: #FCF3CF;
  --accent-dark: #F7DC6F;
  --bg-primary: #FFF9E6;
  --bg-secondary: #FFF5E1;
  --bg-card: #FFFFFF;
  --text-primary: #2C3E50;
  --text-secondary: #5D6D7E;
  --text-light: #95A5A6;
  --success-color: #52C41A;
  --warning-color: #FAAD14;
  --error-color: #FF7875;
  --info-color: #1890FF;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
  --shadow-soft: 0 16px 36px rgba(116, 139, 170, 0.16);
  --shadow-pop: 0 14px 0 rgba(105, 130, 160, 0.08), 0 22px 42px rgba(105, 130, 160, 0.18);
  --border-glass: 3px solid rgba(255, 255, 255, 0.72);
  --surface-glass: rgba(255, 255, 255, 0.84);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  --font-xs: 14px;
  --font-sm: 16px;
  --font-md: 18px;
  --font-lg: 24px;
  --font-xl: 32px;
  --font-2xl: 40px;
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;
}

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

html, body {
  width: 100%;
  min-height: 100%;
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: var(--font-md);
  line-height: 1.8;
  color: var(--text-primary);
  background: radial-gradient(circle at 12% 8%, rgba(255, 223, 128, 0.28), transparent 28%), radial-gradient(circle at 88% 12%, rgba(158, 216, 255, 0.26), transparent 26%), linear-gradient(135deg, #fff9e6 0%, #ffe9ef 54%, #eaf7ff 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overscroll-behavior-y: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  touch-action: manipulation;
}

#app {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

button,
[role=button],
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}

button,
[role=button] {
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  transform-origin: center;
}

button:focus-visible,
[role=button]:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 4px solid rgba(93, 173, 226, 0.45);
  outline-offset: 4px;
}

img {
  max-width: 100%;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}

.btn {
  min-width: 120px;
  min-height: 60px;
  padding: var(--spacing-md) var(--spacing-lg);
  font-size: var(--font-lg);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--duration-normal);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 8% auto auto 12%;
  width: 38%;
  height: 24%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  pointer-events: none;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: var(--shadow-sm);
}
.btn.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: white;
}
.btn.btn-secondary {
  background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
  color: white;
}
.btn.btn-accent {
  background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
  color: var(--text-primary);
}
.btn.btn-large {
  min-width: 160px;
  min-height: 80px;
  font-size: var(--font-xl);
  border-radius: var(--radius-xl);
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  border: var(--border-glass);
  box-shadow: var(--shadow-soft);
  transition: all var(--duration-normal);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.card.card-clickable {
  cursor: pointer;
}
.card.card-clickable:active {
  transform: translateY(-1px) scale(0.985);
}

.polished-shell {
  position: relative;
  overflow: hidden;
}
.polished-shell::before, .polished-shell::after {
  content: "";
  position: fixed;
  z-index: 0;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(1px);
}
.polished-shell::before {
  top: 12%;
  left: -48px;
  width: 112px;
  height: 112px;
  background: rgba(255, 218, 117, 0.34);
}
.polished-shell::after {
  right: -54px;
  bottom: 14%;
  width: 132px;
  height: 132px;
  background: rgba(138, 210, 255, 0.28);
}

.polished-panel {
  border: var(--border-glass);
  background: var(--surface-glass);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
}
.icon.icon-sm {
  width: 32px;
  height: 32px;
}
.icon.icon-lg {
  width: 96px;
  height: 96px;
}
.icon.icon-xl {
  width: 128px;
  height: 128px;
}

.star {
  width: 32px;
  height: 32px;
  color: #FFD700;
}
.star.star-empty {
  color: #E0E0E0;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-10px);
  }
  75% {
    transform: translateX(10px);
  }
}
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slideInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.animate-bounce {
  animation: bounce 1s infinite;
}

.animate-shake {
  animation: shake 0.5s;
}

.animate-pulse {
  animation: pulse 1s infinite;
}

.animate-fadeIn {
  animation: fadeIn var(--duration-normal);
}

.animate-slideInUp {
  animation: slideInUp var(--duration-normal);
}

@media (max-width: 768px) {
  :root {
    --font-xs: 12px;
    --font-sm: 14px;
    --font-md: 16px;
    --font-lg: 20px;
    --font-xl: 28px;
    --font-2xl: 36px;
  }
  .btn {
    min-width: 100px;
    min-height: 50px;
    font-size: var(--font-md);
  }
}
@media (hover: none) and (pointer: coarse) {
  .btn:hover,
  .card:hover {
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
@supports (-webkit-touch-callout: none) {
  body {
    min-height: -webkit-fill-available;
  }
}
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

.no-select {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.touch-feedback:active {
  opacity: 0.7;
}