/* ============================================================
   粉墨 PinkBox — 视觉系统
   Apple Pink · Pure Black
   ============================================================ */

:root {
  /* 底色 */
  --ink: #000000;
  --ink-1: #08080a;
  --ink-2: #0d0d10;
  --ink-3: #121216;

  /* 粉 */
  --pink: #ff2d55;
  --pink-soft: #ff5c8a;
  --pink-light: #ff9bbb;
  --pink-pale: #ffd6e2;
  --pink-deep: #b01035;

  /* 文字 */
  --txt: #f5f5f7;
  --txt-2: #a1a1a6;
  --txt-3: #6e6e73;
  --txt-4: #48484d;

  /* 线与面 */
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .155);
  --card: rgba(255, 255, 255, .043);
  --card-2: rgba(255, 255, 255, .07);
  --field: rgba(255, 255, 255, .05);

  --r-lg: 26px;
  --r-md: 18px;
  --r-sm: 12px;

  --shadow: 0 24px 60px -30px rgba(0, 0, 0, .9);
  --glow: 0 26px 70px -28px rgba(255, 45, 85, .55);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;

  --topbar-h: 68px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--ink);
}

body {
  font-family: var(--font);
  color: var(--txt);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  letter-spacing: -0.01em;
}

::selection { background: rgba(255, 45, 85, .38); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .14);
  border-radius: 99px;
  border: 2px solid #000;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 45, 85, .55); }

a { color: var(--pink-light); text-decoration: none; }
img { max-width: 100%; }

/* ============================ 背景光效 ============================ */

.bgfx {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .55;
  will-change: transform;
}
.b1 {
  width: 760px; height: 760px;
  top: -340px; left: -220px;
  background: radial-gradient(circle, rgba(255, 45, 85, .85), rgba(255, 45, 85, 0) 66%);
  animation: float1 26s ease-in-out infinite;
}
.b2 {
  width: 640px; height: 640px;
  top: 34%; right: -280px;
  background: radial-gradient(circle, rgba(255, 92, 138, .55), rgba(255, 92, 138, 0) 68%);
  animation: float2 32s ease-in-out infinite;
}
.b3 {
  width: 520px; height: 520px;
  bottom: -280px; left: 42%;
  background: radial-gradient(circle, rgba(176, 16, 53, .6), rgba(176, 16, 53, 0) 70%);
  animation: float1 38s ease-in-out infinite reverse;
}
@keyframes float1 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(60px, 50px, 0) scale(1.09); }
}
@keyframes float2 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-70px, -40px, 0) scale(1.13); }
}

.grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 72%);
}

