:root {
  color-scheme: light;
  --primary: #526de5;
  --primary-2: #9063d9;
  --accent: #68a4ff;
  --bg: #f5f7ff;
  --bg-2: #e5eafb;
  --ink: #17223f;
  --muted: #667085;
  --panel: rgba(253, 253, 255, 0.91);
  --line: rgba(91, 112, 193, 0.26);
  --radius: 24px;
  --shadow: 0 20px 48px rgba(52, 63, 126, 0.15), 0 0 28px rgba(106, 91, 224, 0.06);
  --soft-shadow: 0 10px 28px rgba(34, 77, 151, 0.1);
  --page-art-overlay: linear-gradient(rgba(248, 250, 255, 0.16), rgba(235, 242, 255, 0.28));
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background-color: var(--bg);
  background-image: var(--page-art-overlay), url("assets/yinghe-page-bg-v1.webp");
  background-position: center top, center top;
  background-repeat: no-repeat, no-repeat;
  background-size: cover, cover;
  background-attachment: fixed;
  font-family: "SF Pro Display", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: 0.16;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(73, 94, 184, 0.22) 0 1px, transparent 1.5px),
    linear-gradient(115deg, transparent 0 48%, rgba(99, 117, 204, 0.04) 48.2% 48.4%, transparent 48.6%);
  background-position: 0 0, 0 0;
  background-size: 82px 82px, 420px 260px;
}

button,
a {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(82, 109, 229, 0.28);
  outline-offset: 3px;
}

.seo-only-heading {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  padding-top: 1px;
}

.site-header {
  position: relative;
  width: min(1180px, calc(100% - 28px));
  margin: 13px auto 10px;
  overflow: hidden;
  border: 1px solid rgba(126, 145, 255, 0.4);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.75), transparent 34%),
    radial-gradient(circle at 92% 10%, rgba(169, 91, 255, 0.12), transparent 32%),
    var(--panel);
  box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.site-header::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, #35bfff, #5e7aff 54%, #d45eff);
  opacity: 0.62;
}

.nav {
  display: flex;
  min-height: 76px;
  align-items: center;
  padding: 9px 20px;
}

.brand {
  display: flex;
  align-items: center;
}

.brand-logo {
  display: block;
  width: auto;
  max-width: 230px;
  height: 56px;
  object-fit: contain;
}

.carousel {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto 10px;
}

.carousel::before {
  position: absolute;
  inset: -22px -34px;
  z-index: -2;
  content: "";
  pointer-events: none;
  border-radius: 42px;
  background:
    radial-gradient(circle at 18% 28%, rgba(72, 132, 255, 0.24), transparent 37%),
    radial-gradient(circle at 82% 20%, rgba(155, 88, 235, 0.2), transparent 34%),
    radial-gradient(circle at 52% 92%, rgba(242, 189, 65, 0.14), transparent 42%);
  filter: blur(18px);
  opacity: 0.9;
}

.carousel::after {
  position: absolute;
  inset: -6px;
  z-index: -1;
  content: "";
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.58), rgba(110, 132, 244, 0.08) 48%, rgba(210, 105, 246, 0.1));
  box-shadow: 0 14px 38px rgba(49, 71, 149, 0.12);
  backdrop-filter: blur(12px) saturate(1.12);
}

.carousel-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1913 / 822;
  overflow: hidden;
  border: 1px solid rgba(126, 145, 255, 0.5);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 18% 8%, rgba(106, 142, 255, 0.36), transparent 38%),
    radial-gradient(circle at 88% 12%, rgba(163, 94, 232, 0.24), transparent 34%),
    linear-gradient(145deg, #eef4ff, #dbe5fb);
  box-shadow:
    0 24px 64px rgba(39, 72, 154, 0.2),
    0 3px 12px rgba(53, 88, 165, 0.08),
    inset 0 1px rgba(255, 255, 255, 0.88),
    inset 0 -1px rgba(80, 105, 205, 0.12);
}

