/* 仪表盘整片质感 · 去大卡片，粒子铺满视口 */
html,
body.inside-header,
body.inside-aside {
  height: 100%;
  min-height: 100%;
}
body.inside-header,
body.inside-aside {
  background: transparent !important;
  color: #1a2433 !important;
}
html.kmt-skin body.inside-header #main,
html.kmt-skin body.inside-aside #main {
  padding: 0 !important;
  min-height: 100%;
  height: 100%;
}
html.kmt-skin .content,
html.kmt-skin .content .content,
html.kmt-skin body.inside-header .content {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  min-height: 100%;
}

.kmt-dash {
  --ink: #1a2433;
  --muted: #5a6878;
  --line: rgba(40, 60, 90, 0.1);
  --gold: #d4af37;
  --gold-deep: #a67c1a;
  --accent: #1a2e24;
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
  height: 100%;
  overflow: hidden;
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(1100px 620px at 78% 18%, rgba(154, 198, 220, 0.42), transparent 60%),
    radial-gradient(820px 520px at 8% 72%, rgba(186, 214, 198, 0.34), transparent 58%),
    radial-gradient(560px 320px at 42% 8%, rgba(212, 175, 55, 0.14), transparent 62%),
    radial-gradient(480px 360px at 92% 88%, rgba(120, 150, 180, 0.16), transparent 55%),
    linear-gradient(168deg, #f8fafc 0%, #e9eef5 46%, #edf3f7 100%);
}
.kmt-dash a { text-decoration: none; color: inherit; }

/* 粒子场 = 整片背景；给最小视口高度，避免父级瞬时 0 高把 canvas 裁没 */
.kmt-field {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  pointer-events: none;
}
.kmt-field canvas {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none;
}
.kmt-field.is-fallback {
  display: grid;
  place-items: center;
  padding: 80px 40px 180px;
}
.kmt-field.is-fallback .kmt-fallback-logos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  width: min(480px, 100%);
}
.kmt-field.is-fallback img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin: 0 auto;
  filter: drop-shadow(0 10px 20px rgba(26, 36, 51, 0.12));
}

/* 纸感颗粒：压淡，避免把粒子糊成噪点 */
.kmt-grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.18;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

/* 轻雾 vignette，压住边缘、让中心粒子更实 */
.kmt-dash::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 68% 40%, transparent 0%, transparent 52%, rgba(247, 250, 252, 0.18) 86%, rgba(232, 238, 246, 0.28) 100%),
    linear-gradient(90deg, rgba(247, 250, 252, 0.28) 0%, rgba(247, 250, 252, 0.08) 22%, transparent 42%);
}

.kmt-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(280px, 0.4fr) minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  grid-template-areas:
    "intro caption"
    "plats plats";
  gap: 8px 24px;
  min-height: calc(100vh - 8px);
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 36px 36px 32px;
  box-sizing: border-box;
}

.kmt-intro {
  grid-area: intro;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 30rem;
  padding: 28px 8px 20px 4px;
  animation: kmt-rise 0.75s ease both;
}
.kmt-kicker {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #8a7340;
}
.kmt-intro h1 {
  margin: 0;
  font-size: clamp(42px, 5.6vw, 62px);
  line-height: 0.96;
  letter-spacing: -0.045em;
  font-weight: 750;
  background: linear-gradient(
    120deg,
    #7a5c10 0%,
    #c9a227 18%,
    #ffe9a0 36%,
    #d4af37 52%,
    #fff6cc 68%,
    #b8860b 84%,
    #8b6914 100%
  );
  background-size: 280% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: kmt-gold 6s ease-in-out infinite;
  filter: drop-shadow(0 12px 32px rgba(201, 162, 39, 0.2));
}
.kmt-tag {
  margin: 18px 0 0;
  font-size: 16px;
  font-weight: 650;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.kmt-lede {
  margin: 12px 0 0;
  color: #4a5a6c;
  line-height: 1.7;
  max-width: 26rem;
  font-size: 14px;
}
.kmt-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.kmt-notice {
  margin: 18px 0 0;
  max-width: 26rem;
  font-size: 12px;
  line-height: 1.7;
  color: #8a7340;
  background: rgba(255, 248, 230, 0.72);
  border: 1px solid rgba(184, 134, 11, 0.2);
  border-radius: 12px;
  padding: 10px 12px;
}
.kmt-notice:empty,
.kmt-notice[hidden] {
  display: none;
}

.kmt-caption {
  grid-area: caption;
  align-self: end;
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  padding: 0 4px 28px;
  pointer-events: none;
  animation: kmt-rise 0.75s ease 0.1s both;
}
.kmt-caption span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8a95a8;
}
.kmt-caption strong {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1a2433;
  padding-bottom: 10px;
  position: relative;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
}
.kmt-caption strong::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 44px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, #d4af37, #f0d78c);
}