/* ============================ 顶栏 ============================ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 clamp(16px, 3.4vw, 44px);
  background: rgba(0, 0, 0, .62);
  backdrop-filter: saturate(180%) blur(26px);
  -webkit-backdrop-filter: saturate(180%) blur(26px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: none;
  color: var(--txt);
}

.logo {
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(150deg, #ff5c8a, #ff2d55 55%, #b01035);
  color: #0a0004;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0;
  box-shadow: 0 8px 22px -8px rgba(255, 45, 85, .85), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.logo.sm { width: 24px; height: 24px; font-size: 13px; border-radius: 8px; }

.brand-txt {
  display: flex;
  baseline-source: contents;
  flex-direction: column;
  line-height: 1.05;
}
.brand-txt b { font-size: 16px; font-weight: 700; letter-spacing: .01em; }
.brand-txt i {
  font-style: normal;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--pink-light);
  opacity: .85;
}

.cats {
  display: flex;
  gap: 4px;
  align-items: center;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.cats::-webkit-scrollbar { display: none; }

.catbtn {
  flex: none;
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--txt-2);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 99px;
  cursor: pointer;
  transition: .22s ease;
  white-space: nowrap;
}
.catbtn:hover { color: var(--txt); background: rgba(255, 255, 255, .06); }
.catbtn.on {
  color: #12000a;
  background: linear-gradient(140deg, #ff8fb0, var(--pink));
  font-weight: 600;
  box-shadow: 0 8px 22px -12px rgba(255, 45, 85, .9);
}

.searchwrap {
  position: relative;
  display: flex;
  align-items: center;
  flex: none;
  width: clamp(150px, 21vw, 258px);
}
.searchwrap svg {
  position: absolute;
  left: 12px;
  width: 15px; height: 15px;
  fill: none;
  stroke: var(--txt-3);
  stroke-width: 2;
  stroke-linecap: round;
  pointer-events: none;
}
.searchwrap input {
  width: 100%;
  height: 36px;
  padding: 0 34px 0 34px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--field);
  color: var(--txt);
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: .22s ease;
  appearance: none;
}
.searchwrap input::-webkit-search-cancel-button { display: none; }
.searchwrap input::placeholder { color: var(--txt-3); }
.searchwrap input:focus {
  border-color: rgba(255, 45, 85, .62);
  background: rgba(255, 45, 85, .09);
  box-shadow: 0 0 0 4px rgba(255, 45, 85, .13);
}
.searchwrap kbd {
  position: absolute;
  right: 10px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--txt-3);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
  background: rgba(255, 255, 255, .04);
}

.iconbtn {
  display: none;
  width: 38px; height: 38px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--field);
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.iconbtn span {
  display: block;
  width: 15px; height: 1.6px;
  background: var(--txt);
  border-radius: 2px;
}

/* ============================ 主体 ============================ */

main {
  position: relative;
  z-index: 1;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3.4vw, 40px) 96px;
}

.view { animation: fadeUp .5s cubic-bezier(.2, .8, .25, 1) both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ============================ Hero ============================ */

.hero {
  padding: clamp(44px, 7vw, 84px) 0 clamp(28px, 4.2vw, 46px);
  text-align: center;
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--pink-light);
  border: 1px solid rgba(255, 45, 85, .34);
  background: rgba(255, 45, 85, .1);
  padding: 6px 15px 6px 12px;
  border-radius: 99px;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
}
.eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 3px rgba(255, 45, 85, .24);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 3px rgba(255, 45, 85, .24); }
  50% { opacity: .6; box-shadow: 0 0 0 7px rgba(255, 45, 85, 0); }
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(33px, 5.2vw, 62px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.035em;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--pink-pale) 0%, var(--pink-soft) 42%, var(--pink) 78%, #ff7ba3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 12px 34px rgba(255, 45, 85, .32));
}

.hero .sub {
  color: var(--txt-2);
  font-size: clamp(14px, 1.5vw, 16.5px);
  max-width: 640px;
  margin: 0 auto 22px;
  line-height: 1.75;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: center;
  margin-bottom: 28px;
}
.hero-pills span {
  font-size: 12.5px;
  color: var(--txt-2);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .035);
  padding: 7px 14px;
  border-radius: 99px;
  backdrop-filter: blur(8px);
}

.hero-stats {
  display: inline-flex;
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, .035);
  backdrop-filter: blur(12px);
  overflow: hidden;
}
.hero-stats > div {
  padding: 13px clamp(20px, 3.4vw, 38px);
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-left: 1px solid var(--line);
}
.hero-stats > div:first-child { border-left: 0; }
.hero-stats b {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #fff, var(--pink-pale));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-stats b i { font-style: normal; font-size: 14px; }
.hero-stats i {
  font-style: normal;
  font-size: 11.5px;
  color: var(--txt-3);
  letter-spacing: .06em;
}

/* ============================ 首页分区 ============================ */

.homesec {
  display: flex;
  flex-direction: column;
  gap: clamp(42px, 6vw, 72px);
  padding-top: 22px;
}

.sechead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.sechead .l {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.sechead h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.sechead .cnt {
  font-size: 11px;
  font-family: var(--mono);
  color: var(--pink-light);
  border: 1px solid rgba(255, 45, 85, .28);
  background: rgba(255, 45, 85, .09);
  padding: 1px 8px;
  border-radius: 99px;
}
.sechead p {
  margin: 0;
  font-size: 13px;
  color: var(--txt-3);
  text-align: right;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(216px, 1fr));
  gap: 14px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 19px 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--card);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: var(--txt);
  overflow: hidden;
  transition: transform .32s cubic-bezier(.2, .8, .25, 1), border-color .32s, background .32s, box-shadow .32s;
  isolation: isolate;
}
.card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(150deg, rgba(255, 45, 85, .3), transparent 42%, rgba(255, 155, 187, .13));
  opacity: 0;
  transition: opacity .32s;
  z-index: -1;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 45, 85, .42);
  background: var(--card-2);
  box-shadow: var(--glow);
}
.card:hover::after { opacity: 1; }
.card:active { transform: translateY(-1px) scale(.99); }

