:root {
  --primary: #6336f1;
  --primary-light: #818cf8;
  --primary-dark: #4f46e5;
  --secondary: #ec4899;
  --accent: #10b981;
  --background: #f9fafb;
  --card-bg: #ffffff;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --border: #e5e7eb;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-elevated: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --radius: 16px;
  --radius-sm: 8px;
  --radius-lg: 24px;
  --transition: all 0.25s ease-out;
  --spacing-1: 0.25rem;
  --spacing-2: 0.5rem;
  --spacing-3: 0.75rem;
  --spacing-4: 1rem;
  --spacing-5: 1.25rem;
  --spacing-6: 1.5rem;
  --spacing-8: 2rem;
  --spacing-10: 2.5rem;
  --spacing-12: 3rem;
  --轮播图卡片间距: 40px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #111827;
    --card-bg: #1f2937;
    --text-primary: #f9fafb;
    --text-secondary: silver;
    --text-muted: #9ca3af;
    --border: #374151;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-elevated: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
  }
}

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

a > i {
  translate: 0 1px;
}

body {
  font-family:
    "Noto Sans SC",
    -apple-system,
    微软雅黑,
    sans-serif;
  background-color: var(--background);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========== .app-banner 轮播区（独立配色与样式） ========== */
.app-banner {
  --banner-bg-from: #0f172a;
  --banner-bg-to: #1e293b;
  --banner-surface: rgba(255, 255, 255, 0.06);
  --banner-border: rgba(255, 255, 255, 0.12);
  --banner-text: #f1f5f9;
  --banner-text-muted: #94a3b8;
  --banner-accent: #818cf8;
  --banner-accent-hover: #a5b4fc;
  --banner-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  --banner-slides-visible: 3;
  position: relative;
  padding: 75px 0 100px;
  margin-bottom: var(--spacing-12);
  background: linear-gradient(165deg, var(--banner-bg-from) 0%, var(--banner-bg-to) 50%, #0f172a 100%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.app-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(129, 140, 248, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(236, 72, 153, 0.08), transparent);
  pointer-events: none;
  z-index: 0;
}

/* 顶部标题区 */
.banner-head {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--banner-text);
  max-width: 720px;
  margin: 0 auto var(--spacing-8);
  padding: 0 var(--spacing-6);
}

.banner-label {
  font-size: 2.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--banner-text-muted);
  margin-bottom: var(--spacing-3);
}

.banner-label-web {
  color: var(--banner-accent);
  margin-right: 0.35em;
}

.banner-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: var(--spacing-4);
  letter-spacing: -0.02em;
}

.banner-title-accent {
  background: linear-gradient(135deg, #a5b4fc, #e879f9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.banner-subtitle {
  font-size: 1.125rem;
  color: var(--banner-text-muted);
  line-height: 1.6;
}

/* 轮播容器：占满 banner 宽度，大气布局 */
.banner-carousel {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* mask-image: linear-gradient(90deg, transparent 20%, black 50%, transparent 80%); */
}

.箭头区 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.箭头 {
  position: absolute;
  bottom: 0;
  width: 40px;
  height: 40px;
  background-color: transparent;
  filter: brightness(95%);
  transition:
    filter 250ms,
    scale 250ms;
}

.箭头:hover {
  cursor: url("/Images/Common/鼠标-指向.cur"), pointer;
  filter: brightness(140%);
}

.箭头:active {
  scale: 1.25;
  filter: brightness(200%);
}

.箭头-左 {
  left: 50%;
}

.箭头-右 {
  right: 50%;
}

.箭头 > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.指示器区 {
  position: absolute;
  bottom: 0;
  left: 50%;
  translate: -50% 60px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.指示器 {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  position: relative;
}

.指示器:hover {
  cursor: url("/Images/Common/鼠标-指向.cur"), pointer;
}

.指示器::before {
  width: 10px;
  height: 10px;
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  border-radius: 50%;
  background-color: #555;
}

.指示器:hover::before {
  background-color: #aaa;
}

.指示器.当前::before {
  background-color: white;
}

.banner-viewport {
  width: clamp(450px, 30vw, 550px);
  flex-shrink: 0;
  display: flex;
  gap: var(--轮播图卡片间距);
}

.轮播卡片容器 {
  width: 100%;
  aspect-ratio: 1.25;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(12px);
  border: solid 2px transparent;
  border-radius: 24px;
  overflow: hidden;
  filter: brightness(50%);
  transform-origin: 50% 0;
  scale: 0.8;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.12),
    0 8px 16px rgba(0, 0, 0, 0.35),
    0 32px 64px rgba(0, 0, 0, 0.25);
  transition: all 0.35s ease-out;
  position: relative;
}

.轮播卡片容器.当前卡片 {
  scale: 1;
  filter: brightness(100%);
}

.轮播卡片容器::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(129, 140, 248, 0.75), transparent);
}

.轮播卡片容器:hover {
  transform: translateY(-8px);
  border-color: #fff1;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.12),
    0 8px 16px rgba(0, 0, 0, 0.35),
    0 32px 64px rgba(0, 0, 0, 0.25),
    0 0 60px -20px rgba(129, 140, 248, 0.15);
}

.轮播图卡片图容器 {
  width: 100%;
  height: 55%;
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.6) 0%, rgba(30, 41, 59, 0.8) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.轮播图卡片图 {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
  transition: transform 0.4s ease;
}

.轮播卡片容器:hover .轮播图卡片图 {
  transform: scale(1.05);
}

