/* ==========================================================================
   法兰西帝国 · 帝国门户
   —— 哑光织物（"抹布感"）材质 + 字体系统
   ========================================================================== */

:root {
  --gold: #c8a34a;
  --gold-light: #e7cd8a;
  --gold-deep: #8a6c24;
  --gold-gradient: linear-gradient(135deg, #d9b862, #b0892f);

  --fr-blue: #002395;
  --fr-blue-d: #001b6e;
  --fr-red: #ED2939;
  --fr-red-d: #c11f2d;
  --fr-white: #ffffff;

  --ink: #14131c;
  --text-main: #1b1a24;
  --text-body: #4a4d5e;
  --text-muted: #8a8f9c;
  --red: #c0392b;

  /* ---------------- 透明玻璃 / 白瓷 / 大理石 ----------------
     卡片是通透的亮面材质：低不透明度 + 强背景模糊 + 高光内描边。
     "抹布感 / 瓷感 / 石感"来自它背后那层材质（#cloth-blur + 旗面），
     而不是卡片自己变哑光。材质由 html[data-material] 切换。 */
  --cloth: rgba(255, 255, 255, 0.55);
  --cloth-strong: rgba(255, 255, 255, 0.60);
  --cloth-inset: rgba(255, 255, 255, 0.52);
  --cloth-hover: rgba(255, 255, 255, 0.68);

  --glass-blur: blur(24px);
  --glass-edge: rgba(255, 255, 255, 0.58);
  --glass-edge-soft: rgba(255, 255, 255, 0.46);
  --glass-inner: inset 0 1px 0 rgba(255, 255, 255, 0.7),
                 inset 0 0 24px rgba(255, 255, 255, 0.14);

  --cloth-edge: rgba(20, 20, 30, 0.10);
  --cloth-edge-soft: rgba(20, 20, 30, 0.07);

  /* 织物纹理：只用在背景和背景层，不贴在卡片上 */
  --weave:
    repeating-linear-gradient(90deg, rgba(120, 104, 74, 0.085) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.55) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(45deg, rgba(120, 104, 74, 0.028) 0 2px, transparent 2px 6px);
  --speckle:
    radial-gradient(circle at 22% 34%, rgba(120, 104, 74, 0.09) 0 0.7px, transparent 0.7px),
    radial-gradient(circle at 68% 72%, rgba(120, 104, 74, 0.075) 0 0.7px, transparent 0.7px),
    radial-gradient(circle at 44% 12%, rgba(255, 255, 255, 0.5) 0 0.7px, transparent 0.7px);
  --speckle-size: 6px 6px, 9px 9px, 8px 8px;

  /* 阴影：玻璃卡片用克制的单层投影（不是织物那种哑光投影） */
  --shadow-sm: 0 1px 2px rgba(17, 17, 26, 0.04), 0 2px 6px rgba(17, 17, 26, 0.04);
  --shadow-md: 0 2px 4px rgba(17, 17, 26, 0.05), 0 6px 16px rgba(17, 17, 26, 0.06);
  --shadow-lg: 0 4px 8px rgba(17, 17, 26, 0.06), 0 12px 30px rgba(17, 17, 26, 0.08);

  /* 材质相关的可调项，由 data-material 等属性覆盖 */
  --material-sheen: 0.5;      /* 卡片高光强度 */
  --material-sat: 130%;       /* 背景模糊的饱和度 */
  --material-tint: rgba(255, 255, 255, 0.55);   /* 卡片底色 */
  --bg-texture-opacity: 0.9;  /* 背景纹理层浓度 */
  --bg-vignette: 0.35;        /* 背景暗角 */

  --radius-sm: 13px;
  --radius: 16px;
  --radius-lg: 20px;

  --container-px: 12px;
  --section-gap: 10px;

  /* 字号变量，后台可调 */
  --fs-display: 1.80rem;
  --fs-sec: 0.86rem;
  --fs-body: 0.80rem;
  --fs-sub: 0.62rem;

  /* 字体：local() 打头，字体没下载完也能用系统同名字体顶上 */
  --font-display: 'Times New Roman', 'Songti SC', 'SimSun', serif;
  --font-body: 'Noto Sans SC', system-ui, -apple-system, 'PingFang SC',
               'Microsoft YaHei', sans-serif;
  --font-badge: 'Cinzel', 'Times New Roman', serif;
  --font-countdown: 'Cinzel', 'Times New Roman', serif;
  --font-deco: 'UnifrakturMaguntia', 'Times New Roman', serif;
}

@media (min-width: 480px)  { :root { --container-px: 16px; --section-gap: 12px; } }
@media (min-width: 768px)  { :root { --container-px: 24px; --section-gap: 14px; } }
@media (min-width: 1024px) { :root { --container-px: 32px; --section-gap: 16px; } }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  background: #e9eaf0;
}

/* ==========================================================================
   三色旗背景（现在是"看不太清、只做氛围"的底子）
   ========================================================================== */
#flag-stage { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

.flag-band { position: absolute; top: 0; bottom: 0; width: 33.34%; }
.flag-blue {
  left: 0;
  background: linear-gradient(90deg, var(--fr-blue-d) 0%, var(--fr-blue) 46%, var(--fr-blue) 100%);
}
.flag-white {
  left: 33.33%;
  background: linear-gradient(90deg, #eef0f6 0%, var(--fr-white) 40%, #e8eaf2 100%);
}
.flag-red {
  left: 66.66%;
  background: linear-gradient(90deg, var(--fr-red-d) 0%, var(--fr-red) 46%, var(--fr-red) 100%);
}

#flag-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.055) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 3px);
  animation: flagWeave 9s ease-in-out infinite alternate;
}
@keyframes flagWeave {
  from { transform: translate3d(0, 0, 0) scale(1.01); opacity: 0.6; }
  to   { transform: translate3d(-12px, 5px, 0) scale(1.05); opacity: 0.9; }
}

