/* ============================================================
   拾光VCR —— 全局样式
   风格参考：23VCR 照片秒变视频平台（青蓝渐变 + 彩色纸屑 + 圆角卡片）
   ============================================================ */

:root {
  --brand-1: #0ba5c9;
  --brand-2: #2f6bff;
  --brand-grad: linear-gradient(135deg, #0ba5c9 0%, #2f6bff 100%);
  --accent: #ff4d8f;
  --accent-grad: linear-gradient(135deg, #ff6a9d, #ff3d77);
  --ink: #1b2437;
  --muted: #6b7a90;
  --bg: #f6f9fd;
  --card: #ffffff;
  --line: #e6ecf4;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(31, 58, 147, 0.08);
  --shadow-lg: 0 24px 60px rgba(31, 58, 147, 0.16);
  --nav-h: 68px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

img {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
}

/* ---------- 布局容器 ---------- */
.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

section {
  padding: 88px 0;
}

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--brand-grad);
  color: #fff;
  box-shadow: 0 10px 24px rgba(47, 107, 255, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 14px 30px rgba(47, 107, 255, 0.45);
}

.btn-accent {
  background: var(--accent-grad);
  color: #fff;
  box-shadow: 0 10px 24px rgba(255, 61, 119, 0.35);
}

.btn-accent:hover {
  box-shadow: 0 14px 30px rgba(255, 61, 119, 0.45);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.26);
}

.btn-soft {
  background: #fff;
  color: var(--brand-2);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow);
}

.btn-soft:hover {
  border-color: var(--brand-2);
}

.btn-block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
}

/* ---------- 顶部导航 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(230, 236, 244, 0.8);
}

.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.logo-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--brand-grad);
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 6px 14px rgba(47, 107, 255, 0.35);
}

.logo em {
  font-style: normal;
  color: var(--brand-2);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 15px;
}

.nav-links a {
  color: #43506a;
  font-weight: 500;
  position: relative;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--brand-2);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 3px;
  border-radius: 3px;
  background: var(--brand-grad);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand-grad);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
}

.link-btn {
  color: var(--brand-2);
  font-weight: 600;
  font-size: 15px;
}

.link-btn.danger {
  color: #e5484d;
}

/* ---------- 页脚 ---------- */
.footer {
  background: #101a30;
  color: #9db0c9;
  padding: 60px 0 30px;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
  gap: 40px;
  margin-bottom: 40px;
  align-items: start;
}

.footer .logo {
  color: #fff;
  margin-bottom: 14px;
}

.footer-col h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  padding: 5px 0;
  color: #9db0c9;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* 页脚微信二维码 */
.footer-qr {
  text-align: center;
}

.footer-qr h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 14px;
}

.qr-box {
  width: 132px;
  height: 132px;
  margin: 0 auto;
  background: #fff;
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s;
}

.qr-box:hover {
  transform: translateY(-4px);
}

.qr-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
}

.footer-qr p {
  margin-top: 12px;
  font-size: 12.5px;
  color: #8fa3c2;
  line-height: 1.6;
}

/* ---------- 区块标题 ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-2);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.kicker::before {
  content: "";
  width: 22px;
  height: 3px;
  border-radius: 3px;
  background: var(--brand-grad);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 54px;
}

.section-head h2 {
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.25;
  font-weight: 800;
}

.section-head h2 em {
  font-style: normal;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-head p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 16px;
}

/* ---------- 首页 Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(140deg, #0b8fb8 0%, #2563eb 55%, #3b5bdb 100%);
  color: #fff;
  padding: 72px 0 100px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/assets/confetti.jpg?v=20260923x");
  background-size: cover;
  background-position: center;
  opacity: 0.16;
  mix-blend-mode: screen;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 300px at 85% 15%, rgba(255, 255, 255, 0.18), transparent 60%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 26px;
  backdrop-filter: blur(6px);
}

.hero-kicker .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffd166;
}

.hero h1 {
  font-size: clamp(38px, 5.4vw, 62px);
  line-height: 1.14;
  font-weight: 900;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #ffd166, #ff9a5a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.92);
  max-width: 480px;
  margin-bottom: 34px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-tags {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-tags a {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}

.hero-tags a:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
}

/* Hero 展示图 */
.hero-show {
  position: relative;
  height: 460px;
}

