/* 炫竞智学 AI — 视频创作产品页 */

:root {
  --bg: #06080d;
  --bg-2: #0a0e17;
  --panel: #0f1420;
  --panel-2: #141a28;
  --panel-hover: #182033;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);

  --text: #f0f2f6;
  --text-soft: #cfd4de;
  --muted: #8990a0;
  --muted-2: #5f6675;

  --accent: #ff9f2f;
  --accent-2: #ff5a3c;
  --accent-soft: rgba(255, 159, 47, 0.13);
  --brand-purple: #7139ed;
  --brand-blue: #168fe9;
  --brand-orange: #ff7a1a;

  --purple: #7c5cff;
  --purple-soft: rgba(124, 92, 255, 0.14);
  --blue: #4ea1ff;
  --blue-soft: rgba(78, 161, 255, 0.14);
  --green: #55d58a;
  --green-soft: rgba(85, 213, 138, 0.12);
  --red: #ff6d6d;

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --shadow-sm: 0 6px 20px rgba(0, 0, 0, 0.28);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 32px 90px rgba(0, 0, 0, 0.45);

  --page-max: 1360px;
  /* 容器本身已经通过 max-width + auto margin 居中，左右只保留固定安全边距。
     不能再次按视口宽度计算边距，否则 2K/4K 屏会把内容反向压成窄列。 */
  --page-pad: 28px;
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(255, 122, 26, 0.11), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(113, 57, 237, 0.14), transparent 60%),
    radial-gradient(700px 500px at 60% 90%, rgba(22, 143, 233, 0.09), transparent 60%),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }

main { display: block; }

/* ============ 通用按钮 ============ */
.btn-primary,
.btn-outline,
.btn-ghost {
  --btn-h: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--btn-h);
  padding: 0 18px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease,
    background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  color: #1a1305;
  background: linear-gradient(120deg, #ffdd82 0%, var(--accent) 55%, #ff9d3f 100%);
  box-shadow: 0 12px 30px rgba(255, 189, 56, 0.22);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 16px 40px rgba(255, 189, 56, 0.35); }
.btn-primary:active { transform: translateY(0); }
.btn-outline {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-strong);
}
.btn-outline:hover { border-color: rgba(255, 189, 56, 0.5); color: var(--accent); background: rgba(255, 189, 56, 0.06); }
.btn-ghost {
  color: var(--text-soft);
  background: transparent;
  border-color: transparent;
}
.btn-ghost:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }

.btn-lg { --btn-h: 48px; padding: 0 22px; font-size: 14.5px; border-radius: 13px; }
.btn-sm { --btn-h: 34px; padding: 0 14px; font-size: 12.5px; border-radius: 10px; }
.btn-block { width: 100%; }