.flag-wave {
  position: absolute;
  inset: -12%;
  background:
    radial-gradient(58% 42% at 20% 28%, rgba(255, 255, 255, 0.18), transparent 70%),
    radial-gradient(52% 46% at 78% 64%, rgba(255, 255, 255, 0.14), transparent 72%),
    radial-gradient(46% 36% at 50% 90%, rgba(0, 0, 0, 0.12), transparent 70%);
  animation: flagDrift 17s ease-in-out infinite alternate;
}
@keyframes flagDrift {
  from { transform: translate3d(-2%, 0, 0) rotate(-0.4deg); }
  to   { transform: translate3d(2%, -1.4%, 0) rotate(0.4deg); }
}

.flag-fold {
  position: absolute;
  top: -14%;
  bottom: -14%;
  width: 24%;
  background: linear-gradient(90deg,
    rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.1) 34%, rgba(255, 255, 255, 0.17) 50%,
    rgba(0, 0, 0, 0.1) 66%, rgba(0, 0, 0, 0) 100%);
  filter: blur(7px);
  animation: foldSway 11s ease-in-out infinite alternate;
}
.flag-fold.f1 { left: 5%; }
.flag-fold.f2 { left: 39%; animation-duration: 13s; animation-delay: -3s; }
.flag-fold.f3 { left: 73%; animation-duration: 10s; animation-delay: -6s; }
@keyframes foldSway {
  from { transform: translateX(-16px) scaleX(1); opacity: 0.72; }
  to   { transform: translateX(18px) scaleX(1.12); opacity: 1; }
}

.flag-sheen {
  position: absolute;
  inset: -25%;
  background:
    radial-gradient(34% 26% at 26% 22%, rgba(255, 255, 255, 0.30), transparent 68%),
    radial-gradient(30% 22% at 74% 40%, rgba(255, 255, 255, 0.20), transparent 70%),
    radial-gradient(28% 22% at 46% 76%, rgba(255, 255, 255, 0.16), transparent 72%);
  animation: sheenTravel 24s ease-in-out infinite alternate;
}
@keyframes sheenTravel {
  from { transform: translate3d(-6%, -3%, 0) scale(1); }
  to   { transform: translate3d(6%, 4%, 0) scale(1.1); }
}

/* 柔化罩：把旗面压淡一点，让玻璃卡片上的字始终清楚
   （后台可调整体浓度，见 --scrim-strength） */
.flag-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(251, 250, 246, var(--scrim-strength, 0.30)) 0%,
    rgba(249, 248, 243, var(--scrim-strength, 0.30)) 55%,
    rgba(247, 246, 241, calc(var(--scrim-strength, 0.30) + 0.06)) 100%);
}

/* ==========================================================================
   背后的「抹布感」
   卡片是清透玻璃，模糊感由它背后这些东西提供：
   带经纬纹理与褶皱的旗面，再叠一层被揉开的磨砂织物层。
   ========================================================================== */
#cloth-blur {
  position: fixed;
  inset: -8%;
  z-index: 1;
  pointer-events: none;
  /* 薄磨砂：把布纹揉糊，但不至于看不见 */
  backdrop-filter: blur(var(--cloth-blur, 9px)) saturate(112%);
  -webkit-backdrop-filter: blur(var(--cloth-blur, 9px)) saturate(112%);
  /* "抹布感"的纹理本体。
     刻意不用密集的平行线——那种规则条纹透过玻璃会变成百叶窗。
     这里用极软的斜向布纹 + 两种间距交错的细颗粒，看起来像被揉开的布。 */
  background-image:
    repeating-linear-gradient(72deg,
      rgba(120, 104, 74, 0.048) 0 3px, rgba(255, 255, 255, 0.13) 3px 7px,
      rgba(120, 104, 74, 0.048) 7px 10px),
    radial-gradient(circle at 21% 33%, rgba(120, 104, 74, 0.115) 0 0.9px, transparent 0.9px),
    radial-gradient(circle at 67% 19%, rgba(120, 104, 74, 0.095) 0 0.9px, transparent 0.9px),
    radial-gradient(circle at 44% 76%, rgba(255, 255, 255, 0.55) 0 0.9px, transparent 0.9px),
    radial-gradient(circle at 86% 58%, rgba(120, 104, 74, 0.085) 0 0.9px, transparent 0.9px),
    radial-gradient(circle at 12% 84%, rgba(255, 255, 255, 0.45) 0 0.9px, transparent 0.9px);
  background-size: auto, 7px 7px, 11px 11px, 9px 9px, 13px 13px, 17px 17px;
  opacity: var(--bg-texture-opacity, 0.92);
  /* 上淡下重，像一块搭着的布 */
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,1) 45%, rgba(0,0,0,1) 100%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,1) 45%, rgba(0,0,0,1) 100%);
}

/* ==========================================================================
   材质：织物 / 白瓷 / 大理石
   同一套 DOM，靠 html[data-material] 切换背景纹理与卡片质感。
   大理石纹理用内联 SVG（feTurbulence）生成，不需要外部图片。
   ========================================================================== */