.show-card {
  position: absolute;
  width: 58%;
  aspect-ratio: 4 / 3;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(8, 30, 90, 0.45);
  border: 4px solid rgba(255, 255, 255, 0.9);
  animation: floaty 6s ease-in-out infinite;
}

.show-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.show-card-1 {
  left: 0;
  top: 8%;
  transform: rotate(-4deg);
  z-index: 1;
}

.show-card-2 {
  right: 0;
  top: 34%;
  transform: rotate(3deg);
  z-index: 2;
  animation-delay: 1.2s;
}

.show-card-3 {
  left: 16%;
  bottom: -6%;
  transform: rotate(-1deg);
  z-index: 3;
  animation-delay: 2.4s;
}

@keyframes floaty {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -12px;
  }
}

/* ---------- 数据统计 ---------- */
.stats {
  margin-top: -58px;
  position: relative;
  z-index: 5;
}

.stats-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 36px 20px;
}

.stat-item {
  text-align: center;
  padding: 10px 16px;
  position: relative;
}

.stat-item + .stat-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: var(--line);
}

.stat-num {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 900;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}

/* ---------- 功能卡片（为什么选择） ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  margin-bottom: 18px;
}

.f-icon-1 { background: linear-gradient(135deg, #ff8a5c, #ff4d6d); }
.f-icon-2 { background: linear-gradient(135deg, #36d1dc, #5b86e5); }
.f-icon-3 { background: linear-gradient(135deg, #f7971e, #ffd200); }
.f-icon-4 { background: linear-gradient(135deg, #8e2de2, #4a00e0); }
.f-icon-5 { background: linear-gradient(135deg, #11998e, #38ef7d); }
.f-icon-6 { background: linear-gradient(135deg, #fc5c7d, #6a82fb); }

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--muted);
  font-size: 14.5px;
}

/* ---------- 流程步骤 ---------- */
.steps-wrap {
  background: linear-gradient(180deg, #fff, #f0f6ff);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 32px 24px 26px;
  position: relative;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  transition: transform 0.25s;
}

.step-card:hover {
  transform: translateY(-6px);
}

.step-num {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--brand-grad);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  box-shadow: 0 8px 18px rgba(47, 107, 255, 0.35);
}

.step-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.step-card ul {
  list-style: none;
}

.step-card li {
  color: var(--muted);
  font-size: 14px;
  padding: 3px 0 3px 18px;
  position: relative;
}

.step-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: var(--brand-grad);
}

.step-arrow {
  position: absolute;
  right: -18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  color: var(--brand-2);
}

.steps-grid .step-card:nth-child(4) .step-arrow {
  display: none;
}

/* ---------- CTA 横幅 ---------- */
.cta {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(135deg, #0ba5c9, #2f6bff 60%, #5b3df5);
  color: #fff;
  text-align: center;
  padding: 84px 40px;
  box-shadow: var(--shadow-lg);
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/assets/confetti.jpg?v=20260923x");
  background-size: cover;
  background-position: center;
  opacity: 0.14;
  mix-blend-mode: screen;
}

.cta > * {
  position: relative;
  z-index: 2;
}

.cta h2 {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 18px;
}

.cta p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 34px;
  font-size: 16px;
}

.cta-note {
  margin-top: 20px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

/* ---------- 模板库页头（参考 23vcr：居中大标题 + 副标题） ---------- */
.page-head {
  text-align: center;
  padding: 52px 0 6px;
}

.page-head h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
}

.page-head p {
  color: var(--muted);
  margin-top: 12px;
  font-size: 15px;
}

/* ---------- 一级分类胶囊（浅粉，参考 23vcr） ---------- */
.cat-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
  margin: 30px 0 12px;
  max-width: 1120px;
}

.cat-pill {
  padding: 9px 24px;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid #e2e8f5;
  font-size: 14.5px;
  font-weight: 600;
  color: #43506a;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.cat-pill:hover {
  background: #f4f8ff;
  border-color: #c8d9f7;
  color: #2f5fd0;
}

.cat-pill.active {
  background: var(--brand-grad);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(47, 107, 255, 0.3);
}

/* ---------- 二级分类胶囊（选中一级后显示，浅粉更浅） ---------- */
.sub-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
  margin: 0 0 4px;
  max-width: 1120px;
}

