:root {
  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Songti SC", "STSong", "SimSun", "PingFang SC", "Microsoft YaHei", serif;
  --bg-top: #f4f8ff;
  --bg: #edf3ff;
  --bg-strong: #dce8fb;
  --surface: rgba(244, 248, 255, 0.62);
  --surface-strong: rgba(249, 252, 255, 0.78);
  --surface-dark: rgba(18, 23, 33, 0.94);
  --surface-dark-soft: rgba(24, 31, 45, 0.84);
  --ink: #182338;
  --ink-soft: #51627f;
  --ink-faint: #7788a6;
  --line: rgba(123, 147, 191, 0.18);
  --line-strong: rgba(95, 124, 181, 0.26);
  --brand: #3279ff;
  --brand-deep: #1948b8;
  --brand-soft: rgba(50, 121, 255, 0.12);
  --teal: #18a0b6;
  --teal-soft: rgba(24, 160, 182, 0.12);
  --gold: #ffb347;
  --gold-soft: rgba(255, 179, 71, 0.15);
  --card-edge: rgba(255, 255, 255, 0.52);
  --page-accent-a: rgba(86, 132, 255, 0.2);
  --page-accent-b: rgba(67, 214, 196, 0.16);
  --page-accent-c: rgba(255, 167, 112, 0.14);
  --grid-highlight: rgba(255, 255, 255, 0.4);
  --grid-line: rgba(120, 149, 198, 0.034);
  --grid-line-soft: rgba(120, 149, 198, 0.022);
  --ambient-a: rgba(76, 123, 255, 0.14);
  --ambient-b: rgba(44, 208, 189, 0.12);
  --ambient-c: rgba(255, 162, 112, 0.11);
  --header-bg:
    linear-gradient(180deg, rgba(244, 249, 255, 0.72), rgba(233, 241, 255, 0.58));
  --header-border: rgba(255, 255, 255, 0.52);
  --header-shadow: 0 18px 45px rgba(67, 104, 174, 0.14);
  --header-brand-strong: #17315f;
  --header-brand-soft: #6c7ea6;
  --header-pill-bg: rgba(255, 255, 255, 0.34);
  --header-pill-border: rgba(255, 255, 255, 0.48);
  --header-pill-text: #2d436e;
  --header-pill-badge-bg: rgba(204, 93, 49, 0.1);
  --header-pill-badge-text: #8d3215;
  --header-pill-hover-bg: rgba(255, 255, 255, 0.5);
  --header-pill-active-bg:
    linear-gradient(135deg, rgba(255, 255, 255, 0.66), rgba(212, 228, 255, 0.72));
  --header-pill-active-border: rgba(144, 180, 255, 0.45);
  --header-pill-active-text: #153767;
  --theme-indicator:
    linear-gradient(135deg, #7db0ff, #ffd8aa);
  --theme-indicator-shadow: 0 4px 12px rgba(125, 176, 255, 0.28);
  --footer-bg:
    linear-gradient(135deg, rgba(241, 247, 255, 0.66), rgba(228, 238, 255, 0.56));
  --footer-border: rgba(255, 255, 255, 0.48);
  --footer-shadow: 0 26px 60px rgba(74, 110, 175, 0.16);
  --footer-text: #17315f;
  --footer-muted: #62769e;
  --hero-bg:
    linear-gradient(145deg, rgba(245, 249, 255, 0.72), rgba(233, 242, 255, 0.52));
  --hero-sheen: rgba(255, 255, 255, 0.34);
  --hero-spot-a: rgba(115, 157, 255, 0.22);
  --hero-spot-b: rgba(53, 204, 183, 0.14);
  --input-bg: rgba(255, 255, 255, 0.58);
  --soft-chip-bg: rgba(255, 255, 255, 0.42);
  --soft-card-bg: rgba(255, 255, 255, 0.36);
  --soft-row-bg: rgba(255, 255, 255, 0.3);
  --entry-bg:
    linear-gradient(135deg, rgba(245, 249, 255, 0.64), rgba(229, 239, 255, 0.44));
  --code-bg:
    linear-gradient(180deg, rgba(17, 24, 39, 0.98), rgba(9, 13, 20, 0.98));
  --code-text: #f8f3ea;
  --glass-blur: 26px;
  --glass-saturate: 180%;
  --shadow-xl: 0 40px 100px rgba(64, 98, 161, 0.18);
  --shadow-lg: 0 26px 62px rgba(64, 98, 161, 0.14);
  --shadow-md: 0 18px 38px rgba(64, 98, 161, 0.1);
  --radius-2xl: 34px;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

html[data-theme="dark"] {
  --bg-top: #151c29;
  --bg: #111827;
  --bg-strong: #0b1220;
  --surface: rgba(16, 24, 38, 0.62);
  --surface-strong: rgba(20, 31, 49, 0.76);
  --surface-dark: rgba(9, 14, 22, 0.96);
  --surface-dark-soft: rgba(16, 23, 34, 0.88);
  --ink: #edf2f7;
  --ink-soft: #c2cbda;
  --ink-faint: #94a3b8;
  --line: rgba(148, 163, 184, 0.16);
  --line-strong: rgba(148, 163, 184, 0.22);
  --brand-soft: rgba(204, 93, 49, 0.16);
  --teal-soft: rgba(15, 118, 110, 0.18);
  --gold-soft: rgba(193, 143, 47, 0.18);
  --card-edge: rgba(173, 196, 255, 0.14);
  --page-accent-a: rgba(96, 123, 255, 0.18);
  --page-accent-b: rgba(15, 199, 177, 0.14);
  --page-accent-c: rgba(255, 171, 103, 0.12);
  --grid-highlight: rgba(255, 255, 255, 0.04);
  --grid-line: rgba(148, 163, 184, 0.055);
  --grid-line-soft: rgba(148, 163, 184, 0.042);
  --ambient-a: rgba(204, 93, 49, 0.12);
  --ambient-b: rgba(15, 118, 110, 0.1);
  --ambient-c: rgba(193, 143, 47, 0.08);
  --header-bg:
    linear-gradient(180deg, rgba(10, 16, 28, 0.66), rgba(15, 24, 40, 0.58));
  --header-border: rgba(188, 207, 255, 0.12);
  --header-shadow: 0 18px 40px rgba(2, 6, 23, 0.28);
  --header-brand-strong: #f8f4ee;
  --header-brand-soft: rgba(211, 224, 255, 0.72);
  --header-pill-bg: rgba(255, 255, 255, 0.06);
  --header-pill-border: rgba(188, 207, 255, 0.1);
  --header-pill-text: rgba(248, 244, 238, 0.9);
  --header-pill-badge-bg: rgba(255, 255, 255, 0.1);
  --header-pill-badge-text: rgba(255, 245, 228, 0.92);
  --header-pill-hover-bg: rgba(255, 255, 255, 0.12);
  --header-pill-active-bg:
    linear-gradient(135deg, rgba(63, 101, 196, 0.34), rgba(89, 134, 255, 0.22));
  --header-pill-active-border: rgba(144, 180, 255, 0.28);
  --header-pill-active-text: #fffaf4;
  --theme-indicator:
    linear-gradient(135deg, #8fb3ff, #d8e1ff);
  --theme-indicator-shadow: 0 4px 12px rgba(143, 179, 255, 0.25);
  --footer-bg:
    linear-gradient(135deg, rgba(11, 17, 29, 0.64), rgba(17, 26, 42, 0.56));
  --footer-border: rgba(188, 207, 255, 0.1);
  --footer-shadow: 0 24px 60px rgba(2, 6, 23, 0.24);
  --footer-text: #fffaf4;
  --footer-muted: rgba(205, 220, 252, 0.72);
  --hero-bg:
    linear-gradient(145deg, rgba(12, 20, 34, 0.72), rgba(18, 29, 49, 0.54));
  --hero-sheen: rgba(255, 255, 255, 0.06);
  --hero-spot-a: rgba(107, 149, 255, 0.18);
  --hero-spot-b: rgba(53, 204, 183, 0.12);
  --input-bg: rgba(12, 20, 34, 0.58);
  --soft-chip-bg: rgba(255, 255, 255, 0.08);
  --soft-card-bg: rgba(255, 255, 255, 0.07);
  --soft-row-bg: rgba(255, 255, 255, 0.06);
  --entry-bg:
    linear-gradient(135deg, rgba(16, 24, 38, 0.68), rgba(21, 31, 49, 0.48));
  --code-bg:
    linear-gradient(180deg, rgba(6, 10, 18, 0.98), rgba(12, 18, 28, 0.98));
  --code-text: #edf2f7;
  --glass-blur: 30px;
  --glass-saturate: 160%;
  --shadow-xl: 0 38px 90px rgba(2, 6, 23, 0.28);
  --shadow-lg: 0 26px 58px rgba(2, 6, 23, 0.24);
  --shadow-md: 0 18px 36px rgba(2, 6, 23, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html.theme-is-switching body,
html.theme-is-switching .site-header,
html.theme-is-switching .site-footer,
html.theme-is-switching .home-hero,
html.theme-is-switching .home-stat-card,
html.theme-is-switching .home-nav-card,
html.theme-is-switching .tool-hero,
html.theme-is-switching .tool-card,
html.theme-is-switching .content-card-item,
html.theme-is-switching .feature-link-card,
html.theme-is-switching .highlight-grid article,
html.theme-is-switching .scene-card,
html.theme-is-switching .entry-card,
html.theme-is-switching .pdd-card,
html.theme-is-switching .pdd-modal-panel,
html.theme-is-switching .nav-pill,
html.theme-is-switching .button,
html.theme-is-switching input,
html.theme-is-switching textarea,
html.theme-is-switching select {
  transition:
    background-color 260ms ease,
    color 220ms ease,
    border-color 220ms ease,
    box-shadow 260ms ease !important;
}

body {
  isolation: isolate;
  position: relative;
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-ui);
  background:
    radial-gradient(circle at 0% 10%, var(--page-accent-a), transparent 22%),
    radial-gradient(circle at 100% 8%, var(--page-accent-b), transparent 24%),
    radial-gradient(circle at 50% 100%, var(--page-accent-c), transparent 28%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg) 52%, var(--bg-strong) 100%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, var(--grid-highlight), transparent 34%),
    repeating-linear-gradient(
      90deg,
      var(--grid-line) 0,
      var(--grid-line) 1px,
      transparent 1px,
      transparent 94px
    ),
    repeating-linear-gradient(
      0deg,
      var(--grid-line-soft) 0,
      var(--grid-line-soft) 1px,
      transparent 1px,
      transparent 94px
    );
  opacity: 0.7;
}

body::after {
  content: "";
  position: fixed;
  inset: -10%;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 20%, var(--ambient-a), transparent 22%),
    radial-gradient(circle at 80% 28%, var(--ambient-b), transparent 24%),
    radial-gradient(circle at 55% 78%, var(--ambient-c), transparent 20%);
  animation: ambientDrift 18s ease-in-out infinite alternate;
  opacity: 0.9;
}

body.theme-shell main,
body.theme-shell .page-shell {
  isolation: isolate;
}

.removed-overlay-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  user-select: none;
  background-image: var(--removed-overlay-image);
  background-repeat: repeat;
  background-position: center top;
  background-size: var(--removed-overlay-size, 390px 315px);
  opacity: 1;
}

.removed-overlay-overlay.is-top {
  z-index: 2147483000;
  top: var(--removed-overlay-top-offset, 0px);
}

.removed-overlay-overlay.is-bottom {
  z-index: 0;
}

.page-shell::before,
.page-shell::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: 34vw;
  height: 34vw;
  min-width: 260px;
  min-height: 260px;
  border-radius: 50%;
  filter: blur(48px);
  pointer-events: none;
  opacity: 0.7;
}

.page-shell::before {
  top: 12vh;
  right: -10vw;
  background: radial-gradient(circle, rgba(99, 142, 255, 0.22), transparent 66%);
  animation: floatBlobA 18s ease-in-out infinite alternate;
}

.page-shell::after {
  left: -8vw;
  bottom: 6vh;
  background: radial-gradient(circle, rgba(70, 219, 196, 0.18), transparent 68%);
  animation: floatBlobB 22s ease-in-out infinite alternate;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(204, 93, 49, 0.32);
  outline-offset: 3px;
}

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--brand-deep);
  font-weight: 700;
  box-shadow: var(--shadow-md);
}

.skip-link:focus {
  top: 16px;
}

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

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 36px));
  margin: 0 auto;
  padding: 0 0 40px;
}

.home-page {
  display: grid;
  gap: 22px;
}

.home-hero,
.home-legal,
.home-nav-card,
.home-stat-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--card-edge);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
}

.home-hero {
  padding: 38px 40px;
  border-radius: 36px;
  isolation: isolate;
}

.home-hero::before {
  content: "";
  inset: 0;
  background:
    radial-gradient(circle at 14% 18%, rgba(105, 143, 255, 0.18), transparent 22%),
    radial-gradient(circle at 88% 22%, rgba(53, 204, 183, 0.15), transparent 24%),
    linear-gradient(125deg, rgba(255, 255, 255, 0.44), transparent 48%);
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -58% 35%;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 171, 103, 0.2), transparent 68%);
  filter: blur(28px);
  animation: cardPulse 7s ease-in-out infinite;
}

.home-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 4rem);
  letter-spacing: -0.03em;
}

.home-lead {
  max-width: 860px;
  margin: 14px 0 0;
  color: var(--ink-soft);
  line-height: 1.88;
}

.home-legal {
  padding: 18px 22px;
  border-radius: 24px;
  text-align: center;
}

.home-legal::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--pointer-x, 50%) var(--pointer-y, 50%), rgba(255, 255, 255, 0.34), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.24), transparent 56%);
  opacity: 0.75;
}

.home-legal strong,
.home-legal p {
  position: relative;
  z-index: 1;
}

.home-legal strong {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 900;
}

.home-legal p {
  margin: 8px 0 0;
  color: var(--ink-faint);
  font-size: 0.78rem;
  line-height: 1.8;
}

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

.home-stat-card {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  border-radius: 22px;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.home-stat-card::before,
.home-nav-card::before,
.tool-card::after,
.scene-card::after,
.feature-link-card::after,
.content-card-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at var(--pointer-x, 50%) var(--pointer-y, 50%), rgba(255, 255, 255, 0.38), transparent 26%);
  opacity: 0;
  transition: opacity 220ms ease;
  pointer-events: none;
}

.home-stat-card:hover,
.home-nav-card:hover {
  box-shadow: 0 22px 44px rgba(17, 24, 39, 0.12);
}

.home-stat-card:hover::before,
.home-nav-card:hover::before,
.tool-card:hover::after,
.scene-card:hover::after,
.feature-link-card:hover::after,
.content-card-item:hover::after {
  opacity: 1;
}

.home-stat-card strong {
  font-size: 2rem;
  line-height: 1;
  transition: transform 220ms ease, color 220ms ease;
}

.home-stat-card span {
  color: var(--ink-faint);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-nav-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.home-nav-card {
  display: grid;
  gap: 12px;
  padding: 24px;
  border-radius: 28px;
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease, background 240ms ease;
}

.home-nav-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(139, 176, 255, 0.4);
  background: rgba(255, 255, 255, 0.44);
}

.home-nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.home-nav-top strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.home-nav-top span {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--nav-badge-bg, var(--brand-soft));
  color: var(--nav-badge-color, var(--brand-deep));
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.home-nav-card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.78;
}

.site-header,
.hero,
.tool-hero,
.scene-card,
.tool-card,
.content-card-item,
.feature-link-card,
.site-footer,
.site-flash,
.highlight-grid article {
  position: relative;
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
}

.site-header::before,
.home-hero::before,
.hero::after,
.tool-hero::after,
.tool-card::before,
.scene-card::before,
.content-card-item::before,
.feature-link-card::before,
.highlight-grid article::before,
.site-footer::before {
  position: absolute;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 12px clamp(16px, 3vw, 32px);
  margin-bottom: 26px;
  border: 0;
  border-bottom: 1px solid var(--header-border);
  border-radius: 0;
  background: var(--header-bg);
  box-shadow: var(--header-shadow);
}

.site-header::before {
  content: "";
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), transparent 35%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.2), transparent 56%);
  pointer-events: none;
}

.site-header::after {
  display: none;
}

.site-announcement {
  width: min(100% - 32px, 1480px);
  margin: -10px auto 22px;
}

.site-announcement-inner {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 7px 12px;
  border: 1px solid rgba(129, 154, 197, 0.22);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(239, 247, 255, 0.38)),
    radial-gradient(circle at 8% 50%, rgba(255, 179, 71, 0.18), transparent 28%),
    radial-gradient(circle at 92% 50%, rgba(24, 160, 182, 0.14), transparent 30%);
  color: var(--ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    0 16px 34px rgba(64, 98, 161, 0.1);
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
}

.site-announcement-inner::before,
.site-announcement-inner::after {
  display: none;
}

.site-announcement-inner::before {
  left: 80px;
  background: linear-gradient(90deg, rgba(247, 251, 255, 0.88), transparent);
}

.site-announcement-inner::after {
  right: 0;
  background: linear-gradient(270deg, rgba(247, 251, 255, 0.84), transparent);
}

.site-announcement-badge {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(245, 158, 11, 0.24);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 251, 235, 0.96), rgba(255, 237, 213, 0.72));
  color: #9a4b0f;
  font-size: 0.76rem;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.site-announcement-marquee {
  overflow: hidden;
  min-width: 0;
  position: relative;
  z-index: 1;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
}

.site-announcement-track {
  display: flex;
  align-items: center;
  width: max-content;
  min-width: 100%;
  animation: siteAnnouncementScroll 26s linear infinite;
}

.site-announcement-track span {
  flex: 0 0 auto;
  padding-right: clamp(42px, 8vw, 120px);
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 800;
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  .site-announcement:hover .site-announcement-track {
    animation-play-state: paused;
  }
}

html[data-theme="dark"] .site-announcement-inner {
  border-color: rgba(188, 207, 255, 0.12);
  background:
    linear-gradient(135deg, rgba(14, 22, 36, 0.76), rgba(18, 30, 50, 0.52)),
    radial-gradient(circle at 8% 50%, rgba(245, 158, 11, 0.12), transparent 28%),
    radial-gradient(circle at 92% 50%, rgba(24, 160, 182, 0.1), transparent 30%);
}

html[data-theme="dark"] .site-announcement-inner::before {
  background: linear-gradient(90deg, rgba(14, 22, 36, 0.9), transparent);
}

html[data-theme="dark"] .site-announcement-inner::after {
  background: linear-gradient(270deg, rgba(14, 22, 36, 0.84), transparent);
}

html[data-theme="dark"] .site-announcement-badge {
  border-color: rgba(245, 158, 11, 0.18);
  background: linear-gradient(135deg, rgba(146, 64, 14, 0.42), rgba(120, 53, 15, 0.26));
  color: #facc15;
}

html[data-theme="dark"] .removed-overlay-overlay {
  background-image: var(--removed-overlay-image-dark);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding-right: 6px;
}

.brand-mark {
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffd98f, #ff9447 60%, #d45d25);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    0 12px 22px rgba(255, 138, 71, 0.28);
}

.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-copy strong {
  color: var(--header-brand-strong);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.1;
}

.brand-copy small {
  color: var(--header-brand-soft);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mobile-theme-toggle,
.mobile-nav-toggle {
  position: relative;
  overflow: hidden;
  display: none;
  appearance: none;
  border: 1px solid rgba(129, 154, 197, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(244, 248, 255, 0.56));
  color: var(--header-brand-strong);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.64),
    0 8px 18px rgba(74, 110, 175, 0.1);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.mobile-theme-toggle {
  --mobile-theme-orb-rotate: 0deg;
  --mobile-theme-orb-scale: 1;
  color: var(--brand-deep);
}

.mobile-theme-orb {
  position: relative;
  overflow: hidden;
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 32% 30%, #fff7c2 0 19%, transparent 20%),
    linear-gradient(135deg, #ffcf5b, #ff8a45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.52),
    0 5px 12px rgba(255, 138, 69, 0.22);
  transform: rotate(var(--mobile-theme-orb-rotate)) scale(var(--mobile-theme-orb-scale));
  transition:
    background 520ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 520ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-theme-orb::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: translate(8px, -7px) scale(0.7);
  transition:
    opacity 520ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-theme-orb::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.8);
  opacity: 0.78;
  filter: blur(4px);
  transform: scale(0.85);
  transition:
    opacity 520ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-theme="dark"] .mobile-theme-toggle {
  --mobile-theme-orb-rotate: 145deg;
}

html[data-theme="dark"] .mobile-theme-orb {
  background:
    linear-gradient(135deg, #7da8ff, #243963);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 5px 12px rgba(78, 119, 220, 0.22);
}

html[data-theme="dark"] .mobile-theme-orb::before {
  opacity: 1;
  transform: translate(5px, -5px) scale(0.9);
}

html[data-theme="dark"] .mobile-theme-orb::after {
  opacity: 0.18;
  transform: scale(1.18);
}

.mobile-theme-toggle:hover {
  --mobile-theme-orb-scale: 1.05;
}

.mobile-theme-toggle:hover .mobile-theme-orb {
  filter: saturate(1.08);
}

.mobile-nav-toggle::before {
  display: none;
}

.mobile-nav-toggle span {
  position: relative;
  z-index: 1;
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.88;
  transform-origin: center;
  transition: transform 220ms ease, opacity 180ms ease, width 180ms ease;
}

.mobile-theme-toggle:hover,
.mobile-nav-toggle:hover {
  transform: translateY(-1px) scale(1.01);
  border-color: rgba(92, 128, 190, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(240, 246, 255, 0.62));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 10px 20px rgba(74, 110, 175, 0.13);
}

.mobile-nav-toggle:hover::before {
  left: 110%;
}

.mobile-theme-toggle:active,
.mobile-nav-toggle:active {
  transform: translateY(0) scale(0.98);
}

html[data-theme="dark"] .mobile-theme-toggle,
html[data-theme="dark"] .mobile-nav-toggle {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.055));
  border-color: rgba(188, 207, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 10px 20px rgba(2, 6, 23, 0.24);
}

html[data-theme="dark"] .mobile-theme-toggle:hover,
html[data-theme="dark"] .mobile-nav-toggle:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.08));
}

.site-nav {
  display: flex;
  min-width: 0;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 10px;
  align-items: center;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 7px 0 9px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

@media (min-width: 1081px) {
  .site-header {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .site-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    justify-content: center;
    width: max-content;
    max-width: min(calc(100vw - 340px), 1280px);
    overflow: visible;
  }
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  position: relative;
  overflow: hidden;
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid var(--header-pill-border);
  border-radius: 999px;
  background: var(--header-pill-bg);
  color: var(--header-pill-text);
  white-space: nowrap;
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
  filter:
    drop-shadow(0 8px 14px rgba(74, 110, 175, 0.045))
    drop-shadow(0 2px 5px rgba(74, 110, 175, 0.035));
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, color 220ms ease, box-shadow 220ms ease, filter 220ms ease;
}

.nav-pill::after {
  display: none;
}

.nav-pill small {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--nav-badge-bg, var(--header-pill-badge-bg));
  color: var(--nav-badge-color, var(--header-pill-badge-text));
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-pill:hover {
  transform: scale(1.018);
  border-color: var(--header-pill-active-border);
  background: var(--header-pill-hover-bg);
  color: var(--header-pill-text);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.56);
  filter:
    drop-shadow(0 12px 18px rgba(74, 110, 175, 0.075))
    drop-shadow(0 3px 8px rgba(74, 110, 175, 0.055));
}