/* ---------- 大理石 ---------- */
html[data-material="marble"] {
  --material-sheen: 0.62;
  --material-sat: 138%;
  --material-tint: rgba(255, 255, 255, 0.60);
  --bg-texture-opacity: 1;
  --bg-vignette: 0.30;
  /* 揉开程度交给后台的 clothBlur 滑块统一控制 */
}
html[data-material="marble"] #cloth-blur {
  /* 大理石纹理：用两套不同频率的湍流叠加——
     低频那层出不规则的"石脉"，高频那层做细微颗粒。
     单层湍流看起来只是噪点，两层才像石头。 */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='900'%3E%3Cfilter id='v'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.004 0.009' numOctaves='5' seed='7'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='gamma' amplitude='0.95' exponent='3.2' offset='0.34'/%3E%3CfeFuncG type='gamma' amplitude='0.95' exponent='3.2' offset='0.37'/%3E%3CfeFuncB type='gamma' amplitude='0.95' exponent='3.2' offset='0.42'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='900' height='900' filter='url(%23v)'/%3E%3C/svg%3E"),
    radial-gradient(circle at 23% 31%, rgba(96, 104, 120, 0.16) 0 1px, transparent 1px),
    radial-gradient(circle at 71% 63%, rgba(96, 104, 120, 0.13) 0 1px, transparent 1px);
  background-size: 900px 900px, 9px 9px, 13px 13px;
  opacity: 0.9;
}
html[data-material="marble"] .header-card,
html[data-material="marble"] .decree-section,
html[data-material="marble"] .ad-strip,
html[data-material="marble"] .section-card,
html[data-material="marble"] .footer,
html[data-material="marble"] .tool-card,
html[data-material="marble"] .section-item,
html[data-material="marble"] .weather-chip,
html[data-material="marble"] .hc-countdown {
  background-image: linear-gradient(168deg,
    rgba(255, 255, 255, 0.30) 0%, rgba(255, 255, 255, 0.04) 42%,
    rgba(0, 0, 0, 0.015) 100%);
}

/* ---------- 白瓷 ---------- */
html[data-material="porcelain"] {
  --material-sheen: 0.85;
  --material-sat: 145%;
  --material-tint: rgba(252, 253, 255, 0.70);
  --bg-texture-opacity: 0.35;
  --bg-vignette: 0.22;
}
html[data-material="porcelain"] #cloth-blur {
  /* 白瓷：几乎无纹理，只有釉面的极淡起伏 */
  background-image:
    radial-gradient(60% 40% at 30% 22%, rgba(255, 255, 255, 0.5), transparent 70%),
    radial-gradient(50% 36% at 74% 68%, rgba(214, 226, 240, 0.16), transparent 72%);
  background-size: auto, auto;
  opacity: 0.85;
}
html[data-material="porcelain"] .header-card,
html[data-material="porcelain"] .decree-section,
html[data-material="porcelain"] .ad-strip,
html[data-material="porcelain"] .section-card,
html[data-material="porcelain"] .footer,
html[data-material="porcelain"] .tool-card,
html[data-material="porcelain"] .section-item,
html[data-material="porcelain"] .weather-chip,
html[data-material="porcelain"] .hc-countdown {
  /* 釉面：一道斜向高光 + 顶部亮边 */
  background-image: linear-gradient(158deg,
    rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.10) 38%,
    rgba(226, 236, 248, 0.10) 68%, rgba(255, 255, 255, 0.28) 100%);
  box-shadow: var(--shadow-sm),
              inset 0 1px 0 rgba(255, 255, 255, 0.95),
              inset 0 -1px 0 rgba(198, 212, 228, 0.35),
              inset 0 0 30px rgba(255, 255, 255, 0.35);
}

/* ---------- 织物（默认，就是原来那版） ---------- */
html[data-material="cloth"] {
  --material-sheen: 0.4;
  --material-sat: 120%;
  --material-tint: rgba(255, 255, 255, 0.55);
  --bg-texture-opacity: 0.92;
  --bg-vignette: 0.36;
}
/* 布面的大块起伏：让揉开的纹理不是平的 */
#cloth-blur::after {
  content: '';
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(42% 30% at 26% 24%, rgba(255, 255, 255, 0.30), transparent 68%),
    radial-gradient(38% 28% at 72% 46%, rgba(255, 255, 255, 0.20), transparent 70%),
    radial-gradient(46% 32% at 48% 82%, rgba(0, 0, 0, 0.05), transparent 72%);
  filter: blur(18px);
  animation: clothDrift 21s ease-in-out infinite alternate;
}
@keyframes clothDrift {
  from { transform: translate3d(-3%, -1%, 0) scale(1.02); }
  to   { transform: translate3d(3%, 2%, 0) scale(1.08); }
}

/* ==========================================================================
   容器
   ========================================================================== */
.container {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px var(--container-px) 20px;
}

/* 透亮玻璃/瓷/石底：低不透明度 + 强背景模糊 + 高光内描边。
   --material-tint 由 html[data-material] 决定，所以换材质时卡片底色也跟着变。 */
.header-card,
.decree-section,
.ad-strip,
.section-card,
.footer,
.weather-chip,
.hc-countdown,
.tool-card,
.section-item,
.wx-card {
  background-color: var(--material-tint, var(--cloth));
  backdrop-filter: var(--glass-blur) saturate(var(--material-sat, 130%));
  -webkit-backdrop-filter: var(--glass-blur) saturate(var(--material-sat, 130%));
  border: 1px solid var(--glass-edge-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm), var(--glass-inner);
}

/* ==========================================================================
   页头
   ========================================================================== */
.header-card {
  position: relative;
  margin-bottom: var(--section-gap);
  padding: 20px 22px 14px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--cloth-strong);
}
/* 顶部一条三色装饰带 */
.header-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    var(--fr-blue) 0 33.33%, var(--fr-white) 33.33% 66.66%, var(--fr-red) 66.66% 100%);
}

