/* Fluent Design 全局样式 - 流利设计系统 */

:root {
  --fluent-blue: #0078d4;
  --fluent-blue-dark: #106ebe;
  --fluent-blue-darker: #005a9e;
  --fluent-yellow: #ffb900;
  --fluent-red: #e81123;
  --fluent-green: #00cc6a;
  --fluent-border: #e1e1e1;
  --fluent-input-border: #8a8886;
}

* { box-sizing: border-box; }

body {
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Microsoft YaHei", "PingFang SC", sans-serif;
  background: #f3f3f3;
  color: #1a1a1a;
  -webkit-font-smoothing: antialiased;
}

/* 亚克力效果 (Acrylic) */
.fluent-acrylic {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px) saturate(125%);
  -webkit-backdrop-filter: blur(20px) saturate(125%);
}

.fluent-acrylic-strong {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(30px) saturate(125%);
  -webkit-backdrop-filter: blur(30px) saturate(125%);
}

/* Reveal 边框高亮效果 */
.fluent-reveal {
  position: relative;
  transition: all 0.15s ease-out;
}

.fluent-reveal:hover {
  border-color: rgba(0, 120, 212, 0.5) !important;
}

/* 柔和分层阴影 */
.fluent-shadow-sm {
  box-shadow: 0 1.6px 3.6px rgba(0,0,0,0.13), 0 0.3px 0.9px rgba(0,0,0,0.1);
}

.fluent-shadow-md {
  box-shadow: 0 3.2px 7.2px rgba(0,0,0,0.13), 0 0.6px 1.8px rgba(0,0,0,0.1);
}

.fluent-shadow-lg {
  box-shadow: 0 6.4px 14.4px rgba(0,0,0,0.13), 0 1.2px 3.6px rgba(0,0,0,0.1);
}

.fluent-shadow-hover {
  box-shadow: 0 6.4px 14.4px rgba(0,0,0,0.18), 0 1.2px 3.6px rgba(0,0,0,0.14);
}

/* Fluent 按钮 */
.fluent-btn {
  border-radius: 0.375rem;
  box-shadow: 0 1.6px 3.6px rgba(0,0,0,0.13), 0 0.3px 0.9px rgba(0,0,0,0.1);
  transition: all 0.15s ease-out;
  font-weight: 600;
  cursor: pointer;
  border: none;
  outline: none;
}

.fluent-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3.2px 7.2px rgba(0,0,0,0.13), 0 0.6px 1.8px rgba(0,0,0,0.1);
}

.fluent-btn:active {
  transform: scale(0.97);
}

.fluent-btn:focus-visible {
  outline: 2px solid var(--fluent-blue);
  outline-offset: 2px;
}

.fluent-btn-primary {
  background: var(--fluent-blue);
  color: #fff;
}

.fluent-btn-primary:hover {
  background: var(--fluent-blue-dark);
}

.fluent-btn-secondary {
  background: #fff;
  color: var(--fluent-blue);
  border: 1px solid var(--fluent-border);
}

.fluent-btn-secondary:hover {
  background: #f9f9f9;
}

.fluent-btn-danger {
  background: var(--fluent-red);
  color: #fff;
}

.fluent-btn-danger:hover {
  background: #c50f1f;
}

/* Fluent 卡片 */
.fluent-card {
  border-radius: 0.375rem;
  border: 1px solid var(--fluent-border);
  box-shadow: 0 1.6px 3.6px rgba(0,0,0,0.13), 0 0.3px 0.9px rgba(0,0,0,0.1);
  background: #fff;
  transition: all 0.15s ease-out;
}

.fluent-card:hover {
  box-shadow: 0 6.4px 14.4px rgba(0,0,0,0.18), 0 1.2px 3.6px rgba(0,0,0,0.14);
  border-color: rgba(0, 120, 212, 0.4);
}

/* Fluent 输入框 */
.fluent-input {
  border-radius: 0.375rem;
  border: 1px solid var(--fluent-input-border);
  background: #fff;
  font-family: inherit;
  transition: all 0.15s ease-out;
  outline: none;
}

.fluent-input:focus {
  border-color: var(--fluent-blue);
  box-shadow: 0 0 0 1px var(--fluent-blue);
}

.fluent-input:hover {
  border-color: var(--fluent-blue);
}

/* 标签徽章 */
.fluent-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
}

.fluent-badge-new { background: rgba(0, 204, 106, 0.12); color: #00a854; }
.fluent-badge-crack { background: rgba(232, 17, 35, 0.12); color: #c50f1f; }
.fluent-badge-hot { background: rgba(255, 185, 0, 0.15); color: #b8860b; }
.fluent-badge-dlc { background: rgba(0, 120, 212, 0.12); color: var(--fluent-blue); }
.fluent-badge-collection { background: rgba(138, 43, 226, 0.12); color: #7b1fa2; }

/* 评分星星 */
.fluent-stars {
  color: var(--fluent-yellow);
  letter-spacing: 1px;
}

/* 背景渐变 (Hero) */
.fluent-hero-bg {
  background:
    radial-gradient(circle at 20% 20%, rgba(0,120,212,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0,204,106,0.10) 0%, transparent 50%),
    linear-gradient(135deg, #f3f3f3 0%, #e8eef5 100%);
}

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.2);
  border-radius: 5px;
  border: 2px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.35); background-clip: content-box; }

/* 链接 */
.fluent-link {
  color: var(--fluent-blue);
  transition: all 0.15s ease-out;
}
.fluent-link:hover { color: var(--fluent-blue-dark); text-decoration: underline; }

/* 动画 */
@keyframes fluent-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.fluent-animate {
  animation: fluent-fade-in 0.2s ease-out;
}

/* 减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