.nav-pill.is-active {
  background: var(--header-pill-active-bg);
  border-color: var(--header-pill-active-border);
  color: var(--header-pill-active-text);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.58);
  filter:
    drop-shadow(0 14px 20px rgba(74, 110, 175, 0.085))
    drop-shadow(0 3px 9px rgba(74, 110, 175, 0.055));
}

.site-header.is-nav-open .mobile-nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.is-nav-open .mobile-nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.is-nav-open .mobile-nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-theme-toggle {
  cursor: pointer;
  appearance: none;
}

.theme-toggle-indicator {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--theme-indicator);
  box-shadow: var(--theme-indicator-shadow);
  flex: 0 0 auto;
  transition:
    background 520ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 520ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-theme="dark"] .theme-toggle-indicator {
  transform: rotate(180deg) scale(0.92);
}

.nav-theme-toggle:hover .theme-toggle-indicator {
  transform: rotate(18deg) scale(1.08);
}

html[data-theme="dark"] .nav-theme-toggle:hover .theme-toggle-indicator {
  transform: rotate(198deg) scale(1);
}

.site-flash {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding: 18px 20px;
  border: 1px solid var(--card-edge);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.site-flash strong {
  display: block;
  font-size: 0.95rem;
  line-height: 1.7;
}

.site-flash a {
  color: var(--brand-deep);
  font-weight: 700;
  word-break: break-all;
}

.pdd-inline-appeal-btn {
  margin-top: 12px;
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 900;
  cursor: pointer;
}

.pdd-inline-appeal-btn.is-solid {
  margin-top: 0;
  min-width: 128px;
  background: linear-gradient(135deg, #2f72ff, #1f63ef 54%, #1a4fd1);
  box-shadow: 0 16px 30px rgba(31, 99, 239, 0.2);
}

.site-flash-success {
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.12), var(--surface-strong));
}

.site-flash-error {
  background:
    linear-gradient(135deg, rgba(204, 93, 49, 0.12), var(--surface-strong));
}

.eyebrow,
.section-heading p {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero,
.tool-hero {
  overflow: hidden;
  border: 1px solid var(--card-edge);
  background: var(--hero-bg);
  box-shadow: var(--shadow-xl);
  transform-style: preserve-3d;
}

.hero::before,
.tool-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 82% 16%, var(--hero-spot-a), transparent 24%),
    radial-gradient(circle at 12% 78%, var(--hero-spot-b), transparent 26%),
    linear-gradient(120deg, var(--hero-sheen), transparent 42%);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  gap: 34px;
  padding: 48px;
  border-radius: 42px;
}

.hero-copy,
.tool-hero > div,
.tool-card,
.scene-card,
.content-card-item,
.highlight-grid article,
.feature-link-card {
  position: relative;
  z-index: 1;
}

.home-hero,
.hero,
.tool-hero {
  transform: perspective(1200px) rotateX(var(--hero-tilt, 0deg)) rotateY(var(--hero-sway, 0deg));
  transition: transform 280ms ease, box-shadow 280ms ease, border-color 280ms ease;
  will-change: transform;
}

.hero h1,
.section-heading h2,
.tool-hero h1,
.scene-card h3,
.tool-card h2,
.content-card-item strong,
.feature-link-card strong,
.highlight-grid h3,
.site-footer strong {
  font-family: var(--font-display);
}

.hero h1,
.section-heading h2,
.tool-hero h1 {
  margin: 0;
  letter-spacing: -0.03em;
}

.hero h1 {
  font-size: clamp(3rem, 5vw, 5.1rem);
  line-height: 0.98;
}

.hero-lead {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.92;
}

.hero-note,
.hero-actions,
.feature-band,
.tab-row,
.entry-actions,
.tool-hero-actions,
.action-row,
.search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-note {
  margin-top: 28px;
}

.hero-note span {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft-chip-bg);
  color: var(--ink-faint);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.hero-actions {
  margin-top: 30px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.hero-stat-card {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--soft-card-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.hero-stat-card strong {
  font-size: 1.45rem;
  line-height: 1;
}

.hero-stat-card span {
  color: var(--ink-faint);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 152px;
  padding: 14px 22px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.02em;
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, background 220ms ease;
  cursor: pointer;
  appearance: none;
}

.button:hover,
.scene-card:hover,
.tool-card:hover,
.content-card-item:hover,
.feature-link-card:hover,
.highlight-grid article:hover {
  transform: translateY(-2px);
}

.button:hover {
  transform: translateY(-2px) scale(1.01);
}

.button-primary {
  color: #fffdf8;
  background: linear-gradient(135deg, #68a3ff, var(--brand) 60%, #5bd3ff);
  box-shadow: 0 18px 34px rgba(50, 121, 255, 0.24);
}

.button-primary:hover {
  box-shadow: 0 22px 40px rgba(50, 121, 255, 0.28);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.34);
  color: var(--ink);
}

.button.is-copied {
  background: linear-gradient(135deg, #0d8b7c, var(--teal));
  color: #f8fffe;
}

.hero-stage {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(15, 26, 44, 0.94), rgba(18, 33, 55, 0.88)),
    radial-gradient(circle at 20% 20%, rgba(110, 151, 255, 0.24), transparent 24%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 28px 56px rgba(17, 24, 39, 0.22);
  transform: translateY(calc(var(--page-scroll, 0px) * -0.035));
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.03) 0,
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px,
      transparent 80px
    );
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(18px);
}

.orb-a {
  inset: 36px auto auto 26px;
  width: 170px;
  height: 170px;
  background: radial-gradient(circle, rgba(93, 138, 255, 0.56), transparent 72%);
}

.orb-b {
  inset: auto 2px 8px auto;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(84, 227, 201, 0.4), transparent 72%);
}

.stage-card {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
}

.stage-card span,
.scene-tag {
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.stage-card strong,
.scene-card h3 {
  font-size: 1.38rem;
}

.stage-card small {
  color: var(--ink-soft);
  line-height: 1.7;
}

.card-main {
  inset: 56px 38px auto auto;
  width: min(320px, calc(100% - 76px));
}

.card-side {
  inset: auto auto 34px 24px;
  width: min(256px, calc(100% - 58px));
}

.stage-panel {
  position: absolute;
  inset: auto 24px 28px auto;
  display: grid;
  gap: 8px;
  width: min(220px, calc(100% - 64px));
  padding: 18px 18px 19px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 248, 240, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.stage-panel span {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 221, 183, 0.82);
}

.stage-panel strong {
  font-size: 1.02rem;
  line-height: 1.45;
}

.stage-panel small {
  color: rgba(255, 245, 230, 0.72);
  line-height: 1.7;
}

section {
  margin-top: 30px;
}

.section-heading h2 {
  font-size: clamp(2rem, 3vw, 3.15rem);
  line-height: 1.08;
}

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

.home-nav-section {
  margin-top: 22px;
}

.home-nav-section .scene-grid {
  gap: clamp(14px, 2vw, 22px);
  margin-top: 0;
}

.scene-card,
.highlight-grid article,
.tool-card,
.content-card-item,
.feature-link-card {
  overflow: hidden;
  border: 1px solid var(--card-edge);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.scene-card,
.highlight-grid article,
.tool-card,
.content-card-item,
.feature-link-card,
.site-flash,
.site-footer {
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
}

.scene-card,
.highlight-grid article {
  padding: 22px;
  border-radius: var(--radius-xl);
}

.scene-card::before,
.tool-card::before,
.content-card-item::before,
.feature-link-card::before,
.highlight-grid article::before {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), rgba(193, 143, 47, 0.82));
}

.scene-card {
  display: flex;
  flex-direction: column;
  min-height: 334px;
  isolation: isolate;
  padding: 24px;
  border-color: rgba(255, 255, 255, 0.58);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.68), rgba(234, 243, 255, 0.42));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    0 20px 52px rgba(64, 98, 161, 0.14);
  transform: translateZ(0);
}

.scene-card::before {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  margin: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 14% 8%, rgba(255, 255, 255, 0.5), transparent 24%),
    radial-gradient(circle at 90% 12%, rgba(50, 121, 255, 0.12), transparent 28%);
  opacity: 0.86;
  z-index: 0;
  pointer-events: none;
}

.scene-card::after {
  z-index: 0;
}

.scene-card > * {
  position: relative;
  z-index: 1;
}

.scene-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  margin-bottom: 20px;
}

.scene-logo {
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 62px;
  height: 62px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(232, 242, 255, 0.46));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 16px 34px rgba(84, 117, 173, 0.16);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.scene-logo img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  transform: scale(1.01);
}

.scene-logo.is-multi {
  display: inline-flex;
  align-items: center;
  width: auto;
  min-width: 62px;
  max-width: 100%;
  padding: 6px 8px;
  gap: 6px;
}

.scene-logo.is-multi img {
  flex: 0 0 auto;
  width: clamp(34px, 10vw, 48px);
  height: clamp(34px, 10vw, 48px);
  border-radius: 16px;
}

.scene-logo.is-multi b {
  flex: 0 0 auto;
  color: var(--ink-faint);
  font-size: 0.92rem;
  line-height: 1;
}

.scene-card .scene-tag {
  margin-left: auto;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

.scene-card h3 {
  margin: 0 0 11px;
  letter-spacing: -0.02em;
}

.scene-card p,
.highlight-grid p,
.tool-card p,
.tool-card li,
.content-card-item p,
.feature-link-card span {
  color: var(--ink-soft);
  line-height: 1.84;
}

.scene-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 22px;
  padding: 0;
  list-style: none;
}

.scene-card li {
  padding: 7px 11px;
  border: 1px solid rgba(123, 147, 191, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.scene-card .button {
  width: 100%;
  margin-top: auto;
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(50, 121, 255, 0.16);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.scene-card a,
.content-card-foot a,
.empty-board a,
.feature-link-card {
  color: var(--brand-deep);
  font-weight: 700;
}

.accent-gold::before {
  background:
    radial-gradient(circle at 14% 8%, rgba(255, 255, 255, 0.5), transparent 24%),
    radial-gradient(circle at 92% 10%, rgba(255, 179, 71, 0.18), transparent 30%);
}

.accent-coral::before {
  background:
    radial-gradient(circle at 14% 8%, rgba(255, 255, 255, 0.5), transparent 24%),
    radial-gradient(circle at 92% 10%, rgba(255, 122, 69, 0.16), transparent 30%);
}

.accent-jade::before {
  background:
    radial-gradient(circle at 14% 8%, rgba(255, 255, 255, 0.5), transparent 24%),
    radial-gradient(circle at 92% 10%, rgba(24, 160, 182, 0.16), transparent 30%);
}

.scene-card:hover {
  transform: translateY(-5px);
}

.scene-card:hover .scene-logo {
  transform: translateY(-2px) scale(1.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.76),
    0 20px 40px rgba(84, 117, 173, 0.2);
}

.scene-card .button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(50, 121, 255, 0.2);
}

html[data-theme="dark"] .scene-card {
  border-color: rgba(188, 207, 255, 0.12);
  background:
    linear-gradient(145deg, rgba(20, 31, 49, 0.76), rgba(11, 17, 29, 0.48));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 22px 56px rgba(2, 6, 23, 0.28);
}

html[data-theme="dark"] .scene-logo {
  border-color: rgba(188, 207, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(96, 123, 255, 0.08));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 16px 34px rgba(2, 6, 23, 0.22);
}

html[data-theme="dark"] .scene-card .scene-tag,
html[data-theme="dark"] .scene-card li {
  border-color: rgba(188, 207, 255, 0.12);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.feature-band {
  margin-top: 24px;
}

.feature-link-card {
  flex: 1 1 250px;
  display: grid;
  gap: 8px;
  padding: 24px;
  border-radius: var(--radius-lg);
}

.feature-link-card strong {
  font-size: 1.15rem;
}

.highlight-grid article,
.tool-card,
.scene-card,
.feature-link-card,
.content-card-item {
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.highlight-grid article:hover,
.tool-card:hover,
.scene-card:hover,
.feature-link-card:hover,
.content-card-item:hover {
  box-shadow: 0 28px 60px rgba(74, 110, 175, 0.18);
  border-color: rgba(137, 177, 255, 0.42);
  background: rgba(255, 255, 255, 0.42);
}

.highlight-grid article {
  display: grid;
  gap: 10px;
}

.highlight-index {
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.tool-page {
  display: grid;
  gap: 22px;
}

.tool-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  padding: 30px 32px;
  border-radius: 34px;
}

.tool-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.7rem);
  line-height: 1.02;
}

.tool-hero p {
  max-width: 780px;
  margin: 10px 0 0;
  color: var(--ink-soft);
  line-height: 1.88;
}

.slim-hero {
  align-items: center;
}

.tool-grid {
  display: grid;
  gap: 18px;
}

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

.tool-card {
  padding: 28px 28px 24px;
  border-radius: 32px;
}

.tool-card h2 {
  margin: 0;
  font-size: 1.56rem;
}

.tool-tip {
  margin: 10px 0 0;
}

.stack-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.stack-form label {
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.93rem;
}

.stack-form input,
.stack-form textarea,
.stack-form select,
.filter-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--input-bg);
  color: var(--ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.52),
    0 10px 24px rgba(84, 117, 173, 0.06);
  backdrop-filter: blur(18px) saturate(175%);
  -webkit-backdrop-filter: blur(18px) saturate(175%);
}

.stack-form input:focus,
.stack-form textarea:focus,
.stack-form select:focus,
.filter-input:focus {
  outline: 0;
  border-color: rgba(204, 93, 49, 0.36);
  box-shadow: 0 0 0 4px rgba(204, 93, 49, 0.08);
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--soft-row-bg);
}

.toggle-row input {
  width: auto;
}

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

.mini-list,
.guide-list {
  margin: 12px 0 0;
  padding-left: 18px;
}

.mini-list li,
.guide-list li {
  margin-bottom: 8px;
}

.section-inline-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.count-badge,
.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--soft-row-bg);
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 800;
}

.count-badge.muted,
.status-chip {
  background: rgba(15, 118, 110, 0.12);
  color: #0f5e57;
}

.entry-list {
  display: grid;
  gap: 14px;
}

.entry-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--entry-bg);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.54),
    0 20px 38px rgba(84, 117, 173, 0.1);
}

.entry-card::before {
  content: "";
  width: 4px;
  align-self: stretch;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--brand), rgba(193, 143, 47, 0.82));
}

.entry-card > div:first-child {
  flex: 1;
}

.entry-card-used::before {
  background: linear-gradient(180deg, var(--teal), #4ca79f);
}

.entry-card p {
  margin: 6px 0 0;
}

.entry-actions form {
  margin: 0;
}

.tab-row {
  gap: 10px;
}

.tab-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft-card-bg);
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.tab-pill.is-active,
.tab-pill:hover {
  transform: translateY(-1px);
  color: #fffdf9;
  background: linear-gradient(135deg, var(--teal), #4ca79f);
}

.empty-state,
.empty-board {
  padding: 28px;
  border: 1px dashed var(--line-strong);
  border-radius: 20px;
  color: var(--ink-soft);
  text-align: center;
  background: var(--soft-row-bg);
}

.wide-card {
  grid-column: 1 / -1;
}

.compact-grid {
  margin-top: 4px;
}

.content-card-item {
  display: grid;
  gap: 10px;
  padding: 24px;
  border-radius: var(--radius-xl);
}

.content-card-top,
.content-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.content-card-top strong,
.content-card-foot span {
  font-size: 0.84rem;
}

.search-row {
  margin-bottom: 14px;
}

.filter-input {
  max-width: 440px;
}

.share-content {
  margin: 0;
  padding: 22px;
  overflow: auto;
  border-radius: 20px;
  background: var(--code-bg);
  color: var(--code-text);
  font-family: "SFMono-Regular", "Menlo", "Consolas", monospace;
  line-height: 1.85;
  white-space: pre-wrap;
  word-break: break-word;
}

.site-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-top: 34px;
  padding: 24px;
  border: 1px solid var(--footer-border);
  border-radius: 34px;
  background: var(--footer-bg);
  box-shadow: var(--footer-shadow);
}

.site-footer strong {
  color: var(--footer-text);
  font-size: 1.02rem;
}

.site-footer p,
.site-footer a {
  color: var(--footer-muted);
  line-height: 1.8;
}

.reveal {
  opacity: 0;
  filter: blur(8px);
  transform: translate3d(0, 26px, 0) scale(0.985) rotateX(var(--hero-tilt, 0deg)) rotateY(var(--hero-sway, 0deg));
  transition:
    opacity 760ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 760ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 760ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, filter, transform;
}

.reveal.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0) scale(1) rotateX(var(--hero-tilt, 0deg)) rotateY(var(--hero-sway, 0deg));
}

body.page-home .hero::before {
  background:
    radial-gradient(circle at 85% 18%, rgba(193, 143, 47, 0.22), transparent 25%),
    radial-gradient(circle at 14% 82%, rgba(204, 93, 49, 0.1), transparent 28%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.18), transparent 42%);
}

body.page-pdd .tool-hero::before {
  background:
    radial-gradient(circle at 84% 16%, rgba(204, 93, 49, 0.16), transparent 26%),
    radial-gradient(circle at 16% 84%, rgba(193, 143, 47, 0.12), transparent 26%);
}

body.page-pdd {
  background:
    linear-gradient(180deg, #e6f0f7 0%, #d8e8f2 48%, #c8dcea 100%);
}

body.page-pdd::before,
body.page-pdd::after {
  content: none;
}

html[data-theme="dark"] body.page-pdd {
  background:
    linear-gradient(180deg, #131c2a 0%, #182233 52%, #1b2538 100%);
}

.pdd-page {
  position: relative;
  display: grid;
  justify-items: center;
  min-height: 70dvh;
  isolation: isolate;
}

.pdd-page::before,
.pdd-page::after {
  content: "";
  position: fixed;
  z-index: -1;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(8px);
  opacity: 0.68;
}

.pdd-page::before {
  width: 220px;
  height: 220px;
  top: 96px;
  left: max(20px, calc(50% - 360px));
  background: radial-gradient(circle, rgba(88, 213, 255, 0.24), transparent 66%);
  animation: floatBlobA 10s ease-in-out infinite alternate;
}

.pdd-page::after {
  width: 260px;
  height: 260px;
  right: max(10px, calc(50% - 380px));
  bottom: 80px;
  background: radial-gradient(circle, rgba(255, 122, 69, 0.18), transparent 68%);
  animation: floatBlobB 12s ease-in-out infinite alternate;
}

.pdd-shell {
  width: min(440px, 100%);
  margin: 0 auto;
}

@media (min-width: 900px) {
  .pdd-shell {
    display: grid;
    grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
    grid-template-areas:
      "hero list"
      "submit list"
      "used used"
      "footer footer";
    gap: 18px;
    width: min(1240px, calc(100vw - 24px));
    align-items: start;
  }

  .pdd-card {
    margin-bottom: 0;
  }

  .pdd-card-hero {
    grid-area: hero;
  }

  .pdd-submit-card {
    grid-area: submit;
  }

  .pdd-list-card {
    grid-area: list;
    min-width: 0;
  }

  .pdd-used-card {
    grid-area: used;
  }

  .pdd-page-footer {
    grid-area: footer;
  }

  .pdd-list-card {
    min-height: 100%;
    padding-right: clamp(18px, 2vw, 28px);
  }

  .pdd-list {
    grid-template-columns: 1fr;
  }

  .pdd-list-card .pdd-list {
    max-height: 640px;
    overflow: auto;
    padding-right: clamp(6px, 1vw, 12px);
    scrollbar-gutter: stable;
  }

  .pdd-code-item {
    align-items: center;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .pdd-code-actions {
    justify-content: flex-end;
  }

  .pdd-used-card .pdd-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.pdd-card,
.pdd-modal-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--card-edge);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
}

.pdd-card {
  margin-bottom: 14px;
  border-radius: 24px;
  transform: translateZ(0);
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.pdd-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--pointer-x, 50%) var(--pointer-y, 20%), rgba(255, 255, 255, 0.42), transparent 30%),
    linear-gradient(140deg, rgba(255, 255, 255, 0.22), transparent 48%);
  opacity: 0.8;
}

body.page-pdd .pdd-page::before,
body.page-pdd .pdd-page::after,
body.page-pdd .pdd-card::before {
  display: none;
}

body.page-pdd .pdd-card {
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 255, 255, 0.7), transparent 34%),
    linear-gradient(180deg, rgba(250, 253, 255, 0.96), rgba(242, 248, 251, 0.95) 54%, rgba(235, 244, 249, 0.94));
  border-color: rgba(219, 232, 241, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 1px 0 rgba(255, 255, 255, 0.48),
    0 20px 42px rgba(45, 75, 105, 0.14),
    0 7px 16px rgba(42, 96, 135, 0.07);
}

body.page-pdd .pdd-card-hero {
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 255, 255, 0.7), transparent 34%),
    linear-gradient(180deg, rgba(250, 253, 255, 0.96), rgba(242, 248, 251, 0.95) 54%, rgba(235, 244, 249, 0.94));
  border-color: rgba(219, 232, 241, 0.96);
}

body.page-pdd .pdd-submit-card {
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 255, 255, 0.68), transparent 34%),
    linear-gradient(180deg, rgba(250, 253, 255, 0.96), rgba(241, 249, 247, 0.95) 54%, rgba(235, 244, 249, 0.94));
  border-color: rgba(211, 229, 235, 0.98);
}

body.page-pdd .pdd-list-card {
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 255, 255, 0.68), transparent 34%),
    linear-gradient(180deg, rgba(250, 253, 255, 0.96), rgba(240, 248, 252, 0.95) 54%, rgba(233, 243, 250, 0.94));
  border-color: rgba(211, 229, 239, 0.98);
}

body.page-pdd .pdd-used-card {
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 255, 255, 0.68), transparent 34%),
    linear-gradient(180deg, rgba(250, 253, 255, 0.96), rgba(243, 248, 251, 0.95) 54%, rgba(237, 244, 248, 0.94));
  border-color: rgba(216, 228, 236, 0.98);
}

html[data-theme="dark"] body.page-pdd .pdd-card {
  background: linear-gradient(180deg, rgba(43, 54, 73, 0.96), rgba(51, 63, 85, 0.94));
  border-color: rgba(115, 132, 165, 0.22);
}

html[data-theme="dark"] body.page-pdd .pdd-card-hero {
  background:
    radial-gradient(circle at 12% 0%, rgba(45, 212, 191, 0.14), transparent 30%),
    linear-gradient(145deg, rgba(24, 43, 48, 0.98), rgba(15, 118, 110, 0.28) 52%, rgba(30, 64, 175, 0.24));
  border-color: rgba(45, 212, 191, 0.2);
}

html[data-theme="dark"] body.page-pdd .pdd-submit-card {
  background:
    radial-gradient(circle at 12% 0%, rgba(45, 212, 191, 0.14), transparent 30%),
    linear-gradient(145deg, rgba(24, 43, 48, 0.98), rgba(15, 118, 110, 0.28) 52%, rgba(30, 64, 175, 0.24));
  border-color: rgba(45, 212, 191, 0.2);
}

html[data-theme="dark"] body.page-pdd .pdd-list-card {
  background:
    radial-gradient(circle at 12% 0%, rgba(45, 212, 191, 0.14), transparent 30%),
    linear-gradient(145deg, rgba(24, 43, 48, 0.98), rgba(15, 118, 110, 0.28) 52%, rgba(30, 64, 175, 0.24));
  border-color: rgba(45, 212, 191, 0.2);
}