.carousel-wrap::after {
  position: absolute;
  inset: 0;
  z-index: 4;
  content: "";
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.18), transparent 26% 72%, rgba(107, 83, 221, 0.08)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 22% 78%, rgba(19, 42, 105, 0.08));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.slide {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  flex: 0 0 100%;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 35%, var(--slide-glow), transparent 64%),
    linear-gradient(145deg, #e7efff, #cbd8f3);
}

.slide::before {
  position: absolute;
  inset: -34px;
  content: "";
  background-image: var(--slide-image);
  background-position: center;
  background-size: cover;
  filter: blur(28px) saturate(1.12) brightness(1.02);
  opacity: 0.72;
  transform: scale(1.09);
  animation: carousel-backdrop-drift 14s ease-in-out infinite alternate;
}

.slide::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, transparent 52%, rgba(36, 57, 125, 0.1) 100%),
    linear-gradient(110deg, rgba(255, 255, 255, 0.11), transparent 34% 70%, rgba(255, 231, 169, 0.08));
}

.slide img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: saturate(1.035) contrast(1.018);
  transform: translateZ(0);
}

@keyframes carousel-backdrop-drift {
  from { transform: scale(1.09) translate3d(-0.5%, -0.3%, 0); }
  to { transform: scale(1.12) translate3d(0.6%, 0.4%, 0); }
}

.dots {
  position: absolute;
  right: 0;
  bottom: 13px;
  left: 0;
  z-index: 2;
  display: none;
  justify-content: center;
  gap: 6px;
}

.dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  transition: width 180ms ease;
}

.dot.active {
  width: 24px;
  background: #fff;
}

.section,
.site-footer {
  width: 100%;
  max-width: 1180px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 20px;
  padding-left: 20px;
}

.notice-section {
  margin-top: 8px;
}

.marquee-wrap {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 40px;
  align-items: center;
  padding: 7px 14px 7px 82px;
  overflow: hidden;
  color: inherit;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 34%),
    radial-gradient(circle at 92% 10%, rgba(169, 91, 255, 0.12), transparent 32%),
    var(--panel);
  box-shadow: var(--shadow);
}