.card .cico {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  font-size: 19px;
  border-radius: 12px;
  background: linear-gradient(155deg, rgba(255, 45, 85, .2), rgba(255, 45, 85, .05));
  border: 1px solid rgba(255, 45, 85, .24);
  margin-bottom: 6px;
  transition: .32s;
}
.card:hover .cico {
  background: linear-gradient(155deg, rgba(255, 45, 85, .42), rgba(255, 45, 85, .12));
  border-color: rgba(255, 45, 85, .55);
  box-shadow: 0 10px 24px -14px rgba(255, 45, 85, .9);
}
.card b {
  font-size: 15px;
  font-weight: 620;
  letter-spacing: -0.01em;
}
.card span.cdesc {
  font-size: 12.5px;
  color: var(--txt-3);
  line-height: 1.5;
}
.card .arrow {
  position: absolute;
  right: 16px; bottom: 16px;
  font-size: 15px;
  color: var(--pink);
  opacity: 0;
  transform: translateX(-6px);
  transition: .32s;
}
.card:hover .arrow { opacity: 1; transform: none; }

.empty {
  text-align: center;
  padding: 90px 0;
  color: var(--txt-3);
}
.empty p { font-size: 17px; color: var(--txt-2); margin: 0 0 6px; }
.empty span { font-size: 13px; }

/* ============================ 工具页 ============================ */

.crumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 34px;
  font-size: 13px;
  color: var(--txt-3);
}
.crumb-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: var(--txt-2);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  padding: 4px 0;
  transition: color .2s;
}
.crumb-back svg {
  width: 15px; height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.crumb-back:hover { color: var(--pink); }
.crumb-sep { color: var(--txt-4); }
.crumb-cur { color: var(--pink-light); }

.toolhead {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 0 26px;
}
.tico {
  width: 58px; height: 58px;
  flex: none;
  display: grid;
  place-items: center;
  font-size: 26px;
  border-radius: 18px;
  background: linear-gradient(155deg, rgba(255, 45, 85, .3), rgba(255, 45, 85, .06));
  border: 1px solid rgba(255, 45, 85, .34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
}
.tinfo { flex: 1; min-width: 0; }
.tinfo h2 {
  margin: 0 0 4px;
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 680;
  letter-spacing: -0.03em;
}
.tinfo p {
  margin: 0;
  font-size: 13.5px;
  color: var(--txt-2);
  line-height: 1.6;
}
.tsafe {
  flex: none;
  font-size: 11.5px;
  color: var(--pink-light);
  border: 1px solid rgba(255, 45, 85, .3);
  background: rgba(255, 45, 85, .09);
  padding: 5px 12px;
  border-radius: 99px;
}

/* ============================ 面板 ============================ */

.panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .052), rgba(255, 255, 255, .018));
  border-radius: var(--r-lg);
  padding: clamp(20px, 3vw, 34px);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.panel::before {
  content: "";
  position: absolute;
  top: 0; left: 8%; right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 155, 187, .55), transparent);
}

.panel h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 620;
  letter-spacing: -0.02em;
}
.panel .hint {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--txt-3);
  line-height: 1.7;
}
.panel .hint b { color: var(--pink-light); font-weight: 600; }

.sep { height: 1px; background: var(--line); margin: 24px 0; }