html[data-theme="dark"] body.page-pdd .pdd-used-card {
  background:
    radial-gradient(circle at 12% 0%, rgba(45, 212, 191, 0.14), transparent 30%),
    linear-gradient(145deg, rgba(24, 43, 48, 0.98), rgba(15, 118, 110, 0.28) 52%, rgba(30, 64, 175, 0.24));
  border-color: rgba(45, 212, 191, 0.2);
}

.pdd-card > * {
  position: relative;
  z-index: 1;
}

.pdd-card:hover {
  border-color: rgba(204, 225, 238, 0.98);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 1px 0 rgba(255, 255, 255, 0.52),
    0 25px 52px rgba(45, 75, 105, 0.17),
    0 9px 20px rgba(42, 96, 135, 0.08);
}

.pdd-card-hero {
  padding: 18px;
}

.pdd-hero-head,
.pdd-section-head,
.pdd-local-row,
.pdd-input-area,
.pdd-list-toolbar,
.pdd-code-item,
.pdd-code-actions,
.pdd-hero-actions,
.pdd-entry-tip {
  display: flex;
  align-items: center;
}

.pdd-hero-head,
.pdd-section-head,
.pdd-code-item {
  justify-content: space-between;
  gap: 12px;
}

.pdd-hero-head h1 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1.1;
}

.pdd-title-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.pdd-title-logo {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.46);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.58),
    0 10px 22px rgba(74, 110, 175, 0.12);
}

.pdd-title-logo img,
.pdd-entry-icons img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pdd-title-logo.is-multi {
  display: inline-flex;
  width: auto;
  padding: 4px 6px;
  gap: 4px;
}

.pdd-title-logo.is-multi img {
  width: 30px;
  height: 30px;
  border-radius: 10px;
}

.pdd-title-logo b {
  color: var(--ink-faint);
  font-size: 0.72rem;
  line-height: 1;
}

.pdd-author-line,
.pdd-hero-hint,
.pdd-section-head p,
.pdd-code-item small,
.pdd-page-footer,
.pdd-mini-empty {
  color: var(--ink-faint);
}

.pdd-author-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 0;
  font-size: 0.78rem;
}

.pdd-author-line a {
  display: inline-flex;
  align-items: center;
  gap: 0.42em;
  color: var(--brand-deep);
  font-weight: 800;
  text-decoration: none;
}

.pdd-author-icon {
  width: 1em;
  height: 1em;
  flex: 0 0 1em;
  border-radius: 0.24em;
  object-fit: cover;
  box-shadow: 0 0.18em 0.45em rgba(74, 96, 130, 0.16);
}

.pdd-author-line a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pdd-team-badge {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  width: fit-content;
  margin: 10px auto 0;
  padding: 7px 15px;
  border: 1px solid rgba(244, 63, 94, 0.2);
  border-radius: 999px;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.78), transparent 28%),
    linear-gradient(135deg, rgba(255, 241, 242, 0.96), rgba(255, 247, 237, 0.9));
  color: #9f1239;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.68),
    0 12px 26px rgba(244, 63, 94, 0.1);
}

.pdd-team-badge::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent);
  transform: translateX(-70%);
  animation: pddTeamBadgeSheen 4.2s ease-in-out infinite;
  pointer-events: none;
}

.pdd-team-badge span,
.pdd-team-badge small,
.pdd-team-badge b {
  position: relative;
  z-index: 1;
}

.pdd-team-badge span {
  font-size: 0.76rem;
  font-weight: 900;
}

.pdd-team-badge b {
  color: #c2410c;
  font-size: 1.16rem;
  line-height: 1;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}

.pdd-team-badge small {
  color: #9f1239;
  font-size: 0.76rem;
  font-weight: 900;
}

html[data-theme="dark"] .pdd-team-badge {
  border-color: rgba(251, 113, 133, 0.2);
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.12), transparent 28%),
    linear-gradient(135deg, rgba(136, 19, 55, 0.42), rgba(154, 52, 18, 0.24));
  color: #fecdd3;
}

html[data-theme="dark"] .pdd-team-badge b {
  color: #fed7aa;
}

html[data-theme="dark"] .pdd-team-badge small {
  color: #fecdd3;
}

.pdd-hero-actions {
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.pdd-live-badge,
.pdd-icon-btn,
.pdd-tool-btn,
.pdd-chip-link,
.pdd-refresh-btn,
.pdd-smart-btn,
.pdd-copy-btn,
.pdd-use-btn,
.pdd-local-btn,
.pdd-get-code-btn,
.pdd-mini-code {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.34);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
}

.pdd-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 800;
}

.pdd-live-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 5px rgba(24, 160, 182, 0.12);
  animation: pddLivePulse 1.8s ease-in-out infinite;
}

.pdd-icon-btn,
.pdd-refresh-btn,
.pdd-smart-btn,
.pdd-copy-btn,
.pdd-use-btn,
.pdd-local-btn,
.pdd-get-code-btn {
  position: relative;
  overflow: hidden;
  min-height: 38px;
  padding: 7px 10px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.pdd-icon-btn::before,
.pdd-refresh-btn::before,
.pdd-smart-btn::before,
.pdd-copy-btn::before,
.pdd-use-btn::before,
.pdd-local-btn::before,
.pdd-submit-btn::before,
.pdd-tool-btn::before,
.pdd-get-code-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 30% 0%, rgba(255, 255, 255, 0.58), transparent 34%),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  opacity: 0;
  transform: translateX(-34%);
  transition: opacity 180ms ease, transform 360ms ease;
}

.pdd-icon-btn:hover::before,
.pdd-refresh-btn:hover::before,
.pdd-smart-btn:hover::before,
.pdd-copy-btn:hover::before,
.pdd-use-btn:hover::before,
.pdd-local-btn:hover::before,
.pdd-submit-btn:hover::before,
.pdd-tool-btn:hover::before,
.pdd-get-code-btn:hover::before {
  opacity: 1;
  transform: translateX(34%);
}

.pdd-icon-btn:active,
.pdd-refresh-btn:active,
.pdd-smart-btn:active,
.pdd-copy-btn:active,
.pdd-use-btn:active,
.pdd-local-btn:active,
.pdd-submit-btn:active,
.pdd-tool-btn:active,
.pdd-get-code-btn:active {
  transform: translateY(0) scale(0.98);
}

.is-loading {
  cursor: wait;
}

.pdd-icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.pdd-tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 18px;
}

.pdd-tool-btn {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 76px;
  padding: 12px 8px;
  border-radius: 18px;
  border-color: rgba(168, 189, 227, 0.52);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(241, 247, 255, 0.34));
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.66),
    0 10px 24px rgba(114, 146, 204, 0.08);
}

.pdd-tool-btn:hover,
.pdd-icon-btn:hover,
.pdd-local-btn:hover,
.pdd-refresh-btn:hover,
.pdd-smart-btn:hover,
.pdd-copy-btn:hover,
.pdd-use-btn:hover,
.pdd-mini-code:hover {
  transform: translateY(-2px);
  border-color: rgba(137, 177, 255, 0.42);
  background: rgba(255, 255, 255, 0.48);
}

.pdd-tool-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(154, 182, 230, 0.34);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(237, 245, 255, 0.56));
  color: #3567d6;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 10px 18px rgba(103, 135, 197, 0.12);
}

.pdd-tool-icon svg {
  width: 20px;
  height: 20px;
}

.pdd-tool-icon.is-smart {
  border-color: rgba(16, 185, 129, 0.26);
  background: linear-gradient(180deg, rgba(236, 253, 245, 0.92), rgba(209, 250, 229, 0.72));
  color: #0f9f6e;
}

.pdd-tool-icon.is-report {
  border-color: rgba(56, 189, 248, 0.26);
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.92), rgba(219, 234, 254, 0.72));
  color: #2f6df6;
}

.pdd-tool-icon.is-about {
  border-color: rgba(129, 140, 248, 0.26);
  background: linear-gradient(180deg, rgba(238, 242, 255, 0.92), rgba(224, 231, 255, 0.72));
  color: #4f46e5;
}

.pdd-tool-btn.is-smart-tool:hover {
  border-color: rgba(16, 185, 129, 0.34);
}

.pdd-tool-btn.is-report-tool:hover {
  border-color: rgba(59, 130, 246, 0.34);
}

.pdd-tool-btn.is-about-tool:hover {
  border-color: rgba(99, 102, 241, 0.34);
}

html[data-theme="dark"] .pdd-tool-btn {
  border-color: rgba(161, 181, 223, 0.28);
  background: linear-gradient(180deg, rgba(79, 93, 119, 0.78), rgba(97, 111, 140, 0.68));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 14px 28px rgba(8, 12, 24, 0.22);
}

html[data-theme="dark"] .pdd-tool-icon {
  border-color: rgba(172, 193, 239, 0.24);
  background: linear-gradient(180deg, rgba(64, 85, 123, 0.92), rgba(53, 72, 108, 0.78));
  color: #dbeafe;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 18px rgba(2, 6, 23, 0.24);
}

html[data-theme="dark"] .pdd-tool-icon.is-smart {
  border-color: rgba(52, 211, 153, 0.26);
  background: linear-gradient(180deg, rgba(6, 95, 70, 0.9), rgba(5, 150, 105, 0.62));
  color: #d1fae5;
}

html[data-theme="dark"] .pdd-tool-icon.is-report {
  border-color: rgba(96, 165, 250, 0.28);
  background: linear-gradient(180deg, rgba(30, 64, 175, 0.88), rgba(37, 99, 235, 0.62));
  color: #dbeafe;
}

html[data-theme="dark"] .pdd-tool-icon.is-about {
  border-color: rgba(129, 140, 248, 0.3);
  background: linear-gradient(180deg, rgba(67, 56, 202, 0.86), rgba(99, 102, 241, 0.62));
  color: #e0e7ff;
}

.pdd-entry-tip {
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(24, 160, 182, 0.12), rgba(255, 255, 255, 0.26));
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(103, 136, 194, 0.12);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, background 220ms ease;
}

.pdd-entry-tip:hover,
.pdd-entry-tip:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(120, 162, 235, 0.32);
  background: linear-gradient(135deg, rgba(24, 160, 182, 0.16), rgba(255, 255, 255, 0.42));
  box-shadow: 0 18px 34px rgba(103, 136, 194, 0.18);
}

.pdd-entry-icons {
  display: flex;
  flex: 0 0 auto;
  margin-right: 2px;
}

.pdd-entry-icons i {
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 22px;
  height: 22px;
  margin-left: -4px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  background: linear-gradient(135deg, #fff, #e9f2ff);
  color: var(--brand-deep);
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 900;
}

.pdd-hero-hint {
  margin: 12px 0 0;
  font-size: 0.78rem;
  text-align: center;
}

.pdd-submit-card,
.pdd-list-card,
.pdd-used-card {
  padding: 14px;
}

.pdd-local-row {
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.pdd-local-label {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 0.76rem;
  font-weight: 900;
}

.pdd-local-actions {
  display: flex;
  gap: 7px;
}

.pdd-record-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.pdd-local-btn.is-active {
  background: linear-gradient(135deg, rgba(50, 121, 255, 0.18), rgba(255, 255, 255, 0.42));
  color: var(--brand-deep);
}

.pdd-local-panels {
  margin-bottom: 12px;
}

.pdd-local-panel {
  display: none;
  flex-wrap: wrap;
  gap: 8px;
}

.pdd-local-panel.is-active {
  display: flex;
}

.pdd-mini-code {
  min-height: 30px;
  padding: 5px 9px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 900;
}

.pdd-mini-empty {
  font-size: 0.82rem;
}

.pdd-input-area {
  gap: 8px;
}

.pdd-input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--input-bg);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

.pdd-submit-btn {
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 16px;
  background:
    radial-gradient(circle at 26% 18%, rgba(255, 255, 255, 0.34), transparent 26%),
    linear-gradient(135deg, #34d37e, #22c760 54%, #17a84d);
  color: #fff;
  font-weight: 900;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 16px 30px rgba(34, 199, 96, 0.28);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.pdd-submit-btn:hover {
  filter: saturate(1.05);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 20px 36px rgba(34, 199, 96, 0.32);
}

.pdd-get-code-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 13px;
  border-color: rgba(245, 158, 11, 0.28);
  background:
    radial-gradient(circle at 26% 18%, rgba(255, 255, 255, 0.52), transparent 28%),
    linear-gradient(135deg, rgba(255, 247, 237, 0.9), rgba(254, 215, 170, 0.72));
  color: #9a3412;
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.54),
    0 14px 26px rgba(245, 158, 11, 0.14);
}

.pdd-get-code-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.4);
  background:
    radial-gradient(circle at 26% 18%, rgba(255, 255, 255, 0.58), transparent 28%),
    linear-gradient(135deg, rgba(255, 251, 235, 0.96), rgba(253, 186, 116, 0.78));
  color: #7c2d12;
}

.pdd-share-toggle {
  display: flex;
  align-items: flex-start;
  container-type: inline-size;
  gap: 10px;
  margin-top: 12px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--soft-row-bg);
}

.pdd-share-toggle input,
.pdd-copy-toggle input {
  accent-color: var(--brand);
}

.pdd-share-toggle strong,
.pdd-share-toggle small {
  display: block;
  line-height: 1.55;
}

.pdd-share-toggle strong {
  color: var(--ink);
  font-size: 0.82rem;
}

.pdd-share-toggle small {
  color: var(--ink-faint);
  font-size: 0.76rem;
}

@media (max-width: 760px) {
  .pdd-share-toggle strong {
    white-space: nowrap;
    letter-spacing: 0;
    font-size: clamp(0.68rem, 3.5cqw, 0.8rem);
    line-height: 1.25;
  }
}

.pdd-section-head {
  align-items: flex-start;
  margin-bottom: 12px;
  min-width: 0;
}

.pdd-section-head > div:first-child {
  flex: 1 1 auto;
  min-width: 0;
}

.pdd-section-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 900;
}

.pdd-title-stat-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.pdd-title-stat-row h2 {
  min-width: max-content;
  white-space: nowrap;
}

.pdd-title-stat-row .pdd-stat-pill {
  white-space: nowrap;
}

.pdd-stat-break {
  display: none;
}

.pdd-section-head h2 span {
  color: var(--teal);
}

.pdd-stats-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}

.pdd-stat-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  min-height: 32px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  color: var(--ink-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.pdd-stat-pill b {
  font-size: 1rem;
  line-height: 1;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.pdd-stat-pill small {
  color: currentColor;
  font-size: 0.7rem;
  font-weight: 900;
}

.pdd-stat-pill.is-available {
  border-color: rgba(34, 197, 94, 0.26);
  background: rgba(236, 253, 245, 0.82);
  color: #15803d;
}

.pdd-stat-pill.is-primary {
  min-height: 38px;
  padding: 7px 11px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 10px 20px rgba(34, 197, 94, 0.1);
}

.pdd-stat-pill.is-primary b {
  font-size: 1.22rem;
}

.pdd-stat-pill.is-primary small {
  font-size: 0.76rem;
}

.pdd-stat-pill.is-published {
  border-color: rgba(37, 99, 235, 0.22);
  background: rgba(239, 246, 255, 0.86);
  color: #1d4ed8;
}

.pdd-stat-pill.is-helped {
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(255, 251, 235, 0.88);
  color: #b45309;
}

.pdd-stat-pill.is-today-used {
  border-color: rgba(239, 68, 68, 0.24);
  background: rgba(254, 242, 242, 0.86);
  color: #dc2626;
}

.pdd-section-head p {
  margin: 5px 0 0;
  font-size: 0.78rem;
  line-height: 1.55;
}

.pdd-used-inline-count {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: var(--ink);
  font-weight: 900;
}

.pdd-used-inline-count b {
  color: #dc2626;
  font-size: 1.22rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.pdd-used-inline-count span {
  color: var(--ink);
  font-size: 0.92rem;
}

.pdd-section-actions,
.pdd-list-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

.pdd-section-action-pair {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  max-width: 100%;
}

.pdd-chip-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--brand-deep);
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  word-break: keep-all;
}

.pdd-report-head-btn {
  cursor: pointer;
}

.pdd-appeal-head-btn {
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
  cursor: pointer;
}

.pdd-blackroom-btn {
  background: rgba(17, 24, 39, 0.06);
  color: var(--ink);
  cursor: pointer;
}

.pdd-chip-link b {
  color: #ff4f67;
  font-size: 0.64rem;
}

.pdd-list-toolbar {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  justify-content: stretch;
  align-items: center;
  margin-bottom: 12px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--soft-row-bg);
}

.pdd-auto-refresh-note,
.pdd-copy-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 900;
}

.pdd-list-toolbar.is-refreshing .pdd-refresh-btn {
  cursor: wait;
}

.pdd-smart-btn {
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.34), transparent 28%),
    linear-gradient(135deg, #22c55e, #16a34a 58%, #15803d);
  border-color: rgba(22, 163, 74, 0.42);
  color: #f0fdf4;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 14px 24px rgba(21, 128, 61, 0.18);
}

.pdd-smart-btn:hover {
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.42), transparent 28%),
    linear-gradient(135deg, #22c55e, #16a34a 52%, #166534);
  border-color: rgba(21, 128, 61, 0.52);
  color: #ffffff;
}

html[data-theme="dark"] .pdd-smart-btn {
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(135deg, #16a34a, #15803d 58%, #166534);
  border-color: rgba(74, 222, 128, 0.28);
  color: #ecfdf5;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 14px 24px rgba(3, 46, 22, 0.34);
}

html[data-theme="dark"] .pdd-smart-lock-panel {
  border-color: rgba(133, 148, 179, 0.2);
  background:
    linear-gradient(180deg, rgba(25, 31, 43, 0.98), rgba(19, 24, 34, 0.98));
  box-shadow:
    0 28px 64px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .pdd-smart-lock-kicker {
  color: #f4f7fb !important;
}

html[data-theme="dark"] .pdd-smart-lock-panel h2,
html[data-theme="dark"] .pdd-smart-lock-intro,
html[data-theme="dark"] .pdd-smart-lock-author {
  color: #c2ccdb !important;
}

html[data-theme="dark"] .pdd-smart-lock-code {
  border-color: rgba(138, 154, 182, 0.24);
  background: linear-gradient(180deg, rgba(33, 41, 56, 0.96), rgba(24, 30, 42, 0.96));
  color: #f8fafc;
}

html[data-theme="dark"] .pdd-smart-lock-secondary {
  background: linear-gradient(180deg, rgba(45, 54, 71, 0.98), rgba(35, 43, 58, 0.98));
  color: #d7ddea;
}

html[data-theme="dark"] .kl-smart-lock-wechat-tip {
  border-color: rgba(249, 115, 22, 0.28);
  background: rgba(124, 45, 18, 0.28);
  color: #fdba74 !important;
}

html[data-theme="dark"] .kl-smart-lock-intro-row > span:first-child {
  color: #c2ccdb;
}

html[data-theme="dark"] .kl-smart-lock-panel {
  background:
    linear-gradient(135deg, rgba(24, 30, 42, 0.98), rgba(18, 24, 35, 0.98) 52%, rgba(12, 42, 28, 0.95));
}

html[data-theme="dark"] .kl-smart-lock-panel .pdd-smart-lock-kicker {
  border-color: rgba(74, 222, 128, 0.24);
  background: rgba(22, 101, 52, 0.28);
  color: #bbf7d0 !important;
}

html[data-theme="dark"] .kl-smart-lock-panel h2 {
  color: #f8fafc;
}

html[data-theme="dark"] .kl-smart-lock-panel .pdd-modal-close {
  background: rgba(15, 23, 42, 0.92);
}

html[data-theme="dark"] .kl-smart-lock-intro-row {
  border-color: rgba(71, 85, 105, 0.78);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.86), rgba(15, 23, 42, 0.82));
}

html[data-theme="dark"] .kl-smart-lock-intro-icon {
  border-color: rgba(71, 85, 105, 0.9);
  background: linear-gradient(180deg, rgba(45, 54, 71, 0.98), rgba(35, 43, 58, 0.98));
}

html[data-theme="dark"] .kl-smart-lock-intro-icon b {
  color: #e2e8f0;
}

html[data-theme="dark"] .kl-smart-lock-code-wrap {
  border-color: rgba(138, 154, 182, 0.24);
  background: linear-gradient(180deg, rgba(33, 41, 56, 0.96), rgba(24, 30, 42, 0.96));
}

html[data-theme="dark"] .kl-smart-lock-code-wrap strong {
  color: #cbd5e1;
}

html[data-theme="dark"] .kl-smart-lock-code {
  color: #f8fafc;
}

html[data-theme="dark"] .kl-smart-lock-release {
  border-color: rgba(249, 115, 22, 0.42);
  background: rgba(124, 45, 18, 0.26);
  color: #fdba74;
}

html[data-theme="dark"] .kl-smart-lock-ack {
  border-color: rgba(71, 85, 105, 0.9);
  background: rgba(15, 23, 42, 0.9);
  color: #cbd5e1;
}

html[data-theme="dark"] .kl-type-modal-panel {
  border-color: rgba(133, 148, 179, 0.2);
  background:
    radial-gradient(circle at 92% 8%, rgba(34, 197, 94, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(25, 31, 43, 0.98), rgba(19, 24, 34, 0.98));
}

html[data-theme="dark"] .kl-type-kicker {
  border-color: rgba(74, 222, 128, 0.24);
  background: rgba(22, 101, 52, 0.28);
  color: #bbf7d0 !important;
}

html[data-theme="dark"] .kl-type-modal-panel h2 {
  color: #f8fafc;
}

html[data-theme="dark"] .kl-type-modal-panel p:not(.kl-type-kicker) {
  color: #c2ccdb !important;
}

html[data-theme="dark"] .kl-type-options button {
  border-color: rgba(74, 222, 128, 0.2);
  background: linear-gradient(135deg, rgba(22, 101, 52, 0.28), rgba(13, 148, 136, 0.18));
  color: #bbf7d0;
}

html[data-theme="dark"] .pdd-appeal-summary {
  border-color: rgba(138, 154, 182, 0.24);
  background: linear-gradient(180deg, rgba(31, 40, 56, 0.96), rgba(22, 28, 40, 0.94));
}

html[data-theme="dark"] .pdd-appeal-summary strong {
  color: #ecf2fb;
}

html[data-theme="dark"] .pdd-smart-lock-panel .pdd-modal-close {
  background: rgba(44, 52, 68, 0.96);
  color: #edf2f7;
}

.pdd-list-toolbar form,
.pdd-list-toolbar .pdd-refresh-btn,
.pdd-list-toolbar .pdd-smart-btn {
  width: 100%;
}

.pdd-smart-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pdd-list {
  display: grid;
  gap: 8px;
}

.pdd-list {
  will-change: opacity, transform;
}

.pdd-list.is-soft-refresh {
  animation: pddCardListRefresh 420ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.pdd-list.is-soft-refresh .pdd-code-item {
  animation: pddCardItemIn 460ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.pdd-list.is-soft-refresh .pdd-code-item:nth-child(2) {
  animation-delay: 35ms;
}

.pdd-list.is-soft-refresh .pdd-code-item:nth-child(3) {
  animation-delay: 70ms;
}

.pdd-list.is-soft-refresh .pdd-code-item:nth-child(n + 4) {
  animation-delay: 105ms;
}

.pdd-code-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--entry-bg);
  box-shadow: 0 9px 18px rgba(84, 117, 173, 0.07);
}

.pdd-code-item.is-available {
  border-color: rgba(34, 197, 94, 0.22);
  background:
    linear-gradient(135deg, rgba(240, 253, 250, 0.88), rgba(255, 255, 255, 0.78));
}

.pdd-code-item.is-used {
  border-color: rgba(248, 113, 113, 0.2);
  background:
    linear-gradient(135deg, rgba(255, 245, 245, 0.92), rgba(255, 255, 255, 0.78));
}

.pdd-code-main {
  min-width: 0;
}

.pdd-code-text {
  display: block;
  color: var(--ink);
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.pdd-code-item.is-available .pdd-code-text {
  color: #15803d;
}

.pdd-code-item.is-used .pdd-code-text {
  color: #e11d48;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(225, 29, 72, 0.48);
}

.pdd-code-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
}

.pdd-code-item small {
  display: inline-flex;
  font-size: 0.72rem;
}

.pdd-publisher-meta {
  display: inline-flex;
  max-width: 100%;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
  color: var(--ink-faint);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0;
}

.pdd-code-actions {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pdd-code-actions form {
  margin: 0;
}

.pdd-beijing-clock {
  color: var(--teal) !important;
  font-weight: 900;
  white-space: nowrap;
}

.pdd-use-btn {
  border-color: transparent;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.35), transparent 26%),
    linear-gradient(135deg, var(--brand), #58d5ff);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 12px 24px rgba(50, 121, 255, 0.2);
}

.pdd-use-btn:hover,
.pdd-use-btn:focus-visible,
.pdd-use-btn.is-copied {
  border-color: transparent;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.42), transparent 28%),
    linear-gradient(135deg, #2f72ff, #56cfff);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 16px 28px rgba(50, 121, 255, 0.26);
}