.hc-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.hc-title-left { display: flex; align-items: center; gap: 14px; min-width: 0; }

.hc-logo-mark {
  width: 82px;
  height: 88px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2px 5px rgba(48, 40, 26, 0.28));
}
.emblem { width: 100%; height: 100%; }
.emblem-img { width: 100%; height: 100%; object-fit: contain; }

.hc-title-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hc-title-text h1 {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: 800;
  letter-spacing: 3px;
  line-height: 1.16;
  color: var(--text-main);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}
/* 金色描边版本（后台可选） */
.hc-title-text h1.is-gold {
  background: linear-gradient(100deg, #9a7620 0%, #d9b862 16%, #fff3cf 30%,
              #e2c477 44%, #9a7620 58%, #d9b862 76%, #9a7620 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 1px rgba(255, 255, 255, 0.9))
          drop-shadow(0 1px 3px rgba(90, 60, 0, 0.28));
  animation: goldShimmer 9s linear infinite;
  text-shadow: none;
}
@keyframes goldShimmer {
  from { background-position: 0% 50%; }
  to   { background-position: 300% 50%; }
}

.hc-badge {
  align-self: flex-start;
  display: inline-block;
  padding: 3px 11px;
  border-radius: 12px;
  background: var(--gold-gradient);
  color: #fff;
  font-family: var(--font-badge);
  font-size: var(--fs-sub);
  font-weight: 700;
  letter-spacing: 1.2px;
  white-space: nowrap;
}

.hc-stats { display: flex; align-items: center; gap: 10px; flex-shrink: 1; min-width: 0; }
.hc-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.hc-stat-val {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.hc-stat-lbl { font-size: var(--fs-sub); color: var(--text-muted); letter-spacing: 0.4px; white-space: nowrap; }
.hc-stat-split { width: 1px; height: 26px; background: rgba(92, 80, 58, 0.18); }
.rise-icon { font-size: 0.7rem; color: var(--red); }
.hc-stat.up .hc-stat-val { color: var(--red); }

.hc-info-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(92, 80, 58, 0.14);
}
.hc-dt { display: flex; flex-direction: column; gap: 2px; line-height: 1.2; }
.hc-date-row { display: flex; align-items: center; gap: 6px; }
.hc-date { font-size: var(--fs-sub); font-weight: 600; color: var(--text-muted); letter-spacing: 0.5px; }
.hc-wd { font-size: var(--fs-sub); font-weight: 600; color: var(--gold-deep); }
.hc-time {
  font-size: 1.2rem;
  font-weight: 900;
  color: #1a1a2e;
  letter-spacing: 1px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

/* ------------------------------------------------------------ 倒计时 */
.hc-countdown {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: 12px;
  background-color: var(--cloth-inset);
}
.cd-label {
  font-size: var(--fs-sub);
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--gold-deep);
  white-space: nowrap;
}
.cd-clock {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--font-countdown);
  font-variant-numeric: tabular-nums;
}
.cd-unit { display: inline-flex; align-items: baseline; gap: 1px; }
.cd-unit b { font-size: 0.94rem; font-weight: 800; color: var(--ink); letter-spacing: 0.5px; }
.cd-unit i { font-style: normal; font-size: var(--fs-sub); color: var(--text-muted); font-weight: 600; }
.cd-sep { color: rgba(20, 20, 30, 0.28); font-size: 0.72rem; font-weight: 700; }
.hc-countdown.is-past .cd-label { color: var(--text-muted); }

