:root {
  color-scheme: light;
  --ink: #152434;
  --muted: #5f7184;
  --line: #dbe7f2;
  --paper: #ffffff;
  --sky: #eaf7ff;
  --mint: #e9f8ef;
  --orange: #ff7a1a;
  --blue: #1479d7;
  --green: #18b77b;
  --shadow: 0 22px 60px rgba(21, 36, 52, 0.12);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Hiragino Sans GB", "Noto Sans CJK SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 10%, rgba(20, 121, 215, 0.12), transparent 30%),
    radial-gradient(circle at 84% 8%, rgba(24, 183, 123, 0.12), transparent 28%),
    linear-gradient(180deg, #f6fbff 0%, #ffffff 46%, #f7fbf8 100%);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.admin-body {
  background: #f4f7fb;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(219, 231, 242, 0.82);
}

.nav {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  box-shadow: 0 10px 22px rgba(20, 121, 215, 0.16);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
}

.nav-links a:hover {
  color: var(--blue);
}

.hero {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  /* 底部留白要装得下悬停浮层：浮层高 211px + 与按钮的 14px 间距，而按钮底部到下一节原本只有 69px 净空。
     补到 174px 后浮层底部距下一节标题约 40px —— 起初留了 80px，家长反馈太空，减半。
     浮层只在悬停时出现，但空间必须常驻，否则它一出来就压住「解决家庭…」那一屏。 */
  padding: 74px 0 174px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 450px);
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
}

.eyebrow::before {
  content: "";
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--orange);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 640px;
  margin-bottom: 12px;
  font-size: clamp(46px, 6.5vw, 84px);
  line-height: 0.98;
  font-weight: 850;
  letter-spacing: 0;
}

.hero-slogan {
  margin-bottom: 22px;
  color: var(--orange);
  font-size: clamp(20px, 2.8vw, 30px);
  line-height: 1.25;
  font-weight: 850;
}

.hero-copy {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(16px, 1.9vw, 20px);
  font-weight: 500;
  line-height: 1.72;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-points span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(219, 231, 242, 0.95);
  color: #31485f;
  font-size: 14px;
  font-weight: 750;
  box-shadow: 0 10px 24px rgba(21, 36, 52, 0.06);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(21, 36, 52, 0.08);
}

.button.primary {
  border: 0;
  background: var(--blue);
  color: #fff;
}

/* hero 里的手机截图是绝对定位的，窄屏下会压到文案列上。
   ≤560px 时手机图约 467px 高、卡片只有 390px，而它按 bottom 对齐，
   于是向上溢出约 90px —— 原本就压着「了解功能」，现在轮到下载按钮，
   500px 实测 App Store 那颗整个被盖住。
   **必须是 3**：`.iphone-shot.two` 自带 z-index: 2，给 1 或 2 都压不过它。
   只加层级不挪位置 —— 手机图的斜排构图是设计好的，不该为了让路而改。 */
.hero > div:first-child {
  position: relative;
  z-index: 3;
}

/* ── 下载按钮（悬停出二维码）─────────────────────────────────
   深色实心：整页是浅色的，下载是这一屏最该被点的动作，只有深色能压过
   上面那颗蓝色的「了解功能」。用站内既有的 --ink 而不是纯黑，免得像贴上去的。 */
.hero-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
}

.download-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(21, 36, 52, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.download-pill:hover,
.download-pill:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(21, 36, 52, 0.28);
}

/* 安卓还没有包：调低对比度并换成 not-allowed，让"点不了"在按下去之前就看得出来。 */
.download-pill.is-pending {
  background: #58687a;
  cursor: not-allowed;
  box-shadow: 0 12px 26px rgba(21, 36, 52, 0.16);
}

.download-glyph {
  width: 25px;
  height: 25px;
  flex: none;
}

/* 悬停浮层。用 visibility 而不是 display:none —— 后者没有过渡，
   浮层会"啪"地闪出来；而且 display 变化会让读屏软件重新播报整个按钮。 */