.pdd-use-btn:active {
  border-color: transparent;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.34), transparent 28%),
    linear-gradient(135deg, #2867ea, #47bde8);
  color: #fff;
}

.pdd-copy-btn {
  color: var(--ink-soft);
}

.pdd-used-state {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(244, 63, 94, 0.09);
  color: #e11d48;
  font-size: 0.74rem;
  font-weight: 900;
}

.pdd-empty-tip {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(420px, 100%);
  margin: 0 auto;
  padding: 22px 14px;
  color: var(--ink-faint);
  font-size: 0.86rem;
  line-height: 1.8;
  text-align: center;
}

.pdd-page-footer {
  display: grid;
  gap: 6px;
  padding: 14px 4px 4px;
  text-align: center;
  font-size: 0.78rem;
}

.pdd-page-footer p {
  margin: 0;
}

.pdd-page-footer a {
  color: var(--brand-deep);
  font-weight: 900;
}

.pdd-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 10px;
  background: rgba(13, 20, 34, 0.38);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: pddModalFade 180ms ease both;
}

.pdd-modal[hidden] {
  display: none;
}

.pdd-modal-panel {
  width: min(420px, 100%);
  margin: 0;
  padding: 22px;
  border-radius: 24px;
  animation: pddModalRise 220ms ease both;
}

.pdd-smart-lock-panel {
  position: relative;
  width: min(680px, calc(100vw - 24px));
  padding: 34px 40px 28px;
  border: 1px solid rgba(215, 223, 237, 0.92);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(246, 249, 255, 0.98));
  box-shadow:
    0 28px 64px rgba(29, 47, 86, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  text-align: center;
}

.pdd-smart-lock-kicker {
  margin: 4px 0 10px !important;
  color: #22314f !important;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.14;
}

.pdd-smart-lock-panel h2 {
  margin-top: 0;
  color: #5b6476;
  font-size: 1rem;
  line-height: 1.7;
}

.pdd-smart-lock-intro {
  margin-top: 10px !important;
  color: #6b7485 !important;
  font-size: 0.98rem;
}

.pdd-smart-lock-author {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 16px auto 0 !important;
  color: #384762 !important;
  font-size: 0.98rem;
  font-weight: 900;
  text-decoration: none;
}

.pdd-smart-lock-author-icon {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 10px 18px rgba(30, 42, 71, 0.18);
}

.pdd-smart-lock-code {
  margin-top: 18px;
  padding: 26px 18px;
  border: 1px solid rgba(212, 220, 235, 0.96);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(246, 249, 255, 0.98), rgba(255, 255, 255, 0.95));
  color: #2b3342;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.pdd-smart-lock-panel.is-locking .pdd-smart-lock-code {
  position: relative;
  color: #64748b;
  font-size: clamp(1.25rem, 5vw, 2rem);
}

.pdd-smart-lock-panel.is-locking .pdd-smart-lock-code::after {
  content: "";
  display: inline-block;
  width: 0.85em;
  height: 0.85em;
  margin-left: 0.55em;
  border: 3px solid rgba(37, 99, 235, 0.18);
  border-top-color: #2563eb;
  border-radius: 999px;
  vertical-align: -0.08em;
  animation: pddSpin 700ms linear infinite;
}

.pdd-smart-lock-panel.is-error .pdd-smart-lock-code {
  color: #b91c1c;
  font-size: clamp(1.25rem, 5vw, 2rem);
}

.pdd-smart-lock-actions {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.kl-smart-lock-panel {
  width: min(720px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 30px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.99), rgba(249, 250, 255, 0.96) 52%, rgba(240, 253, 244, 0.94));
  text-align: left;
}

.kl-smart-lock-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: linear-gradient(90deg, #22c55e, #38bdf8, #f59e0b);
}

.kl-smart-lock-panel .pdd-modal-close {
  z-index: 2;
  background: rgba(255, 255, 255, 0.92);
}

.kl-smart-lock-panel .pdd-smart-lock-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin: 0 0 12px !important;
  padding: 0 14px;
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.1);
  color: #15803d !important;
  font-size: 0.92rem;
  letter-spacing: 0;
}

.kl-smart-lock-panel h2 {
  margin-bottom: 0;
  color: #1f2937;
  font-size: clamp(1.28rem, 2.4vw, 1.8rem);
  font-weight: 900;
  line-height: 1.35;
}

.kl-smart-lock-wechat-tip {
  margin-top: 12px !important;
  padding: 10px 12px;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 14px;
  background: rgba(255, 251, 235, 0.86);
  color: #b45309 !important;
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.55;
}

.kl-smart-lock-intro-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: 100%;
  margin: 16px 0 0 !important;
  padding: 14px 14px 14px 16px;
  border: 1px solid rgba(203, 213, 225, 0.72);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.kl-smart-lock-intro-row > span:first-child {
  min-width: 0;
  color: #475569;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.65;
}

.kl-smart-lock-intro-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 12px 22px rgba(30, 42, 71, 0.1);
}

.kl-smart-lock-intro-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kl-smart-lock-intro-icon b {
  color: #1f2937;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.kl-smart-lock-intro-icon.is-wechat {
  border-color: rgba(34, 197, 94, 0.28);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 253, 244, 0.94));
  box-shadow: 0 12px 22px rgba(34, 197, 94, 0.2);
}

.kl-smart-lock-intro-icon.is-wechat img {
  width: 76%;
  height: 76%;
  object-fit: contain;
}

.kl-smart-lock-intro-icon.is-wechat b {
  color: #16a34a;
}

.kl-smart-lock-code-wrap {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(187, 202, 224, 0.88);
  border-radius: 22px;
  background:
    radial-gradient(circle at 96% 12%, rgba(34, 197, 94, 0.11), transparent 34%),
    linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(255, 255, 255, 0.96));
  text-align: left;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 16px 32px rgba(30, 42, 71, 0.08);
}

.kl-smart-lock-code-wrap strong {
  color: #64748b;
  font-size: 0.96rem;
  font-weight: 900;
}

.kl-smart-lock-code {
  color: #111827;
  font-size: clamp(1.1rem, 2.4vw, 1.55rem);
  font-weight: 900;
  line-height: 1.55;
  word-break: break-all;
}

.kl-smart-lock-actions,
.kl-smart-lock-footer-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.kl-smart-lock-actions {
  margin-top: 18px;
}

.kl-smart-lock-footer-actions {
  margin-top: 16px;
}

.kl-smart-lock-release,
.kl-smart-lock-ack {
  min-height: 58px;
  border-radius: 18px;
  font-size: 1rem;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.kl-smart-lock-release {
  border: 1px solid rgba(251, 146, 60, 0.62);
  background: linear-gradient(180deg, rgba(255, 247, 237, 0.98), rgba(255, 237, 213, 0.96));
  color: #b45309;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.kl-smart-lock-ack {
  border: 1px solid rgba(214, 220, 232, 0.9);
  background: linear-gradient(180deg, rgba(244, 246, 250, 0.98), rgba(234, 238, 245, 0.96));
  color: #64748b;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.kl-smart-lock-release:hover,
.kl-smart-lock-ack:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
}

.pdd-smart-lock-primary,
.pdd-smart-lock-secondary {
  min-height: 82px;
  border: 0;
  border-radius: 24px;
  cursor: pointer;
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.45;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.pdd-smart-lock-primary {
  background: linear-gradient(135deg, #2fd56b, #24c85f 54%, #16aa4a);
  color: #fff;
  box-shadow: 0 20px 36px rgba(36, 200, 95, 0.24);
}

.pdd-smart-lock-secondary {
  background: linear-gradient(180deg, rgba(244, 246, 250, 0.98), rgba(234, 238, 245, 0.96));
  color: #667085;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.kl-smart-lock-actions .pdd-smart-lock-primary,
.kl-smart-lock-actions .pdd-smart-lock-secondary {
  min-height: 62px;
  border-radius: 18px;
  font-size: 1rem;
}

.kl-type-modal-panel {
  width: min(520px, calc(100vw - 24px));
  padding: 28px;
  border: 1px solid rgba(215, 223, 237, 0.92);
  border-radius: 28px;
  background:
    radial-gradient(circle at 92% 8%, rgba(34, 197, 94, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 252, 0.98));
  box-shadow:
    0 28px 64px rgba(29, 47, 86, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  text-align: left;
}

.kl-type-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin: 0 0 10px !important;
  padding: 0 13px;
  border: 1px solid rgba(34, 197, 94, 0.22);
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.1);
  color: #15803d !important;
  font-size: 0.86rem;
  font-weight: 900;
}

.kl-type-modal-panel h2 {
  margin: 0;
  color: #172033;
  font-size: clamp(1.35rem, 3vw, 1.82rem);
  font-weight: 900;
  line-height: 1.25;
}

.kl-type-modal-panel p:not(.kl-type-kicker) {
  margin-top: 10px !important;
  color: #64748b !important;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.65;
}

.kl-type-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.kl-type-options button {
  min-height: 54px;
  border: 1px solid rgba(34, 197, 94, 0.22);
  border-radius: 17px;
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.36), transparent 28%),
    linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(20, 184, 166, 0.12));
  color: #0f766e;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 900;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.kl-type-options button:hover {
  transform: translateY(-1px);
  border-color: rgba(34, 197, 94, 0.42);
  background: linear-gradient(135deg, #22c55e, #14b8a6);
  color: #fff;
  box-shadow: 0 16px 28px rgba(15, 118, 110, 0.18);
}

.pdd-smart-lock-primary:hover,
.pdd-smart-lock-secondary:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
}

.pdd-smart-lock-primary:disabled,
.pdd-smart-lock-secondary:disabled,
.pdd-smart-lock-panel .pdd-modal-close:disabled {
  opacity: 0.62;
  cursor: wait;
  transform: none;
}

.pdd-smart-lock-panel .pdd-modal-close {
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  border: 0;
  background: rgba(241, 244, 249, 0.96);
  color: #606a7e;
  font-size: 1.75rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.pdd-record-modal-panel {
  width: min(520px, 100%);
}

.pdd-appeal-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 12px;
  padding: 18px 20px;
  border: 1px solid rgba(214, 225, 244, 0.92);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(245, 249, 255, 0.98), rgba(255, 255, 255, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.pdd-appeal-summary strong {
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.75;
}

.pdd-modal-panel h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 900;
}

.pdd-modal-panel p {
  margin: 10px 0 0;
  color: var(--ink-soft);
  line-height: 1.75;
}

.pdd-record-list {
  display: grid;
  gap: 10px;
  max-height: min(44vh, 340px);
  margin-top: 16px;
  overflow: auto;
  padding-right: 4px;
}

.pdd-record-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--soft-row-bg);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.pdd-record-item:hover {
  transform: translateY(-1px);
  border-color: rgba(137, 177, 255, 0.42);
  background: rgba(255, 255, 255, 0.48);
}

.pdd-record-code {
  display: grid;
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.pdd-record-item strong {
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.pdd-record-item small {
  color: var(--ink-faint);
  font-size: 0.76rem;
}

.pdd-record-report {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255, 79, 103, 0.26);
  border-radius: 999px;
  background: rgba(255, 79, 103, 0.1);
  color: #c7354c;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
}

.pdd-record-empty {
  margin: 28px 0;
  color: var(--ink-faint);
  font-size: 1rem;
  font-weight: 900;
  text-align: center;
}

.pdd-blackroom-list {
  max-height: min(50vh, 420px);
}

.pdd-blackroom-item {
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--soft-row-bg);
}

.pdd-blackroom-item strong {
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 900;
}

.pdd-blackroom-item span {
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 900;
}

.pdd-blackroom-item small {
  color: var(--ink-faint);
  font-size: 0.76rem;
  line-height: 1.55;
}

.pdd-record-open-time {
  margin: 14px 0 0;
  color: var(--ink-faint);
  font-size: 0.8rem;
}

.pdd-record-clear,
.pdd-record-close {
  width: 100%;
  min-height: 50px;
  margin-top: 14px;
  border: 0;
  border-radius: 18px;
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform 180ms ease, filter 180ms ease;
}

.pdd-record-clear {
  background: rgba(244, 246, 250, 0.9);
  color: var(--ink-faint);
}

.pdd-record-close {
  background: linear-gradient(135deg, #34d37e, #22c760 54%, #17a84d);
  color: #fff;
  box-shadow: 0 16px 30px rgba(34, 199, 96, 0.24);
}

.pdd-record-clear:hover,
.pdd-record-close:hover {
  filter: saturate(1.05);
  transform: translateY(-1px);
}

.pdd-report-modal-panel {
  display: flex;
  flex-direction: column;
  width: min(620px, calc(100vw - 28px));
  height: min(680px, calc(100dvh - 28px));
  max-height: calc(100dvh - 28px);
  margin: 0;
  padding: 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.pdd-report-title-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 2px 48px 0 0;
}

.pdd-report-title-icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(254, 242, 242, 0.96), rgba(255, 255, 255, 0.72));
  color: #dc2626;
  font-size: 1.35rem;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(239, 68, 68, 0.08);
}

.pdd-report-title-row p {
  margin-top: 4px;
  color: var(--ink-faint);
  font-size: 0.86rem;
  line-height: 1.55;
}

.pdd-report-guide {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(240, 253, 250, 0.76), rgba(255, 255, 255, 0.46));
}

.pdd-report-guide h3 {
  margin: 0 0 6px;
  color: var(--teal);
  font-size: 1rem;
  font-weight: 900;
}

.pdd-report-guide p {
  display: flex;
  gap: 10px;
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-weight: 800;
  line-height: 1.55;
}

.pdd-report-guide p b {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-radius: 50%;
  color: var(--teal);
}

.pdd-report-guide small {
  display: block;
  margin-top: 8px;
  color: var(--ink-faint);
  line-height: 1.6;
}

.pdd-report-form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.pdd-report-field {
  display: block;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.34);
}

.pdd-report-form label > span,
.pdd-report-confirm span {
  flex: 1 1 auto;
  display: block;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1.65;
}

.pdd-report-form label b {
  float: right;
  padding: 2px 7px;
  border-radius: 8px;
  background: rgba(255, 79, 103, 0.1);
  color: #d63f55;
  font-size: 0.72rem;
}

.pdd-report-input {
  width: 100%;
  min-height: 46px;
  margin-top: 8px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--input-bg);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 800;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.pdd-report-input:focus {
  border-color: rgba(50, 121, 255, 0.38);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 0 0 4px rgba(50, 121, 255, 0.1);
}

textarea.pdd-report-input {
  min-height: 64px;
  padding-top: 10px;
  resize: vertical;
}

.pdd-report-reasons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--soft-row-bg);
}

.pdd-report-reasons label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.pdd-report-reasons label:has(input:checked) {
  border-color: rgba(15, 118, 110, 0.3);
  background: rgba(240, 253, 250, 0.84);
  color: var(--teal);
}

.pdd-report-reasons label:hover {
  transform: translateY(-1px);
  border-color: rgba(137, 177, 255, 0.36);
}

.pdd-report-reasons input,
.pdd-report-confirm input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
}

.pdd-report-confirm {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(239, 68, 68, 0.16);
  border-radius: 18px;
  background: rgba(254, 242, 242, 0.64);
}

.pdd-report-actions {
  position: sticky;
  bottom: -18px;
  display: grid;
  grid-template-columns: 0.9fr 1.2fr;
  gap: 12px;
  margin: 4px -18px -18px;
  padding: 12px 18px 18px;
  background: linear-gradient(180deg, transparent, var(--surface) 22%, var(--surface));
  border-radius: 0 0 24px 24px;
}

.pdd-report-cancel,
.pdd-report-submit {
  min-height: 44px;
  border: 0;
  border-radius: 16px;
  cursor: pointer;
  font-weight: 900;
}

.pdd-report-cancel {
  background: rgba(244, 246, 250, 0.92);
  color: var(--ink-faint);
}

.pdd-report-submit {
  background: linear-gradient(135deg, #34d37e, #22c760 54%, #17a84d);
  color: #fff;
  box-shadow: 0 16px 30px rgba(34, 199, 96, 0.24);
}

.pdd-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--soft-card-bg);
  color: var(--ink);
  font-size: 1.3rem;
  cursor: pointer;
}

.has-pdd-modal {
  overflow: hidden;
}

.has-pdd-modal .site-header,
.has-pdd-modal .site-footer {
  visibility: hidden;
}

.pdd-smart-lock-actions.is-single {
  grid-template-columns: 1fr;
}

@media (max-width: 520px) {
  .pdd-shell {
    width: 100%;
  }

  .pdd-card {
    border-radius: 22px;
  }

  .pdd-smart-lock-panel {
    padding: 28px 18px 18px;
    border-radius: 28px;
  }

  .pdd-appeal-summary {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border-radius: 20px;
  }

  .pdd-appeal-summary strong {
    font-size: 0.96rem;
  }

  .pdd-smart-lock-kicker {
    font-size: 1.72rem;
  }

  .pdd-smart-lock-panel h2,
  .pdd-smart-lock-intro,
  .pdd-smart-lock-author {
    font-size: 0.94rem;
  }

  .pdd-smart-lock-code {
    padding: 22px 14px;
    border-radius: 20px;
    font-size: clamp(1.8rem, 9vw, 2.8rem);
  }

  .pdd-smart-lock-primary,
  .pdd-smart-lock-secondary {
    min-height: 68px;
    border-radius: 20px;
    font-size: 0.96rem;
  }

  .kl-smart-lock-panel {
    padding: 26px 16px 16px;
    text-align: left;
  }

  .kl-smart-lock-panel .pdd-smart-lock-kicker {
    min-height: 30px;
    padding-inline: 12px;
    font-size: 0.82rem;
  }

  .kl-smart-lock-panel h2 {
    font-size: 1.18rem;
  }

  .kl-smart-lock-intro-row {
    align-items: flex-start;
    padding: 12px;
    border-radius: 18px;
  }

  .kl-smart-lock-code-wrap {
    padding: 14px;
    border-radius: 18px;
  }

  .kl-smart-lock-code {
    font-size: 1rem;
  }

  .kl-type-modal-panel {
    padding: 24px 16px 16px;
    border-radius: 24px;
  }

  .kl-type-options {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .kl-type-options button {
    min-height: 50px;
    border-radius: 15px;
  }

  .kl-smart-lock-actions,
  .kl-smart-lock-footer-actions {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .kl-smart-lock-release,
  .kl-smart-lock-ack {
    min-height: 68px;
    border-radius: 20px;
    font-size: 0.96rem;
  }

  .pdd-hero-head {
    align-items: flex-start;
  }

  .pdd-hero-actions {
    flex: 0 0 auto;
  }

  .pdd-hero-head h1 {
    font-size: 1.62rem;
  }

  .pdd-section-head {
    align-items: center;
    flex-direction: column;
    text-align: center;
  }

  .pdd-section-head > div {
    width: 100%;
  }

  .pdd-title-stat-row,
  .pdd-stats-strip {
    justify-content: center;
  }

  .pdd-title-stat-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .pdd-stat-break {
    display: block;
    flex-basis: 100%;
    width: 0;
    height: 0;
  }

  .pdd-stats-strip {
    margin-top: 0;
  }

  .pdd-beijing-clock {
    width: 100%;
    text-align: center;
    white-space: normal;
  }

  .pdd-section-actions,
  .pdd-list-toolbar {
    width: 100%;
    justify-content: center;
  }

  .pdd-section-action-pair {
    width: auto;
    flex-direction: row;
    align-items: center;
  }

  .pdd-section-actions {
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
  }

  .pdd-chip-link {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 6px 8px;
    font-size: 0.7rem;
  }

  .pdd-code-item {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .pdd-code-text {
    font-size: 1.5rem;
  }

  .pdd-code-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }

  .pdd-code-actions form,
  .pdd-copy-btn,
  .pdd-use-btn {
    width: 100%;
  }

  .pdd-input-area {
    align-items: stretch;
    flex-direction: column;
  }

  .pdd-submit-btn,
  .pdd-get-code-btn {
    width: 100%;
  }
}

body.page-kl .tool-hero::before {
  background:
    radial-gradient(circle at 84% 16%, rgba(15, 118, 110, 0.16), transparent 26%),
    radial-gradient(circle at 16% 84%, rgba(204, 93, 49, 0.1), transparent 26%);
}

body.page-kl .kl-page {
  gap: 12px;
}

.kl-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1.44fr);
  align-items: start;
  width: min(1060px, 100%);
  margin: 0 auto;
  gap: 16px;
}

.kl-top-card,
.kl-used-card,
.kl-record-card,
.kl-shell > .site-flash {
  grid-column: 1 / -1;
}

.kl-submit-card {
  grid-column: 1;
}

.kl-list-card {
  grid-column: 2;
}

.kl-card {
  position: relative;
  overflow: hidden;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(236, 248, 255, 0.48));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 18px 42px rgba(64, 98, 161, 0.12);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.kl-card.kl-submit-card {
  overflow: visible;
  z-index: 3;
}

.kl-top-card {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 1.12fr);
  align-items: center;
  gap: 18px;
  padding: 18px;
}

html[data-theme="dark"] .kl-card {
  background:
    linear-gradient(145deg, rgba(16, 24, 38, 0.84), rgba(21, 31, 49, 0.62));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 42px rgba(2, 6, 23, 0.22);
}

.kl-card:hover {
  transform: translateY(-2px);
  border-color: rgba(24, 160, 182, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 22px 48px rgba(64, 98, 161, 0.15);
}

html[data-theme="dark"] .kl-card:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 24px 52px rgba(2, 6, 23, 0.28);
}

.kl-intro-head,
.kl-section-head,
.kl-entry-title-row,
.kl-entry-actions,
.kl-list-actions,
.kl-record-card,
.kl-used-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.kl-intro-head > *,
.kl-section-head > * {
  min-width: 0;
}

.kl-eyebrow {
  margin: 0 0 3px;
  color: var(--teal);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.kl-intro-head h1 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.42rem;
  line-height: 1.08;
}

.kl-title-line {
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  max-width: 100%;
  gap: 12px;
}

.kl-title-line > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.kl-title-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 18px;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.9), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(231, 245, 255, 0.64));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 14px 24px rgba(64, 98, 161, 0.12);
}

.kl-title-logo img {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  object-fit: cover;
}

.kl-title-logo.is-multi {
  width: auto;
  min-width: 80px;
  gap: 4px;
}