/* 字段 */

.row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 14px;
  margin: 18px 0;
}
.row.two { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  color: var(--txt-3);
  letter-spacing: .02em;
  min-width: 0;
}
.field > .lab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.field > .lab em {
  font-style: normal;
  color: var(--pink-light);
  font-family: var(--mono);
  font-size: 11.5px;
}

input[type="text"], input[type="number"], input[type="search"], select, textarea {
  width: 100%;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--txt);
  background: rgba(0, 0, 0, .45);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  outline: none;
  transition: .2s;
  appearance: none;
}
textarea {
  resize: vertical;
  min-height: 104px;
  line-height: 1.65;
  font-size: 13px;
  font-family: var(--mono);
}
input:focus, select:focus, textarea:focus {
  border-color: rgba(255, 45, 85, .6);
  background: rgba(255, 45, 85, .06);
  box-shadow: 0 0 0 4px rgba(255, 45, 85, .11);
}
input::placeholder, textarea::placeholder { color: var(--txt-4); }

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236e6e73' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 13px;
  padding-right: 32px;
  cursor: pointer;
}
select option { background: #101013; color: var(--txt); }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 22px;
  background: transparent;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--pink) var(--pct, 50%), rgba(255, 255, 255, .13) var(--pct, 50%));
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px; height: 16px;
  margin-top: -6px;
  border-radius: 50%;
  background: #fff;
  border: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 45, 85, .5);
  transition: transform .15s;
}
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 0;
}

input[type="color"] {
  width: 100%;
  height: 38px;
  padding: 3px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, .45);
  cursor: pointer;
}
input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 8px; }

.check {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--txt-2);
  cursor: pointer;
  user-select: none;
  padding: 9px 13px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  transition: .2s;
}
.check:hover { border-color: var(--line-2); background: rgba(255, 255, 255, .055); }
.check input { display: none; }
.check i {
  width: 16px; height: 16px;
  border-radius: 5px;
  border: 1.5px solid var(--txt-4);
  display: grid;
  place-items: center;
  flex: none;
  transition: .2s;
}
.check input:checked + i {
  background: linear-gradient(140deg, var(--pink-soft), var(--pink));
  border-color: var(--pink);
}
.check input:checked + i::after {
  content: "";
  width: 8px; height: 4px;
  border-left: 2px solid #14000a;
  border-bottom: 2px solid #14000a;
  transform: rotate(-45deg) translateY(-1px);
}
.check.on { border-color: rgba(255, 45, 85, .45); background: rgba(255, 45, 85, .1); color: var(--txt); }

/* 按钮 */

.btn {
  appearance: none;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .06);
  color: var(--txt);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 550;
  padding: 11px 22px;
  border-radius: 99px;
  cursor: pointer;
  transition: .22s cubic-bezier(.2, .8, .25, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1.2;
  white-space: nowrap;
}
.btn:hover { background: rgba(255, 255, 255, .1); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.985); }
.btn:disabled { opacity: .38; cursor: not-allowed; transform: none !important; }

.btn.primary {
  border: 0;
  color: #170007;
  font-weight: 640;
  background: linear-gradient(140deg, #ff8fae, var(--pink) 52%, #e01849);
  box-shadow: 0 14px 34px -16px rgba(255, 45, 85, .95), inset 0 1px 0 rgba(255, 255, 255, .4);
}
.btn.primary:hover:not(:disabled) {
  box-shadow: 0 18px 44px -14px rgba(255, 45, 85, 1), inset 0 1px 0 rgba(255, 255, 255, .5);
  filter: brightness(1.05);
}
.btn.ghost { background: transparent; }
.btn.sm { padding: 8px 15px; font-size: 12.5px; }
.btn.wide { width: 100%; justify-content: center; margin-top: 6px; }

.btnrow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 20px;
}
.btnrow .spacer { flex: 1; }

/* 拖拽区 */