/* ============ 通用段落 ============ */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.section-head.center {
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
}
.section-head h2 {
  margin: 8px 0 0;
  font-size: clamp(28px, 3.2vw, 40px);
  letter-spacing: -0.035em;
  line-height: 1.15;
}
.section-eyebrow {
  color: var(--accent);
  font: 800 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.section-sub {
  margin: 0;
  max-width: 640px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}
.section-tools {
  display: flex;
  align-items: center;
  gap: 16px;
}
.link-arrow {
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
}
.link-arrow span { display: inline-block; transition: transform 0.2s ease; }
.link-arrow:hover span { transform: translateX(4px); }

/* ============ 顶部导航 ============ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(6, 8, 13, 0.72);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.site-nav.scrolled {
  border-bottom-color: var(--line);
  background: rgba(6, 8, 13, 0.88);
}
.nav-inner {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--page-pad);
  height: 72px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  flex-shrink: 0;
}
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(113, 57, 237, 0.16), rgba(22, 143, 233, 0.08) 55%, rgba(255, 122, 26, 0.14));
  border: 1px solid rgba(122, 92, 255, 0.28);
  box-shadow: 0 8px 24px rgba(10, 37, 95, 0.24), inset 0 0 18px rgba(255, 255, 255, 0.04);
}
.brand-mark img {
  width: 43px;
  height: 43px;
  object-fit: contain;
  filter: drop-shadow(0 3px 7px rgba(41, 65, 180, 0.26));
}
.brand-text {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  font-size: 15px;
  white-space: nowrap;
}
.brand-text b { color: var(--text); letter-spacing: 0.04em; }
.brand-text em {
  font-style: normal;
  color: var(--brand-blue);
  font-size: 12px;
  letter-spacing: 0.16em;
  font-weight: 850;
  background: linear-gradient(105deg, var(--brand-orange), var(--brand-purple) 52%, #19adff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  margin-left: 12px;
}
.nav-menu a {
  position: relative;
  padding: 8px 12px;
  font-size: 13.5px;
  color: var(--text-soft);
  border-radius: 10px;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-menu a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.nav-menu a.active { color: var(--accent); }
.nav-menu a.active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}
.account-control {
  position: relative;
}
.account-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
}
.account-control.logged-in .account-button {
  padding: 3px 10px 3px 5px;
  border-color: rgba(255, 189, 56, 0.22);
}
.account-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  color: #171108;
  background: linear-gradient(135deg, #ffe08a, #ff9d38);
  font-size: 12px;
  font-weight: 800;
  background-position: center;
  background-size: cover;
}
.account-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  line-height: 1.1;
}
.account-name-row,
.account-menu-name {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.vip-badge {
  padding: 2px 5px;
  border: 1px solid rgba(255, 221, 130, .42);
  border-radius: 999px;
  color: #2a1b00;
  background: linear-gradient(120deg, #ffe79f, #ffbd38);
  font: 850 8px/1 ui-monospace, SFMono-Regular, monospace;
  letter-spacing: .04em;
  box-shadow: 0 4px 14px rgba(255, 189, 56, .2);
}
.account-control.is-vip .account-button {
  border-color: rgba(255, 189, 56, .5);
  background: rgba(255, 189, 56, .07);
}
#btnUpgrade.is-vip {
  color: #ffe5a0;
  border: 1px solid rgba(255, 189, 56, .32);
  background: rgba(255, 189, 56, .08);
  box-shadow: none;
}
.account-copy strong {
  max-width: 92px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12.5px;
  font-weight: 650;
}
.account-copy small {
  color: var(--muted);
  font-size: 9.5px;
}
.account-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 25;
  width: 210px;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: rgba(18, 20, 28, 0.98);
  box-shadow: var(--shadow-lg);
}
.account-menu-profile {
  padding: 8px 8px 11px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-bottom: 1px solid var(--line);
}
.account-menu-profile b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}
.account-menu-profile span {
  color: var(--muted);
  font-size: 11px;
}
.account-menu button,
.account-menu-link {
  width: 100%;
  margin-top: 7px;
  padding: 9px 8px;
  border: 0;
  border-radius: 9px;
  color: var(--text-soft);
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.account-menu-link {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-decoration: none;
}
.account-menu-link span {
  font-size: 12.5px;
  font-weight: 650;
}
.account-menu-link small {
  color: var(--muted);
  font-size: 10.5px;
}
.account-menu button:hover,
.account-menu-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}
.nav-search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px 0 12px;
  height: 38px;
  width: 260px;
  min-width: 180px;
  max-width: 300px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--muted);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.nav-search:focus-within {
  border-color: rgba(255, 189, 56, 0.4);
  background: rgba(255, 189, 56, 0.04);
}
.nav-search input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  font-size: 13px;
}
.nav-search kbd {
  padding: 3px 7px;
  border-radius: 6px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 10.5px;
  font-family: ui-monospace, monospace;
  background: rgba(255, 255, 255, 0.04);
}

/* ============ Hero ============ */
.hero {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 88px 24px 60px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 64px;
  align-items: center;
}
.hero-copy,
.hero-visual { min-width: 0; }
.hero-copy .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--accent);
  font: 800 11px/1 ui-monospace, monospace;
  letter-spacing: 0.14em;
  border: 1px solid rgba(255, 189, 56, 0.24);
  background: rgba(255, 189, 56, 0.06);
}
.hero-copy .eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero-copy h1 {
  margin: 22px 0 20px;
  font-size: clamp(46px, 6.4vw, 82px);
  line-height: 1.02;
  letter-spacing: -0.065em;
  font-weight: 900;
}
.hero-title-grad {
  background: linear-gradient(100deg, #fff2c9 0%, var(--accent) 45%, var(--accent-2) 80%, #ff9166 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  margin: 0;
  max-width: 560px;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.65;
}
.hero-sub b { color: var(--text); font-weight: 700; }

.hero-cta {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-stats {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  max-width: 620px;
  padding-top: 24px;
  border-top: 1px dashed var(--line);
}
.hero-stats > div { display: flex; flex-direction: column; gap: 5px; }
.hero-stats strong {
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--text);
  font-weight: 800;
}
.hero-stats span { color: var(--muted); font-size: 12px; }

/* ---- Hero 右侧浮动卡片 ---- */
.hero-visual {
  position: relative;
  min-height: 460px;
  perspective: 1400px;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.65;
  pointer-events: none;
}
.orb-a { width: 320px; height: 320px; background: rgba(255, 189, 56, 0.35); top: -20px; right: -40px; }
.orb-b { width: 260px; height: 260px; background: rgba(124, 92, 255, 0.35); bottom: 20px; left: 20px; }

.preview-card {
  position: absolute;
  width: 268px;
  padding: 14px;
  border-radius: 20px;
  background: linear-gradient(150deg, rgba(20, 26, 40, 0.95), rgba(12, 16, 26, 0.95));
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px);
  transition: transform 0.4s ease;
}
.preview-card:hover { transform: translate3d(0, -6px, 0) rotate(0deg) !important; }
.preview-card-1 {
  top: 12%;
  left: 6%;
  transform: rotate(-6deg) translateZ(30px);
  animation: floatA 6s ease-in-out infinite;
}
.preview-card-2 {
  top: 30%;
  right: 4%;
  transform: rotate(4deg) translateZ(60px);
  animation: floatB 7s ease-in-out infinite;
}
.preview-card-3 {
  bottom: 6%;
  left: 22%;
  transform: rotate(-2deg) translateZ(45px);
  animation: floatC 8s ease-in-out infinite;
}
@keyframes floatA {
  0%, 100% { transform: rotate(-6deg) translate3d(0, 0, 30px); }
  50% { transform: rotate(-6deg) translate3d(0, -14px, 30px); }
}
@keyframes floatB {
  0%, 100% { transform: rotate(4deg) translate3d(0, 0, 60px); }
  50% { transform: rotate(4deg) translate3d(0, -18px, 60px); }
}
@keyframes floatC {
  0%, 100% { transform: rotate(-2deg) translate3d(0, 0, 45px); }
  50% { transform: rotate(-2deg) translate3d(0, -10px, 45px); }
}