.sub-pill {
  padding: 6px 17px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #dbe5f5;
  font-size: 13px;
  font-weight: 600;
  color: #5b6b85;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.sub-pill:hover {
  border-color: #ff7fab;
  color: #ec4a92;
}

.sub-pill.active {
  background: linear-gradient(135deg, #ff8ab5, #f0468e);
  border-color: transparent;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(240, 70, 142, 0.28);
}

/* ---------- 筛选条：左下拉筛选 + 右搜索/视图切换 ---------- */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 26px 0 0;
  max-width: 1120px;
}

.filter-left {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.select-wrap {
  position: relative;
}

.filter-select {
  appearance: none;
  -webkit-appearance: none;
  border: 1.5px solid #dbe5f5;
  background: #fff;
  color: #43506a;
  padding: 9px 36px 9px 15px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: border 0.2s;
  font-family: inherit;
}

.filter-select:hover,
.filter-select:focus {
  border-color: #2f6bff;
}

.select-wrap::after {
  content: '';
  position: absolute;
  right: 15px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.8px solid #8ea4c8;
  border-bottom: 1.8px solid #8ea4c8;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
  display: none;
}

.filter-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 搜索框（筛选条右侧） */
.search-box {
  position: relative;
}

.search-box input {
  width: 240px;
  padding: 10px 16px 10px 40px;
  border-radius: 999px;
  border: 1.5px solid #dbe5f5;
  background: #fff;
  outline: none;
  transition: border 0.2s;
  font-size: 13.5px;
}

.search-box input:focus {
  border-color: #2f6bff;
}

.search-box .icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9db0c9;
}

/* 视图切换按钮 */
.view-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1.5px solid #dbe5f5;
  background: #fff;
  color: #2f5fd0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.view-btn:hover {
  border-color: #2f6bff;
  background: #f4f8ff;
}

.tpl-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.tpl-card {
  background: var(--card);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}

.tpl-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.tpl-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.tpl-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.tpl-card:hover .tpl-cover img {
  transform: scale(1.06);
}

/* 作品编号仅在详情弹窗显示（.modal-no），主页卡片不展示 */
.tpl-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(20, 30, 60, 0.55);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
}

.tpl-hot {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent-grad);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.tpl-info {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.tpl-info h3 {
  font-size: 17px;
}

.tpl-meta {
  display: flex;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
}

.tpl-meta .price,
.modal-meta .price {
  color: var(--accent);
  font-weight: 800;
}

.tpl-info .btn {
  margin-top: auto;
  padding: 10px;
  font-size: 14px;
}

.empty {
  text-align: center;
  color: var(--muted);
  padding: 80px 0;
}

/* 筛选区提示文字 */
.filter-hint {
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
  margin: 14px 0 8px;
}

/* 复制当前分类链接 */
.copy-cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 6px auto 26px;
  padding: 6px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-2);
  transition: all 0.2s;
}

.copy-cat-btn:hover {
  border-color: var(--brand-2);
  background: #f0f6ff;
}

.copy-cat-btn:active {
  transform: translateY(1px);
}

/* ---------- 列表视图（视图切换按钮） ---------- */
.tpl-grid.list-view {
  grid-template-columns: 1fr;
  gap: 16px;
}

.tpl-grid.list-view .tpl-card {
  flex-direction: row;
}

.tpl-grid.list-view .tpl-cover {
  width: 300px;
  flex-shrink: 0;
}

.tpl-grid.list-view .tpl-info {
  flex: 1;
  padding: 20px 24px;
  justify-content: center;
}

.tpl-grid.list-view .tpl-info h3 {
  font-size: 18px;
}

.tpl-grid.list-view .tpl-meta {
  gap: 20px;
}

.tpl-grid.list-view .tpl-info .btn {
  margin-top: 8px;
  max-width: 170px;
}

  font-weight: 600;
}

/* ---------- 编辑器 ---------- */
.editor-wrap {
  padding: 34px 0 80px;
}

.editor-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 26px;
  align-items: start;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.panel h3 {
  font-size: 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel h3 .step {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand-grad);
  color: #fff;
  font-size: 13px;
  display: grid;
  place-items: center;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: #43506a;
  margin-bottom: 6px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: #fbfdff;
  outline: none;
  transition: border 0.2s;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--brand-2);
}