.dz {
  position: relative;
  border: 1.5px dashed rgba(255, 255, 255, .16);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .022);
  padding: 34px 22px;
  text-align: center;
  cursor: pointer;
  transition: .26s;
  margin-top: 8px;
}
.dz:hover {
  border-color: rgba(255, 45, 85, .45);
  background: rgba(255, 45, 85, .05);
}
.dz.over {
  border-color: var(--pink);
  background: rgba(255, 45, 85, .1);
  box-shadow: inset 0 0 0 1px rgba(255, 45, 85, .3), 0 0 60px -18px rgba(255, 45, 85, .7);
}
.dz.has {
  padding: 16px;
  border-style: solid;
  border-color: rgba(255, 45, 85, .28);
  background: rgba(255, 45, 85, .04);
  text-align: left;
}
.dz-ico {
  font-size: 26px;
  margin-bottom: 8px;
  filter: saturate(1.1);
}
.dz.has .dz-ico { display: none; }
.dz-t { font-size: 14px; color: var(--txt-2); }
.dz-hint { font-size: 12px; color: var(--txt-4); margin-top: 6px; }
.dz.has .dz-t, .dz.has .dz-hint { display: none; }

.dz-files {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dz-files li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
}
.dz-files .nm {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--txt);
}
.dz-files .sz { color: var(--txt-3); font-family: var(--mono); font-size: 11px; flex: none; }
.dz-files .x {
  flex: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, .09);
  color: var(--txt-2);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  transition: .18s;
}
.dz-files .x:hover { background: var(--pink); color: #14000a; }

/* 结果 */

.out { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.out:empty { display: none; }

.ritem {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255, 45, 85, .22);
  background: linear-gradient(120deg, rgba(255, 45, 85, .1), rgba(255, 45, 85, .03));
  animation: fadeUp .35s both;
}
.ritem .ric {
  width: 30px; height: 30px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 45, 85, .18);
  font-size: 14px;
}
.ritem .rmeta { flex: 1; min-width: 0; }
.ritem .rn {
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--txt);
}
.ritem .rs { font-size: 11px; color: var(--txt-3); font-family: var(--mono); }
.ritem .dl {
  flex: none;
  font-size: 12px;
  font-weight: 600;
  color: #170007;
  background: linear-gradient(140deg, #ff9bbb, var(--pink));
  border: 0;
  border-radius: 99px;
  padding: 7px 15px;
  cursor: pointer;
  transition: .2s;
}
.ritem .dl:hover { filter: brightness(1.08); transform: translateY(-1px); }

.err {
  border-color: rgba(255, 120, 120, .4) !important;
  background: rgba(255, 80, 80, .1) !important;
}

/* 进度 */

.prog {
  margin-top: 18px;
  height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .1);
  overflow: hidden;
}
.prog i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--pink-soft), var(--pink), var(--pink-pale));
  box-shadow: 0 0 14px rgba(255, 45, 85, .85);
  transition: width .3s ease;
}