/* 平台区：标题 + 图标同一块，数字不被裁切 */
.kmt-plats-wrap {
  grid-area: plats;
  padding-top: 4px;
  animation: kmt-rise 0.75s ease 0.18s both;
}

.kmt-platforms {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
  padding: 16px 18px 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 10px 28px rgba(26, 36, 51, 0.06);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.kmt-platforms > h2 {
  margin: 0;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.08em;
  color: #6b7788;
  white-space: nowrap;
  padding: 0 8px 0 4px;
}
.kmt-platforms-row {
  display: flex;
  flex: 1;
  justify-content: space-between;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}

.kmt-plat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
  max-width: 88px;
  padding: 2px 2px 0;
  background: none;
  border: 0;
  box-shadow: none;
  cursor: pointer;
  text-align: center;
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 16px;
  transition: transform 0.2s ease;
}
.kmt-plat:hover { transform: translateY(-2px); background: none; border: 0; }
.kmt-plat.is-active {
  background: none;
  border: 0;
  box-shadow: none;
}
.kmt-plat-mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid rgba(26, 36, 51, 0.08);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 8px 16px rgba(26, 36, 51, 0.06);
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.kmt-plat:hover .kmt-plat-mark {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 10px 18px rgba(26, 36, 51, 0.1);
}
.kmt-plat.is-active .kmt-plat-mark {
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow:
    0 0 0 1.5px #d4af37,
    0 0 0 4px rgba(212, 175, 55, 0.16),
    0 8px 16px rgba(166, 124, 26, 0.12);
}
.kmt-plat img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  background: none;
  border-radius: 0;
  box-shadow: none;
}
.kmt-plat[data-name="豆包"] img {
  width: 42px;
  height: 42px;
}
.kmt-plat[data-name="Kimi"] .kmt-plat-mark {
  background: #1a2433;
  border-color: rgba(26, 36, 51, 0.18);
}
.kmt-plat[data-name="Kimi"] img {
  width: 26px;
  height: 26px;
}
.kmt-plat .name {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  white-space: nowrap;
}
.kmt-plat .num {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  color: #7a8796;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.kmt-plat .unit { display: none; }

.kmt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, #a67c1a 0%, #d4af37 48%, #b8860b 100%);
  background-size: 160% 160%;
  color: #fffdf5 !important;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 12px 28px rgba(166, 124, 26, 0.28);
  animation: kmt-gold 8s ease-in-out infinite;
  transition: transform 0.2s ease, filter 0.18s ease;
}
.kmt-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}
.kmt-btn-ghost {
  background: rgba(255, 250, 235, 0.55);
  color: #8a6a28 !important;
  border-color: rgba(184, 134, 11, 0.28);
  box-shadow: none;
  animation: none;
  backdrop-filter: blur(10px);
}
.kmt-btn-ghost:hover {
  background: rgba(255, 248, 230, 0.85);
  filter: none;
}

@keyframes kmt-gold {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes kmt-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
  .kmt-shell {
    grid-template-columns: 1fr;
    grid-template-areas:
      "intro"
      "caption"
      "plats";
    min-height: auto;
    padding: 22px 16px 28px;
  }
  .kmt-dash::after {
    background:
      linear-gradient(180deg, rgba(247, 250, 252, 0.55) 0%, transparent 28%),
      linear-gradient(0deg, rgba(237, 243, 247, 0.7) 0%, transparent 34%);
  }
  .kmt-intro {
    min-height: 240px;
    padding: 12px 4px 8px;
  }
  .kmt-caption {
    justify-self: start;
    align-items: flex-start;
    padding: 0 4px 12px;
  }
  .kmt-caption strong::after { right: auto; left: 0; }
  .kmt-platforms {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    overflow-x: auto;
    border-radius: 20px;
  }
  .kmt-platforms-row { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .kmt-platforms { gap: 12px; }
  .kmt-intro h1 { font-size: 34px; }
}