.kl-title-logo.is-multi img {
  width: 38px;
  height: 38px;
}

.kl-title-logo b {
  color: var(--ink-faint);
  font-family: var(--font-ui);
  font-size: 0.78rem;
}

.kl-flow-panel {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(20, 184, 166, 0.16);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(240, 253, 250, 0.86), rgba(239, 246, 255, 0.72));
}

.kl-top-card .kl-flow-panel {
  margin-top: 0;
}

html[data-theme="dark"] .kl-flow-panel {
  background:
    linear-gradient(135deg, rgba(20, 184, 166, 0.12), rgba(59, 130, 246, 0.1));
}

.kl-flow-line,
.kl-step-flow {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 900;
  line-height: 1.45;
}

.kl-flow-line > span,
.kl-flow-line > i {
  flex: 0 0 auto;
  white-space: nowrap;
}

.kl-flow-label,
.kl-step-flow a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.12);
  color: #0f766e;
}

.kl-flow-panel.is-badge-centered .kl-flow-label {
  text-align: center;
}

.kl-flow-panel.is-content-centered .kl-flow-line {
  justify-content: center;
  text-align: center;
}

.kl-flow-panel.is-content-centered p {
  text-align: center;
}

html[data-theme="dark"] .kl-flow-label,
html[data-theme="dark"] .kl-step-flow a {
  color: #7dd3fc;
}

.kl-flow-line i,
.kl-step-flow i {
  color: var(--ink-faint);
  font-style: normal;
}

.kl-flow-panel p,
.kl-section-head p,
.kl-record-card p,
.kl-entry-main p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.65;
}

.kl-flow-actions,
.kl-tabs {
  display: grid;
  gap: 8px;
}

.kl-flow-actions {
  grid-template-columns: 1fr 1fr;
}

.kl-coupon-btn,
.kl-tab,
.kl-primary-btn,
.kl-help-btn,
.kl-step-btn,
.kl-smart-btn,
.kl-copy-btn,
.kl-use-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 0;
  border-radius: 12px;
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.kl-coupon-btn:hover,
.kl-tab:hover,
.kl-primary-btn:hover,
.kl-help-btn:hover,
.kl-step-btn:hover,
.kl-smart-btn:hover,
.kl-copy-btn:hover,
.kl-use-btn:hover {
  transform: translateY(-1px);
}

.kl-coupon-btn.is-primary,
.kl-primary-btn,
.kl-use-btn,
.kl-copy-btn.is-copied {
  color: #fff;
  background: linear-gradient(135deg, #22c55e, #14b86f 56%, #0f9f78);
  box-shadow: 0 14px 24px rgba(20, 184, 111, 0.18);
}

.kl-coupon-btn.is-secondary,
.kl-step-btn,
.kl-help-btn,
.kl-copy-btn {
  border: 1px solid rgba(245, 158, 11, 0.26);
  color: #9a3412;
  background: linear-gradient(135deg, rgba(255, 251, 235, 0.96), rgba(254, 215, 170, 0.72));
}

html[data-theme="dark"] .kl-coupon-btn.is-secondary,
html[data-theme="dark"] .kl-step-btn,
html[data-theme="dark"] .kl-help-btn,
html[data-theme="dark"] .kl-copy-btn {
  color: #fed7aa;
  background: linear-gradient(135deg, rgba(146, 64, 14, 0.24), rgba(245, 158, 11, 0.14));
}

.kl-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 8px;
  width: 100%;
  overflow: visible;
  margin: 0 0 14px;
}

.kl-tab {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 6px;
  width: 100%;
  min-height: 58px;
  min-width: 0;
  overflow: visible;
  padding: 0 8px;
  border: 2px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(239, 246, 255, 0.5));
  color: var(--ink-soft);
  font-size: 1rem;
  white-space: normal;
  justify-content: stretch;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.64);
}

.kl-tab > span:last-child {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  font-size: clamp(0.62rem, 0.86vw, 0.82rem);
  line-height: 1.18;
  text-overflow: clip;
  word-break: keep-all;
  white-space: nowrap;
}

.kl-platform-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 11px;
  color: #fff;
  font-size: 0.66rem;
  font-weight: 900;
  line-height: 1;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    0 8px 16px rgba(15, 23, 42, 0.12);
}

.kl-platform-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.kl-platform-logo b {
  font-size: 0.66rem;
  font-weight: 900;
  line-height: 1;
}

.kl-tab.is-jdwm .kl-platform-logo {
  background:
    radial-gradient(circle at 32% 22%, rgba(255, 255, 255, 0.76), transparent 24%),
    linear-gradient(135deg, #ff4747, #e11d48);
}

.kl-tab.is-meituan .kl-platform-logo {
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.76), transparent 24%),
    linear-gradient(135deg, #ffd54a, #f59e0b);
  color: #7c2d12;
}

.kl-tab.is-general .kl-platform-logo {
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.72), transparent 24%),
    linear-gradient(135deg, #ff8a1f, #f97316);
}

.kl-tab.is-active {
  border-color: rgba(248, 113, 113, 0.62);
  color: #b91c1c;
  background:
    linear-gradient(135deg, rgba(255, 241, 242, 0.94), rgba(255, 247, 237, 0.82));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 14px 24px rgba(248, 113, 113, 0.12);
}

html[data-theme="dark"] .kl-tab.is-active {
  color: #fecaca;
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.34), rgba(124, 45, 18, 0.24));
}

.kl-platform-coupon-actions {
  display: grid;
  gap: 8px;
  margin: 0 auto 12px;
  grid-template-columns: var(--takeaway-coupon-columns, 1fr);
}

.kl-platform-coupon-actions.is-single {
  grid-template-columns: 1fr;
}

.kl-platform-coupon-actions.is-double {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.kl-platform-coupon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
  color: var(--takeaway-btn-text, #fff);
  font-size: 0.92rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--takeaway-btn-start, #22c55e), var(--takeaway-btn-start, #22c55e) 16%, var(--takeaway-btn-end, #14b86f));
  box-shadow: 0 14px 24px rgba(15, 23, 42, 0.14);
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.kl-platform-coupon-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
}

.kl-platform-coupon-btn-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.kl-platform-coupon-btn-icon b {
  color: inherit;
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1;
}

.kl-platform-coupon-btn:hover {
  transform: translateY(-1px);
  filter: saturate(1.04);
}

.kl-action-separator {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
}

.kl-action-separator-line {
  flex: 1 1 auto;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(191, 219, 254, 0), rgba(191, 219, 254, 0.96), rgba(191, 219, 254, 0));
}

.kl-action-separator-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 16px;
  border: 1px solid rgba(191, 219, 254, 0.92);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 10px 20px rgba(148, 163, 184, 0.1);
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
}

.kl-action-separator-badge b {
  color: #f97316;
  font-weight: 900;
}

.kl-action-separator-badge strong {
  color: #0f766e;
  font-weight: 900;
}

.kl-action-separator-badge i {
  color: #94a3b8;
  font-style: normal;
}

.kl-publish-form,
.kl-entry-list {
  display: grid;
  gap: 10px;
}

.kl-list-card .kl-entry-list[data-kl-pool] {
  max-height: min(64vh, 660px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 118, 110, 0.34) transparent;
}

.kl-list-card .kl-entry-list[data-kl-pool]::-webkit-scrollbar {
  width: 6px;
}

.kl-list-card .kl-entry-list[data-kl-pool]::-webkit-scrollbar-track {
  background: transparent;
}

.kl-list-card .kl-entry-list[data-kl-pool]::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.28);
}

.kl-entry-list.is-soft-refresh {
  animation: pddCardListRefresh 420ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.kl-entry-list.is-soft-refresh .kl-entry-card {
  animation: pddCardItemIn 460ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.kl-entry-list.is-soft-refresh .kl-entry-card:nth-child(2) {
  animation-delay: 35ms;
}

.kl-entry-list.is-soft-refresh .kl-entry-card:nth-child(3) {
  animation-delay: 70ms;
}

.kl-entry-list.is-soft-refresh .kl-entry-card:nth-child(n + 4) {
  animation-delay: 105ms;
}

.kl-publish-zone {
  display: grid;
  gap: 14px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
  box-shadow: none;
}

.kl-publish-action-buttons {
  display: grid;
  grid-template-columns: var(--kl-publish-action-columns, 1fr);
  gap: 8px;
  margin: 0 0 12px;
}

.kl-publish-action-buttons.is-single {
  grid-template-columns: 1fr;
}

.kl-publish-action-buttons.is-double {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.kl-publish-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(191, 219, 254, 0.92);
  border-radius: 14px;
  background: var(--kl-publish-action-bg, #eef2ff);
  color: var(--kl-publish-action-text, #1e3a8a);
  font-size: 0.82rem;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  line-height: 1.35;
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
  box-shadow: 0 10px 18px rgba(148, 163, 184, 0.12);
}

.kl-publish-action-btn:hover {
  transform: translateY(-1px);
  filter: saturate(1.04);
}

html[data-theme="dark"] .kl-publish-zone {
  background: transparent;
}

.kl-publish-guide {
  margin: 0;
  padding: 16px 20px;
  border: 1px solid rgba(74, 222, 128, 0.74);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(240, 253, 244, 0.98), rgba(236, 253, 245, 0.94));
  color: #166534;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.7;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

html[data-theme="dark"] .kl-publish-guide {
  border-color: rgba(34, 197, 94, 0.44);
  background: linear-gradient(135deg, rgba(20, 83, 45, 0.34), rgba(6, 95, 70, 0.28));
  color: #bbf7d0;
}

html[data-theme="dark"] .kl-action-separator-line {
  background: linear-gradient(90deg, rgba(71, 85, 105, 0), rgba(71, 85, 105, 0.92), rgba(71, 85, 105, 0));
}

html[data-theme="dark"] .kl-action-separator-badge {
  border-color: rgba(71, 85, 105, 0.9);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 20px rgba(2, 6, 23, 0.24);
  color: #cbd5e1;
}

html[data-theme="dark"] .kl-action-separator-badge b {
  color: #fdba74;
}

html[data-theme="dark"] .kl-action-separator-badge strong {
  color: #99f6e4;
}

.kl-publish-detect {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  min-height: 32px;
  margin: 0 0 -2px;
  color: #047857;
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.35;
}

.kl-publish-detect[hidden] {
  display: none !important;
}

.kl-publish-detect span {
  color: inherit;
}

.kl-publish-detect b {
  color: #0f766e;
}

.kl-publish-detect code {
  max-width: 100%;
  padding: 3px 8px;
  border-radius: 8px;
  background: rgba(226, 232, 240, 0.78);
  color: #172033;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.kl-publish-detect.is-miniapp {
  color: #059669;
}

.kl-publish-detect.is-code {
  color: #0f766e;
}

html[data-theme="dark"] .kl-publish-detect {
  color: #86efac;
}

html[data-theme="dark"] .kl-publish-detect b {
  color: #99f6e4;
}

html[data-theme="dark"] .kl-publish-detect code {
  background: rgba(51, 65, 85, 0.78);
  color: #f8fafc;
}

.kl-publish-form label {
  display: grid;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 900;
}

.kl-publish-form input,
.kl-publish-form select,
.kl-publish-form textarea {
  width: 100%;
  min-height: 42px;
  padding: 16px 18px;
  border: 2px solid rgba(191, 219, 254, 0.92);
  border-radius: 22px;
  background: var(--input-bg);
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.7;
  outline: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.kl-publish-form textarea {
  min-height: 108px;
  resize: vertical;
}

.kl-publish-form input:focus,
.kl-publish-form select:focus,
.kl-publish-form textarea:focus {
  border-color: rgba(96, 165, 250, 0.88);
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.12);
}

.kl-publish-form textarea::placeholder {
  color: #6b7280;
  font-weight: 800;
}

html[data-theme="dark"] .kl-publish-form textarea::placeholder {
  color: #94a3b8;
}

.kl-publish-form textarea.is-invalid {
  border-color: rgba(251, 146, 60, 0.92);
  box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.12);
}

.kl-publish-error {
  margin: -2px 0 0;
  color: #c2410c;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.4;
}

.kl-publish-meta,
.kl-publish-control {
  display: grid;
  gap: 10px;
}

.kl-publish-meta[hidden],
.kl-publish-custom-row[hidden] {
  display: none !important;
}

.kl-publish-control-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.kl-publish-control-label {
  color: #475569;
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.2;
}

.kl-info-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 2px solid rgba(45, 212, 191, 0.55);
  border-radius: 999px;
  color: #0f766e;
  font-size: 1rem;
  font-weight: 900;
  background: rgba(240, 253, 250, 0.9);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.kl-info-badge::-webkit-details-marker {
  display: none;
}

.kl-info-popover {
  position: relative;
}

.kl-info-popover[open] .kl-info-badge {
  border-color: rgba(20, 184, 166, 0.82);
  box-shadow: 0 10px 24px rgba(20, 184, 166, 0.14);
}

.kl-info-popover-card {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 8;
  width: min(320px, calc(100vw - 48px));
  padding: 14px 16px;
  border: 1px solid rgba(45, 212, 191, 0.28);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
  color: #475569;
}

.kl-info-popover-card::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 10px;
  width: 14px;
  height: 14px;
  border-top: 1px solid rgba(45, 212, 191, 0.28);
  border-left: 1px solid rgba(45, 212, 191, 0.28);
  background: rgba(255, 255, 255, 0.98);
  transform: rotate(45deg);
}

.kl-info-popover-card p {
  margin: 0;
  color: #475569;
  font-size: 0.84rem;
  line-height: 1.6;
}

.kl-info-popover-card p + p {
  margin-top: 8px;
}

@media (max-width: 760px) {
  .kl-publish-control-head {
    position: relative;
  }

  .kl-info-popover {
    position: static;
  }

  .kl-info-popover-card {
    left: 0;
    right: auto;
    width: min(300px, calc(100vw - 56px));
  }

  .kl-info-popover-card::before {
    left: 32px;
    right: auto;
  }
}

.kl-publish-meta .kl-pill-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.kl-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 2px solid rgba(191, 219, 254, 0.96);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.96);
  color: #475569;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.kl-pill-btn:hover {
  transform: translateY(-1px);
}

.kl-pill-btn.is-active {
  border-color: rgba(251, 113, 133, 0.88);
  color: #be123c;
  background: rgba(255, 241, 242, 0.96);
  box-shadow: 0 8px 16px rgba(251, 113, 133, 0.12);
}

.kl-pill-btn-usage.is-active {
  border-color: rgba(248, 113, 113, 0.88);
  color: #dc2626;
  background: rgba(254, 242, 242, 0.96);
  box-shadow: 0 8px 16px rgba(248, 113, 113, 0.12);
}

.kl-publish-custom-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.kl-publish-custom-input {
  width: min(180px, 100%);
  min-height: 48px;
  padding: 0 18px;
  border: 2px solid rgba(191, 219, 254, 0.96);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  color: #475569;
  font-size: 0.92rem;
  font-weight: 800;
  outline: 0;
}

.kl-publish-custom-input:focus {
  border-color: rgba(96, 165, 250, 0.88);
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.12);
}

.kl-publish-custom-input.is-invalid {
  border-color: rgba(251, 146, 60, 0.92);
  box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.12);
}

.kl-publish-helper {
  margin: 0;
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.65;
}

.kl-submit-card .kl-primary-btn {
  min-height: 46px;
  border-radius: 16px;
  font-size: 0.98rem;
  background: linear-gradient(135deg, #f58f8f, #ffb176);
  box-shadow: 0 12px 22px rgba(251, 146, 60, 0.18);
}

.kl-submit-card .kl-primary-btn:hover {
  box-shadow: 0 14px 24px rgba(251, 146, 60, 0.2);
}

html[data-theme="dark"] .kl-submit-card .kl-primary-btn {
  color: #fff7ed;
  background: linear-gradient(135deg, #f97373, #fb923c);
}

.kl-publish-closed-card {
  padding: 26px 22px;
  border: 1px solid rgba(251, 191, 36, 0.62);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 251, 235, 0.98), rgba(255, 247, 237, 0.96));
  text-align: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 18px 30px rgba(251, 146, 60, 0.08);
}

.kl-publish-closed-card h3 {
  margin: 0 0 12px;
  color: #c2410c;
  font-size: 1.24rem;
  font-weight: 900;
  line-height: 1.35;
}

.kl-publish-closed-card p {
  margin: 0;
  color: #7c2d12;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.85;
}

html[data-theme="dark"] .kl-publish-closed-card {
  border-color: rgba(251, 191, 36, 0.34);
  background: linear-gradient(180deg, rgba(120, 53, 15, 0.2), rgba(124, 45, 18, 0.16));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 30px rgba(2, 6, 23, 0.18);
}

html[data-theme="dark"] .kl-publish-closed-card h3 {
  color: #fdba74;
}

html[data-theme="dark"] .kl-publish-closed-card p {
  color: #fed7aa;
}

.kl-section-head {
  align-items: flex-start;
  margin-bottom: 10px;
}

.kl-section-head h2 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 900;
}

.kl-section-head h2 span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 26px;
  margin-left: 4px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
}

.kl-entry-usage-badge {
  background: rgba(251, 191, 36, 0.14) !important;
  color: #b45309 !important;
}

html[data-theme="dark"] .kl-publish-control-label {
  color: #e2e8f0;
}

html[data-theme="dark"] .kl-info-badge {
  border-color: rgba(45, 212, 191, 0.38);
  color: #99f6e4;
  background: rgba(15, 118, 110, 0.18);
}

html[data-theme="dark"] .kl-info-popover-card {
  border-color: rgba(45, 212, 191, 0.22);
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 18px 36px rgba(2, 8, 23, 0.42);
}

html[data-theme="dark"] .kl-info-popover-card::before {
  border-top-color: rgba(45, 212, 191, 0.22);
  border-left-color: rgba(45, 212, 191, 0.22);
  background: rgba(15, 23, 42, 0.96);
}

html[data-theme="dark"] .kl-info-popover-card p {
  color: #cbd5e1;
}

html[data-theme="dark"] .kl-pill-btn {
  border-color: rgba(71, 85, 105, 0.9);
  background: rgba(15, 23, 42, 0.9);
  color: #cbd5e1;
}

html[data-theme="dark"] .kl-pill-btn.is-active {
  border-color: rgba(251, 113, 133, 0.72);
  color: #fecdd3;
  background: rgba(136, 19, 55, 0.26);
}

html[data-theme="dark"] .kl-pill-btn-usage.is-active {
  border-color: rgba(248, 113, 113, 0.72);
  color: #fecaca;
  background: rgba(127, 29, 29, 0.24);
}

html[data-theme="dark"] .kl-publish-custom-input {
  border-color: rgba(71, 85, 105, 0.9);
  background: rgba(15, 23, 42, 0.92);
  color: #e2e8f0;
}

html[data-theme="dark"] .kl-publish-helper {
  color: #94a3b8;
}

html[data-theme="dark"] .kl-entry-usage-badge {
  background: rgba(217, 119, 6, 0.22) !important;
  color: #fde68a !important;
}

.kl-list-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.kl-list-actions form,
.kl-entry-actions form {
  margin: 0;
}

.kl-list-actions.is-refreshing .kl-refresh-btn {
  opacity: 0.72;
  cursor: wait;
}

.kl-step-btn,
.kl-smart-btn,
.kl-refresh-btn {
  min-height: 34px;
  padding: 0 11px;
  font-size: 0.74rem;
}

.kl-smart-btn {
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #18a0b6);
  box-shadow: 0 12px 22px rgba(37, 99, 235, 0.18);
}

.kl-refresh-btn {
  min-width: 94px;
}

.kl-smart-btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.kl-step-flow {
  margin-bottom: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft-row-bg);
}

.kl-entry-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--entry-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.kl-entry-title-row {
  gap: 8px;
}

.kl-entry-title-row strong {
  min-width: 0;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 900;
}

.kl-entry-title-row span {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.1);
  color: #1d4ed8;
  font-size: 0.68rem;
  font-weight: 900;
}

html[data-theme="dark"] .kl-entry-title-row span {
  color: #bfdbfe;
  background: rgba(59, 130, 246, 0.16);
}

.kl-entry-kind-badge.is-code {
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.12);
}

.kl-entry-kind-badge.is-miniapp {
  color: #047857;
  background: rgba(16, 185, 129, 0.14);
}

html[data-theme="dark"] .kl-entry-kind-badge.is-code {
  color: #ddd6fe;
  background: rgba(109, 40, 217, 0.28);
}

html[data-theme="dark"] .kl-entry-kind-badge.is-miniapp {
  color: #a7f3d0;
  background: rgba(4, 120, 87, 0.3);
}

.kl-entry-actions {
  justify-content: flex-end;
}

.kl-copy-btn,
.kl-use-btn {
  min-width: 72px;
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.78rem;
}

.kl-entry-card.is-used {
  grid-template-columns: minmax(0, 1fr) auto;
}

.kl-entry-used-meta {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 96px;
}

.kl-entry-used-meta small {
  color: var(--ink-faint);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.6;
  text-align: right;
}

.kl-empty-tip {
  margin: 0;
  padding: 20px 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  background: var(--soft-row-bg);
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.7;
  text-align: center;
}

.kl-record-card {
  justify-content: center;
  flex-wrap: wrap;
}

.kl-used-stats {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.kl-used-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--soft-row-bg);
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 900;
}

.kl-used-stat b {
  color: var(--ink);
  font-size: 0.94rem;
  font-variant-numeric: tabular-nums;
}

.kl-used-stat.is-code {
  border-color: rgba(139, 92, 246, 0.22);
  background: rgba(139, 92, 246, 0.1);
  color: #6d28d9;
}

.kl-used-stat.is-miniapp {
  border-color: rgba(16, 185, 129, 0.24);
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
}

html[data-theme="dark"] .kl-used-stat.is-code {
  color: #ddd6fe;
  background: rgba(109, 40, 217, 0.24);
}

html[data-theme="dark"] .kl-used-stat.is-miniapp {
  color: #a7f3d0;
  background: rgba(4, 120, 87, 0.24);
}

.kl-used-list {
  display: grid;
  gap: 10px;
}

.kl-used-list.is-double {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.kl-used-list.is-single {
  grid-template-columns: 1fr;
}

.kl-used-list .kl-empty-tip {
  grid-column: 1 / -1;
}

.kl-used-empty-tip {
  padding-block: 16px;
}

.kl-record-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft-row-bg);
  color: var(--ink-soft);
  font-weight: 900;
}