.download-pop {
  position: absolute;
  left: 50%;
  top: calc(100% + 14px);
  transform: translate(-50%, -6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px;
  border-radius: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.download-pop.is-text {
  padding: 12px 18px;
  color: var(--muted);
}

.download-pop img {
  display: block;
  border-radius: 10px;
}

.download-pop em {
  font-style: normal;
  color: var(--muted);
}

/* 小三角。旋转一个方块并只留左下两条边，比拼两个三角形干净，
   也能自然继承上面的边框色。 */
/* 三角在浮层**顶部**、朝上：留左上两条边，方向跟着浮层一起翻。
   只改 top/bottom 不改边框的话，三角会带着"下沿"的描边，看起来像缺了一角。 */
.download-pop::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  width: 12px;
  height: 12px;
  margin: 0 0 -6px -6px;
  background: var(--paper);
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  transform: rotate(45deg);
}

/* focus-visible 一并覆盖：只做 :hover 的话，键盘用户永远看不到二维码。 */
.download-pill:hover .download-pop,
.download-pill:focus-visible .download-pop {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* 触屏设备上二维码毫无意义 —— 用户本来就在手机上，直接点按钮跳商店即可。
   浮层还会挡住下面的内容，所以整个不出。 */
@media (hover: none) {
  .download-pop {
    display: none;
  }
}

@media (max-width: 640px) {
  .download-pill {
    flex: 1 1 auto;
    justify-content: center;
    padding: 0 18px;
    font-size: 15px;
  }
}

.hero-card {
  position: relative;
  min-height: 560px;
}

.iphone-shot {
  position: absolute;
  width: 46%;
  max-width: 226px;
  aspect-ratio: 390 / 844;
  padding: 11px;
  border-radius: 40px;
  background: #101d23;
  box-shadow: 0 24px 58px rgba(21, 36, 52, 0.22);
}

.iphone-shot::after {
  content: "";
  position: absolute;
  top: 132px;
  left: -3px;
  width: 3px;
  height: 62px;
  border-radius: 999px 0 0 999px;
  background: #17272d;
}

.iphone-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
  background: #fff;
}

.iphone-shot.one {
  top: 8px;
  right: 12px;
  transform: rotate(3deg);
}

.iphone-shot.two {
  left: 14px;
  bottom: 14px;
  z-index: 2;
  transform: rotate(-7deg);
}

.section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0;
}

.section-title {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-title h2 {
  margin-bottom: 10px;
  font-size: clamp(28px, 3.8vw, 42px);
  line-height: 1.18;
  font-weight: 850;
}

.section-title p {
  color: var(--muted);
  font-size: 17px;
  font-weight: 500;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature {
  min-height: 190px;
  padding: 22px;
  border-radius: 24px;
  background: var(--paper);
  border: 1px solid rgba(219, 231, 242, 0.9);
  box-shadow: 0 16px 42px rgba(21, 36, 52, 0.08);
}

.feature strong {
  display: block;
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: 850;
}

.feature p {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}

.feature .mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 15px;
  color: #fff;
  font-size: 22px;
  font-weight: 850;
}

.mark.blue {
  background: var(--blue);
}

.mark.green {
  background: var(--green);
}

.mark.orange {
  background: var(--orange);
}

.mark.yellow {
  background: #f4b740;
}

.mark.purple {
  background: #7c6cf2;
}

.mark.ink {
  background: #f472b6;
}

.ai-section {
  padding-top: 28px;
}

.ai-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.ai-card {
  min-height: 142px;
  padding: 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(219, 231, 242, 0.95);
  box-shadow: 0 12px 32px rgba(21, 36, 52, 0.06);
}

.ai-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 850;
}

.ai-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.65;
}