.field textarea {
  min-height: 72px;
}

.tpl-picker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.tpl-option {
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  overflow: hidden;
  border: 2.5px solid transparent;
  cursor: pointer;
  position: relative;
  transition: border 0.2s, transform 0.2s;
}

.tpl-option img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tpl-option:hover {
  transform: scale(1.04);
}

.tpl-option.active {
  border-color: var(--brand-2);
}

.tpl-option .tick {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand-2);
  color: #fff;
  display: none;
  place-items: center;
  font-size: 12px;
}

.tpl-option.active .tick {
  display: grid;
}

/* 照片上传 */
.photo-drop {
  border: 2px dashed #c9d6e8;
  border-radius: var(--radius-sm);
  padding: 22px;
  text-align: center;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 14px;
}

.photo-drop:hover {
  border-color: var(--brand-2);
  background: #f0f6ff;
}

.photo-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb .bar {
  position: absolute;
  inset: auto 0 0 0;
  background: rgba(15, 25, 50, 0.55);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 6px;
}

.thumb .bar button {
  color: #fff;
  font-size: 14px;
  line-height: 1;
  padding: 2px 4px;
}

.thumb .bar button:hover {
  color: #ffd166;
}

/* 预览舞台 */
.preview-stage {
  border-radius: var(--radius);
  overflow: hidden;
  background: #0b1020;
  box-shadow: var(--shadow-lg);
}

.preview-canvas {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #000;
}

.preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 20px;
  background: #101a30;
  color: #fff;
}

.preview-toolbar .hint {
  font-size: 13px;
  color: #9db0c9;
}

.preview-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* 生成结果 */
.render-result {
  margin-top: 18px;
  display: none;
}

.render-result.show {
  display: block;
}

.render-result video {
  width: 100%;
  border-radius: var(--radius-sm);
  background: #000;
}

/* ---------- 作品卡片 ---------- */
.works-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.work-card {
  background: var(--card);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}

.work-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.work-cover {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
}

.work-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-status {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  color: #fff;
}

