/**
 * =========================================================
 * 大华导航 Dahua Nav
 * 默认模板主样式：public/themes/default/assets/css/style.css
 * =========================================================
 */

/* ---------------------------------------------------------
   1. 全局变量
--------------------------------------------------------- */

:root {
  --bg: #edf3ff;
  --panel: rgba(255, 255, 255, 0.72);
  --panel-strong: rgba(255, 255, 255, 0.9);
  --panel-soft: rgba(255, 255, 255, 0.52);

  --primary: #2f7bff;
  --primary-strong: #1f6bff;
  --primary-deep: #0b4db8;
  --accent: #5fb4ff;
  --accent-soft: rgba(95, 180, 255, 0.2);

  --text: #0f1e3a;
  --text-strong: #08162c;
  --muted: #4b6288;
  --muted-light: #7a8daa;

  --danger: #d93025;
  --warning: #ff8a3d;
  --success: #15a46e;

  --border: rgba(255, 255, 255, 0.66);
  --border-dark: rgba(15, 40, 90, 0.1);
  --shadow: 0 10px 24px rgba(37, 79, 152, 0.12);
  --shadow-strong: 0 18px 44px rgba(29, 67, 132, 0.18);
  --hover-shadow: 0 14px 30px rgba(47, 123, 255, 0.22);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --max-width: 1200px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ---------------------------------------------------------
   2. 基础重置
--------------------------------------------------------- */

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--text);
  font-family:
    "SF Pro Display",
    "SF Pro Text",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    "Noto Sans CJK SC",
    sans-serif;
  line-height: 1.6;
  background:
    radial-gradient(1000px 540px at -20% -10%, rgba(56, 189, 248, 0.25), transparent 60%),
    radial-gradient(860px 480px at 120% 6%, rgba(37, 99, 235, 0.24), transparent 62%),
    linear-gradient(160deg, #eef4ff 0%, #e8effd 48%, #edf3ff 100%);
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

body.is-unlocked {
  overflow: auto;
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

img {
  max-width: 100%;
  -webkit-user-drag: none;
  user-select: none;
}

.no-select {
  user-select: none;
}

.no-select input,
.no-select textarea {
  user-select: text;
}

[hidden] {
  display: none !important;
}

@media print {
  body {
    display: none !important;
  }
}

/* ---------------------------------------------------------
   3. 背景层
--------------------------------------------------------- */

#bg-particles {
  position: fixed;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  opacity: 0.72;
  filter: blur(0.2px);
  pointer-events: none;
}

.top-bg {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  height: 330px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.72) 72%),
    radial-gradient(600px 260px at 30% 0%, rgba(47, 123, 255, 0.22), transparent 70%),
    radial-gradient(520px 240px at 80% 10%, rgba(95, 180, 255, 0.2), transparent 68%);
  opacity: 0.9;
  z-index: -2;
  pointer-events: none;
  filter: saturate(1.05);
}

.wm {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent 0 40px, rgba(31, 111, 235, 0.18) 40px 41px),
    repeating-linear-gradient(-45deg, transparent 0 40px, rgba(42, 168, 255, 0.16) 40px 41px);
  transition: opacity 0.25s ease;
}

body.watermark-on .wm {
  opacity: 0.055;
}

/* ---------------------------------------------------------
   4. 页面加载状态
--------------------------------------------------------- */