.轮播图卡片标题与内容 {
  width: 100%;
  height: 45%;
  padding: 15px 5%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.轮播图卡片标题 {
  font-size: clamp(18px, 1.05vw, 30px);
  font-weight: 700;
  color: #f1f5f9;
  margin: 0 0 12px 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
  transition: color 0.3s ease;
}

.轮播卡片容器:hover .轮播图卡片标题 {
  color: #ffffff;
}

.轮播图卡片描述 {
  font-size: clamp(16px, 0.8vw, 20px);
  color: #94a3b8;
  line-height: 1.5;
  margin: 0 0 16px 0;
  flex: 1;
  transition: color 0.3s ease;
}

.轮播卡片容器:hover .轮播图卡片描述 {
  color: #cbd5e1;
}

.轮播图卡片访问区 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
}

.轮播图卡片访问链接 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: linear-gradient(135deg, #6366f1, #818cf8);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: clamp(14px, 0.75vw, 20px);
  transition: all 0.3s ease;
  border: 1px solid rgba(129, 140, 248, 0.3);
}

.轮播图卡片访问链接:hover {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  border: 1px solid rgba(129, 140, 248, 0.8);
  transform: translateY(-2px);
}

.轮播图卡片访问链接 i {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.轮播卡片容器:hover .轮播图卡片访问链接 i {
  transform: translateX(4px);
}

.轮播图卡片作者信息 {
  display: flex;
  align-items: center;
  gap: 12px;
}

.轮播图卡片作者头像 {
  width: clamp(36px, 3.25vw, 50px);
  height: clamp(36px, 3.25vw, 50px);
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.12);
  transition: all 0.3s ease;
}

.轮播卡片容器:hover .轮播图卡片作者头像 {
  border-color: #818cf8;
  transform: scale(1.05);
}

.轮播图卡片作者名称 {
  font-size: clamp(14px, 0.75vw, 20px);
  color: #94a3b8;
  font-weight: 500;
  transition: color 0.3s ease;
}

.轮播卡片容器:hover .轮播图卡片作者名称 {
  color: #cbd5e1;
}

.app-center {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--spacing-6) 200px;
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-12);
  padding-top: var(--spacing-8);
}

.section-header h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: var(--spacing-4);
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin: 0 auto;
  line-height: 1.6;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 75px;
}

.app-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--border);
}

.app-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.app-card .image-container {
  position: relative;
  height: 240px;
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-6);
  transition: 250ms;
}

.app-card:hover .image-container {
  background: linear-gradient(135deg, #4d5b71, #2d3d52);
}

@media (prefers-color-scheme: dark) {
  .app-card .image-container {
    background: linear-gradient(135deg, #374151, #1f2937);
  }
}

.app-card .image-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: var(--transition);
  filter: drop-shadow(4px 4px 5px #000a);
}

.app-card:hover .image-container img {
  transform: scale(1.05);
}

.app-card .card-content {
  padding: var(--spacing-6);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.app-card .app-name {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--spacing-3);
  color: var(--text-primary);
  line-height: 1.2;
}

.app-card .app-description {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-5);
  line-height: 1.6;
  flex: 1;
}

.app-card .app-access {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.app-card .app-link {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-2);
  padding: var(--spacing-3) var(--spacing-5);
  background: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.875rem;
  outline: solid 1.5px transparent;
  transition: var(--transition);
}

.app-card .app-link:hover {
  outline: solid 1.5px silver;
  transform: translateY(-2px);
}

.app-card .app-link i {
  font-size: 1rem;
  transition: var(--transition);
}

.app-card:hover .app-link i {
  transform: translateX(4px);
}

.app-card .app-author {
  display: flex;
  align-items: center;
  gap: var(--spacing-2);
}

.app-card .app-author img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  transition: var(--transition);
}

.app-card:hover .app-author img {
  border-color: var(--primary-light);
  transform: scale(1.05);
}

.app-card .author-name {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

@media (max-width: 1024px) {
  .app-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--spacing-6);
  }

  .section-header h2 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .banner-label {
    font-size: 1rem;
  }

  .banner-title {
    font-size: 2.25rem;
  }

  .app-center {
    padding: 0 var(--spacing-4) var(--spacing-10);
  }

  .section-header {
    margin-bottom: var(--spacing-8);
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .section-header p {
    font-size: 1.125rem;
  }

  .app-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-5);
  }

  .app-card .image-container {
    height: 200px;
    padding: var(--spacing-4);
  }

  .app-card .card-content {
    padding: var(--spacing-5);
  }

  .app-card .app-name {
    font-size: 1.375rem;
  }
}

@media (max-width: 480px) {
  .banner-title {
    font-size: 2rem;
  }

  .banner-subtitle {
    font-size: 1rem;
  }

  .app-card .app-access {
    flex-direction: column;
    align-items: stretch;
    gap: var(--spacing-3);
  }

  .app-card .app-link {
    justify-content: center;
  }

  .app-card .app-author {
    justify-content: center;
  }

  .app-card .image-container {
    height: 180px;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  background: var(--primary-light);
  color: white;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: var(--spacing-3);
}

.fade-in {
  animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.app-card {
  animation: fadeIn 0.6s ease-in-out;
}

.app-card:nth-child(2) {
  animation-delay: 0.1s;
}

.app-card:nth-child(3) {
  animation-delay: 0.2s;
}

.app-card:nth-child(4) {
  animation-delay: 0.3s;
}

.app-card:nth-child(5) {
  animation-delay: 0.4s;
}

.app-card:nth-child(6) {
  animation-delay: 0.5s;
}