.screens {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.screen-card {
  position: relative;
  overflow: visible;
  margin: 0;
  padding: 18px 18px 20px;
  border-radius: 32px;
  background: #fff;
  border: 1px solid rgba(219, 231, 242, 0.9);
  box-shadow: 0 18px 44px rgba(21, 36, 52, 0.08);
  cursor: zoom-in;
  outline: none;
  transition: box-shadow 0.28s ease, border-color 0.28s ease, background 0.28s ease;
}

.screen-card:hover,
.screen-card:focus {
  background: #fbfdff;
  border-color: rgba(46, 134, 222, 0.28);
  box-shadow: 0 28px 70px rgba(21, 36, 52, 0.16);
}

.screen-thumb {
  position: relative;
  display: grid;
  place-items: center;
  height: 278px;
  overflow: hidden;
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 20%, rgba(228, 238, 255, 0.95), transparent 26%),
    radial-gradient(circle at 88% 78%, rgba(220, 249, 231, 0.95), transparent 25%),
    linear-gradient(135deg, #f8fcff, #f5fbf8);
}

.screen-thumb img {
  display: block;
  width: auto;
  max-width: 74%;
  height: 92%;
  object-fit: contain;
  border-radius: 20px;
  box-shadow: 0 18px 42px rgba(21, 36, 52, 0.16);
  transition: transform 0.32s ease;
}

.screen-card:hover .screen-thumb img,
.screen-card:focus .screen-thumb img {
  transform: translateY(-4px) scale(1.035);
}

.screen-card figcaption {
  padding: 18px 4px 0;
  color: #617185;
  font-size: 20px;
  font-weight: 950;
  text-align: center;
}

.screen-zoom {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 42px;
  background: rgba(13, 24, 35, 0.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  backdrop-filter: blur(7px);
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.screen-zoom img {
  display: block;
  width: auto;
  max-width: min(90vw, 390px);
  max-height: min(86vh, 850px);
  border-radius: 34px;
  box-shadow: 0 34px 90px rgba(13, 24, 35, 0.32);
  transform: translateY(16px) scale(0.92);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.screen-card:hover .screen-zoom,
.screen-card:focus .screen-zoom {
  opacity: 1;
  visibility: visible;
}

.screen-card:hover .screen-zoom img,
.screen-card:focus .screen-zoom img {
  transform: translateY(0) scale(1);
}

.contact-band {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 30px;
  border-radius: 28px;
  background: linear-gradient(135deg, #e9f8ef, #eaf7ff);
  border: 1px solid rgba(219, 231, 242, 0.9);
}

.contact-band h2 {
  margin-bottom: 6px;
  font-size: 28px;
  font-weight: 950;
}

.contact-band p {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
}

.legal-page {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: 54px 0 80px;
}

.legal-card {
  padding: clamp(24px, 5vw, 48px);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(219, 231, 242, 0.95);
  box-shadow: var(--shadow);
}

.legal-card h1 {
  font-size: clamp(32px, 5vw, 48px);
}

.legal-card h2 {
  margin-top: 30px;
  margin-bottom: 8px;
  font-size: 22px;
  font-weight: 950;
}

.legal-card p,
.legal-card li {
  color: #3f5368;
  font-size: 16px;
  font-weight: 500;
}

.legal-card ul {
  padding-left: 22px;
}

.site-footer {
  border-top: 1px solid rgba(219, 231, 242, 0.9);
  background: rgba(255, 255, 255, 0.86);
}

.footer-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.filing-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.beian-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.beian-link img {
  width: 16px;
  height: 17px;
  object-fit: contain;
}

.admin-page {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 44px;
}

.admin-topbar,
.admin-title-row,
.admin-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-topbar {
  min-height: 64px;
  margin-bottom: 26px;
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-actions select,
.admin-login-card input {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.admin-actions select {
  padding: 0 12px;
  font-weight: 750;
}

.admin-login {
  display: grid;
  min-height: calc(100vh - 140px);
  place-items: center;
}

.admin-login-card {
  width: min(430px, 100%);
  padding: 28px;
  border: 1px solid rgba(219, 231, 242, 0.95);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 48px rgba(21, 36, 52, 0.1);
}

.admin-login-card h1 {
  margin-bottom: 22px;
  font-size: 30px;
  line-height: 1.2;
}

.admin-login-card label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: #31485f;
  font-size: 14px;
  font-weight: 800;
}

.admin-login-card input {
  width: 100%;
  padding: 0 12px;
}

.admin-message {
  min-height: 24px;
  margin: 14px 0 0;
  color: #c2410c;
  font-size: 14px;
  font-weight: 750;
}

.admin-dashboard {
  display: grid;
  gap: 18px;
}

.admin-title-row {
  align-items: end;
}

.admin-title-row h1 {
  margin-bottom: 0;
  font-size: clamp(34px, 5vw, 58px);
}

.admin-muted,
.admin-panel-title span {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.admin-summary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.admin-summary-card,
.admin-panel {
  border: 1px solid rgba(219, 231, 242, 0.95);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 34px rgba(21, 36, 52, 0.07);
}

.admin-summary-card {
  min-height: 128px;
  padding: 18px;
}

.admin-summary-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.admin-summary-card strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 900;
}

.admin-summary-card p {
  margin: 12px 0 0;
  color: #617185;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 650;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.admin-panel {
  min-width: 0;
  padding: 20px;
}

.admin-panel-title {
  margin-bottom: 18px;
}

.admin-panel-title h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
}

.admin-bars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14px, 1fr));
  align-items: end;
  gap: 5px;
  height: 210px;
  padding-top: 12px;
  border-bottom: 1px solid var(--line);
}

.admin-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  height: var(--height);
  min-height: 4px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, #1479d7, #18b77b);
}

.admin-bar span,
.admin-bar strong {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 10px;
  font-weight: 750;
}

.admin-bar span {
  bottom: -24px;
  color: #7b8da0;
}

.admin-bar strong {
  top: -20px;
  color: #31485f;
}

.admin-product-list {
  display: grid;
  gap: 8px;
  margin-top: 34px;
}

.admin-product-list p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.admin-product-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f5f8fb;
}