.preview-cover {
  position: relative;
  height: 140px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.preview-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(255,255,255,.16), transparent 70%);
}
.cover-video { background: linear-gradient(135deg, #ff713b, #ffbd38); }
.cover-article { background: linear-gradient(135deg, #4ea1ff, #7c5cff); }
.cover-avatar { background: linear-gradient(135deg, #55d58a, #4ea1ff); }
.cover-image { background: linear-gradient(135deg, #7c5cff, #4ea1ff); }
.preview-cover.preview-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cover-icon {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.94);
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.preview-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
  font: 800 10px/1 ui-monospace, monospace;
  letter-spacing: 0.12em;
  backdrop-filter: blur(4px);
}
.preview-badge.alt { background: rgba(255, 255, 255, 0.9); color: #201409; }
.preview-meta { padding: 12px 4px 4px; }
.preview-meta b { display: block; font-size: 14px; color: var(--text); }
.preview-meta small { display: block; margin-top: 4px; color: var(--muted); font-size: 11.5px; }

/* ============ 分类 Chips ============ */
.categories {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 76px 24px 8px;
}
.category-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.chip {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.chip:hover { border-color: rgba(255, 189, 56, 0.4); color: var(--accent); }
.chip.active {
  color: #1a1305;
  background: linear-gradient(120deg, #ffdd82, var(--accent));
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(255, 189, 56, 0.24);
}
.chip.disabled {
  color: var(--muted-2);
  cursor: not-allowed;
  background: transparent;
  border-style: dashed;
}

/* ============ 精选工作流网格 ============ */
.featured {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 44px 24px 60px;
}
.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 12px;
}
.badge-live > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted-2);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.badge-live.good {
  color: var(--green);
  border-color: rgba(85, 213, 138, 0.28);
  background: var(--green-soft);
}
.badge-live.good > span { background: var(--green); box-shadow: 0 0 10px var(--green); }
.badge-live.warn {
  color: var(--accent);
  border-color: rgba(255, 189, 56, 0.28);
  background: var(--accent-soft);
}
.badge-live.warn > span { background: var(--accent); box-shadow: 0 0 10px var(--accent); }

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.product-empty {
  grid-column: 1 / -1;
  min-height: 180px;
  display: grid;
  place-items: center;
  color: var(--muted);
}

/* ---- 单张工作流卡片 ---- */
.workflow-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 16px;
  gap: 14px;
  background: linear-gradient(150deg, var(--panel-2) 0%, var(--panel) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.workflow-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(255, 189, 56, 0.06), transparent 40%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.workflow-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 189, 56, 0.36);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.workflow-card:hover::before { opacity: 1; }
.workflow-card.disabled { opacity: 0.55; }
.workflow-card.disabled:hover { transform: none; border-color: var(--line); box-shadow: none; }

.workflow-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 15px;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.workflow-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.22), transparent 60%),
              radial-gradient(circle at 70% 80%, rgba(0,0,0,.24), transparent 60%);
}
.workflow-cover .cover-icon {
  z-index: 1;
  width: 68px;
  height: 68px;
}
.workflow-cover.has-example {
  display: block;
  background: #0b0d13;
}
.workflow-example-strip {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 0.8fr 0.8fr 1.2fr;
  gap: 2px;
  background: rgba(255,255,255,0.08);
}
.workflow-example-item {
  position: relative;
  min-width: 0;
  height: 100%;
  margin: 0;
  overflow: hidden;
}
.workflow-example-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.workflow-example-item.input img {
  filter: saturate(0.88) brightness(0.8);
}
.workflow-example-item.output {
  box-shadow: inset 0 0 0 2px rgba(255,189,56,0.72);
}
.workflow-example-item figcaption {
  position: absolute;
  left: 7px;
  bottom: 7px;
  z-index: 2;
  padding: 3px 6px;
  border-radius: 5px;
  background: rgba(5,7,12,0.72);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  backdrop-filter: blur(6px);
}
.cover-tone-video { background: linear-gradient(135deg, #ff713b, #ffbd38 65%, #ffe08a); }
.cover-tone-motion { background: linear-gradient(135deg, #ff5f9e, #ff713b 60%, #ffbd38); }
.cover-tone-avatar { background: linear-gradient(135deg, #55d58a, #4ea1ff); }
.cover-tone-image { background: linear-gradient(135deg, #7c5cff, #4ea1ff); }
.cover-tone-article { background: linear-gradient(135deg, #4ea1ff, #7c5cff 60%, #b98cff); }
.cover-tone-audio { background: linear-gradient(135deg, #ffd166, #ff713b, #ff5f9e); }
.cover-tone-default { background: linear-gradient(135deg, #2a3149, #12172a); }

.workflow-flags {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.flag {
  padding: 4px 8px;
  border-radius: 6px;
  font: 800 10px/1 ui-monospace, monospace;
  letter-spacing: 0.12em;
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
  backdrop-filter: blur(6px);
}
.flag.hot { background: linear-gradient(120deg, #ff713b, #ff5f9e); }
.flag.new { background: linear-gradient(120deg, #55d58a, #4ea1ff); }
.flag.vip {
  background: linear-gradient(120deg, #7c5cff, #b98cff);
  color: #fff;
}
.flag.free {
  background: rgba(255, 255, 255, 0.92);
  color: #201409;
}
.workflow-body { padding: 4px 6px 0; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.workflow-title {
  margin: 0;
  font-size: 17px;
  letter-spacing: -0.01em;
  font-weight: 700;
  color: var(--text);
}
.workflow-desc {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.62;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.workflow-io {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 11.5px;
}
.io-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  color: var(--text-soft);
}
.io-chip svg { opacity: 0.78; }
.io-chip.output {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: rgba(255, 189, 56, 0.24);
}
.io-arrow {
  color: var(--muted-2);
  font-family: ui-monospace, monospace;
  font-weight: 700;
}

.workflow-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.workflow-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11.5px;
}
.workflow-meta strong { color: var(--text-soft); font-weight: 700; }
.workflow-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  background: linear-gradient(120deg, #ffdd82, var(--accent));
  color: #1a1305;
  font-size: 12.5px;
  font-weight: 800;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.workflow-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(255, 189, 56, 0.28);
}
.workflow-card.disabled .workflow-cta {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  cursor: not-allowed;
}

/* ---- 骨架屏 ---- */
.workflow-card.skeleton {
  min-height: 340px;
  background: linear-gradient(90deg, var(--panel) 0%, var(--panel-2) 50%, var(--panel) 100%);
  background-size: 200% 100%;
  animation: skeleton 1.4s ease-in-out infinite;
  border-color: transparent;
}
@keyframes skeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.workflow-card.skeleton * { visibility: hidden; }

/* ============ 使用流程 ============ */
.how {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 60px 24px;
}
.how-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.how-step {
  position: relative;
  padding: 24px 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.how-step:hover {
  border-color: rgba(255, 189, 56, 0.32);
  transform: translateY(-2px);
}
.how-num {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  font: 800 12px/1 ui-monospace, monospace;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: var(--accent-soft);
  margin-bottom: 14px;
}
.how-step b {
  display: block;
  font-size: 16px;
  margin-bottom: 8px;
}
.how-step p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

/* ============ 会员权益 ============ */
.pricing {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 60px 24px;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
.pricing-grid-single { width: min(430px, 100%); margin-inline: auto; grid-template-columns: 1fr; }
.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 22px 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.pricing-card:hover { border-color: rgba(255, 189, 56, 0.28); transform: translateY(-2px); }
.pricing-card.popular {
  border-color: rgba(255, 189, 56, 0.55);
  background: linear-gradient(160deg, rgba(255, 189, 56, 0.08), rgba(255, 113, 59, 0.03) 45%, var(--panel) 80%);
  box-shadow: 0 20px 60px rgba(255, 189, 56, 0.12);
}
.pricing-card.premium {
  border-color: rgba(124, 92, 255, 0.4);
  background: linear-gradient(160deg, rgba(124, 92, 255, 0.1), rgba(78, 161, 255, 0.03) 45%, var(--panel) 80%);
}
.pricing-card.enterprise {
  border-color: rgba(78, 161, 255, 0.32);
  background: linear-gradient(160deg, rgba(78, 161, 255, 0.08), var(--panel) 60%);
}
.popular-flag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 12px;
  border-radius: 999px;
  background: linear-gradient(120deg, #ffdd82, var(--accent));
  color: #1a1305;
  font: 800 11px/1 ui-monospace, monospace;
  letter-spacing: 0.14em;
  box-shadow: 0 8px 20px rgba(255, 189, 56, 0.3);
}
.pricing-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.tier-name { font-size: 17px; font-weight: 800; }
.tier-tag {
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  font: 800 10px/1 ui-monospace, monospace;
  letter-spacing: 0.14em;
}
.tier-tag.muted { background: rgba(255,255,255,.05); color: var(--muted); }
.tier-tag.premium { background: var(--purple-soft); color: #b39dff; }
.tier-tag.enterprise { background: var(--blue-soft); color: #93c1ff; }
.tier-price {
  margin: 20px 0 22px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.tier-price b {
  font-size: 34px;
  letter-spacing: -0.03em;
  font-weight: 800;
  background: linear-gradient(120deg, #fff, var(--text-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tier-price small { color: var(--muted); font-size: 12px; }
.tier-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tier-list li {
  position: relative;
  padding-left: 22px;
  color: var(--text-soft);
  font-size: 13.5px;
  line-height: 1.55;
}
.tier-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.tier-list li b { color: var(--text); }

.pricing-note {
  margin-top: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

/* ============ FAQ ============ */
.faq {
  max-width: 940px;
  margin: 0 auto;
  padding: 60px 24px;
}
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.faq-item {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition: border-color 0.2s ease;
}
.faq-item[open] { border-color: rgba(255, 189, 56, 0.34); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--accent);
  font-weight: 700;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

/* ============ Footer CTA ============ */
.footer-cta {
  padding: 60px 24px 20px;
}
.footer-cta-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 44px 42px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 90% 20%, rgba(255, 189, 56, 0.25), transparent 55%),
    radial-gradient(circle at 10% 80%, rgba(124, 92, 255, 0.25), transparent 55%),
    linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid rgba(255, 189, 56, 0.28);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  box-shadow: var(--shadow);
}
.footer-cta-inner h2 {
  margin: 8px 0 6px;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.03em;
}
.footer-cta-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  max-width: 520px;
}
.footer-cta-actions { display: flex; gap: 12px; flex-shrink: 0; }

/* ============ Footer ============ */
.site-footer {
  padding: 40px 24px;
}
.footer-grid {
  max-width: var(--page-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 30px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}
.footer-col h4 {
  margin: 8px 0 12px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.06em;
}
.footer-col a {
  display: block;
  padding: 6px 0;
  color: var(--text-soft);
  font-size: 13px;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--accent); }
.footer-col.brand-col p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
  max-width: 320px;
}
.footer-bottom {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 22px 0 4px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 12px;
}

/* ============ 登录 Modal ============ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
}
.modal[data-open="1"] { display: block; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 5, 9, 0.65);
  backdrop-filter: blur(8px);
}
.modal-panel {
  position: relative;
  width: min(440px, calc(100% - 32px));
  margin: 8vh auto 0;
  padding: 34px 30px 26px;
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg);
  z-index: 1;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.modal-close:hover { background: rgba(255, 255, 255, 0.08); color: var(--text); }
.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 189, 56, 0.06);
  border: 1px solid rgba(255, 189, 56, 0.2);
  font-size: 12.5px;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 16px;
}
.modal-panel h3 {
  margin: 6px 0 6px;
  font-size: 24px;
  letter-spacing: -0.02em;
}
.auth-sub {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.auth-pending {
  margin: 2px 0 0;
  padding: 10px 12px;
  border-radius: 9px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 12px;
  line-height: 1.5;
}
.wechat-login {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.wechat-qr-frame {
  position: relative;
  width: 250px;
  height: 250px;
  padding: 10px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 189, 56, 0.24);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
}
.wechat-qr-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.wechat-qr-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #626878;
}
.wechat-qr-loading span {
  width: 28px;
  height: 28px;
  border: 3px solid #e6e9ef;
  border-top-color: #ffad29;
  border-radius: 50%;
  animation: qr-spin 0.8s linear infinite;
}
@keyframes qr-spin { to { transform: rotate(360deg); } }
.wechat-qr-refresh {
  position: absolute;
  inset: 10px;
  padding: 18px;
  border: 0;
  border-radius: 10px;
  color: #2f3440;
  background: rgba(255, 255, 255, 0.94);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.wechat-login-status {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.wechat-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: #07c160;
}
.wechat-login-status > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.wechat-login-status b {
  font-size: 13px;
}
.wechat-login-status small {
  color: var(--muted);
  font-size: 11px;
}
.auth-error {
  width: 100%;
  margin: 16px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 100, 82, 0.25);
  border-radius: 10px;
  color: #ffb1a7;
  background: rgba(255, 79, 58, 0.08);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form label { display: flex; flex-direction: column; gap: 6px; }
.auth-form label > span { font-size: 12px; color: var(--muted); }
.auth-form input {
  height: 44px;
  padding: 0 14px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
  color: var(--text);
  outline: 0;
  transition: border-color 0.2s ease;
}
.auth-form input:focus { border-color: rgba(255, 189, 56, 0.5); background: rgba(255, 189, 56, 0.04); }
.code-row { display: flex; gap: 8px; }
.code-row input { flex: 1; }
.auth-check {
  display: flex !important;
  align-items: flex-start !important;
  flex-direction: row !important;
  gap: 8px !important;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.auth-check input { width: 15px; height: 15px; margin-top: 2px; accent-color: var(--accent); }
.auth-check a { color: var(--accent); }

.auth-alt {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px dashed var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.auth-alt > span { color: var(--muted); font-size: 12px; }
.auth-alt-methods { display: flex; gap: 8px; }
.alt-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-strong);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.2s ease;
}
.alt-btn:hover { transform: translateY(-1px); border-color: rgba(255, 189, 56, 0.4); }

/* ============ 响应式 ============ */
@media (max-width: 1180px) {
  .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .workflow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 中大屏：搜索框收窄 kbd 隐藏 */
@media (max-width: 1200px) {
  .nav-search { width: 200px; }
  .nav-search kbd { display: none; }
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 60px;
  }
  .hero-visual { min-height: 380px; max-width: 520px; margin: 0 auto; width: 100%; }
  .nav-search { display: none; }
  .nav-menu a { padding: 8px 10px; font-size: 13px; }
  .how-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-cta-inner { flex-direction: column; align-items: flex-start; text-align: left; }
}

@media (max-width: 880px) {
  .nav-menu { display: none; }
}

@media (max-width: 720px) {
  .nav-inner { grid-template-columns: auto 1fr; height: 62px; gap: 12px; }
  .brand-text em { display: none; }
  .nav-search { display: none; }
  .account-copy small { display: none; }
  .account-copy strong { max-width: 76px; }
  .hero { padding-top: 42px; padding-bottom: 40px; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-visual { min-height: 320px; }
  .preview-card { width: 220px; }
  .workflow-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .how-steps { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
.categories, .featured, .how, .pricing, .faq, .footer-cta, .access-guide { padding-top: 40px; padding-bottom: 40px; }
}

/* ============ 会员与工具使用引导 ============ */
.access-guide {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 42px 24px 28px;
}
.access-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.access-step {
  min-width: 0;
  padding: 20px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255,189,56,.07), rgba(255,255,255,.025));
  transition: transform .2s ease, border-color .2s ease;
}
.access-step:hover { transform: translateY(-2px); border-color: rgba(255,189,56,.4); }
.access-step-num {
  grid-row: 1 / span 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--accent);
  background: var(--accent-soft);
  font: 800 12px/1 ui-monospace, monospace;
}
.access-step b { display: block; margin-bottom: 6px; font-size: 15px; }
.access-step p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.65; }
.access-step em { grid-column: 2; color: var(--accent); font-style: normal; font-size: 12px; font-weight: 700; }
.access-course-note {
  margin: 16px 0 0;
  padding: 13px 16px;
  border-radius: 12px;
  color: var(--text-soft);
  background: rgba(85,213,138,.07);
  border: 1px solid rgba(85,213,138,.18);
  font-size: 12.5px;
  line-height: 1.6;
}
.access-course-note b { color: var(--green); }
@media (max-width: 900px) { .access-steps { grid-template-columns: 1fr; } }

/* ============ 全局工具 ============ */
.hidden { display: none !important; }
[hidden] { display: none !important; }