.page-loading {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background:
    radial-gradient(700px 360px at 30% 20%, rgba(95, 180, 255, 0.18), transparent 60%),
    linear-gradient(160deg, #eef4ff 0%, #edf3ff 100%);
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.page-loading.hide {
  opacity: 0;
  visibility: hidden;
}

.loading-card {
  width: min(320px, 86vw);
  padding: 28px 24px;
  border-radius: 24px;
  text-align: center;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 22px 52px rgba(29, 67, 132, 0.16);
  backdrop-filter: blur(16px) saturate(1.12);
  -webkit-backdrop-filter: blur(16px) saturate(1.12);
}

.loading-logo {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 30px;
  font-weight: 900;
  background:
    radial-gradient(circle at 28% 26%, rgba(95, 180, 255, 0.98), transparent 48%),
    linear-gradient(135deg, var(--primary-strong), var(--accent));
  box-shadow: 0 14px 28px rgba(47, 123, 255, 0.28);
}

.loading-text {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

/* ---------------------------------------------------------
   5. 固定顶部区域
--------------------------------------------------------- */

.fixed-area {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: linear-gradient(180deg, rgba(236, 244, 255, 0.86), rgba(236, 244, 255, 0));
  padding-bottom: 4px;
}

.site-header {
  max-width: var(--max-width);
  margin: 8px auto 4px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(236, 244, 255, 0.78), rgba(220, 234, 252, 0.72));
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 12px 28px rgba(26, 69, 138, 0.14);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(47, 123, 255, 0.1), transparent 60%),
    repeating-linear-gradient(90deg, rgba(15, 40, 90, 0.045) 0 1px, transparent 1px 24px);
  opacity: 0.92;
  pointer-events: none;
}

.site-header::after {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(47, 123, 255, 0.48), transparent);
  opacity: 0.7;
  pointer-events: none;
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 10px 18px;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--text-strong);
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.brand-logo {
  height: 40px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(31, 111, 235, 0.16));
}

.brand-text {
  font-size: 18px;
  font-weight: 900;
  color: var(--text-strong);
  text-shadow: 0 2px 14px rgba(47, 123, 255, 0.16);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-main-btn {
  min-width: 120px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 10px 20px;
  border-radius: 14px;
  color: var(--text-strong) !important;
  text-decoration: none;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.4px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(241, 248, 255, 0.72));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 10px 24px rgba(28, 72, 142, 0.2);
  transition:
    transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.24s ease;
}

.nav-main-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.5), transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}

.nav-main-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--hover-shadow);
}

.nav-main-btn:hover::after {
  transform: translateX(120%);
}

/* ---------------------------------------------------------
   6. 轮播图
--------------------------------------------------------- */

.carousel {
  max-width: var(--max-width);
  margin: 2px auto;
  padding: 0 20px;
}

.carousel-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.28));
  box-shadow: 0 26px 46px rgba(30, 78, 158, 0.22);
  backdrop-filter: blur(10px) saturate(1.08);
  -webkit-backdrop-filter: blur(10px) saturate(1.08);
}

.slides {
  display: flex;
  transition: transform 0.58s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.slide {
  min-width: 100%;
  height: 36vw;
  min-height: 220px;
  max-height: 380px;
  position: relative;
  background:
    linear-gradient(135deg, rgba(47, 123, 255, 0.12), rgba(95, 180, 255, 0.14)),
    #eaf1ff;
}

.slide-link {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0.94;
}

.car-btn {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.56);
  color: var(--text-strong);
  cursor: pointer;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transform: translateY(-50%);
  transition:
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.24s ease,
    box-shadow 0.24s ease;
}

.car-btn span {
  font-size: 30px;
  line-height: 1;
  transform: translateY(-1px);
}

.car-btn:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: translateY(-50%) scale(1.06);
  box-shadow: var(--hover-shadow);
}

.car-prev {
  left: 14px;
}

.car-next {
  right: 14px;
}

.dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  background: rgba(15, 40, 90, 0.18);
  cursor: pointer;
  transition:
    width 0.24s ease,
    transform 0.24s ease,
    background 0.24s ease,
    box-shadow 0.24s ease;
}

.dot.active {
  width: 24px;
  background: var(--primary);
  box-shadow: 0 0 16px rgba(47, 123, 255, 0.45);
}

/* ---------------------------------------------------------
   7. 公告 + 图标滚动
--------------------------------------------------------- */

.section {
  max-width: var(--max-width);
  margin: 10px auto;
  padding: 0 20px;
}

.apps-section {
  margin-top: 6px;
  margin-bottom: 2px;
}

.marquee-wrap {
  width: 100%;
  min-height: 32px;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: linear-gradient(120deg, rgba(44, 115, 255, 0.84), rgba(89, 178, 255, 0.78));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 8px 18px rgba(42, 105, 214, 0.2);
}

.marquee-wrap.compact {
  margin-top: 6px;
}