.admin-product-item span {
  overflow: hidden;
  color: #52677d;
  font-size: 13px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-product-item strong {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 900;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 840px;
}

.admin-table th,
.admin-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: #52677d;
  font-size: 13px;
  font-weight: 900;
}

.admin-table td {
  color: #263b50;
  font-size: 14px;
  font-weight: 650;
}

.admin-table td:nth-child(3) {
  min-width: 280px;
  max-width: 460px;
  white-space: normal;
}

@media (max-width: 860px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
    min-height: auto;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 42px;
    gap: 28px;
  }

  .hero-card {
    min-height: 440px;
  }

  .iphone-shot {
    width: 38%;
  }

  .feature-grid,
  .ai-grid,
  .screens {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .screen-thumb {
    height: 320px;
  }

  .contact-band {
    grid-template-columns: 1fr;
  }

  .admin-topbar,
  .admin-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-summary-grid,
  .admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .feature-grid,
  .ai-grid,
  .screens {
    grid-template-columns: 1fr;
  }

  .screen-thumb {
    height: 340px;
  }

  .hero-card {
    min-height: 390px;
  }

  .iphone-shot {
    width: 47%;
    padding: 8px;
    border-radius: 32px;
  }

  .iphone-shot img {
    border-radius: 24px;
  }

  .iphone-shot.one {
    right: 0;
  }

  .iphone-shot.two {
    left: 0;
  }

  .footer-inner {
    flex-direction: column;
  }

  .admin-page {
    width: min(100% - 24px, 1280px);
    padding-top: 16px;
  }

  .admin-actions {
    width: 100%;
  }

  .admin-actions select,
  .admin-actions button {
    flex: 1;
  }

  .admin-summary-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-panel {
    padding: 16px;
  }
}

@media (hover: none) {
  .screen-card {
    cursor: default;
  }

  .screen-card:hover,
  .screen-card:focus {
    background: #fff;
  }

  .screen-zoom {
    display: none;
  }
}

/* Admin operations dashboard */
body.admin-body {
  --admin-bg: #f5f7fb;
  --admin-panel: #ffffff;
  --admin-text: #172233;
  --admin-soft: #65758a;
  --admin-line: #dde6ef;
  --admin-blue: #1769d2;
  --admin-green: #12a474;
  --admin-warn: #c77700;
  min-width: 1080px;
  background: var(--admin-bg);
  color: var(--admin-text);
}

.admin-page {
  width: min(1440px, calc(100% - 48px));
  padding: 18px 0 34px;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 58px;
  margin-bottom: 18px;
  padding: 10px 0;
  background: rgba(245, 247, 251, 0.92);
  backdrop-filter: blur(14px);
}

.admin-topbar .brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  box-shadow: none;
}

.admin-topbar .brand span {
  font-size: 18px;
  font-weight: 850;
}

.admin-actions select,
.admin-actions .button {
  min-height: 38px;
  border-radius: 8px;
  box-shadow: none;
}

.admin-actions .button {
  padding: 0 16px;
}

.admin-dashboard {
  gap: 14px;
}

.admin-title-row {
  min-height: 74px;
  padding: 18px 20px;
  align-items: center;
  border: 1px solid var(--admin-line);
  border-radius: 12px;
  background: var(--admin-panel);
  box-shadow: 0 10px 26px rgba(23, 34, 51, 0.05);
}