/* ------------------------------------------------------------ 天气 */
.hc-weather { display: flex; align-items: center; }
.weather-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-body);
  background-color: var(--cloth-inset);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.weather-chip:hover {
  background-color: var(--cloth-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.wc-city { color: var(--gold-deep); font-weight: 700; }
.wc-icon { font-size: 0.86rem; line-height: 1; }
.wc-desc { color: var(--text-muted); font-weight: 600; }
.wc-temp { color: var(--fr-blue); font-weight: 800; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------- 城市选择弹窗 */
.wx-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(28, 24, 18, 0.42);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.wx-modal.show { opacity: 1; visibility: visible; }
.wx-card {
  width: min(440px, 100%);
  max-height: 84vh;
  overflow: auto;
  border-radius: var(--radius-lg);
  background-color: var(--cloth-strong);
  box-shadow: var(--shadow-lg);
  transform: translateY(10px) scale(0.98);
  transition: transform 0.28s cubic-bezier(0.33, 1, 0.47, 1);
}
.wx-modal.show .wx-card { transform: translateY(0) scale(1); }
.wx-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 12px;
  border-bottom: 1px solid rgba(92, 80, 58, 0.14);
}
.wx-title { font-size: 0.92rem; font-weight: 700; letter-spacing: 0.6px; }
.wx-close {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 8px;
  background: rgba(92, 80, 58, 0.10);
  color: var(--text-body);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}
.wx-close:hover { background: rgba(92, 80, 58, 0.18); }
.wx-body { padding: 14px 18px 18px; }
.wx-hint { font-size: var(--fs-sub); color: var(--text-muted); margin-bottom: 12px; }
.wx-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.wx-city {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--cloth-edge-soft);
  background: rgba(255, 255, 255, 0.55);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: all 0.22s ease;
}
.wx-city:hover { border-color: rgba(200, 163, 74, 0.6); background: #fff; }
.wx-city.active {
  border-color: transparent;
  background: var(--gold-gradient);
  box-shadow: var(--shadow-sm);
}
.wx-city-cn { font-size: 0.82rem; font-weight: 700; color: var(--text-main); }
.wx-city-fr { font-size: var(--fs-sub); color: var(--text-muted); font-style: italic; }
.wx-city.active .wx-city-cn,
.wx-city.active .wx-city-fr { color: #fff; }

/* ==========================================================================
   帝国诏令轮播
   ========================================================================== */
.decree-section {
  margin-bottom: var(--section-gap);
  padding: 16px 18px 14px;
  border-radius: var(--radius-lg);
}
.decree-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(92, 80, 58, 0.14);
}
.sec-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(200, 163, 74, 0.16);
  color: var(--gold-deep);
  flex-shrink: 0;
}
.sec-svg { width: 17px; height: 17px; }
.sec-name { font-size: var(--fs-sec); font-weight: 700; letter-spacing: 0.6px; }
.sec-fr {
  font-size: var(--fs-sub);
  color: var(--text-muted);
  font-style: italic;
  letter-spacing: 0.3px;
  margin-left: 2px;
}
.decree-ctrl { margin-left: auto; display: flex; gap: 6px; }
.nav-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--cloth-edge);
  background: rgba(255, 255, 255, 0.6);
  color: var(--text-body);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.22s ease;
}
.nav-btn:hover { background: var(--gold-gradient); color: #fff; border-color: transparent; }

.slider { position: relative; overflow: hidden; border-radius: var(--radius); }
.slides { display: flex; transition: transform 0.6s cubic-bezier(0.33, 1, 0.47, 1); }
.slide {
  position: relative;
  flex: 0 0 100%;
  min-height: 190px;
  padding: 26px 30px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: rgba(255, 253, 248, 0.72);
  background-image: var(--weave), var(--speckle);
  background-size: auto, var(--speckle-size);
  border: 1px solid var(--cloth-edge-soft);
}
.slide::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg,
    var(--fr-blue) 0 33.33%, var(--fr-white) 33.33% 66.66%, var(--fr-red) 66.66% 100%);
  opacity: 0.9;
}
.slide-inner { position: relative; z-index: 2; max-width: 74%; }
.slide-year {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(200, 163, 74, 0.18);
  border: 1px solid rgba(200, 163, 74, 0.42);
  color: var(--gold-deep);
  font-size: var(--fs-sub);
  font-weight: 800;
  letter-spacing: 1.4px;
  font-variant-numeric: tabular-nums;
}
.slide-kind { margin: 10px 0 4px; font-size: var(--fs-sub); font-weight: 700; letter-spacing: 2px; color: var(--fr-blue); }
.slide-title {
  font-family: var(--font-display);
  font-size: 1.34rem;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1.35;
  color: var(--ink);
}
.slide-fr { margin-top: 7px; font-size: 0.76rem; font-style: italic; color: var(--text-body); line-height: 1.5; }
.slide-date { margin-top: 10px; font-size: var(--fs-sub); color: var(--text-muted); letter-spacing: 0.6px; }
.slide-mark {
  position: absolute;
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-deco);
  font-size: 6.4rem;
  font-weight: 400;
  line-height: 1;
  color: rgba(200, 163, 74, 0.26);
  user-select: none;
}

.dots { display: flex; justify-content: center; gap: 7px; margin-top: 12px; }
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  background: rgba(92, 80, 58, 0.22);
  transition: all 0.25s ease;
}
.dot.active { width: 22px; border-radius: 999px; background: var(--gold-gradient); }

/* ==========================================================================
   告示条
   ========================================================================== */
.ad-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--section-gap);
  padding: 7px 12px;
  border-radius: 10px;
  overflow: hidden;
}
.ad-label {
  flex-shrink: 0;
  padding: 2px 9px;
  border-radius: 6px;
  background: var(--gold-gradient);
  color: #fff;
  font-size: var(--fs-sub);
  font-weight: 700;
  letter-spacing: 1px;
}
.ad-marquee-wrap { flex: 1; overflow: hidden; }
.ad-marquee { display: flex; gap: 42px; white-space: nowrap; animation: marquee 34s linear infinite; }
.ad-item { font-size: 0.72rem; color: var(--text-body); font-weight: 500; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ==========================================================================
   栏目
   ========================================================================== */
.sections-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--section-gap);
  margin-bottom: var(--section-gap);
}
@media (min-width: 768px) {
  .sections-container { grid-template-columns: 1fr 1fr; }
}

.section-card {
  position: relative;
  padding: 16px;
  overflow: hidden;
  transition: box-shadow 0.35s ease, background-color 0.35s ease;
}
.section-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sec, var(--gold)) 0%, transparent 100%);
  opacity: 0.9;
}
.section-card:hover { background-color: var(--cloth-hover); box-shadow: var(--shadow-md); }

.section-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(92, 80, 58, 0.14);
}
.section-title-row .sec-icon {
  background: var(--sec-soft, rgba(200, 163, 74, 0.16));
  color: var(--sec, var(--gold));
}

.tools-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }

.tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 15px 10px;
  border-radius: var(--radius-sm);
  background-color: rgba(255, 253, 248, 0.60);
  background-image: var(--weave), var(--speckle);
  background-size: auto, var(--speckle-size);
  border: 1px solid var(--cloth-edge-soft);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  text-align: center;
  transition: transform 0.28s ease, box-shadow 0.28s ease, background-color 0.28s ease;
}
.tool-card:hover {
  transform: translateY(-2px);
  background-color: var(--cloth-hover);
  box-shadow: var(--shadow-md);
}
.tool-card .item-icon { width: 30px; height: 30px; color: var(--sec, var(--gold)); }
.item-icon-img { object-fit: contain; }
.item-name { font-size: var(--fs-body); font-weight: 600; letter-spacing: 0.2px; color: var(--text-main); }
.item-sub { font-size: var(--fs-sub); color: var(--text-muted); font-style: italic; letter-spacing: 0.2px; }