.marquee {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  animation: marqueeMove 13s linear infinite;
  padding-left: 6px;
}

.marquee-text {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.2),
    0 6px 16px rgba(0, 0, 0, 0.18);
}

@keyframes marqueeMove {
  0% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(-100%);
  }
}

.icon-ticker {
  margin-top: 4px;
  margin-bottom: 6px;
  padding: 6px 8px;
  overflow: hidden;
  position: relative;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(247, 251, 255, 0.48));
  box-shadow: 0 10px 24px rgba(31, 111, 235, 0.16);
  touch-action: pan-y;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.icon-ticker .ticker-status {
  position: absolute;
  right: 10px;
  top: 6px;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.46);
  color: #fff;
  font-size: 11px;
  transition: opacity 0.2s ease;
}

.icon-ticker.paused .ticker-status {
  opacity: 1;
}

.icon-track {
  display: flex;
  align-items: center;
  gap: 10px;
  will-change: transform;
}

.icon-item {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  cursor: pointer;
  border-radius: 999px;
  overflow: hidden;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.74);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(245, 250, 255, 0.64));
  box-shadow: 0 8px 20px rgba(31, 88, 183, 0.14);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.icon-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(31, 111, 235, 0.2);
}

.icon-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------------------------------------------------------
   8. 滚动卡片区域
--------------------------------------------------------- */

.cards-scroll {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(12px + var(--safe-bottom));
}

.nav-section {
  margin-top: 0;
  padding-top: 0;
}

.section-head {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin: 6px 0 10px;
}

.category-tabs {
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(245, 250, 255, 0.62));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 12px 24px rgba(26, 68, 138, 0.12);
  backdrop-filter: blur(10px) saturate(1.05);
  -webkit-backdrop-filter: blur(10px) saturate(1.05);
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  flex: 0 0 auto;
  padding: 7px 14px;
  border-radius: 12px;
  border: 1px solid rgba(15, 40, 90, 0.1);
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(31, 111, 235, 0.1);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease;
}

.tab-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(31, 111, 235, 0.14);
}

.tab-btn.active {
  color: #fff;
  border-color: rgba(47, 123, 255, 0.4);
  background: linear-gradient(90deg, var(--primary-strong), var(--accent));
  box-shadow: 0 8px 18px rgba(47, 123, 255, 0.25);
}

.card-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
}

.card-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 8px 10px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(245, 250, 255, 0.6));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 14px 28px rgba(26, 68, 138, 0.12);
  backdrop-filter: blur(10px) saturate(1.05);
  -webkit-backdrop-filter: blur(10px) saturate(1.05);
}

.card {
  min-width: 0;
  min-height: 78px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 7px 5px;
  position: relative;
  overflow: hidden;
  text-align: center;
  color: inherit;
  text-decoration: none;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(245, 250, 255, 0.56));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 14px 30px rgba(26, 68, 138, 0.13);
  opacity: 0;
  transform: translateY(12px) scale(0.985);
  animation: iosCardIn 0.62s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--stagger, 0ms);
  transition:
    transform 0.28s cubic-bezier(0.2, 1.4, 0.3, 1),
    box-shadow 0.24s ease,
    filter 0.24s ease,
    border-color 0.24s ease;
  backdrop-filter: blur(12px) saturate(1.08);
  -webkit-backdrop-filter: blur(12px) saturate(1.08);
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(47, 123, 255, 0.25), transparent 60%);
  opacity: 0;
  transform: scale(0.7);
  pointer-events: none;
  transition:
    opacity 0.24s ease,
    transform 0.24s cubic-bezier(0.2, 1.2, 0.3, 1);
}

.card:hover {
  transform: translateY(-3px) scale(1.01);
  border-color: rgba(84, 151, 255, 0.48);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 16px 36px rgba(37, 92, 184, 0.2);
}

.card:active {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(47, 123, 255, 0.28);
  filter: brightness(1.02) saturate(1.08);
}

.card:active::after {
  opacity: 1;
  transform: scale(1.05);
}

.avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 12px;
  object-fit: cover;
  background: #eef4ff;
  border: 2px solid rgba(47, 123, 255, 0.16);
  box-shadow: 0 6px 12px rgba(31, 111, 235, 0.15);
}