.kl-record-stat b {
  color: var(--teal);
  font-size: 1.08rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.kl-record-stat span {
  font-size: 0.74rem;
}

.kl-record-card p {
  flex: 1 1 100%;
  text-align: center;
}

@media (max-width: 760px) {
  body.page-kl .kl-page {
    width: min(440px, 100%);
  }

  .kl-shell {
    grid-template-columns: 1fr;
    width: min(440px, 100%);
    gap: 12px;
  }

  .kl-top-card,
  .kl-submit-card,
  .kl-list-card,
  .kl-record-card,
  .kl-shell > .site-flash {
    grid-column: 1;
  }

  .kl-top-card {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }

  .kl-top-card .kl-flow-panel {
    margin-top: 0;
  }

  .kl-flow-panel {
    padding: 10px 8px;
  }

  .kl-flow-line {
    justify-content: center;
    gap: clamp(3px, 1.1vw, 6px);
    font-size: clamp(0.58rem, 2.65vw, 0.78rem);
  }

  .kl-flow-label {
    min-height: 24px;
    padding: 0 7px;
  }

  .kl-entry-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .kl-list-card .kl-entry-list[data-kl-pool] {
    max-height: min(62vh, 520px);
  }

  .kl-used-list.is-double,
  .kl-used-list.is-single {
    grid-template-columns: 1fr;
  }

  .kl-entry-used-meta {
    justify-content: flex-start;
    min-width: 0;
  }

  .kl-entry-used-meta small {
    text-align: left;
  }

  .kl-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    overflow: visible;
  }

  .kl-tab {
    grid-template-columns: 1fr;
    width: 100%;
    min-height: 76px;
    gap: 5px;
    padding: 8px 5px;
    border-radius: 14px;
    justify-content: stretch;
  }

  .kl-tab > span:last-child {
    justify-self: center;
    font-size: clamp(0.58rem, 2.6vw, 0.76rem);
  }

  .kl-platform-logo {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    font-size: 0.56rem;
    justify-self: center;
  }

  .kl-title-logo {
    width: 50px;
    height: 50px;
    border-radius: 16px;
  }

  .kl-title-line {
    gap: 10px;
  }

  .kl-publish-form textarea {
    min-height: 92px;
  }

  .kl-publish-zone {
    padding: 0;
    border-radius: 0;
  }

  .kl-platform-coupon-actions.is-double .kl-platform-coupon-btn {
    min-height: 44px;
    font-size: 0.86rem;
    padding-inline: 10px;
  }

  .kl-action-separator {
    gap: 8px;
  }

  .kl-action-separator-badge {
    min-height: 32px;
    padding: 0 12px;
    gap: 6px;
    font-size: 0.76rem;
  }

  .kl-publish-action-buttons {
    grid-template-columns: 1fr;
  }

  .tt-report-member-form {
    grid-template-columns: 1fr;
  }

  .tt-report-member-form .tt-ghost-btn {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .kl-lock-modal {
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: max(8px, env(safe-area-inset-top)) 8px max(10px, env(safe-area-inset-bottom));
  }

  .kl-lock-modal .kl-smart-lock-panel {
    width: min(430px, 100%);
    max-height: calc(100dvh - max(18px, env(safe-area-inset-top)) - max(18px, env(safe-area-inset-bottom)));
    padding: 16px 12px 12px;
    border-radius: 22px;
  }

  .kl-lock-modal .kl-smart-lock-panel::before {
    height: 4px;
  }

  .kl-lock-modal .pdd-modal-close {
    top: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
    font-size: 1.3rem;
  }

  .kl-lock-modal .kl-smart-lock-panel .pdd-smart-lock-kicker {
    min-height: 24px;
    margin-bottom: 6px !important;
    padding-inline: 9px;
    font-size: 0.72rem;
  }

  .kl-lock-modal .kl-smart-lock-panel h2 {
    margin: 0;
    padding-right: 38px;
    font-size: 1rem;
    line-height: 1.2;
  }

  .kl-lock-modal .kl-smart-lock-intro-row {
    align-items: center;
    gap: 8px;
    margin-top: 10px !important;
    padding: 9px 10px;
    border-radius: 14px;
  }

  .kl-lock-modal .kl-smart-lock-intro-row > span:first-child {
    font-size: 0.78rem;
    line-height: 1.45;
  }

  .kl-lock-modal .kl-smart-lock-intro-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
  }

  .kl-lock-modal .kl-smart-lock-wechat-tip {
    margin-top: 8px !important;
    padding: 8px 10px;
    border-radius: 12px;
    font-size: 0.76rem;
    line-height: 1.45;
  }

  .kl-lock-modal .kl-smart-lock-code-wrap {
    gap: 6px;
    margin-top: 10px;
    padding: 10px 11px;
    border-radius: 14px;
  }

  .kl-lock-modal .kl-smart-lock-code-wrap strong {
    font-size: 0.78rem;
  }

  .kl-lock-modal .kl-smart-lock-code {
    max-height: 6.8em;
    overflow-y: auto;
    font-size: 0.86rem;
    line-height: 1.45;
    -webkit-overflow-scrolling: touch;
  }

  .kl-lock-modal .kl-smart-lock-actions,
  .kl-lock-modal .kl-smart-lock-footer-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .kl-lock-modal .kl-smart-lock-actions {
    margin-top: 10px;
  }

  .kl-lock-modal .kl-smart-lock-footer-actions {
    margin-top: 8px;
  }

  .kl-lock-modal .kl-smart-lock-actions .pdd-smart-lock-primary,
  .kl-lock-modal .kl-smart-lock-actions .pdd-smart-lock-secondary,
  .kl-lock-modal .kl-smart-lock-release,
  .kl-lock-modal .kl-smart-lock-ack {
    min-height: 46px;
    border-radius: 14px;
    font-size: 0.82rem;
  }
}

@media (max-width: 420px) {
  body:not(.page-pdd) .home-nav-section .scene-grid.is-mobile-slider {
    grid-auto-columns: minmax(88%, 88%);
  }

  body:not(.page-pdd) .scene-card-head.has-multi-logo .scene-logo.is-multi {
    padding: 5px 7px;
    gap: 5px;
  }

  body:not(.page-pdd) .scene-card-head.has-multi-logo .scene-logo.is-multi.logo-count-2 img {
    width: clamp(32px, 8.8vw, 38px);
    height: clamp(32px, 8.8vw, 38px);
    border-radius: 12px;
  }

  body:not(.page-pdd) .scene-card-head.has-multi-logo .scene-logo.is-multi.logo-count-3 {
    padding: 4px 5px;
    gap: 3px;
  }

  body:not(.page-pdd) .scene-card-head.has-multi-logo .scene-logo.is-multi.logo-count-3 img {
    width: clamp(26px, 7.6vw, 32px);
    height: clamp(26px, 7.6vw, 32px);
    border-radius: 10px;
  }

  body:not(.page-pdd) .scene-card-head.has-multi-logo .scene-logo.is-multi.logo-count-3 b {
    font-size: 0.7rem;
  }

  body:not(.page-pdd) .scene-card .scene-tag {
    padding: 7px 10px;
    font-size: 0.74rem;
  }
}

body.page-clipboard .tool-hero::before,
body.page-square .tool-hero::before {
  background:
    radial-gradient(circle at 84% 16%, rgba(15, 118, 110, 0.18), transparent 26%),
    radial-gradient(circle at 18% 82%, rgba(17, 24, 39, 0.08), transparent 26%);
}

body.page-about .tool-hero::before {
  background:
    radial-gradient(circle at 82% 18%, rgba(17, 24, 39, 0.1), transparent 24%),
    radial-gradient(circle at 16% 84%, rgba(204, 93, 49, 0.1), transparent 24%);
}

.about-wechat-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(18px, 4vw, 42px);
  margin-top: 18px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 88% 18%, rgba(34, 197, 94, 0.15), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(240, 253, 244, 0.72));
  box-shadow: var(--shadow-md);
}

.about-wechat-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.about-wechat-card p:not(.eyebrow) {
  max-width: 46rem;
  margin: 0.75rem 0 0;
  color: var(--ink-soft);
  line-height: 1.8;
}

.about-wechat-card figure {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(34, 197, 94, 0.18);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
}

.about-wechat-card img {
  display: block;
  width: clamp(132px, 18vw, 188px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 18px;
}

.about-wechat-card figcaption {
  color: #15803d;
  font-size: 0.78rem;
  font-weight: 900;
}

html[data-theme="dark"] .about-wechat-card {
  background:
    radial-gradient(circle at 88% 18%, rgba(34, 197, 94, 0.14), transparent 28%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.86), rgba(20, 83, 45, 0.16));
}

html[data-theme="dark"] .about-wechat-card figure {
  border-color: rgba(134, 239, 172, 0.18);
  background: rgba(15, 23, 42, 0.72);
}

html[data-theme="dark"] .about-wechat-card figcaption {
  color: #86efac;
}

@media (max-width: 1080px) {
  .home-stats,
  .home-nav-grid,
  .hero,
  .tool-grid-two,
  .scene-grid,
  .highlight-grid,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 34px;
  }

  .hero-stage {
    min-height: 360px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .about-wechat-card {
    grid-template-columns: 1fr;
  }

  .about-wechat-card figure {
    justify-self: start;
  }

}

@media (max-width: 760px) {
  :root {
    --glass-blur: 10px;
    --glass-saturate: 118%;
    --shadow-xl: 0 22px 56px rgba(64, 98, 161, 0.12);
    --shadow-lg: 0 16px 40px rgba(64, 98, 161, 0.1);
    --shadow-md: 0 10px 24px rgba(64, 98, 161, 0.08);
  }

  body {
    background-attachment: scroll;
  }

  body::before,
  body::after,
  .page-shell::before,
  .page-shell::after {
    content: none;
    animation: none;
  }

  .removed-overlay-overlay {
    background-size: var(--removed-overlay-size-mobile, 300px 250px);
  }

  .page-shell {
    width: min(100% - 20px, 100%);
    padding-top: 0;
  }

  body:not(.page-pdd) .home-page,
  body:not(.page-pdd) .tool-page {
    width: min(440px, 100%);
    margin: 0 auto;
    gap: 14px;
  }

  body:not(.page-pdd) section {
    margin-top: 14px;
  }

  .site-header,
  .site-footer,
  .home-hero,
  .home-nav-card,
  .home-stat-card,
  .hero,
  .tool-hero,
  .tool-card,
  .scene-card,
  .content-card-item,
  .feature-link-card,
  .highlight-grid article {
    border-radius: 24px;
  }

  .site-header {
    position: static;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 8px;
    min-height: 74px;
    padding: 10px 14px;
    margin-bottom: 14px;
    background: var(--header-bg);
    box-shadow: var(--header-shadow);
    border-bottom: 1px solid var(--header-border);
    border-radius: 0;
  }

  .site-announcement {
    width: min(100% - 20px, 100%);
    margin: -4px auto 14px;
  }

  .site-announcement-inner {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    min-height: 48px;
    padding: 10px;
    border-radius: 20px;
  }

  .site-announcement-inner::before {
    left: 0;
    width: 22px;
  }

  .site-announcement-badge {
    justify-self: start;
  }

  .site-announcement-track {
    animation-duration: 28s;
  }

  .site-announcement-track span {
    font-size: 0.82rem;
  }

  .site-header,
  .site-announcement-inner,
  .home-hero,
  .home-legal,
  .home-nav-card,
  .home-stat-card,
  .hero,
  .tool-hero,
  .tool-card,
  .scene-card,
  .content-card-item,
  .feature-link-card,
  .highlight-grid article,
  .site-footer,
  .pdd-card,
  .pdd-list-toolbar,
  .pdd-share-toggle,
  .pdd-code-item,
  .pdd-modal-panel,
  .pdd-live-badge,
  .pdd-icon-btn,
  .pdd-tool-btn,
  .pdd-chip-link,
  .pdd-refresh-btn,
  .pdd-smart-btn,
  .pdd-copy-btn,
  .pdd-use-btn,
  .pdd-local-btn,
  .pdd-get-code-btn,
  .pdd-mini-code {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .reveal,
  .reveal.is-visible {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
  }

  .pdd-list.is-soft-refresh,
  .pdd-list.is-soft-refresh .pdd-code-item,
  .pdd-team-badge::before,
  .pdd-live-badge i {
    animation: none !important;
  }

  body.page-pdd .pdd-card,
  body.page-pdd .pdd-code-item,
  body.page-pdd .site-announcement,
  body.page-pdd .site-footer {
    content-visibility: auto;
    contain-intrinsic-size: 1px 260px;
  }

  body:not(.page-pdd) .home-hero,
  body:not(.page-pdd) .tool-hero,
  body:not(.page-pdd) .tool-card,
  body:not(.page-pdd) .home-nav-card,
  body:not(.page-pdd) .home-stat-card,
  body:not(.page-pdd) .content-card-item,
  body:not(.page-pdd) .feature-link-card,
  body:not(.page-pdd) .highlight-grid article,
  body:not(.page-pdd) .site-flash {
    width: 100%;
    border-radius: 24px;
  }

  body:not(.page-pdd) .home-hero,
  body:not(.page-pdd) .tool-hero {
    display: grid;
    gap: 14px;
    padding: 20px;
  }

  body:not(.page-pdd) .home-hero h1 {
    max-width: 100%;
    overflow: hidden;
    font-size: clamp(1.52rem, 6.9vw, 2.35rem);
    letter-spacing: -0.08em;
    line-height: 1.08;
    text-overflow: clip;
    white-space: nowrap;
  }

  body:not(.page-pdd) .tool-hero h1 {
    font-size: clamp(1.9rem, 9vw, 2.7rem);
    line-height: 1.08;
  }

  body:not(.page-pdd) .home-lead,
  body:not(.page-pdd) .tool-hero p {
    margin-top: 8px;
    font-size: 0.92rem;
    line-height: 1.75;
  }

  body:not(.page-pdd) .section-heading {
    display: grid;
    gap: 6px;
  }

  body:not(.page-pdd) .section-heading h2 {
    font-size: clamp(1.45rem, 7vw, 2rem);
    line-height: 1.18;
  }

  body:not(.page-pdd) .home-stats,
  body:not(.page-pdd) .home-nav-grid,
  body:not(.page-pdd) .tool-grid,
  body:not(.page-pdd) .tool-grid-two,
  body:not(.page-pdd) .compact-grid,
  body:not(.page-pdd) .card-grid,
  body:not(.page-pdd) .scene-grid,
  body:not(.page-pdd) .highlight-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  body:not(.page-pdd) .home-nav-grid,
  body:not(.page-pdd) .card-grid,
  body:not(.page-pdd) .scene-grid,
  body:not(.page-pdd) .highlight-grid {
    margin-top: 14px;
  }

  body:not(.page-pdd) .home-nav-section .scene-grid.is-mobile-slider {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(84%, 84%);
    grid-template-columns: none;
    gap: 12px;
    margin-top: 14px;
    padding: 2px 2px 8px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-behavior: smooth;
    scroll-padding-inline: 2px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  body:not(.page-pdd) .home-nav-section .scene-grid.is-mobile-slider::-webkit-scrollbar {
    display: none;
  }

  body:not(.page-pdd) .home-nav-section .scene-grid.is-mobile-slider {
    scrollbar-width: none;
  }

  body:not(.page-pdd) .home-nav-section .scene-grid.is-mobile-slider .scene-card {
    min-height: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  body:not(.page-pdd) .scene-card-head {
    min-height: 62px;
    gap: 8px;
  }

  body:not(.page-pdd) .scene-card-head.has-single-logo {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
  }

  body:not(.page-pdd) .scene-card-head.has-multi-logo {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  body:not(.page-pdd) .scene-logo,
  body:not(.page-pdd) .scene-logo.is-multi {
    min-width: 0;
    max-width: 100%;
  }

  body:not(.page-pdd) .scene-card-head.has-single-logo .scene-logo {
    grid-column: 1;
    justify-self: start;
    padding: 0;
  }

  body:not(.page-pdd) .scene-card-head.has-multi-logo .scene-logo.is-multi {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    flex: 0 0 auto;
    width: auto;
    max-width: none;
    margin-inline: 0;
    white-space: nowrap;
    padding: 6px 8px;
    gap: 6px;
  }

  body:not(.page-pdd) .scene-card-head.has-multi-logo .scene-logo.is-multi.logo-count-2 img {
    width: clamp(34px, 9.4vw, 42px);
    height: clamp(34px, 9.4vw, 42px);
    border-radius: 15px;
  }

  body:not(.page-pdd) .scene-card-head.has-multi-logo .scene-logo.is-multi.logo-count-3 {
    padding: 5px 6px;
    gap: 4px;
  }

  body:not(.page-pdd) .scene-card-head.has-multi-logo .scene-logo.is-multi.logo-count-3 img {
    width: clamp(30px, 8.2vw, 38px);
    height: clamp(30px, 8.2vw, 38px);
    border-radius: 13px;
  }

  body:not(.page-pdd) .scene-card-head.has-multi-logo .scene-logo.is-multi.logo-count-4,
  body:not(.page-pdd) .scene-card-head.has-multi-logo .scene-logo.is-multi.logo-count-5 {
    padding: 4px 6px;
    gap: 3px;
  }

  body:not(.page-pdd) .scene-card-head.has-multi-logo .scene-logo.is-multi.logo-count-4 img,
  body:not(.page-pdd) .scene-card-head.has-multi-logo .scene-logo.is-multi.logo-count-5 img {
    width: clamp(24px, 6.6vw, 31px);
    height: clamp(24px, 6.6vw, 31px);
    border-radius: 10px;
  }

  body:not(.page-pdd) .scene-card-head.has-multi-logo .scene-logo.is-multi b {
    font-size: 0.88rem;
  }

  body:not(.page-pdd) .scene-card-head.has-multi-logo .scene-logo.is-multi.logo-count-3 b {
    font-size: 0.78rem;
  }

  body:not(.page-pdd) .scene-card-head.has-multi-logo .scene-logo.is-multi.logo-count-4 b,
  body:not(.page-pdd) .scene-card-head.has-multi-logo .scene-logo.is-multi.logo-count-5 b {
    font-size: 0.68rem;
  }

  body:not(.page-pdd) .scene-card-head.has-single-logo .scene-tag {
    grid-column: 3;
    justify-self: end;
    margin-left: 0;
    position: relative;
    z-index: 2;
    align-self: center;
    transform: none;
  }

  body:not(.page-pdd) .scene-card-head.has-multi-logo .scene-tag {
    flex: 0 0 auto;
    margin-left: 0;
    position: static;
    align-self: center;
    transform: none;
  }

  body:not(.page-pdd) .tool-card,
  body:not(.page-pdd) .content-card-item,
  body:not(.page-pdd) .feature-link-card,
  body:not(.page-pdd) .highlight-grid article {
    padding: 18px;
  }

  body:not(.page-pdd) .tool-card h2 {
    font-size: 1.28rem;
  }

  body:not(.page-pdd) .tool-hero-actions,
  body:not(.page-pdd) .action-row,
  body:not(.page-pdd) .entry-actions,
  body:not(.page-pdd) .search-row {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 10px;
  }

  body:not(.page-pdd) .button,
  body:not(.page-pdd) .entry-actions .button,
  body:not(.page-pdd) .entry-actions form,
  body:not(.page-pdd) .tool-hero-actions form {
    width: 100%;
  }

  body:not(.page-pdd) .tab-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
    width: 100%;
    gap: 8px;
  }

  body:not(.page-pdd) .tab-pill {
    width: 100%;
    min-height: 44px;
  }

  body:not(.page-pdd) .section-inline-head,
  body:not(.page-pdd) .entry-card,
  body:not(.page-pdd) .content-card-top,
  body:not(.page-pdd) .content-card-foot,
  body:not(.page-pdd) .site-flash {
    align-items: stretch;
    flex-direction: column;
  }

  body:not(.page-pdd) .entry-card {
    gap: 12px;
    padding: 14px;
  }

  body:not(.page-pdd) .entry-card::before {
    width: 100%;
    height: 4px;
    align-self: auto;
  }

  body:not(.page-pdd) .mini-columns {
    grid-template-columns: 1fr;
  }

  body:not(.page-pdd) .stack-form {
    gap: 12px;
  }

  body:not(.page-pdd) .stack-form input,
  body:not(.page-pdd) .stack-form textarea,
  body:not(.page-pdd) .stack-form select,
  body:not(.page-pdd) .filter-input {
    border-radius: 18px;
    font-size: 1rem;
  }

  .brand {
    min-width: 0;
    gap: 9px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    background: linear-gradient(180deg, rgba(255, 223, 168, 0.98), rgba(255, 159, 87, 0.94) 60%, rgba(213, 95, 38, 0.96));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.55),
      0 10px 22px rgba(121, 143, 184, 0.14);
    font-size: 1rem;
  }

  .brand-logo {
    filter: saturate(1.12) contrast(1.08);
  }

  .brand-copy strong {
    color: var(--header-brand-strong);
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.1;
    text-shadow: none;
  }

  .brand-copy small {
    max-width: 46vw;
    overflow: hidden;
    margin-top: 0;
    color: var(--header-brand-soft);
    font-size: 0.64rem;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .site-header::before {
    display: none;
  }

  .site-header {
    background:
      linear-gradient(180deg, rgba(247, 251, 255, 0.96), rgba(236, 244, 255, 0.92));
    box-shadow: 0 12px 30px rgba(97, 126, 181, 0.12);
  }

  html[data-theme="dark"] .brand-copy strong {
    color: var(--header-brand-strong);
  }

  html[data-theme="dark"] .brand-copy small {
    color: var(--header-brand-soft);
  }

  html[data-theme="dark"] .brand-mark {
    border-color: rgba(255, 255, 255, 0.14);
    background: linear-gradient(180deg, rgba(255, 206, 132, 0.92), rgba(255, 145, 72, 0.88) 60%, rgba(196, 77, 24, 0.9));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.18),
      0 12px 24px rgba(2, 6, 23, 0.28);
  }

  html[data-theme="dark"] .site-header {
    background:
      linear-gradient(180deg, rgba(16, 24, 39, 0.94), rgba(19, 31, 49, 0.9));
  }

  .mobile-theme-toggle,
  .mobile-nav-toggle {
    position: relative;
    z-index: 2;
    display: inline-grid;
    place-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .nav-theme-toggle {
    display: none;
  }

  .site-nav {
    grid-column: 1 / -1;
    display: none;
    grid-template-columns: 1fr;
    width: 100%;
    max-height: calc(100dvh - 104px);
    overflow-y: auto;
    overflow-x: hidden;
    gap: 8px;
    margin-top: 8px;
    padding: 10px;
    border: 1px solid var(--header-border);
    border-radius: 22px;
    background: var(--surface-strong);
    box-shadow: var(--shadow-md);
  }

  .site-header.is-nav-open .site-nav {
    display: grid;
    animation: mobileMenuDrop 180ms ease both;
  }

  .nav-pill {
    justify-content: space-between;
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    border-radius: 16px;
  }

  .hero,
  .tool-hero,
  .site-footer,
  .scene-card,
  .highlight-grid article,
  .tool-card,
  .content-card-item,
  .feature-link-card {
    padding: 22px;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 12vw, 3.7rem);
  }

  .home-hero h1 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .tool-hero,
  .entry-card,
  .section-inline-head,
  .content-card-top,
  .content-card-foot,
  .site-footer,
  .site-flash {
    flex-direction: column;
  }

  .card-main {
    inset: 26px 18px auto auto;
    width: calc(100% - 36px);
  }

  .card-side {
    inset: auto auto 142px 18px;
    width: calc(100% - 72px);
  }

  .stage-panel {
    left: 18px;
    right: 18px;
    bottom: 18px;
    width: auto;
  }

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

  .button,
  .entry-actions .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::after {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@keyframes ambientDrift {
  0% {
    transform: translate3d(-1.5%, -1%, 0) scale(1);
  }

  50% {
    transform: translate3d(1.5%, 1%, 0) scale(1.04);
  }

  100% {
    transform: translate3d(-0.5%, 2%, 0) scale(1.02);
  }
}

@keyframes cardPulse {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0.65;
  }

  50% {
    transform: translateY(-8px) scale(1.04);
    opacity: 0.92;
  }

  100% {
    transform: translateY(0) scale(1);
    opacity: 0.65;
  }
}

@keyframes floatBlobA {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(-2vw, 2vh, 0) scale(1.08);
  }

  100% {
    transform: translate3d(1vw, -3vh, 0) scale(0.98);
  }
}

@keyframes floatBlobB {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(2vw, -2vh, 0) scale(1.06);
  }

  100% {
    transform: translate3d(-1vw, 3vh, 0) scale(0.96);
  }
}

@keyframes pddLivePulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 5px rgba(24, 160, 182, 0.12);
  }

  50% {
    transform: scale(1.28);
    box-shadow: 0 0 0 8px rgba(24, 160, 182, 0.04);
  }
}