.admin-title-row .eyebrow {
  margin-bottom: 4px;
  color: var(--admin-blue);
  font-size: 13px;
  line-height: 1;
}

.admin-title-row h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 900;
}

.admin-muted {
  color: var(--admin-soft);
  font-size: 13px;
}

.admin-health {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.admin-health-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--admin-line);
  border-radius: 10px;
  background: var(--admin-panel);
}

.admin-health-item span {
  color: var(--admin-soft);
  font-size: 12px;
  font-weight: 800;
}

.admin-health-item strong {
  color: var(--admin-text);
  font-size: 13px;
  font-weight: 900;
}

.admin-health-item.warn {
  border-color: rgba(199, 119, 0, 0.28);
  background: #fff8ec;
}

.admin-health-item.warn strong {
  color: var(--admin-warn);
}

.admin-summary-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.admin-summary-card,
.admin-panel {
  border-color: var(--admin-line);
  border-radius: 12px;
  background: var(--admin-panel);
  box-shadow: 0 10px 26px rgba(23, 34, 51, 0.05);
}

.admin-summary-card {
  min-height: 112px;
  padding: 14px 15px;
}

.admin-summary-card span {
  color: var(--admin-soft);
  font-size: 12px;
  line-height: 1;
  font-weight: 850;
}

.admin-summary-card strong {
  margin-top: 10px;
  font-size: 30px;
  line-height: 1;
  letter-spacing: 0;
}

.admin-summary-card p {
  margin-top: 12px;
  color: var(--admin-soft);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
}

.admin-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

.admin-panel {
  padding: 16px;
}

.admin-panel-title {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--admin-line);
}

.admin-panel-title h2 {
  font-size: 17px;
  line-height: 1.2;
}

.admin-panel-title span {
  padding: 3px 8px;
  border-radius: 999px;
  background: #f0f4f8;
  color: #52677d;
  font-size: 12px;
}

.admin-bars {
  height: auto;
  min-height: 204px;
  padding: 4px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16px, 1fr));
  align-items: stretch;
  gap: 6px;
  border-bottom: 0;
}

.admin-bar {
  display: grid;
  grid-template-rows: 18px 150px 18px;
  gap: 5px;
  height: auto;
  min-height: 0;
  align-items: stretch;
  background: transparent;
}

.admin-bar strong,
.admin-bar span {
  position: static;
  transform: none;
  overflow: hidden;
  text-align: center;
  text-overflow: clip;
  white-space: nowrap;
}

.admin-bar strong {
  color: var(--admin-text);
  font-size: 10px;
  line-height: 18px;
  opacity: 0;
}

.admin-bar.has-value strong {
  opacity: 1;
}

.admin-bar span {
  color: #7b8da0;
  font-size: 10px;
  line-height: 18px;
}

.admin-bar-track {
  display: flex;
  align-items: flex-end;
  min-width: 0;
  height: 150px;
  border-radius: 7px;
  background: #edf3f8;
  overflow: hidden;
}

.admin-bar-fill {
  width: 100%;
  height: var(--height);
  min-height: 3px;
  border-radius: 7px 7px 0 0;
  background: linear-gradient(180deg, var(--admin-blue), var(--admin-green));
}

.admin-product-list {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--admin-line);
}

.admin-product-item {
  padding: 9px 10px;
  border-radius: 8px;
  background: #f5f8fb;
}

.admin-table {
  min-width: 920px;
}

.admin-table th {
  padding: 10px;
  background: #f5f8fb;
  color: #52677d;
  font-size: 12px;
}

.admin-table td {
  padding: 11px 10px;
  color: #23364a;
  font-size: 13px;
  line-height: 1.45;
}

.admin-table td:nth-child(1) {
  width: 170px;
  color: var(--admin-soft);
}

.admin-table td:nth-child(2) {
  width: 140px;
}

.admin-table td:nth-child(4) {
  width: 220px;
  color: var(--admin-soft);
}

.admin-table td:nth-child(5) {
  width: 92px;
}

@media (max-width: 1180px) {
  body.admin-body {
    min-width: 0;
  }

  .admin-summary-grid,
  .admin-health {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .admin-page {
    width: min(100% - 24px, 1440px);
  }

  .admin-title-row,
  .admin-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-actions {
    width: 100%;
  }

  .admin-summary-grid,
  .admin-health {
    grid-template-columns: 1fr;
  }
}