.title {
  max-width: 100%;
  color: var(--text-strong);
  font-size: 11px;
  line-height: 1.18;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-desc {
  max-width: 100%;
  color: var(--muted-light);
  font-size: 10px;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: none;
}

.rec-badge {
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  z-index: 2;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  background: linear-gradient(135deg, #ff3b30, #ff8a3d);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.rec-badge-text {
  position: absolute;
  left: 2px;
  top: 13px;
  color: #fff;
  font-weight: 900;
  font-size: 10px;
  letter-spacing: 0.4px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  -webkit-text-stroke: 0.4px rgba(0, 0, 0, 0.2);
  transform: rotate(-45deg) translate(-4px, -2px);
  transform-origin: 0 0;
}

/* ---------------------------------------------------------
   9. 空状态
--------------------------------------------------------- */

.empty-state {
  margin: 18px auto;
  width: min(520px, 92vw);
  padding: 32px 22px;
  text-align: center;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  background: rgba(255, 255, 255, 0.65);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.empty-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  font-size: 30px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary-strong), var(--accent));
  box-shadow: 0 12px 24px rgba(47, 123, 255, 0.22);
}

.empty-title {
  color: var(--text-strong);
  font-size: 17px;
  font-weight: 900;
  margin-bottom: 4px;
}

.empty-desc {
  color: var(--muted);
  font-size: 13px;
}

/* ---------------------------------------------------------
   10. 底部
--------------------------------------------------------- */

.site-footer {
  max-width: var(--max-width);
  margin: 8px auto 18px;
  padding: 0 20px;
}

.brand-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 8px 0;
  color: var(--muted-light);
  font-size: 12px;
  text-align: center;
}

.footer-logo {
  width: auto;
  max-width: 130px;
  height: 28px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 3px 8px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(245, 250, 255, 0.72));
}

.footer-logo img {
  width: auto;
  height: 100%;
  object-fit: contain;
  display: block;
}

.footer-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
}

.footer-name {
  font-size: 12px;
  font-weight: 900;
  color: #243f6f;
}

.footer-desc {
  font-size: 11px;
  color: var(--muted-light);
}

.footer-copy {
  font-size: 11px;
  color: var(--muted-light);
  white-space: nowrap;
}

/* ---------------------------------------------------------
   11. 域名限制
--------------------------------------------------------- */

.domain-lock {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: #fff;
  text-align: center;
  background: rgba(6, 14, 28, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.domain-lock-box {
  width: min(520px, 92vw);
  padding: 26px 22px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.36);
}

.domain-lock-title {
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: 900;
}

.domain-lock-desc {
  font-size: 14px;
  line-height: 1.8;
  opacity: 0.86;
}

/* ---------------------------------------------------------
   12. 无 JS 提示
--------------------------------------------------------- */

.noscript-warning {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1200;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff7e6;
  border: 1px solid rgba(255, 138, 61, 0.25);
  color: #8a4b00;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  box-shadow: var(--shadow);
}

/* ---------------------------------------------------------
   13. 动画
--------------------------------------------------------- */

@keyframes iosCardIn {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }

  68% {
    opacity: 1;
    transform: translateY(-1px) scale(1.003);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }

  .card {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .slides {
    transition: none;
  }

  .marquee {
    animation: none;
    transform: none;
  }
}

/* ---------------------------------------------------------
   14. 电脑端增强
--------------------------------------------------------- */

@media (min-width: 1025px) {
  .card-grid {
    gap: 8px;
  }

  .card-row {
    gap: 4px;
    padding: 4px 5px;
    border-radius: 12px;
  }

  .card {
    min-height: 66px;
    padding: 4px 3px;
    gap: 3px;
    border-radius: 10px;
  }

  .avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .title {
    font-size: 10px;
  }
}

/* ---------------------------------------------------------
   15. 小工具类
--------------------------------------------------------- */

.fade-in {
  animation: fadeIn 0.28s ease both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.text-muted {
  color: var(--muted);
}

.text-danger {
  color: var(--danger);
}

.text-primary {
  color: var(--primary);
}