@keyframes pddTeamBadgeSheen {
  0%,
  42% {
    transform: translateX(-78%);
    opacity: 0;
  }

  58% {
    opacity: 1;
  }

  100% {
    transform: translateX(78%);
    opacity: 0;
  }
}

@keyframes pddCardListRefresh {
  from {
    opacity: 0.35;
    transform: translate3d(0, 8px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes pddCardItemIn {
  from {
    opacity: 0;
    transform: translate3d(0, 10px, 0) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes siteAnnouncementScroll {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-33.333%, 0, 0);
  }
}

@keyframes pddModalFade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes pddModalRise {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pddSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes mobileMenuDrop {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.tt-page {
  display: grid;
  gap: 1.5rem;
}

body.page-taobao-team .site-announcement {
  margin-top: 0;
  margin-bottom: 0;
}

body.page-taobao-team .tt-page {
  gap: 1rem;
  width: min(1060px, 100%);
  margin-inline: auto;
  align-content: start;
  grid-auto-rows: max-content;
}

body.page-taobao-team .tt-page section,
body.page-taobao-team .tt-grid,
body.page-taobao-team .tt-bottom-grid,
body.page-taobao-team .tt-hero-card,
body.page-taobao-team .tt-workspace-card,
body.page-taobao-team .tt-used-card-wrap,
body.page-taobao-team .tt-stats-card {
  min-width: 0;
  min-height: 0;
  height: auto;
}

body.page-taobao-team .tt-grid,
body.page-taobao-team .tt-bottom-grid {
  align-items: start;
}

.tt-grid,
.tt-bottom-grid {
  display: grid;
  gap: 1.5rem;
}

.tt-grid {
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.18fr);
}

.tt-workspace-card {
  grid-column: 1 / -1;
}

.tt-bottom-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.tt-hero-card,
.tt-workspace-card,
.tt-form-card,
.tt-pool-card,
.tt-used-card-wrap,
.tt-stats-card,
.tt-inline-tip {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(236, 248, 255, 0.48));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 18px 42px rgba(64, 98, 161, 0.12);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

html[data-theme="dark"] .tt-hero-card,
html[data-theme="dark"] .tt-workspace-card,
html[data-theme="dark"] .tt-form-card,
html[data-theme="dark"] .tt-pool-card,
html[data-theme="dark"] .tt-used-card-wrap,
html[data-theme="dark"] .tt-stats-card,
html[data-theme="dark"] .tt-inline-tip {
  background: linear-gradient(145deg, rgba(16, 24, 38, 0.84), rgba(21, 31, 49, 0.62));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 42px rgba(2, 6, 23, 0.22);
}

.tt-hero-card:hover,
.tt-workspace-card:hover,
.tt-used-card-wrap:hover,
.tt-stats-card:hover,
.tt-inline-tip:hover {
  transform: translateY(-2px);
  border-color: rgba(24, 160, 182, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 22px 48px rgba(64, 98, 161, 0.15);
}

html[data-theme="dark"] .tt-hero-card:hover,
html[data-theme="dark"] .tt-workspace-card:hover,
html[data-theme="dark"] .tt-used-card-wrap:hover,
html[data-theme="dark"] .tt-stats-card:hover,
html[data-theme="dark"] .tt-inline-tip:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 24px 52px rgba(2, 6, 23, 0.28);
}

body.page-taobao-team .tool-card::after,
body.page-taobao-team .tt-hero-card::after,
body.page-taobao-team .tt-workspace-card::after,
body.page-taobao-team .tt-used-card-wrap::after,
body.page-taobao-team .tt-stats-card::after,
body.page-taobao-team .tt-inline-tip::after {
  display: none;
}

body.page-taobao-team .tool-card:hover,
body.page-taobao-team .tt-hero-card:hover,
body.page-taobao-team .tt-workspace-card:hover,
body.page-taobao-team .tt-used-card-wrap:hover,
body.page-taobao-team .tt-stats-card:hover,
body.page-taobao-team .tt-inline-tip:hover {
  transform: none;
  border-color: var(--line);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 18px 42px rgba(64, 98, 161, 0.12);
}

html[data-theme="dark"] body.page-taobao-team .tool-card:hover,
html[data-theme="dark"] body.page-taobao-team .tt-hero-card:hover,
html[data-theme="dark"] body.page-taobao-team .tt-workspace-card:hover,
html[data-theme="dark"] body.page-taobao-team .tt-used-card-wrap:hover,
html[data-theme="dark"] body.page-taobao-team .tt-stats-card:hover,
html[data-theme="dark"] body.page-taobao-team .tt-inline-tip:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 42px rgba(2, 6, 23, 0.22);
}

body.page-taobao-team .tt-hero-card::before,
body.page-taobao-team .tt-workspace-card::before,
body.page-taobao-team .tt-used-card-wrap::before,
body.page-taobao-team .tt-stats-card::before,
body.page-taobao-team .tt-inline-tip::before {
  display: none;
}

.tt-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 1.12fr);
  align-items: center;
  gap: 18px;
  padding: 18px;
  overflow: visible;
}

.tt-title-line {
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  max-width: 100%;
  gap: 12px;
}

.tt-title-line > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.tt-title-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 18px;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.9), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(231, 245, 255, 0.64));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 14px 24px rgba(64, 98, 161, 0.12);
}

.tt-title-logo img {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  object-fit: cover;
}

.tt-title-logo.is-multi {
  width: auto;
  min-width: 80px;
  gap: 4px;
}

.tt-title-logo.is-multi img {
  width: 38px;
  height: 38px;
}

.tt-title-logo b {
  color: var(--ink-faint);
  font-family: var(--font-ui);
  font-size: 0.78rem;
}

.tt-hero-copy h1 {
  margin: 0;
}

.tt-hero-copy strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 900;
}

.tt-hero-copy p {
  margin-top: 8px;
  max-width: 54ch;
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.65;
}

.tt-hero-side {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(20, 184, 166, 0.16);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(240, 253, 250, 0.86), rgba(239, 246, 255, 0.72));
}

.tt-hero-side p {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.tt-step-rail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 900;
  line-height: 1.45;
}

.tt-step-rail span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.12);
  color: #0f766e;
  font-weight: 900;
}

.tt-step-rail span.is-hot {
  background: rgba(254, 242, 242, 0.92);
  color: #b91c1c;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

html[data-theme="dark"] .tt-hero-side {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.12), rgba(59, 130, 246, 0.1));
}

html[data-theme="dark"] .tt-step-rail span {
  color: #7dd3fc;
}

html[data-theme="dark"] .tt-step-rail span.is-hot {
  color: #fecaca;
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.34), rgba(124, 45, 18, 0.24));
}

.tt-hero-cta,
.tt-submit-btn,
.tt-primary-btn,
.tt-toolbar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #22c55e, #14b86f 56%, #0f9f78);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1.15;
  box-shadow: 0 14px 24px rgba(20, 184, 111, 0.18);
}

.tt-hero-cta:hover,
.tt-submit-btn:hover,
.tt-primary-btn:hover,
.tt-toolbar-btn:hover {
  transform: translateY(-1px);
  color: #fff;
}

.tt-submit-btn:disabled {
  cursor: not-allowed;
  opacity: 0.68;
  transform: none;
}

.tt-inline-tip {
  padding: 16px 20px;
  border-color: rgba(74, 222, 128, 0.74);
  color: #166534;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.7;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

html[data-theme="dark"] .tt-inline-tip {
  border-color: rgba(34, 197, 94, 0.44);
  color: #bbf7d0;
}

.tt-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.tt-section-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 900;
}

.tt-section-head h2 span {
  color: var(--teal);
}

.tt-section-head p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.65;
}

.tt-help-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(249, 115, 22, 0.28);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 247, 237, 0.96), rgba(255, 237, 213, 0.72));
  color: #c2410c;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(249, 115, 22, 0.1);
}

.tt-help-btn:hover {
  transform: translateY(-1px);
}

html[data-theme="dark"] .tt-help-btn {
  border-color: rgba(251, 146, 60, 0.32);
  background: linear-gradient(135deg, rgba(124, 45, 18, 0.42), rgba(67, 20, 7, 0.32));
  color: #fed7aa;
}

.tt-live-dot {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 118, 45, 0.12);
  color: #b94812;
  font-weight: 800;
  white-space: nowrap;
  flex: 0 0 auto;
  min-width: max-content;
}

.tt-live-dot::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #ff6d3a;
  box-shadow: 0 0 0 0 rgba(255, 109, 58, 0.44);
  animation: pddLivePulse 1.8s infinite;
}

.tt-workspace-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.tt-publish-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.tt-publish-live-dot {
  display: none;
}

.tt-workspace-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  width: 100%;
  gap: 0.7rem;
  margin: 0;
}

.tt-workspace-tab {
  display: inline-grid;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  min-width: 0;
  padding: 0 8px;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(239, 246, 255, 0.5));
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
  white-space: normal;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.64);
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.tt-workspace-tab.is-active {
  border-color: rgba(248, 113, 113, 0.62);
  color: #b91c1c;
  background: linear-gradient(135deg, rgba(255, 241, 242, 0.94), rgba(255, 247, 237, 0.82));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 14px 24px rgba(248, 113, 113, 0.12);
}

html[data-theme="dark"] .tt-workspace-tab.is-active {
  color: #fecaca;
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.34), rgba(124, 45, 18, 0.24));
}

.tt-workspace-panel[hidden] {
  display: none;
}

.tt-publish-form,
.tt-form-grid {
  display: grid;
  gap: 1rem;
}

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

.tt-field-span {
  grid-column: 1 / -1;
}

.tt-publish-form label span {
  display: block;
  margin-bottom: 0.45rem;
  color: #7b3414;
  font-weight: 700;
}

.tt-input,
.tt-textarea {
  width: 100%;
  padding: 0.92rem 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.94);
  font: inherit;
  color: var(--ink);
}

.tt-input:focus,
.tt-textarea:focus {
  outline: none;
  border-color: rgba(249, 115, 22, 0.45);
  box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.14);
}

.tt-input.is-invalid,
.tt-textarea.is-invalid {
  border-color: rgba(220, 38, 38, 0.38);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.08);
}

.tt-detect-card,
.tt-example-card,
.tt-stats-card {
  padding: 1rem 1.05rem;
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 163, 87, 0.2);
}

.tt-detect-grid,
.tt-example-actions,
.tt-entry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.tt-detect-grid span {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 244, 234, 0.92);
  color: #9a3412;
}

.tt-form-tip {
  margin: 0;
  color: #8c624c;
}

.tt-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: center;
  gap: 0.7rem;
}

.tt-search-field {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.tt-search-field span {
  color: #7b3414;
  font-size: 0.72rem;
  font-weight: 900;
}

.tt-search-field input {
  width: 100%;
  min-height: 40px;
  padding: 0 0.85rem;
  border: 1px solid rgba(249, 115, 22, 0.24);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
}

.tt-search-field input:focus {
  outline: none;
  border-color: rgba(249, 115, 22, 0.52);
  box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.13);
}

html[data-theme="dark"] .tt-search-field span {
  color: #fed7aa;
}

html[data-theme="dark"] .tt-search-field input {
  border-color: rgba(251, 146, 60, 0.28);
  background: rgba(33, 25, 22, 0.88);
}

.tt-entry-list,
.tt-used-list {
  display: grid;
  gap: 10px;
}

.tt-entry-card,
.tt-used-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--entry-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

body.page-taobao-team .tt-entry-card {
  padding: 18px;
  border-color: rgba(20, 184, 166, 0.2);
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0%, rgba(204, 251, 241, 0.58), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(240, 253, 250, 0.62));
  box-shadow: 0 16px 34px rgba(15, 118, 110, 0.09);
}

body.page-taobao-team .tt-entry-card .tt-amount-chip {
  border: 1px solid rgba(20, 184, 166, 0.18);
  background: rgba(240, 253, 250, 0.9);
  color: #0f766e;
}

body.page-taobao-team .tt-entry-card .tt-amount-chip.is-hot {
  border-color: rgba(251, 113, 133, 0.2);
  background: linear-gradient(135deg, rgba(255, 241, 242, 0.96), rgba(255, 247, 237, 0.86));
  color: #e11d48;
}

body.page-taobao-team .tt-record-card.is-disbanded {
  border-color: rgba(220, 38, 38, 0.28);
  background:
    radial-gradient(circle at 100% 0%, rgba(254, 202, 202, 0.72), transparent 34%),
    linear-gradient(145deg, rgba(255, 241, 242, 0.97), rgba(254, 226, 226, 0.74));
  box-shadow: 0 16px 34px rgba(185, 28, 28, 0.11);
}

body.page-taobao-team .tt-record-card.is-disbanded .tt-amount-chip {
  border-color: rgba(220, 38, 38, 0.22);
  background: rgba(255, 255, 255, 0.7);
  color: #991b1b;
}

body.page-taobao-team .tt-record-card.is-disbanded .tt-entry-metrics,
body.page-taobao-team .tt-record-card.is-disbanded .tt-entry-text,
body.page-taobao-team .tt-record-card.is-disbanded small {
  color: #7f1d1d;
}

body.page-taobao-team .tt-record-card.is-disbanded .tt-progress {
  background: rgba(254, 202, 202, 0.62);
}

body.page-taobao-team .tt-record-card.is-disbanded .tt-progress span {
  background: linear-gradient(90deg, #ef4444, #fb7185);
}

.tt-hot-amounts {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding: 8px 10px;
  overflow: hidden;
  border: 1px solid rgba(20, 184, 166, 0.18);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(240, 253, 250, 0.9), rgba(255, 251, 235, 0.68));
  color: #0f766e;
}

.tt-hot-amounts strong {
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 900;
}

.tt-hot-amounts div {
  display: flex;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.tt-hot-amounts div::-webkit-scrollbar {
  display: none;
}

.tt-hot-amounts button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  min-height: 28px;
  padding: 3px 9px 3px 5px;
  border: 1px solid rgba(20, 184, 166, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #0f766e;
  cursor: pointer;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 900;
}

.tt-hot-amounts b {
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.14);
  color: #0f766e;
}

.tt-hot-amounts small {
  color: #64748b;
}

.tt-hot-amounts button.is-active {
  border-color: rgba(225, 29, 72, 0.24);
  background: linear-gradient(135deg, rgba(255, 241, 242, 0.96), rgba(255, 247, 237, 0.86));
  color: #be123c;
}

.tt-hot-amounts button.is-active b {
  background: rgba(225, 29, 72, 0.12);
  color: #be123c;
}

.tt-entry-top,
.tt-used-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.tt-entry-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tt-entry-metrics,
.tt-lock-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.tt-entry-metrics span,
.tt-lock-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.11);
  color: #166534;
  font-size: 0.74rem;
  font-weight: 900;
}

.tt-progress-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  margin-top: 0.7rem;
}

.tt-progress-row > b {
  color: #0f766e;
  font-size: 0.78rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.tt-progress {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
}

.tt-lock-progress {
  margin-top: 0.7rem;
}

.tt-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22c55e, #14b8a6 56%, #0ea5e9);
  box-shadow: 0 0 18px rgba(20, 184, 166, 0.28);
}

html[data-theme="dark"] .tt-entry-metrics span,
html[data-theme="dark"] .tt-lock-meta span {
  background: rgba(34, 197, 94, 0.16);
  color: #bbf7d0;
}

.tt-amount-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.1);
  color: #1d4ed8;
  font-size: 0.74rem;
  font-weight: 900;
}

.tt-amount-chip.is-hot {
  color: #6d28d9;
  background: rgba(124, 58, 237, 0.12);
}

.tt-entry-text,
.tt-used-card p {
  margin: 0.7rem 0 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.tt-ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(245, 158, 11, 0.26);
  background: linear-gradient(135deg, rgba(255, 251, 235, 0.96), rgba(254, 215, 170, 0.72));
  color: #9a3412;
  font-size: 0.78rem;
  font-weight: 900;
}

.tt-ghost-btn:hover {
  color: #9a3412;
  transform: translateY(-1px);
}

.tt-ghost-btn.is-danger {
  border-color: rgba(239, 68, 68, 0.24);
  background: linear-gradient(135deg, rgba(254, 242, 242, 0.96), rgba(254, 226, 226, 0.78));
  color: #b91c1c;
}

.tt-inline-action-form {
  display: inline-flex;
  margin: 0;
}

.tt-disbanded-tip,
.tt-member-empty {
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(239, 68, 68, 0.18);
  border-radius: 12px;
  background: rgba(254, 242, 242, 0.82);
  color: #991b1b;
  font-size: 0.82rem;
  font-weight: 800;
}

.tt-member-empty {
  border-color: rgba(251, 146, 60, 0.2);
  background: rgba(255, 247, 237, 0.72);
  color: #9a3412;
}

.tt-member-details {
  margin-top: 12px;
  border-top: 1px solid rgba(251, 146, 60, 0.2);
  padding-top: 10px;
}

.tt-member-details summary {
  cursor: pointer;
  color: #9a3412;
  font-size: 0.82rem;
  font-weight: 900;
}

.tt-member-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.tt-member-item {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(251, 146, 60, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.tt-member-item strong,
.tt-member-item span {
  display: block;
}

.tt-member-item span {
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.tt-report-member-form {
  display: grid;
  grid-template-columns: minmax(120px, 160px) minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.tt-report-member-form select,
.tt-report-member-form input[type="text"] {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(249, 115, 22, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font: inherit;
  font-size: 0.78rem;
}

.tt-report-ack {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #9a3412;
  font-size: 0.76rem;
  font-weight: 800;
}

.pdd-usage-video-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 247, 237, 0.95), rgba(254, 215, 170, 0.84));
  color: #9a3412;
  font-weight: 900;
}

.tt-share-panel {
  max-width: min(92vw, 520px);
  border-color: rgba(20, 184, 166, 0.22);
  background:
    radial-gradient(circle at 100% 0%, rgba(204, 251, 241, 0.74), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(240, 253, 250, 0.94));
}

.tt-share-panel h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1.28rem;
  font-weight: 900;
}

.tt-share-text {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(20, 184, 166, 0.2);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  color: #334155;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.65;
  overflow-wrap: anywhere;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.tt-share-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.tt-detail-panel {
  width: min(94vw, 760px);
  max-height: min(86vh, 760px);
  overflow-y: auto;
  border-color: rgba(20, 184, 166, 0.22);
  background:
    radial-gradient(circle at 100% 0%, rgba(204, 251, 241, 0.72), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(240, 253, 250, 0.94));
}

.tt-detail-panel h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1.18rem;
  font-weight: 900;
}

.tt-detail-code {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(20, 184, 166, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
}

.tt-detail-code strong {
  color: #0f766e;
  font-size: 0.82rem;
}

.tt-detail-code p {
  margin: 0;
  color: #334155;
  font-size: 0.84rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.tt-detail-inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin: 12px 0 0;
}

.tt-detail-inline-form label {
  display: grid;
  gap: 6px;
}

.tt-detail-inline-form label span {
  color: #0f766e;
  font-size: 0.76rem;
  font-weight: 900;
}

.tt-detail-actions {
  display: grid;
  gap: 10px;
}

.tt-member-item.is-muted {
  opacity: 0.68;
  background: rgba(248, 250, 252, 0.72);
}

html[data-theme="dark"] .tt-ghost-btn {
  color: #fed7aa;
  background: linear-gradient(135deg, rgba(146, 64, 14, 0.24), rgba(245, 158, 11, 0.14));
}

@media (min-width: 761px) {
  body.page-taobao-team .tt-entry-actions {
    justify-content: flex-end;
  }
}

.tt-stats-card {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.tt-stat-box {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft-row-bg);
  color: var(--ink-soft);
  font-weight: 900;
}

.tt-stat-box b {
  color: var(--teal);
  font-size: 1.08rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.tt-stat-box span {
  font-size: 0.74rem;
}

.tt-stats-card p {
  flex: 1 1 100%;
  margin: 0;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.65;
}

body.page-taobao-team .tt-workspace-panel[data-taobao-team-tab-panel="pool"] {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

body.page-taobao-team .tt-workspace-panel[data-taobao-team-tab-panel="pool"][hidden] {
  display: none;
}

body.page-taobao-team .tt-entry-list[data-taobao-team-pool],
body.page-taobao-team .tt-used-list {
  max-height: min(440px, calc(100dvh - 300px));
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding-right: 4px;
}

body.page-taobao-team .tt-used-card-wrap {
  display: flex;
  flex-direction: column;
  max-height: min(560px, calc(100dvh - 150px));
  min-height: 0;
}

body.page-taobao-team .tt-used-list {
  flex: 1 1 auto;
  min-height: 180px;
}

body.page-taobao-team .tt-entry-list[data-taobao-team-pool]::-webkit-scrollbar,
body.page-taobao-team .tt-used-list::-webkit-scrollbar {
  width: 10px;
}

body.page-taobao-team .tt-entry-list[data-taobao-team-pool]::-webkit-scrollbar-thumb,
body.page-taobao-team .tt-used-list::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.42);
  background-clip: padding-box;
}

body.page-taobao-team .tt-entry-list[data-taobao-team-pool]::-webkit-scrollbar-track,
body.page-taobao-team .tt-used-list::-webkit-scrollbar-track {
  background: transparent;
}

.tt-record-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.tt-record-tabs {
  display: none;
}

.tt-record-grid h3 {
  margin: 0 0 0.75rem;
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 900;
}

.tt-used-card-complete {
  border-color: rgba(34, 197, 94, 0.22);
  background:
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.1), transparent 36%),
    var(--entry-bg);
}

.tt-used-card-complete .tt-used-top span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.13);
  color: #166534;
  font-size: 0.74rem;
  font-weight: 900;
}

html[data-theme="dark"] .tt-used-card-complete .tt-used-top span {
  background: rgba(34, 197, 94, 0.18);
  color: #bbf7d0;
}

.tt-used-load-more {
  min-height: 44px;
  margin-top: 10px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  background: var(--soft-row-bg);
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
  user-select: none;
}

.tt-used-load-more[hidden] {
  display: none;
}

.tt-used-load-more:focus-visible {
  outline: 3px solid rgba(249, 115, 22, 0.24);
  outline-offset: 3px;
}

.tt-toolbar.is-refreshing {
  opacity: 0.72;
}

.tt-lock-panel {
  max-width: 38rem;
  border: 1px solid rgba(255, 156, 103, 0.28);
  background:
    radial-gradient(circle at top right, rgba(255, 218, 187, 0.9), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 244, 234, 0.96));
}

html[data-theme="dark"] .tt-lock-panel {
  border-color: rgba(251, 146, 60, 0.32);
  background:
    radial-gradient(circle at top right, rgba(154, 52, 18, 0.38), transparent 36%),
    linear-gradient(180deg, rgba(31, 25, 23, 0.98), rgba(17, 24, 39, 0.97));
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.44),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.tt-guide-panel {
  position: relative;
  width: min(720px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: auto;
  border: 1px solid rgba(255, 156, 103, 0.28);
  background:
    radial-gradient(circle at top right, rgba(255, 218, 187, 0.82), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 248, 242, 0.97));
}

.tt-guide-panel h2 {
  margin: 0;
  color: #472d21;
  font-size: 1.28rem;
}

.tt-guide-zoom-tip {
  display: inline-flex;
  align-items: center;
  margin: 0 0 0.15rem;
  padding: 0.32rem 0.62rem;
  border-radius: 999px;
  background: rgba(255, 237, 213, 0.88);
  color: #c2410c;
  font-size: 0.76rem;
  font-weight: 900;
}