.item-hot, .item-new {
  position: absolute;
  top: 7px;
  right: 7px;
  padding: 1px 7px;
  border-radius: 999px;
  font-family: var(--font-badge);
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #fff;
}
.item-hot { background: linear-gradient(135deg, #e05252, #b02a2a); }
.item-new { background: linear-gradient(135deg, #4b6fd6, #24409b); }


.section-items { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.section-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background-color: rgba(255, 253, 248, 0.55);
  background-image: var(--weave), var(--speckle);
  background-size: auto, var(--speckle-size);
  border: 1px solid var(--cloth-edge-soft);
  text-decoration: none;
  color: inherit;
  transition: background-color 0.25s ease, transform 0.25s ease;
}
.section-item:hover { background-color: var(--cloth-hover); transform: translateX(2px); }
.section-item .item-icon { width: 22px; height: 22px; color: var(--sec, var(--gold)); flex-shrink: 0; }
.si-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }

/* ==========================================================================
   页脚
   ========================================================================== */
.footer { padding: 18px 22px 14px; border-radius: var(--radius-lg); }
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.ft-brand { display: flex; align-items: center; gap: 10px; }
.ft-cipher {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: #fff;
  font-family: var(--font-deco);
  font-weight: 400;
  font-size: 1.05rem;
}
.ft-name { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.6px; }
.ft-items { display: flex; align-items: center; gap: 8px; }
.ft-item {
  font-family: var(--font-badge);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: var(--gold-deep);
}
.fm-sep { color: rgba(92, 80, 58, 0.32); font-size: 0.7rem; }
.footer-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(92, 80, 58, 0.14);
  font-size: var(--fs-sub);
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

/* 页脚的水印式装饰（后台可替换成图片） */
.ft-deco { position: absolute; right: 18px; bottom: 10px; opacity: 0.16; pointer-events: none; }
.ft-deco img { height: 54px; width: auto; }
.ft-deco-text { font-family: var(--font-deco); font-size: 3.4rem; color: var(--gold-deep); }

/* ==========================================================================
   全站背景图（后台可换）
   ========================================================================== */
#bg-image {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: var(--bg-image-opacity, 0.28);
  pointer-events: none;
}

/* ==========================================================================
   门户弹窗：点卡片 / 指标 / 页脚都能弹出内容
   ========================================================================== */
.portal-modal {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(28, 24, 18, 0.42);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}
.portal-modal.show { opacity: 1; visibility: visible; }
.portal-card {
  width: min(620px, 100%);
  max-height: 82vh;
  overflow: auto;
  border-radius: var(--radius-lg);
  background-color: var(--material-tint, #fff);
  background-image: var(--portal-card-texture, none);
  backdrop-filter: blur(26px) saturate(var(--material-sat, 140%));
  -webkit-backdrop-filter: blur(26px) saturate(var(--material-sat, 140%));
  border: 1px solid var(--glass-edge);
  box-shadow: var(--shadow-lg), var(--glass-inner);
  transform: translateY(12px) scale(0.985);
  transition: transform 0.3s cubic-bezier(0.33, 1, 0.47, 1);
}
.portal-modal.show .portal-card { transform: translateY(0) scale(1); }
.portal-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 22px 14px;
  border-bottom: 1px solid rgba(20, 20, 30, 0.09);
}
.portal-emblem {
  width: 46px; height: 46px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.portal-emblem img, .portal-emblem svg { width: 100%; height: 100%; object-fit: contain; }
.portal-heading { flex: 1; min-width: 0; }
.portal-eyebrow {
  font-size: var(--fs-sub);
  font-weight: 700;
  letter-spacing: 1.4px;
  color: var(--gold-deep);
  text-transform: uppercase;
}
.portal-title {
  font-family: var(--font-display);
  font-size: 1.24rem;
  font-weight: 800;
  line-height: 1.3;
  margin-top: 3px;
  color: var(--ink);
}
.portal-close {
  width: 30px; height: 30px;
  flex-shrink: 0;
  border: none;
  border-radius: 8px;
  background: rgba(20, 20, 30, 0.06);
  color: var(--text-body);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}
.portal-close:hover { background: rgba(20, 20, 30, 0.13); }
.portal-body {
  padding: 16px 22px 20px;
  font-size: 0.84rem;
  line-height: 1.85;
  color: var(--text-body);
  white-space: pre-wrap;
  word-break: break-word;
}
.portal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 22px 18px;
  border-top: 1px solid rgba(20, 20, 30, 0.09);
}
.portal-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 10px;
  background: var(--gold-gradient);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.4px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.portal-link:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.portal-note { font-size: var(--fs-sub); color: var(--text-muted); }

/* 让"可点"这件事看得见 */
.tool-card, .section-item, .hc-stat, .ft-brand, .slide, .ad-item { cursor: pointer; }
.hc-stat { border-radius: 10px; padding: 4px 6px; transition: background-color 0.2s ease; }
.hc-stat:hover { background-color: rgba(255, 255, 255, 0.5); }
.ft-brand { border-radius: 10px; padding: 4px 6px; transition: background-color 0.2s ease; }
.ft-brand:hover { background-color: rgba(255, 255, 255, 0.5); }
.tool-card:focus-visible, .section-item:focus-visible, .portal-close:focus-visible,
.nav-btn:focus-visible, .dot:focus-visible, .weather-chip:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
/* ==========================================================================
   移动端
   ========================================================================== */
@media (max-width: 640px) {
  .hc-title-text h1 { font-size: calc(var(--fs-display) * 0.72); letter-spacing: 2px; }
  .hc-logo-mark { width: 52px; height: 58px; }
  .hc-stats { width: 100%; justify-content: space-between; }
  .hc-info-row { flex-wrap: wrap; align-items: center; gap: 10px; }
  .hc-countdown { order: 3; flex: 1 1 100%; align-items: center; }
  .hc-weather { margin-left: auto; }
  .weather-chip { padding: 5px 10px; font-size: 0.68rem; }
  .cd-unit b { font-size: 0.86rem; }
  .slide { padding: 20px; min-height: 210px; }
  .slide-mark { font-size: 4.4rem; right: 14px; }
  .slide-inner { max-width: 100%; }
  .slide-title { font-size: 1.1rem; }
  .wx-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  #flag-stage::before, .flag-wave, .flag-fold, .flag-sheen,
  .ad-marquee, .hc-title-text h1.is-gold { animation: none !important; }
}

/* ---------------------------------------------------------------- 弹窗引导语 */
.portal-intro {
  padding: 0 22px 8px;
  font-size: .78rem;
  line-height: 1.7;
  color: var(--gold-deep);
  font-weight: 600;
}

/* ---------------------------------------------------------------- 弹窗配图 */
.portal-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  padding: 4px 22px 16px;
}
.portal-figure { margin: 0; }
.portal-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  border: 1px solid var(--glass-edge-soft);
  background: rgba(255, 255, 255, 0.5);
}
.portal-figure-cap {
  margin-top: 6px;
  font-size: var(--fs-sub);
  color: var(--text-muted);
  text-align: center;
}