.work-status.ready {
  background: linear-gradient(135deg, #11998e, #38ef7d);
}

.work-status.draft {
  background: rgba(30, 45, 80, 0.6);
  backdrop-filter: blur(4px);
}

.work-body {
  padding: 16px 18px 18px;
}

.work-body h3 {
  font-size: 16px;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.work-body .meta {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 12px;
}

.work-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.work-actions .btn {
  padding: 8px 16px;
  font-size: 13px;
}

/* ---------- 登录/注册 ---------- */
.auth-wrap {
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  place-items: center;
  padding: 60px 0;
  background:
    radial-gradient(500px 260px at 15% 10%, rgba(11, 165, 201, 0.16), transparent 60%),
    radial-gradient(500px 260px at 90% 90%, rgba(47, 107, 255, 0.16), transparent 60%),
    var(--bg);
}

.auth-card {
  width: min(420px, 92%);
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  padding: 40px 36px;
}

.auth-card h1 {
  font-size: 26px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 6px;
}

.auth-card .sub {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 28px;
}

.auth-card .field input {
  padding: 13px 16px;
}

.auth-card .foot {
  text-align: center;
  margin-top: 20px;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- 提示消息 ---------- */
.toast {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  background: #1b2437;
  color: #fff;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  box-shadow: 0 12px 34px rgba(8, 14, 30, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 999;
  max-width: 88vw;
  white-space: normal;
  word-break: break-word;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.toast.error {
  background: #e5484d;
}

/* ---------- 骨架屏 / 加载 ---------- */
.skeleton {
  background: linear-gradient(90deg, #eef2f8 25%, #e3e9f2 50%, #eef2f8 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 12px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---------- 模板卡片播放角标 ---------- */
.tpl-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-2);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(10, 25, 60, 0.35);
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}

.tpl-card:hover .tpl-play,
.tpl-card:focus-visible .tpl-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.tpl-card {
  cursor: pointer;
}

/* ---------- 视频预览弹窗 ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8, 14, 30, 0.72);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  position: relative;
  width: min(720px, 100%);
  background: #fff;
  border-radius: 22px;
  overflow: visible;
  box-shadow: var(--shadow-lg);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s;
}

.modal-overlay.show .modal-card {
  transform: none;
}

.modal-card video {
  width: 100%;
  display: block;
  background: #0b1020;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border-radius: 22px 22px 0 0;
}

.modal-close {
  position: absolute;
  top: -44px;
  right: -14px;
  z-index: 5;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  color: #33415c;
  border: 1px solid #e3e9f5;
  box-shadow: 0 4px 14px rgba(8, 14, 30, 0.25);
  display: grid;
  place-items: center;
  transition: background 0.2s, transform 0.2s;
}

.modal-close:hover {
  background: #f0f4ff;
  transform: rotate(90deg);
}

.modal-info {
  padding: 20px 24px 24px;
}

.modal-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.modal-no {
  flex-shrink: 0;
  background: rgba(15, 25, 50, 0.68);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 3px 10px;
  border-radius: 8px;
}

.modal-info h3 {
  font-size: 20px;
}

.modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-size: 13.5px;
  margin-bottom: 8px;
  align-items: center;
}

/* 分享视频 */
.share-row {
  margin-top: 14px;
  display: flex;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--accent-grad);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(255, 61, 119, 0.3);
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(255, 61, 119, 0.4);
}

.share-btn:active {
  opacity: 0.85;
  transform: translateY(0);
}

.modal-info p {
  color: var(--muted);
  font-size: 14px;
}

/* 详情页客服二维码 */
.service-row {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #f6f8fb;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 14px;
}

.service-row img {
  width: 66px;
  height: 66px;
  border-radius: 10px;
  background: #fff;
  padding: 4px;
  border: 1px solid var(--line);
  object-fit: contain;
}

.service-text strong {
  display: block;
  font-size: 14.5px;
  margin-bottom: 2px;
}

.service-text span {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .modal-overlay {
    padding: 12px;
  }

  .modal-card {
    width: 100%;
    border-radius: 16px;
  }

  .modal-card video {
    max-height: 62vh;
  }

  .modal-close {
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    background: rgba(15, 25, 50, 0.5);
    color: #fff;
    border-color: transparent;
    backdrop-filter: blur(4px);
    box-shadow: none;
  }

  .tpl-play {
    width: 54px;
    height: 54px;
  }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-show {
    height: 380px;
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
  }

  .features-grid,
  .tpl-grid,
  .works-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 44px;
  }

  .editor-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  section {
    padding: 60px 0;
  }

  .nav-links {
    display: none;
  }

  .stats-card {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .stat-item + .stat-item::before {
    display: none;
  }

  /* 手机端作品 2 个并排一行 */
  .tpl-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .features-grid,
  .works-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .tpl-card {
    border-radius: 16px;
  }

  .tpl-badge {
    top: 8px;
    left: 8px;
    font-size: 11px;
    padding: 3px 9px;
  }

  .tpl-hot {
    top: 8px;
    right: 8px;
    font-size: 11px;
    padding: 3px 8px;
  }

  .tpl-info {
    padding: 12px 12px 14px;
    gap: 6px;
  }

  .tpl-info h3 {
    font-size: 15px;
  }

  .tpl-meta {
    gap: 8px;
    font-size: 12px;
    flex-wrap: wrap;
    line-height: 1.5;
  }

  .tpl-info .btn {
    padding: 8px;
    font-size: 12.5px;
    margin-top: 4px;
  }

  .tpl-info p {
    font-size: 12px;
    line-height: 1.5;
  }

  .steps-grid {
    row-gap: 30px;
  }

  .step-arrow {
    display: none;
  }

  .hero-btns .btn {
    padding: 12px 22px;
  }

  /* 手机端：居中标题缩小（参考 23vcr 排版） */
  .page-head {
    padding: 14px 0 4px;
  }

  .page-head h1 {
    font-size: 19px;
  }

  .page-head p {
    display: none;
  }

  /* 一级分类胶囊：单行横滑、紧凑整齐 */
  .cat-pills {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
    margin: 10px 0 6px;
    gap: 6px;
  }

  .cat-pills::-webkit-scrollbar {
    display: none;
  }

  .cat-pill {
    padding: 8px 18px;
    font-size: 13.5px;
    flex-shrink: 0;
    white-space: nowrap;
  }

  /* 二级分类：换行靠左、全部显示不截断 */
  .sub-pills {
    flex-wrap: wrap;
    justify-content: flex-start;
    overflow: visible;
    gap: 5px;
    margin: 2px 0 4px;
  }

  .sub-pill {
    padding: 4px 10px;
    font-size: 12px;
    white-space: nowrap;
  }

  /* 筛选条：下拉横滑一行 + 搜索框下一行全宽 */
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    margin: 8px 0 0;
  }

  .filter-left {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
    gap: 8px;
  }

  .filter-left::-webkit-scrollbar {
    display: none;
  }

  .filter-left .select-wrap {
    flex: 1 1 0;
    min-width: 0;
  }

  .filter-select {
    padding: 8px 32px 8px 14px;
    font-size: 12.5px;
  }

  .filter-right {
    justify-content: space-between;
  }

  /* 搜索框独立一行全宽（与筛选下拉拉开间距） */
  .search-box {
    flex: 1;
  }

  .search-box input {
    width: 100%;
    padding: 7px 12px 7px 34px;
    font-size: 12px;
  }

  .view-btn {
    width: 38px;
    height: 38px;
  }

  /* 提示文字与复制链接按钮间距 */
  .filter-hint {
    margin: 8px 0 4px;
    font-size: 11.5px;
  }

  .copy-cat-btn {
    margin: 2px auto 14px;
    font-size: 12px;
    padding: 4px 12px;
  }

  /* 列表视图手机端：单列横排卡片 */
  .tpl-grid.list-view {
    grid-template-columns: 1fr;
  }

  .tpl-grid.list-view .tpl-cover {
    width: 42%;
  }

  .tpl-grid.list-view .tpl-info {
    padding: 12px 14px;
  }

  .tpl-grid.list-view .tpl-meta {
    gap: 10px;
    font-size: 12px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  /* 分享按钮在手机上占满整行 */
  .share-row {
    margin-top: 12px;
  }

  .share-btn {
    width: 100%;
    justify-content: center;
    padding: 11px 20px;
  }
}

/* ===== 手机端（覆盖优化：分类换行 / meta 一行 / 筛选一行） ===== */
@media (max-width: 920px) {
  /* 一级分类：换行全部显示、靠左 */
  .cat-pills {
    flex-wrap: wrap;
    justify-content: flex-start;
    overflow: visible;
    gap: 8px;
  }

  .cat-pill {
    padding: 7px 15px;
    font-size: 12.5px;
  }

  /* 作品信息（时长/照片/价格）一行排开 */
  .tpl-grid {
    gap: 10px;
  }

  .tpl-meta {
    flex-wrap: nowrap;
    gap: 3px;
    font-size: 10px;
    white-space: nowrap;
    justify-content: space-between;
  }

  .tpl-meta .price {
    margin-left: 2px;
  }

  /* 筛选下拉：缩小后一行全部显示 */
  .filter-left {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 3px;
  }

  .filter-select {
    padding: 6px 8px 6px 9px;
    font-size: 10.5px;
    max-width: 96px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .select-wrap::after {
    right: 9px;
    width: 5px;
    height: 5px;
  }
}

/* 手机端：一级分类全部显示（含"全部模板"），每行 4 个按钮 */
@media (max-width: 920px) {
  .cat-pills .cat-pill {
    flex: 0 1 calc(25% - 6px);
    max-width: calc(25% - 6px);
    text-align: center;
    padding: 6px 2px;
    font-size: 12px;
  }
}

/* 手机端：页脚内容不显示，仅显示客服二维码 */
@media (max-width: 920px) {
  .footer {
    padding: 36px 0 30px;
  }

  .footer-grid {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 0;
  }

  .footer-grid > div:not(.footer-qr) {
    display: none;
  }

  .footer-qr h4 {
    margin-bottom: 12px;
  }

  .qr-box {
    width: 150px;
    height: 150px;
  }

  .footer-bottom {
    display: none;
  }
}



/* ---------- 原生 details 下拉 ---------- */
.filter-dd {
  position: relative;
}

.filter-summary {
  list-style: none;
}

.filter-summary::-webkit-details-marker {
  display: none;
}

.filter-panel {
  display: none;
}

.filter-panel.open {
  display: block;
}

.filter-opt {
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* ---------- 自定义筛选下拉（PC 版） ---------- */
@media (min-width: 921px) {
  .filter-summary {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
    padding: 9px 36px 9px 15px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 999px;
    border: 1.5px solid #dbe5f5;
    background: #fff;
    color: #43506a;
    cursor: pointer;
    transition: border 0.2s;
  }

  .filter-trigger:hover,
  .filter-trigger:focus {
    border-color: #2f6bff;
  }

  .ft-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .ft-arrow {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    color: #8ea4c8;
  }

  .filter-panel {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 170px;
    max-width: 200px;
    background: #fff;
    border: 1px solid #dbe5f5;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(28, 37, 64, 0.16);
    z-index: 80;
    padding: 6px;
    max-height: 240px;
    overflow-y: auto;
  }

  .filter-panel.open {
    display: block;
  }

  .filter-opt {
    padding: 9px 12px;
    font-size: 13px;
    color: #43506a;
    border-radius: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
  }

  .filter-opt:hover {
    background: #f0f5ff;
  }

  .filter-opt.active {
    background: #eef4ff;
    color: #2f5fd0;
    font-weight: 600;
  }
}

/* 手机端自定义筛选下拉（面板紧凑、对齐箭头下方） */
@media (max-width: 920px) {
  .select-wrap {
    position: relative;
  }

  .filter-summary {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    width: 100%;
    padding: 6px 8px 6px 9px;
    font-size: 10.5px;
    border-radius: 999px;
    border: 1.5px solid #dbe5f5;
    background: #fff;
    color: #43506a;
    cursor: pointer;
    transition: all 0.2s;
  }

  .filter-trigger:active {
    border-color: #2f6bff;
    background: #f4f8ff;
  }

  .ft-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .ft-arrow {
    width: 9px;
    height: 9px;
    flex-shrink: 0;
    color: #8ea4c8;
  }

  /* 自定义下拉时隐藏原生伪元素箭头（避免双箭头） */
  .select-wrap::after {
    display: none;
  }

  .filter-panel {
    display: none;
    position: fixed;
    z-index: 300;
    top: auto;
    left: auto;
    min-width: 150px;
    max-width: 180px;
    background: #fff;
    border: 1px solid #dbe5f5;
    border-radius: 10px;
    box-shadow: 0 10px 26px rgba(28, 37, 64, 0.16);
    z-index: 80;
    padding: 5px;
    max-height: 195px;
    overflow-y: auto;
  }

  .filter-panel.open {
    display: block;
  }

  .filter-opt {
    padding: 8px 10px;
    font-size: 12px;
    color: #43506a;
    border-radius: 7px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
  }

  .filter-opt.active {
    background: #eef4ff;
    color: #2f5fd0;
    font-weight: 600;
  }

  .filter-opt:active {
    background: #e0eaff;
  }
}



/* ---------- 后台重命名模态框（居中弹窗） ---------- */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
}
.modal-box {
  background: #fff;
  border-radius: 14px;
  padding: 22px 24px;
  width: min(92vw, 360px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
}
.modal-box h3 {
  margin: 0 0 14px;
  font-size: 15px;
  color: #1f2b47;
}
.modal-box input {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 12px;
  border: 1.5px solid #dbe5f5;
  border-radius: 10px;
  font-size: 14px;
  outline: none;
}
.modal-box input:focus {
  border-color: #2f6bff;
}
.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 16px;
}


/* 封面裁剪画布：禁止触摸滚动，支持拖拽平移 */
#previewCanvas {
  touch-action: none;
  cursor: grab;
}

/* 封面裁剪滚动条（放大后出现，贴预览框边缘） */
.preview-box {
  position: relative;
}
.crop-scroll {
  position: absolute;
  z-index: 6;
  margin: 0;
  opacity: 0.9;
  accent-color: #2f6bff;
}
.crop-scroll.h {
  left: 8px;
  right: 8px;
  bottom: 5px;
  width: calc(100% - 16px);
  height: 10px;
}
.crop-scroll.v {
  right: 6px;
  top: 8px;
  bottom: 8px;
  width: 12px;
  height: auto;
  writing-mode: vertical-lr;
  direction: rtl;
}
.crop-scroll:disabled {
  opacity: 0.15;
  pointer-events: none;
}