.tt-guide-image {
  display: block;
  width: 100%;
  margin-top: 0.7rem;
  border: 1px solid rgba(124, 91, 77, 0.16);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(124, 91, 77, 0.12);
  cursor: zoom-in;
}

.tt-guide-image-stack {
  display: grid;
  gap: 14px;
}

.tt-guide-image-stack section {
  display: grid;
  gap: 8px;
}

.tt-guide-image-stack h3 {
  margin: 0.3rem 0 0;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 900;
}

.tt-guide-image-stack .tt-guide-image {
  margin-top: 0;
}

.tt-image-zoom {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 28px);
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(12px);
}

.tt-image-zoom img {
  display: block;
  max-width: min(100%, 980px);
  max-height: calc(100vh - 64px);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.32);
}

.tt-image-zoom button {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #111827;
  font-size: 1.55rem;
  line-height: 1;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.2);
}

html[data-theme="dark"] .tt-image-zoom button {
  background: rgba(30, 41, 59, 0.94);
  color: #f8fafc;
}

html[data-theme="dark"] .tt-guide-panel {
  background:
    radial-gradient(circle at top right, rgba(124, 45, 18, 0.48), transparent 34%),
    linear-gradient(180deg, rgba(33, 25, 22, 0.98), rgba(23, 18, 16, 0.96));
}

html[data-theme="dark"] .tt-guide-panel h2 {
  color: #fed7aa;
}

html[data-theme="dark"] .tt-guide-zoom-tip {
  background: rgba(154, 52, 18, 0.26);
  color: #fed7aa;
}

.tt-lock-kicker {
  margin: 0 0 0.45rem;
  color: #c2410c;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tt-lock-lead {
  margin: 0.7rem 0 1rem;
  color: #7c5b4d;
}

.tt-copy-status {
  margin: -0.25rem 0 0.85rem;
  padding: 0.62rem 0.78rem;
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 14px;
  background: rgba(240, 253, 244, 0.78);
  color: #166534;
  font-size: 0.8rem;
  font-weight: 900;
  line-height: 1.55;
}

.tt-copy-status.is-pending {
  border-color: rgba(245, 158, 11, 0.24);
  background: rgba(255, 251, 235, 0.82);
  color: #9a3412;
}

.tt-copy-status.is-error {
  border-color: rgba(239, 68, 68, 0.22);
  background: rgba(254, 242, 242, 0.82);
  color: #b91c1c;
}

.tt-lock-panel h2 {
  color: var(--ink);
}

html[data-theme="dark"] .tt-lock-kicker {
  color: #fdba74;
}

html[data-theme="dark"] .tt-lock-lead {
  color: #cbd5e1;
}

html[data-theme="dark"] .tt-copy-status {
  border-color: rgba(34, 197, 94, 0.24);
  background: rgba(20, 83, 45, 0.18);
  color: #bbf7d0;
}

html[data-theme="dark"] .tt-copy-status.is-pending {
  border-color: rgba(245, 158, 11, 0.26);
  background: rgba(146, 64, 14, 0.2);
  color: #fed7aa;
}

html[data-theme="dark"] .tt-copy-status.is-error {
  border-color: rgba(248, 113, 113, 0.26);
  background: rgba(127, 29, 29, 0.2);
  color: #fecaca;
}

.tt-lock-code-wrap {
  position: relative;
}

.tt-lock-code {
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.95);
  color: #472d21;
  line-height: 1.7;
  word-break: break-word;
}

.tt-copy-only-btn {
  position: absolute;
  right: 10px;
  bottom: 10px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 999px;
  background: rgba(255, 247, 237, 0.94);
  color: #c2410c;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(124, 91, 77, 0.12);
}

html[data-theme="dark"] .tt-copy-only-btn {
  border-color: rgba(251, 146, 60, 0.28);
  background: rgba(67, 38, 20, 0.92);
  color: #fed7aa;
}

html[data-theme="dark"] .tt-lock-code {
  background: rgba(15, 23, 42, 0.84);
  color: #fed7aa;
  border: 1px solid rgba(251, 146, 60, 0.18);
}

.tt-contribution-form {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 1rem;
  background: rgba(240, 253, 244, 0.72);
}

.tt-contribution-form[hidden] {
  display: none;
}

.tt-contribution-form label span {
  display: block;
  margin-bottom: 0.45rem;
  color: #166534;
  font-weight: 900;
}

html[data-theme="dark"] .tt-contribution-form {
  border-color: rgba(34, 197, 94, 0.24);
  background: rgba(20, 83, 45, 0.18);
}

html[data-theme="dark"] .tt-contribution-form label span {
  color: #bbf7d0;
}

.tt-direct-btn {
  flex: 1 1 220px;
  min-height: 46px;
}

.tt-lock-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.tt-empty-tip {
  margin: 0;
  padding: 20px 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  background: var(--soft-row-bg);
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.7;
  text-align: center;
}

@media (max-width: 1024px) {
  .tt-grid,
  .tt-bottom-grid,
  .tt-hero-card {
    grid-template-columns: 1fr;
  }

  .tt-title-logo {
    width: 52px;
    height: 52px;
    border-radius: 18px;
  }

  .tt-title-logo.is-multi {
    min-width: 76px;
  }

  .tt-title-logo.is-multi img {
    width: 34px;
    height: 34px;
  }
}

@media (max-width: 760px) {
  body.page-taobao-team {
    overflow-x: hidden;
  }

  body.page-taobao-team .page-shell {
    width: min(100% - 20px, 100%);
  }

  body.page-taobao-team .tt-page {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    gap: 12px;
    align-content: start;
  }

  body.page-taobao-team .tt-page section {
    margin-top: 0;
  }

  body.page-taobao-team .tt-grid,
  body.page-taobao-team .tt-bottom-grid,
  body.page-taobao-team .tt-hero-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  body.page-taobao-team .tt-hero-card,
  body.page-taobao-team .tt-workspace-card,
  body.page-taobao-team .tt-used-card-wrap,
  body.page-taobao-team .tt-stats-card {
    min-height: 0;
    height: auto;
  }

  body.page-taobao-team .tt-used-card-wrap {
    max-height: none;
  }

  body.page-taobao-team .tt-entry-list[data-taobao-team-pool],
  body.page-taobao-team .tt-used-list {
    max-height: clamp(220px, 42dvh, 360px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
    padding-right: 4px;
  }

  .tt-form-grid,
  .tt-entry-top,
  .tt-used-top,
  .tt-section-head,
  .tt-workspace-top,
  .tt-lock-actions {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .tt-workspace-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tt-entry-actions,
  .tt-example-actions,
  .tt-detect-grid {
    flex-direction: column;
  }

  .tt-toolbar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tt-search-field {
    width: 100%;
    grid-column: 1 / -1;
  }

  .tt-record-grid {
    grid-template-columns: 1fr;
  }

  .tt-record-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    margin-bottom: 0.85rem;
    padding: 0.35rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--soft-row-bg);
  }

  .tt-record-tabs button {
    min-height: 38px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--ink-soft);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 900;
  }

  .tt-record-tabs button.is-active {
    background: linear-gradient(135deg, #fff7ed, #fed7aa);
    color: #9a3412;
    box-shadow: 0 8px 18px rgba(249, 115, 22, 0.14);
  }

  html[data-theme="dark"] .tt-record-tabs button.is-active {
    background: linear-gradient(135deg, rgba(154, 52, 18, 0.42), rgba(245, 158, 11, 0.2));
    color: #fed7aa;
  }

  .tt-record-grid [data-taobao-record-panel][hidden] {
    display: none;
  }

  .tt-workspace-top > .tt-live-dot {
    display: none;
  }

  .tt-publish-live-dot {
    display: inline-flex;
    padding: 0.45rem 0.72rem;
    font-size: 0.78rem;
  }

  .tt-publish-title-row h2 {
    min-width: 0;
  }

  .tt-direct-btn {
    flex-basis: auto;
    min-height: 46px;
    padding: 0 16px;
  }

  .tt-hero-card,
  .tt-workspace-card,
  .tt-form-card,
  .tt-pool-card,
  .tt-used-card-wrap,
  .tt-stats-card {
    padding: 1.1rem;
  }
}


/* Local clone adjustments: orange theme, no night mode, wider shell */
:root,
html[data-theme="light"],
html[data-theme="dark"] {
  color-scheme: light !important;
  --bg-top: #fff8f1;
  --bg: #fff1e6;
  --bg-strong: #ffe2ca;
  --surface: rgba(255, 250, 244, 0.68);
  --surface-strong: rgba(255, 255, 255, 0.82);
  --surface-dark: rgba(255, 255, 255, 0.94);
  --surface-dark-soft: rgba(255, 248, 242, 0.88);
  --ink: #2d211b;
  --ink-soft: #705d51;
  --ink-faint: #9b8678;
  --line: rgba(236, 132, 63, 0.18);
  --line-strong: rgba(236, 132, 63, 0.28);
  --brand: #ff7a1a;
  --brand-deep: #c2410c;
  --brand-soft: rgba(255, 122, 26, 0.13);
  --teal: #0f766e;
  --teal-soft: rgba(15, 118, 110, 0.12);
  --gold: #ffb347;
  --card-edge: rgba(255, 255, 255, 0.58);
  --page-accent-a: rgba(255, 159, 87, 0.22);
  --page-accent-b: rgba(255, 214, 166, 0.2);
  --page-accent-c: rgba(255, 167, 112, 0.16);
  --grid-line: rgba(205, 113, 52, 0.035);
  --grid-line-soft: rgba(205, 113, 52, 0.026);
  --ambient-a: rgba(255, 159, 87, 0.14);
  --ambient-b: rgba(255, 202, 142, 0.13);
  --ambient-c: rgba(255, 162, 112, 0.12);
  --header-bg: linear-gradient(180deg, rgba(255, 250, 244, 0.76), rgba(255, 239, 223, 0.62));
  --header-border: rgba(236, 132, 63, 0.18);
  --header-shadow: 0 18px 45px rgba(159, 81, 35, 0.12);
  --header-brand-strong: #2d211b;
  --header-brand-soft: #7c6a5e;
  --header-pill-text: #593a2b;
  --header-pill-active-bg: linear-gradient(135deg, rgba(255,255,255,.72), rgba(255,224,194,.76));
  --header-pill-active-border: rgba(249, 115, 22, 0.36);
  --header-pill-active-text: #9a3412;
  --hero-bg: linear-gradient(145deg, rgba(255,255,255,.72), rgba(255,237,213,.52));
  --input-bg: rgba(255, 255, 255, 0.68);
  --entry-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 247, 237, 0.48));
  --shadow-xl: 0 40px 100px rgba(159, 81, 35, 0.16);
  --shadow-lg: 0 26px 62px rgba(159, 81, 35, 0.13);
  --shadow-md: 0 18px 38px rgba(159, 81, 35, 0.1);
}
.nav-theme-toggle,.mobile-theme-toggle,.theme-toggle-indicator,.mobile-theme-orb{display:none!important;}
.page-shell{width:min(1540px,calc(100% - 40px))!important;}
.site-announcement{width:min(100% - 32px,1480px)!important;}
.brand-mark{background:linear-gradient(180deg,#ffb36d,#ff7a1a 62%,#c2410c)!important;}
body.page-pdd .pdd-shell{width:min(1240px,calc(100vw - 24px))!important;}
@media (min-width:900px){body.page-pdd .pdd-shell{grid-template-columns:minmax(300px,.8fr) minmax(0,1.2fr)!important;gap:18px!important;align-items:start!important;} body.page-pdd .pdd-list-card{min-height:100%!important;} body.page-pdd .pdd-used-card .pdd-list{grid-template-columns:repeat(4,minmax(0,1fr))!important;}}
body.page-kl .kl-shell{width:min(1240px,100%)!important;}
body.page-taobao-team .tt-page{width:min(1240px,100%)!important;margin:0 auto!important;}

/* Final user requested overrides */
:root,
html,
body,
button,
input,
select,
textarea {
  --font-ui: "Microsoft YaHei", "微软雅黑", Arial, sans-serif !important;
  --font-display: "Microsoft YaHei", "微软雅黑", Arial, sans-serif !important;
  font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif !important;
}

body.page-pdd {
  --bg-top: #fff8f1 !important;
  --bg: #fff1e6 !important;
  --bg-strong: #ffe2ca !important;
  --surface: rgba(255, 250, 244, 0.72) !important;
  --surface-strong: rgba(255, 255, 255, 0.86) !important;
  --line: rgba(236, 132, 63, 0.2) !important;
  --line-strong: rgba(236, 132, 63, 0.32) !important;
  --card-edge: rgba(255, 255, 255, 0.62) !important;
  --page-accent-a: rgba(255, 159, 87, 0.22) !important;
  --page-accent-b: rgba(255, 214, 166, 0.2) !important;
  --page-accent-c: rgba(255, 167, 112, 0.16) !important;
  --grid-line: rgba(205, 113, 52, 0.035) !important;
  --grid-line-soft: rgba(205, 113, 52, 0.026) !important;
  --ambient-a: rgba(255, 159, 87, 0.14) !important;
  --ambient-b: rgba(255, 202, 142, 0.13) !important;
  --ambient-c: rgba(255, 162, 112, 0.12) !important;
  --entry-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 247, 237, 0.54)) !important;
  --shadow-xl: 0 40px 100px rgba(159, 81, 35, 0.16) !important;
  --shadow-lg: 0 26px 62px rgba(159, 81, 35, 0.13) !important;
  --shadow-md: 0 18px 38px rgba(159, 81, 35, 0.1) !important;
}

body.page-pdd {
  background:
    radial-gradient(circle at 0% 10%, rgba(255, 159, 87, 0.22), transparent 22%),
    radial-gradient(circle at 100% 8%, rgba(255, 214, 166, 0.24), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(255, 167, 112, 0.16), transparent 28%),
    linear-gradient(180deg, #fff8f1 0%, #fff1e6 52%, #ffe2ca 100%) !important;
  background-attachment: fixed !important;
}

body.page-pdd::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), transparent 34%),
    repeating-linear-gradient(90deg, rgba(205, 113, 52, 0.035) 0, rgba(205, 113, 52, 0.035) 1px, transparent 1px, transparent 94px),
    repeating-linear-gradient(0deg, rgba(205, 113, 52, 0.026) 0, rgba(205, 113, 52, 0.026) 1px, transparent 1px, transparent 94px) !important;
}

body.page-pdd::after {
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 159, 87, 0.14), transparent 22%),
    radial-gradient(circle at 80% 28%, rgba(255, 202, 142, 0.13), transparent 24%),
    radial-gradient(circle at 55% 78%, rgba(255, 162, 112, 0.12), transparent 20%) !important;
}

body.page-pdd .pdd-page::before {
  background: radial-gradient(circle, rgba(255, 183, 112, 0.24), transparent 66%) !important;
}

body.page-pdd .pdd-page::after {
  background: radial-gradient(circle, rgba(255, 122, 69, 0.18), transparent 68%) !important;
}

/* Admin console polish */
.page-admin {
  background:
    radial-gradient(circle at 0 0, rgba(255, 166, 91, 0.22), transparent 28%),
    radial-gradient(circle at 100% 12%, rgba(255, 214, 166, 0.18), transparent 30%),
    linear-gradient(180deg, #fff8f1, #fff1e6 58%, #ffe2ca) !important;
}

.admin-page-shell {
  width: min(1480px, calc(100% - 40px));
  margin: 0 auto;
  padding-bottom: 40px;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  margin: 0 calc(50% - 50vw) 26px;
  padding: 12px max(20px, calc((100vw - 1480px) / 2 + 20px));
  border-bottom: 1px solid rgba(236, 132, 63, 0.18);
  background: rgba(255, 250, 244, 0.78);
  box-shadow: 0 18px 42px rgba(159, 81, 35, 0.1);
  backdrop-filter: blur(22px) saturate(170%);
}

.admin-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.admin-brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffb36d, #ff7a1a 62%, #c2410c);
  color: #fff;
  font-weight: 1000;
  box-shadow: 0 14px 26px rgba(249, 115, 22, 0.22);
}

.admin-brand-mark img,
.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-brand strong,
.admin-brand small {
  display: block;
}

.admin-brand strong {
  color: #2d211b;
  font-size: 1rem;
}

.admin-brand small {
  color: #9b8678;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.admin-top-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-top-actions a,
.admin-sidebar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(236, 132, 63, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  color: #593a2b;
  font-weight: 900;
}

.admin-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.admin-sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 24px;
  background: rgba(255, 250, 244, 0.72);
  box-shadow: 0 20px 50px rgba(159, 81, 35, 0.1);
  backdrop-filter: blur(22px) saturate(170%);
}

.admin-sidebar a {
  justify-content: flex-start;
  border-radius: 14px;
  background: transparent;
}

.admin-sidebar a:hover {
  background: #fff7ed;
  color: #c2410c;
}

.admin-content-card,
.admin-panel {
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 28px;
  background: rgba(255, 250, 244, 0.74);
  box-shadow: 0 24px 60px rgba(159, 81, 35, 0.12);
  backdrop-filter: blur(24px) saturate(170%);
}

.admin-content-card {
  min-height: 560px;
  padding: 26px;
}

.admin-page-head {
  margin-bottom: 18px;
}

.admin-page-head p {
  margin: 0 0 6px;
  color: #c2410c;
  font-size: 0.76rem;
  font-weight: 1000;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-page-head h1 {
  margin: 0;
  color: #2d211b;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.admin-page-head span {
  display: block;
  margin-top: 8px;
  color: #705d51;
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.admin-stat-grid article {
  padding: 18px;
  border: 1px solid rgba(251, 146, 60, 0.18);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.56);
}

.admin-stat-grid span,
.admin-stat-grid small {
  display: block;
  color: #705d51;
  font-weight: 900;
}

.admin-stat-grid strong {
  display: block;
  margin: 10px 0;
  color: #c2410c;
  font-size: 2rem;
  line-height: 1;
}

.admin-panel {
  padding: 20px;
}

.admin-form-grid {
  display: grid;
  gap: 16px;
}

.admin-panel-title {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.admin-panel-title > span {
  width: 42px;
  height: 5px;
  margin-top: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff7a1a, #ffb36d);
}

.admin-panel-title h2 {
  margin: 0;
  color: #2d211b;
}

.admin-panel-title p {
  margin: 5px 0 0;
  color: #705d51;
}

.admin-field,
.admin-file-field {
  display: grid;
  gap: 8px;
  color: #7c2d12;
  font-weight: 900;
}

.admin-field textarea,
.admin-field input,
.admin-file-field input[type="file"] {
  width: 100%;
  border: 1px solid rgba(251, 146, 60, 0.22);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  color: #2d211b;
}

.admin-field textarea {
  min-height: 130px;
  padding: 14px;
  resize: vertical;
}

.admin-field input {
  min-height: 48px;
  padding: 0 14px;
}

.admin-dynamic-group {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(251, 146, 60, 0.18);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.42);
}

.admin-dynamic-group + .admin-dynamic-group {
  margin-top: 14px;
}

.admin-dynamic-head,
.admin-dynamic-row {
  display: grid;
  gap: 12px;
  align-items: end;
}

.admin-dynamic-head {
  grid-template-columns: minmax(0, 1fr) auto;
}

.admin-dynamic-row {
  grid-template-columns: minmax(160px, 0.85fr) minmax(220px, 1.35fr) auto;
  padding: 12px;
  border: 1px solid rgba(251, 146, 60, 0.14);
  border-radius: 16px;
  background: rgba(255, 250, 244, 0.72);
}

.admin-dynamic-row label {
  display: grid;
  gap: 7px;
  color: #7c2d12;
  font-weight: 700;
}

.admin-dynamic-row input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(251, 146, 60, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  color: #2d211b;
}

.admin-small-btn,
.admin-remove-btn {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}

.admin-small-btn {
  border: 1px solid rgba(251, 146, 60, 0.28);
  background: #fff7ed;
  color: #c2410c;
}

.admin-remove-btn {
  border: 1px solid rgba(244, 63, 94, 0.22);
  background: #fff1f2;
  color: #e11d48;
}

@media (max-width: 760px) {
  .admin-dynamic-head,
  .admin-dynamic-row {
    grid-template-columns: 1fr;
  }
}

.admin-file-field input[type="file"] {
  min-height: 48px;
  padding: 11px 12px;
}

.admin-file-field small {
  color: #9b8678;
}

.admin-upload-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.admin-preview-box {
  display: grid;
  place-items: center;
  width: 140px;
  height: 140px;
  overflow: hidden;
  border: 1px dashed rgba(251, 146, 60, 0.36);
  border-radius: 24px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 1.8rem;
  font-weight: 1000;
}

.admin-preview-box.is-qr {
  width: 180px;
  height: 180px;
}

.admin-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-save-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #ff8a78, #ffb06b);
  color: #fff;
  font-weight: 1000;
  box-shadow: 0 14px 28px rgba(249, 115, 22, 0.22);
  cursor: pointer;
}

.admin-alert {
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(34, 197, 94, 0.22);
  border-radius: 16px;
  background: rgba(240, 253, 244, 0.82);
  color: #166534;
  font-weight: 900;
}

.about-qr-image {
  display: block;
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(159, 81, 35, 0.12);
}

@media (max-width: 960px) {
  .admin-layout,
  .admin-stat-grid,
  .admin-upload-row {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    position: static;
  }
}

/* Launch polish */
.pdd-agreement {
  display: grid !important;
  grid-template-columns: 18px minmax(0, 1fr) !important;
  gap: 10px !important;
  align-items: start !important;
}

.pdd-agreement input {
  width: 16px !important;
  height: 16px !important;
  min-height: 16px !important;
  margin: 3px 0 0 !important;
  accent-color: #2563eb !important;
}

.pdd-agreement span {
  display: grid !important;
  gap: 4px !important;
  min-width: 0 !important;
}

.pdd-agreement strong,
.pdd-agreement small {
  display: block !important;
  line-height: 1.55 !important;
  overflow-wrap: anywhere !important;
}

.pdd-agreement strong {
  color: #1f2937 !important;
  font-size: 0.84rem !important;
}

.pdd-agreement small {
  color: #64748b !important;
  font-size: 0.78rem !important;
}

.site-announcement-track {
  animation: siteAnnouncementScroll 26s linear infinite !important;
  will-change: transform !important;
}

.site-announcement:hover .site-announcement-track {
  animation-play-state: paused !important;
}

.home-hero-with-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr) !important;
  gap: clamp(18px, 4vw, 42px) !important;
  align-items: center !important;
}

.home-hero-copy {
  position: relative;
  z-index: 1;
}

.home-contact-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 28px;
  background:
    radial-gradient(circle at 100% 0, rgba(187, 247, 208, 0.42), transparent 42%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(255, 247, 237, 0.42));
  box-shadow: 0 24px 58px rgba(159, 81, 35, 0.1);
  backdrop-filter: blur(20px) saturate(160%);
}

.home-contact-card span {
  width: max-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 0.76rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
}

.home-contact-card strong {
  color: #2d211b;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  line-height: 1.25;
}

.home-contact-card p {
  margin: 4px 0 0;
  color: #705d51;
  line-height: 1.75;
}

.home-join-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-width: 128px;
  min-height: 42px;
  margin-top: 4px;
  padding: 0 18px;
  border: 1px solid rgba(255, 136, 72, 0.34);
  border-radius: 999px;
  background: linear-gradient(135deg, #ff8a5c, #ffb46b);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(234, 104, 42, 0.2);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.home-join-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(234, 104, 42, 0.26);
}

@media (max-width: 900px) {
  .home-hero-with-card {
    grid-template-columns: 1fr !important;
  }
}