.status {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--txt-2);
  display: flex;
  align-items: center;
  gap: 8px;
}
.status:empty { display: none; }
.status .spin {
  width: 13px; height: 13px;
  border-radius: 50%;
  border: 2px solid rgba(255, 45, 85, .25);
  border-top-color: var(--pink);
  animation: spin .8s linear infinite;
  flex: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 子标签 */

.tabs {
  display: inline-flex;
  gap: 3px;
  padding: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--txt-2);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 99px;
  cursor: pointer;
  transition: .22s;
}
.tab:hover { color: var(--txt); }
.tab.on {
  background: linear-gradient(140deg, #ff8fb0, var(--pink));
  color: #14000a;
  font-weight: 620;
  box-shadow: 0 8px 20px -12px rgba(255, 45, 85, .95);
}

.pane { display: none; }
.pane.on { display: block; animation: fadeUp .32s both; }

/* 画布区 */

.stage {
  margin-top: 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background:
    repeating-conic-gradient(rgba(255, 255, 255, .035) 0% 25%, transparent 0% 50%) 50% / 18px 18px,
    rgba(0, 0, 0, .35);
  padding: 14px;
  display: grid;
  place-items: center;
  min-height: 130px;
  overflow: auto;
}
.stage canvas, .stage svg { max-width: 100%; height: auto; border-radius: 8px; display: block; }
.stage .ph { color: var(--txt-4); font-size: 13px; padding: 28px 0; }
.stage.over {
  border-color: var(--pink);
  background:
    repeating-conic-gradient(rgba(255, 45, 85, .07) 0% 25%, transparent 0% 50%) 50% / 18px 18px,
    rgba(255, 45, 85, .08);
  box-shadow: inset 0 0 0 1px rgba(255, 45, 85, .32), 0 0 60px -20px rgba(255, 45, 85, .6);
}

.thumbgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
  margin-top: 18px;
}
.thumbgrid figure {
  margin: 0;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  transition: .24s;
}
.thumbgrid figure:hover { border-color: rgba(255, 45, 85, .5); transform: translateY(-2px); }
.thumbgrid img { display: block; width: 100%; height: auto; }
.thumbgrid figcaption {
  font-size: 11px;
  color: var(--txt-3);
  padding: 6px 8px;
  font-family: var(--mono);
  display: flex;
  justify-content: space-between;
  gap: 6px;
  border-top: 1px solid var(--line);
}
.thumbgrid figcaption a { color: var(--pink-light); }

/* 通用小道具 */

.kv {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 12.5px;
  color: var(--txt-3);
  margin-top: 14px;
}
.kv b { color: var(--txt); font-family: var(--mono); font-weight: 600; }

.tagline {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-size: 11.5px;
  color: var(--txt-3);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 4px 11px;
}

.mono { font-family: var(--mono); }

/* Toast */

.toasts {
  position: fixed;
  z-index: 200;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
}
.toast {
  padding: 11px 20px;
  border-radius: 99px;
  font-size: 13px;
  color: var(--txt);
  background: rgba(22, 22, 26, .92);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(20px);
  box-shadow: 0 18px 48px -20px rgba(0, 0, 0, 1);
  animation: toastIn .34s cubic-bezier(.2, .9, .3, 1) both;
  max-width: min(86vw, 460px);
  text-align: center;
}
.toast.ok { border-color: rgba(255, 45, 85, .5); box-shadow: 0 18px 48px -20px rgba(255, 45, 85, .7); }
.toast.bad { border-color: rgba(255, 96, 96, .55); color: #ffd9d9; }
.toast.out { animation: toastOut .3s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px) scale(.97); } }

/* 页脚 */

.foot {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 26px 0 34px;
  margin-top: 40px;
}
.foot-in {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3.4vw, 40px);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--txt-3);
}
.fbrand { display: inline-flex; align-items: center; gap: 8px; color: var(--txt-2); font-weight: 600; }
.fnote { flex: 1; }
.fver { font-family: var(--mono); color: var(--txt-4); }

/* ============================ 响应式 ============================ */

@media (max-width: 900px) {
  .cats { display: none; }
  .iconbtn { display: flex; }
  .searchwrap { flex: 1; width: auto; }
  .searchwrap kbd { display: none; }
  .tsafe { display: none; }
  .toolhead { gap: 13px; }
  .tico { width: 46px; height: 46px; font-size: 21px; border-radius: 14px; }

  .topbar.open .cats {
    display: flex;
    position: absolute;
    top: var(--topbar-h);
    left: 0; right: 0;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 16px 18px;
    background: rgba(8, 8, 10, .97);
    backdrop-filter: blur(22px);
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 560px) {
  .hero-stats > div { padding: 12px 18px; }
  .hero-stats b { font-size: 19px; }
  .cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card { padding: 15px 13px; }
  .card b { font-size: 13.5px; }
  .card span.cdesc { font-size: 11.5px; }
  .card .cico { width: 34px; height: 34px; font-size: 16px; }
  .brand-txt i { display: none; }
  .row { grid-template-columns: 1fr 1fr; }
  .row.two { grid-template-columns: 1fr; }
  .pc { display: none; }
  .sechead p { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; }
}