/* --------------------------------------------------- 卡片缩略图与栏目横幅 */
.tool-card .item-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 9px;
  margin-bottom: 4px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--glass-edge-soft);
}
.section-banner {
  width: 100%;
  display: block;
  border-radius: 10px;
  margin-bottom: 12px;
  border: 1px solid var(--glass-edge-soft);
  background: rgba(255, 255, 255, 0.5);
}

/* ------------------------------------------------------------ 全站图片位 */
.header-banner, .poster-banner {
  width: 100%;
  display: block;
  border-radius: var(--radius);
  margin-bottom: var(--section-gap);
  border: 1px solid var(--glass-edge-soft);
  background: rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-sm);
}
.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--section-gap);
  margin-bottom: var(--section-gap);
}
.slots-grid img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-edge-soft);
  background: rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-sm);
}

/* 富文本正文里的链接 */
.portal-body a {
  color: var(--fr-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}
.portal-body a:hover { color: var(--gold-deep); }
.portal-body ul, .portal-body ol { margin: 8px 0 8px 1.4em; }
.portal-body li { margin: 3px 0; }
.portal-body p { margin: 0 0 10px; }
.portal-body p:last-child { margin-bottom: 0; }
.portal-body h3, .portal-body h4, .portal-body h5 {
  margin: 12px 0 6px;
  font-size: .95rem;
  color: var(--text-main);
}
.portal-body blockquote {
  margin: 8px 0;
  padding: 6px 12px;
  border-left: 3px solid var(--gold);
  background: rgba(200, 163, 74, 0.08);
  border-radius: 0 8px 8px 0;
}

/* -------------------------------------------------- 弹窗配图的链接与按钮 */
/* 群二维码的用法：图下面配一个"加入群聊"的按钮，图本身也可点 */
.portal-figure-link { display: block; line-height: 0; border-radius: 10px; }
.portal-figure-link img { transition: transform .22s ease, box-shadow .22s ease; }
.portal-figure-link:hover img { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.portal-figure-btn {
  display: block;
  margin-top: 8px;
  padding: 7px 12px;
  text-align: center;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .3px;
  color: #fff;
  text-decoration: none;
  border-radius: 9px;
  background: var(--gold-gradient);
  transition: transform .2s ease, box-shadow .2s ease;
}
.portal-figure-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }

/* ---------------------------------------------------- 卡片的互动方式表现 */
/* both：主点击开链接，右上角一个小"说明"按钮用来弹窗 */
.item-more {
  position: absolute;
  top: 6px; left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: .55rem;
  font-weight: 700;
  letter-spacing: .4px;
  color: var(--gold-deep);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(200, 163, 74, 0.5);
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease;
}
.item-more:hover { background: var(--gold-gradient); color: #fff; border-color: transparent; }

/* none：明确表示这一项还不可用 */
.tool-card.is-inert, .section-item.is-inert { opacity: .5; cursor: default; }
.tool-card.is-inert:hover, .section-item.is-inert:hover { transform: none; }

/* both 模式下卡片右上角要让开"说明"按钮，避免和 NEW 角标打架 */
.tool-card { position: relative; }
/* ==========================================================================
   绉诲姩绔覆鏌撲慨澶?   --------------------------------------------------------------------------
   鐥囩姸锛氭墜鏈轰笂闂睆 / 鑺卞睆锛屾寜閽偣涓嶅姩銆?   鍘熷洜锛?) 6 澶?backdrop-filter 姣涚幓鐠冣€斺€旀墜鏈?GPU 瀹炴椂妯＄硦浼氭挄瑁?         2) 5 涓父椹诲姩鐢伙紙鏃楅潰娉㈠姩 / 鏉愯川婕傜Щ / 楂樺厜鎵繃锛夋寔缁己鍒堕噸缁?         3) filter: blur() 涓?mask-image 棰濆澧炲姞鍚堟垚灞傚紑閿€
   鍋氭硶锛氳Е灞忔垨绐勫睆涓嬫妸姣涚幓鐠冩崲鎴愬疄鑹插崐閫忔槑銆佸仠鎺夎楗板姩鐢汇€?         鍗＄墖鏀瑰崟鍒椼€佺偣鍑诲尯鍩熷姞澶у埌 44px銆?   娉ㄦ剰锛氶€夋嫨鍣ㄥ繀椤荤敤 app.js 鐪熷疄鐢熸垚鐨勭被鍚?         锛?tools-grid / .section-items / .footer-row锛夈€?   ========================================================================== */

@media (max-width: 900px), (hover: none) and (pointer: coarse) {

  /* ---------- 鈶?骞叉帀姣涚幓鐠冿細鎹㈠疄鑹插崐閫忔槑锛岃鎰熸帴杩戜絾涓嶅悆 GPU ---------- */
  #cloth-blur,
  .header-card, .decree-section, .ad-strip, .section-card, .footer,
  .weather-chip, .hc-countdown, .tool-card, .section-item, .wx-card,
  .portal-card, .portal-modal {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  /* 鐢ㄦ洿瀹炵殑搴曡壊 + 杞诲井鍐呴珮鍏夎ˉ鍥?鐜荤拑鎰? */
  .header-card, .decree-section, .ad-strip, .section-card, .footer,
  .weather-chip, .hc-countdown, .tool-card, .section-item, .wx-card {
    background-color: rgba(255, 255, 255, 0.88) !important;
    box-shadow: 0 1px 3px rgba(30, 24, 12, 0.10),
                inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
  }
  .portal-card { background-color: rgba(255, 255, 255, 0.98) !important; }

  /* ---------- 鈶?鍋滄帀瑁呴グ鎬у姩鐢伙紙杩欐槸鑺卞睆鐨勪富鍥狅級 ---------- */
  #flag-stage, #flag-stage::before, #flag-stage::after,
  .flag-wave, .flag-fold, .flag-sheen, #cloth-blur,
  .ad-marquee, .ad-item,
  .hc-title-text h1.is-gold,
  .slide, .sec-icon, .rise-icon,
  .portal-card, .portal-modal {
    animation: none !important;
  }
  .tool-card, .section-item { transition: none !important; }

  /* ---------- 鈶?鍘绘帀鏄傝吹鐨?filter / mask ---------- */
  .slide-mark, .hc-logo-mark, .ft-cipher {
    filter: none !important;
    -webkit-filter: none !important;
  }
  #cloth-blur {
    -webkit-mask-image: none !important;
    mask-image: none !important;
    opacity: 0.45 !important;
  }
  #flag-stage::after { display: none !important; }

  /* ---------- 鈶?甯冨眬锛氬崱鐗囦笌鏉＄洰閮芥敼鍗曞垪 ---------- */
  .tools-grid, .section-items {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .sections-container { display: block !important; }
  .section-card { margin-bottom: 14px !important; }
  .slots-grid { grid-template-columns: 1fr !important; }

  /* ---------- 鈶?瑙﹀睆鐐瑰嚮鍖哄煙涓嶅皬浜?44px ---------- */
  .tool-card, .section-item { min-height: 78px; }
  .nav-btn, .dot, .weather-chip, .portal-close, .item-more,
  .portal-figure-btn, .portal-link { min-height: 44px; }
  .nav-btn { min-width: 46px !important; }
  .dot { min-width: 44px; }
  .portal-close { width: 44px !important; height: 44px !important; }
  .item-more { padding: 8px 12px !important; }

  /* ---------- 鈶?寮圭獥灏忓睆閾烘弧锛屾柟渚胯鍜岀偣 ---------- */
  .portal-modal { padding: 10px !important; }
  .portal-card { width: 100% !important; max-height: 90vh !important; }
  .portal-gallery { grid-template-columns: 1fr !important; padding: 4px 16px 14px !important; }
  .portal-figure img { max-height: 60vh; object-fit: contain; }
  .portal-head { padding: 16px 16px 12px !important; }
  .portal-body { padding: 14px 16px 16px !important; }

  /* ---------- 鈶?瀛楀彿涓庤璺濓細鎵嬫満涓婃洿濂借 ---------- */
  body { line-height: 1.7; -webkit-text-size-adjust: 100%; }

  /* ---------- 鈶?鍒樻捣灞忓畨鍏ㄥ尯 ---------- */
  .container {
    padding-left: max(14px, env(safe-area-inset-left)) !important;
    padding-right: max(14px, env(safe-area-inset-right)) !important;
  }
  body { padding-bottom: env(safe-area-inset-bottom); }

  /* ---------- 鈶?瑙﹀睆婊氬姩鏇撮『 ---------- */
  html { -webkit-overflow-scrolling: touch; }
  body { overscroll-behavior-y: none; }
}

/* 鏇寸獎鐨勬墜鏈猴紙鈮?80px锛夊啀鏀朵竴妗ｏ紝閬垮厤鏍囬鎸ゅ帇 */
@media (max-width: 480px) {
  .hc-title-text h1 {
    font-size: calc(var(--fs-display) * 0.62) !important;
    letter-spacing: 1px !important;
  }
  .hc-badge { font-size: 0.55rem !important; letter-spacing: 0.6px !important; }
  .hc-logo-mark { width: 44px !important; height: 50px !important; }
  .hc-stats { gap: 8px !important; }
  .cd-unit b { font-size: 0.8rem !important; }
  .ad-item { font-size: 0.72rem !important; }
  .slide-title { font-size: 1rem !important; }
  .sec-name { font-size: 0.9rem !important; }
}