.notice-badge {
  position: absolute;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 2px 10px;
  color: #526de5;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid rgba(82, 109, 229, 0.09);
  border-radius: 999px;
  background: linear-gradient(135deg, #e7efff, #f1f6ff);
  box-shadow: 0 5px 14px rgba(47, 107, 255, 0.1);
}

.marquee {
  display: block;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-text {
  display: inline-block;
  min-width: max-content;
  padding-left: 100%;
  color: #475467;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
  animation: notice-scroll 15s linear infinite;
}

.marquee-wrap:hover .marquee-text {
  animation-play-state: paused;
}

@keyframes notice-scroll {
  to { transform: translateX(-100%); }
}

.nav-section {
  margin-top: 10px;
  margin-bottom: 10px;
  border: 1px solid transparent;
}

.category-buttons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 2px 0;
  border: 1px solid transparent;
}

.category-button {
  position: relative;
  display: flex;
  order: var(--order);
  min-width: 0;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  overflow: hidden;
  color: #344054;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid rgba(122, 143, 255, 0.3);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(244, 248, 255, 0.9), rgba(232, 240, 252, 0.82));
  box-shadow: 0 6px 16px rgba(38, 70, 126, 0.045), inset 0 1px rgba(255, 255, 255, 0.82);
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.category-button::before {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  place-items: center;
  color: #fff;
  content: attr(data-icon);
  font-size: 11px;
  border: 1px solid rgba(162, 175, 255, 0.42);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #aebcff, #5b6fff 52%, #292667);
  box-shadow: 0 0 0 4px rgba(106, 119, 255, 0.1), 0 0 18px rgba(104, 95, 255, 0.34);
}

.category-button:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.category-button.active {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
  background: linear-gradient(115deg, #405fff, #795cff 54%, #b954e8);
  box-shadow: 0 12px 30px rgba(83, 73, 255, 0.34), inset 0 1px rgba(255, 255, 255, 0.25);
}

.fixed-primary-category {
  grid-column: span 2;
  min-height: 50px;
  font-size: 16px;
}

.cards-scroll {
  position: relative;
}

.section-title {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 48px;
  margin: 38px 0 18px;
  padding: 0 0 0 15px;
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 900;
  line-height: 1.2;
  text-shadow: 0 6px 18px rgba(36, 69, 126, 0.085);
}

.section-title::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 4px;
  height: 30px;
  content: "";
  border-radius: 99px;
  background: linear-gradient(180deg, #2f6bff, #65a2ff 60%, #2dc1b5);
  box-shadow: 0 0 0 4px rgba(47, 107, 255, 0.07), 0 8px 18px rgba(47, 107, 255, 0.18);
  transform: translateY(-50%);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 6px;
}

.card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-areas: "avatar meta cta";
  grid-template-columns: 62px minmax(0, 1fr) 90px;
  gap: 13px;
  min-height: 112px;
  align-items: center;
  padding: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 82% 4%, rgba(178, 91, 255, 0.13), transparent 28%),
    radial-gradient(circle at 10% 92%, rgba(75, 124, 255, 0.1), transparent 32%),
    linear-gradient(155deg, rgba(255, 255, 255, 0.5), transparent 48%),
    var(--panel);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.3);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.card::after {
  position: absolute;
  top: 0;
  right: 13px;
  left: 13px;
  z-index: 0;
  height: 2px;
  content: "";
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, transparent, #4d7dff 35%, #31d2c2 64%, transparent);
  box-shadow: 0 2px 12px rgba(59, 124, 255, 0.26);
  opacity: 0.72;
}

.card:hover {
  border-color: rgba(99, 142, 238, 0.62);
  box-shadow: 0 18px 40px rgba(47, 107, 255, 0.16), inset 0 1px rgba(255, 255, 255, 0.95);
  transform: translateY(-3px);
}

.card-rec-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  padding: 2px 8px;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.5;
  border-radius: 999px;
  background: linear-gradient(135deg, #596cff, #ad55e6);
  box-shadow: 0 0 18px rgba(142, 87, 255, 0.38);
}

.card-rec-badge.popular {
  background: linear-gradient(135deg, #ff8f3d, #ff5478);
}

.avatar {
  position: relative;
  z-index: 1;
  grid-area: avatar;
  display: block;
  width: 62px;
  height: 62px;
  object-fit: cover;
  border: 2px solid rgba(125, 163, 238, 0.48);
  border-radius: 50%;
  background: linear-gradient(145deg, #fff, #edf4ff);
  box-shadow: 0 0 0 5px rgba(65, 121, 241, 0.055), 0 8px 18px rgba(30, 77, 163, 0.14);
}

.meta {
  position: relative;
  z-index: 1;
  grid-area: meta;
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.card-title {
  overflow: hidden;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.desc {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.2;
}

.rating {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
  overflow: hidden;
  line-height: 1;
  white-space: nowrap;
}

.stars {
  overflow: hidden;
  color: #f5a524;
  font-size: 12px;
  letter-spacing: -1px;
}

.score {
  color: #98a2b3;
  font-size: 12px;
}

.go {
  position: relative;
  z-index: 2;
  display: inline-flex;
  grid-area: cta;
  width: 90px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  background: linear-gradient(115deg, #405fff, #795cff 54%, #b954e8);
  box-shadow: 0 10px 24px rgba(82, 109, 229, 0.28);
}

.go:hover {
  filter: brightness(1.08);
}

.site-footer {
  margin-top: 11px;
  margin-bottom: 18px;
}

.brand-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: 78px;
  padding: 8px 0;
  color: #7b8aa3;
  font-size: 12px;
  line-height: 16px;
  text-align: center;
}

.brand-footer .name {
  color: #64748b;
  font-weight: 700;
}

.service-float-btn,
.theme-mode-toggle {
  position: fixed;
  right: 22px;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: 0;
  background: linear-gradient(115deg, #405fff, #795cff 54%, #b954e8);
  box-shadow: 0 12px 28px rgba(72, 83, 220, 0.32);
}

.service-float-btn {
  bottom: 24px;
  width: 112px;
  height: 48px;
  gap: 7px;
  padding: 0 16px;
  border-radius: 999px;
}

.service-float-btn > span {
  font-size: 19px;
}

.service-float-btn b {
  position: absolute;
  top: -7px;
  right: -7px;
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  padding: 0 6px;
  font-size: 12px;
  line-height: 1;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #ff4865;
}

.service-float-btn em {
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.theme-mode-toggle {
  right: 148px;
  bottom: 24px;
  min-width: 104px;
  height: 42px;
  gap: 7px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.empty-view {
  min-height: 440px;
  padding-top: 28px;
}

.empty-panel {
  display: flex;
  min-height: 340px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  text-align: center;
}

.empty-icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  color: #fff;
  font-size: 24px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 12px 28px rgba(82, 109, 229, 0.28);
}

.empty-panel h2 {
  margin: 18px 0 6px;
}

.empty-panel p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
}

.return-button {
  margin-top: 22px;
  padding: 9px 20px;
  color: #fff;
  font-weight: 800;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(115deg, #405fff, #795cff 54%, #b954e8);
}

.dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(9, 15, 37, 0.5);
  backdrop-filter: blur(8px);
}

.dialog-backdrop[hidden],
[hidden] {
  display: none !important;
}

.dialog-panel {
  width: min(440px, 100%);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 28px 80px rgba(22, 30, 75, 0.32);
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.dialog-head > div {
  display: flex;
  flex-direction: column;
}

.dialog-head strong {
  font-size: 18px;
}

.dialog-head span {
  color: var(--muted);
  font-size: 12px;
}

.dialog-close {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
}

.dialog-body {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.service-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
}

.service-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

.service-meta {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.service-meta small {
  color: #14a475;
}

.service-action {
  min-height: 32px;
  padding: 4px 10px;
  color: #526de5;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid #b9ccff;
  border-radius: 9px;
  background: #fff;
}

.notice-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 86px;
  z-index: 260;
  max-width: min(340px, calc(100% - 40px));
  padding: 11px 15px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 12px;
  background: rgba(21, 29, 55, 0.92);
  box-shadow: 0 14px 36px rgba(20, 27, 57, 0.28);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #071223;
  --bg-2: #0b1b33;
  --ink: #e8efff;
  --muted: #9cafc8;
  --panel: rgba(12, 23, 48, 0.91);
  --line: rgba(104, 126, 208, 0.34);
  --shadow: 0 20px 48px rgba(0, 0, 0, 0.36), 0 0 28px rgba(105, 88, 230, 0.09);
  --page-art-overlay: linear-gradient(rgba(5, 12, 28, 0.76), rgba(7, 18, 35, 0.9));
}

html[data-theme="dark"] .category-button:not(.active) {
  color: #c4cdec;
  background: linear-gradient(145deg, rgba(38, 43, 91, 0.78), rgba(12, 19, 51, 0.9));
}

html[data-theme="dark"] .marquee-text,
html[data-theme="dark"] .brand-footer,
html[data-theme="dark"] .brand-footer .name {
  color: #9cafc8;
}

html[data-theme="dark"] .notice-badge {
  color: #c7d7ff;
  background: linear-gradient(135deg, #1a3155, #172b49);
}

html[data-theme="dark"] .avatar {
  background: linear-gradient(145deg, #1c3150, #132642);
}

html[data-theme="dark"] .service-item,
html[data-theme="dark"] .service-action {
  color: #c7d7ff;
  background: rgba(18, 34, 67, 0.8);
}

html[data-theme="dark"] .carousel::after {
  border-color: rgba(116, 139, 226, 0.34);
  background: linear-gradient(120deg, rgba(25, 40, 75, 0.72), rgba(79, 69, 165, 0.16) 52%, rgba(143, 67, 183, 0.12));
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.34);
}

html[data-theme="dark"] .carousel-wrap {
  border-color: rgba(111, 137, 224, 0.42);
  background:
    radial-gradient(circle at 18% 8%, rgba(73, 107, 214, 0.26), transparent 38%),
    radial-gradient(circle at 88% 12%, rgba(129, 71, 185, 0.2), transparent 34%),
    linear-gradient(145deg, #111f3c, #0b1730);
  box-shadow: 0 26px 68px rgba(0, 0, 0, 0.38), inset 0 1px rgba(255, 255, 255, 0.1);
}

@media (max-width: 720px) {
  body {
    background-attachment: scroll;
  }

  .page-shell {
    padding-top: 0;
  }

  .site-header {
    width: 100%;
    margin: 0 auto 8px;
    border-width: 0 0 1px;
    border-radius: 0;
  }

  .nav {
    min-height: 66px;
    padding: 9px 14px;
  }

  .brand-logo {
    max-width: 168px;
    height: 44px;
  }

  .carousel {
    padding: 0 10px;
  }

  .carousel::before {
    inset: -12px -4px;
    filter: blur(14px);
    opacity: 0.78;
  }

  .carousel::after {
    inset: -2px 6px;
    border-radius: 20px;
  }

  .carousel-wrap {
    height: calc(clamp(160px, 42vw, 230px) + 2px);
    aspect-ratio: auto;
    border-radius: 18px;
  }

  .slide::before {
    inset: -22px;
    filter: blur(22px) saturate(1.16) brightness(1.03);
    opacity: 0.84;
  }

  .section,
  .site-footer {
    padding-right: 8px;
    padding-left: 8px;
  }

  .notice-section {
    margin-top: 8px;
  }

  .nav-section {
    position: sticky;
    top: 0;
    z-index: 30;
    margin-top: 6px;
    margin-bottom: 10px;
    padding-top: 8px;
    padding-bottom: 8px;
    border: 0;
    border-radius: 0 0 16px 16px;
    background: linear-gradient(180deg, rgba(234, 241, 252, 0.78), rgba(234, 241, 252, 0.5));
    box-shadow: 0 10px 24px rgba(39, 74, 132, 0.045);
    backdrop-filter: blur(14px) saturate(1.08);
  }

  html[data-theme="dark"] .nav-section {
    background: linear-gradient(180deg, rgba(12, 27, 47, 0.82), rgba(12, 27, 47, 0.58));
  }

  .category-buttons {
    gap: 7px;
    padding: 2px 0;
    border: 0;
  }

  .category-button {
    min-height: 44px;
    padding: 0 8px;
    font-size: clamp(11px, 3.2vw, 13px);
  }

  .fixed-primary-category {
    min-height: 44px;
    font-size: 13px;
  }

  .section-title {
    min-height: 44px;
    margin: 30px 0 14px;
    font-size: 23px;
  }

  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: 0;
  }

  .card {
    display: grid;
    grid-template-areas: "avatar" "meta" "cta";
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 45px 18px 36px;
    gap: 4px;
    min-height: 122px;
    justify-items: center;
    padding: 8px 5px 6px;
    border-radius: var(--radius);
  }

  .card-rec-badge {
    top: 5px;
    right: 5px;
    padding: 1px 5px;
    font-size: 9px;
  }

  .avatar {
    width: 44px;
    height: 44px;
  }

  .meta {
    width: 100%;
    align-items: center;
  }

  .card-title {
    width: 100%;
    font-size: 12px;
    line-height: 18px;
    text-align: center;
  }

  .desc,
  .rating {
    display: none;
  }

  .go {
    width: 100%;
    min-height: 36px;
    padding: 3px;
    font-size: 10px;
    border-radius: 8px;
  }

  .brand-footer {
    height: 74px;
    padding: 8px 0;
  }

  .site-footer {
    min-height: 74px;
    margin-top: 8px;
  }

  .service-float-btn,
  .theme-mode-toggle {
    right: 14px;
    width: 46px;
    min-width: 46px;
    height: 46px;
    padding: 0;
    border-radius: 50%;
  }

  .service-float-btn {
    bottom: 18px;
  }

  .theme-mode-toggle {
    bottom: 74px;
  }

  .service-float-btn em,
  .theme-mode-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .service-float-btn b {
    top: -4px;
    right: -3px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    font-size: 10px;
  }

  .theme-mode-icon {
    font-size: 18px;
  }

  .toast {
    right: 70px;
    bottom: 20px;
  }
}

@media (max-width: 360px) {
  .category-button {
    gap: 5px;
    padding: 0 4px;
    font-size: 11px;
  }

  .category-button::before {
    width: 19px;
    height: 19px;
    flex-basis: 19px;
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
