﻿:root {
  --bg: #f5f8ff;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-solid: #ffffff;
  --text: #111827;
  --muted: #53627c;
  --line: #d6e1f4;
  --brand-a: #0b91ff;
  --brand-b: #14c9b8;
  --brand-c: #ff945f;
  --ok-bg: #e6f8ef;
  --ok-text: #1a6b4a;
  --err-bg: #ffe9e9;
  --err-text: #8e2929;
  --info-bg: #ebf3ff;
  --info-text: #294c85;
  --shadow: 0 20px 44px rgba(17, 34, 68, 0.14);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Manrope", "Noto Sans SC", sans-serif;
  color: var(--text);
  background: linear-gradient(160deg, #f5f8ff 0%, #eef9ff 42%, #fff7ee 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  background-image: linear-gradient(rgba(62, 92, 150, 0.055) 1px, transparent 1px), linear-gradient(90deg, rgba(62, 92, 150, 0.055) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at center, black 38%, transparent 85%);
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(42px);
  pointer-events: none;
  z-index: -5;
  opacity: .5;
  animation: floaty 12s ease-in-out infinite;
}

.orb-a { width: 34vw; height: 34vw; top: -8vw; left: -8vw; background: linear-gradient(140deg, #4eb8ff, #7be8d8); }
.orb-b { width: 30vw; height: 30vw; right: -8vw; top: 9vw; background: linear-gradient(140deg, #ffd181, #ff8c6b); animation-delay: -3s; }
.orb-c { width: 28vw; height: 28vw; right: 14vw; bottom: -11vw; background: linear-gradient(140deg, #87a8ff, #65d8ff); animation-delay: -5s; }

.bg-shape {
  position: fixed;
  z-index: -3;
  pointer-events: none;
  border: 1px solid rgba(147, 174, 220, 0.35);
}

.shape-a {
  width: 340px;
  height: 340px;
  right: 7vw;
  top: 20vh;
  border-radius: 78px;
  transform: rotate(21deg);
}

.shape-b {
  width: 220px;
  height: 220px;
  left: 8vw;
  bottom: 14vh;
  border-radius: 999px;
}

.container {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(245, 248, 255, 0.8);
  border-bottom: 1px solid rgba(214, 225, 244, 0.8);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand-wrap {
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(13, 108, 196, 0.28);
}

.brand-stack {
  display: grid;
  line-height: 1.05;
  text-align: left;
}

.brand-cn {
  font-weight: 800;
  font-size: 1.04rem;
  letter-spacing: 0.02em;
  font-family: "Noto Sans SC", sans-serif;
}

.brand-en {
  margin-top: 2px;
  font-size: 0.72rem;
  color: #4e6689;
  font-weight: 700;
  font-family: "Sora", "Noto Sans SC", sans-serif;
}

.top-nav {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-link {
  border: 0;
  padding: 8px 12px;
  border-radius: 10px;
  background: transparent;
  color: #364964;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  transition: all .25s ease;
}

.nav-link.active,
.nav-link:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #15243b;
}

.header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.page-wrap {
  padding: 24px 0 80px;
}

.page {
  opacity: 0;
  transform: translateY(12px) scale(.995);
  pointer-events: none;
  max-height: 0;
  overflow: hidden;
  transition: opacity .4s ease, transform .45s cubic-bezier(0.22, 1, 0.36, 1), max-height .55s ease;
}

.page.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  max-height: 6000px;
  overflow: visible;
}

.hero,
.panel,
.panel-lite {
  border: 1px solid rgba(214, 225, 244, 0.96);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero {
  padding: clamp(24px, 4vw, 52px);
}

.chip {
  display: inline-block;
  margin: 0;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid #b4deff;
  color: #18476f;
  background: linear-gradient(140deg, #d8ecff, #d9fff5);
  font-size: .84rem;
}

.hero h1 {
  margin: 14px 0;
  font-size: clamp(2.4rem, 5.4vw, 3.9rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  font-family: "Sora", "Noto Sans SC", sans-serif;
  font-weight: 700;
}

.hero-sub {
  margin: 0;
  color: var(--muted);
  max-width: 800px;
  font-size: 1.06rem;
  line-height: 1.7;
}

.hero-actions {
  margin-top: 16px;
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

.feature-carousel {
  margin-top: 14px;
  padding: 16px 12px;
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 10px;
  background: linear-gradient(150deg, rgba(255,255,255,0.9), rgba(244,251,255,0.78));
}

.carousel-viewport {
  overflow: hidden;
  position: relative;
  padding: 10px 0;
  perspective: 1300px;
  cursor: grab;
  min-height: 250px;
}

.carousel-track {
  display: flex;
  align-items: stretch;
  gap: 18px;
  transition: transform .7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  transform-style: preserve-3d;
}

.slide {
  flex: 0 0 72%;
  filter: blur(3px);
  opacity: 0;
  transform: translateZ(-80px) scale(.86);
  transition: filter .55s ease, opacity .55s ease, transform .55s ease, box-shadow .55s ease;
  pointer-events: none;
}

.slide.active {
  filter: blur(0);
  opacity: 1;
  transform: translateZ(0) scale(1.08) rotateY(0deg);
  box-shadow: 0 34px 70px rgba(18, 48, 94, 0.3), 0 12px 28px rgba(14, 118, 205, 0.24);
  pointer-events: auto;
}

.carousel-track.rotating .slide.active {
  filter: blur(1.7px);
  opacity: .7;
}

.slide.prev {
  opacity: .78;
  filter: blur(1px);
  transform: translateX(8px) translateZ(-40px) rotateY(22deg) scale(.93);
  pointer-events: auto;
}

.slide.next {
  opacity: .78;
  filter: blur(1px);
  transform: translateX(-8px) translateZ(-40px) rotateY(-22deg) scale(.93);
  pointer-events: auto;
}

.slide.far {
  opacity: 0;
  filter: blur(4px);
  transform: translateZ(-110px) scale(.8);
}

.carousel-btn {
  border: 1px solid #d6e4fb;
  background: #fff;
  color: #25456f;
  border-radius: 12px;
  height: 40px;
  cursor: pointer;
}

.carousel-dots {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 7px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #c9d9f7;
  border: 0;
  cursor: pointer;
}

.carousel-dot.active {
  width: 22px;
  background: linear-gradient(120deg, #0f91ff, #24d2bc);
}

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

.feature-card {
  text-align: left;
  border: 1px solid #d8e3f8;
  border-radius: 18px;
  padding: 24px;
  min-height: 222px;
  background: linear-gradient(165deg, #ffffff, #f6fbff);
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
}

.slide:nth-child(4n+1).feature-card {
  background: linear-gradient(150deg, #ffffff, #eef8ff 62%, #e8fcff);
}

.slide:nth-child(4n+2).feature-card {
  background: linear-gradient(150deg, #ffffff, #eefcff 62%, #eaf9ff);
}

.slide:nth-child(4n+3).feature-card {
  background: linear-gradient(150deg, #ffffff, #f0f8ff 56%, #eef6ff);
}

.slide:nth-child(4n+4).feature-card {
  background: linear-gradient(150deg, #ffffff, #f7faff 50%, #eefbff);
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(19, 36, 72, 0.14);
}

.feature-card h3 { margin: 0 0 8px 0; }
.feature-card h3 {
  font-family: "Sora", "Noto Sans SC", sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 1.42rem;
}
.feature-card p { margin: 0; color: #4d5f7a; line-height: 1.8; font-size: 1.03rem; }

.pdf-tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pdf-tool-nav .pdf-tool-card {
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
}

.pdf-tool-card {
  border: 1px solid #d4e3fb;
  border-radius: 18px;
  background: linear-gradient(155deg, #ffffff 0%, #f5fbff 55%, #eef7ff 100%);
  padding: 16px;
  box-shadow: 0 10px 22px rgba(19, 64, 126, 0.08);
}

.pdf-tool-card.active {
  border-color: #79b8ff;
  box-shadow: 0 16px 30px rgba(24, 82, 150, 0.17), 0 4px 10px rgba(15, 145, 255, 0.18);
  background: linear-gradient(150deg, #ffffff 0%, #edf7ff 50%, #e7f4ff 100%);
  transform: translateY(-2px);
}

.pdf-tool-card h3 {
  margin: 0 0 8px;
  font-size: 1.14rem;
  color: #173d69;
  letter-spacing: 0.01em;
}

.pdf-tool-card p {
  margin: 0 0 10px;
  color: #4a6385;
  line-height: 1.62;
}

.pdf-tool-card.disabled {
  opacity: 0.78;
}

.pdf-tool-nav .pdf-tool-card:hover {
  border-color: #9dc9ff;
  box-shadow: 0 16px 28px rgba(23, 72, 141, 0.14);
  transform: translateY(-3px);
}

.pdf-tool-panel {
  margin-top: 12px;
  border: 1px solid #d8e4f9;
  border-radius: 16px;
  background: linear-gradient(160deg, #ffffff, #f7fbff);
  padding: 14px;
  display: none;
}

.pdf-tool-panel.active {
  display: block;
}

.pdf-split-workbench {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 12px;
  align-items: start;
}

.pdf-split-left {
  display: grid;
  gap: 10px;
}

.pdf-split-right {
  position: sticky;
  top: 86px;
  border: 1px solid #d5e5fa;
  border-radius: 14px;
  background: #f9fcff;
  padding: 10px;
  max-height: calc(100vh - 120px);
  overflow: auto;
  display: grid;
  gap: 8px;
}

.pdf-preview-frame {
  width: 100%;
  height: min(72vh, 860px);
  border: 1px solid #d6e3f8;
  border-radius: 12px;
  background: #fff;
}

.pdf-edit-shell {
  display: grid;
  gap: 10px;
}

.pdf-edit-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px;
  border: 1px solid #d7e5fb;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #f6fbff);
}

.pdf-edit-drop {
  min-width: 220px;
  padding: 8px 10px;
}

.pdf-edit-main {
  display: grid;
  grid-template-columns: 170px 1fr 250px;
  gap: 10px;
}

.pdf-edit-sidebar,
.pdf-edit-props {
  border: 1px solid #d8e5fa;
  border-radius: 12px;
  background: #fbfdff;
  padding: 10px;
  display: grid;
  gap: 8px;
  align-content: start;
}

.pdf-edit-side-title {
  font-weight: 700;
  color: #234263;
  font-size: 0.95rem;
}

.pdf-edit-page-list {
  display: grid;
  gap: 6px;
  max-height: 68vh;
  overflow: auto;
}

.pdf-edit-page-item {
  border: 1px solid #d7e4f8;
  background: #fff;
  border-radius: 8px;
  padding: 8px;
  text-align: left;
  cursor: pointer;
  color: #284466;
}

.pdf-edit-page-item.active {
  border-color: #7eb5ff;
  background: #ecf5ff;
}

.pdf-edit-canvas {
  border: 1px solid #d8e5fa;
  border-radius: 12px;
  background: #f8fbff;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.pdf-edit-stage {
  border: 1px dashed #c8daff;
  border-radius: 12px;
  background: linear-gradient(180deg, #fefefe, #f4f8ff);
  min-height: 520px;
  max-height: 72vh;
  overflow: auto;
  padding: 12px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.pdf-edit-preview-canvas {
  position: relative;
  line-height: 0;
}

.pdf-edit-preview-canvas img {
  max-width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 10px 28px rgba(17, 35, 69, 0.18);
  border-radius: 2px;
}

.pdf-edit-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.pdf-edit-el-box {
  position: absolute;
  border: 1.5px dashed rgba(37, 108, 255, 0.8);
  background: rgba(42, 118, 255, 0.08);
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.12s ease, border-color 0.12s ease, background-color 0.12s ease;
}

.pdf-edit-el-box:hover {
  border-color: rgba(0, 92, 255, 0.98);
  background: rgba(0, 92, 255, 0.14);
}

.pdf-edit-el-box.active {
  border: 2px solid #ff7d2f;
  background: rgba(255, 125, 47, 0.15);
}

.pdf-edit-erase-draft {
  position: absolute;
  border: 2px dashed rgba(225, 35, 35, 0.92);
  background: rgba(225, 35, 35, 0.12);
  pointer-events: none;
}

#page-pdf-tools .panel {
  min-height: calc(100vh - 150px);
}

#page-pdf-tools .panel-head {
  text-align: center;
}

#page-pdf-tools .panel-head h2 {
  font-family: "Sora", "Noto Sans SC", sans-serif;
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #163a66;
}

#page-pdf-tools .panel-head p {
  font-family: "Noto Sans SC", "Manrope", sans-serif;
  font-size: 1rem;
  color: #4a6588;
}

#page-pdf-tools .panel-body {
  min-height: clamp(480px, 68vh, 760px);
  display: grid;
  align-content: center;
  justify-items: center;
}

#page-pdf-tools .pdf-tool-nav {
  width: min(920px, 100%);
  gap: 14px;
}

#page-pdf-tools .pdf-tool-nav .pdf-tool-card {
  min-height: 150px;
  display: grid;
  align-content: center;
}

@media (max-width: 860px) {
  .pdf-tool-grid {
    grid-template-columns: 1fr;
  }
  #page-pdf-tools .panel-body {
    min-height: auto;
    align-content: start;
  }
  .pdf-split-workbench {
    grid-template-columns: 1fr;
  }
  .pdf-edit-main {
    grid-template-columns: 1fr;
  }
  .pdf-split-right {
    position: static;
    max-height: none;
  }
}

.panel-head {
  padding: 20px 24px 8px;
}

.panel-head h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2.4vw, 1.95rem);
}

.panel-head p {
  margin: 8px 0 0;
  color: var(--muted);
}

.panel-body {
  padding: 20px 24px 24px;
  display: grid;
  gap: 14px;
}

.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.auth-intro,
.auth-form,
.pricing-header,
.payment-box {
  padding: 18px;
}

.auth-intro h2,
.pricing-header h2 { margin: 0 0 10px 0; }
.auth-intro p,
.pricing-header p { margin: 0; color: var(--muted); }

.auth-intro ul {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.auth-switch {
  display: inline-flex;
  background: #edf3ff;
  border: 1px solid #d2def6;
  border-radius: 11px;
  padding: 4px;
  margin-bottom: 8px;
}

.mini-tab {
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 8px 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.mini-tab.active {
  color: #143355;
  background: #fff;
}

.upload-grid,
.options-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.upload-grid.single { grid-template-columns: 1fr; }

label {
  display: grid;
  gap: 6px;
  color: #2c3f60;
  font-size: .93rem;
}

.password-input-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.password-eye-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid #d2def6;
  background: #f5f9ff;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.password-eye-btn:hover {
  background: #eaf2ff;
}

.password-rule-hint {
  margin-top: 2px;
}

.hint {
  margin: -2px 0 0;
  color: #5d6d88;
  font-size: 0.86rem;
  line-height: 1.45;
}

.dropzone {
  border: 1.5px dashed #9fc4ef;
  background: linear-gradient(160deg, #f7fbff, #edf6ff);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  color: #2d4c77;
  transition: all .2s ease;
}

.dropzone.dragover {
  border-color: #1f92ff;
  box-shadow: 0 0 0 4px rgba(31, 146, 255, 0.12);
  transform: translateY(-1px);
}

.dropzone p {
  margin: 0 0 6px;
  font-weight: 600;
}

.dropzone small {
  color: #5e7596;
}

.preview-toolbar {
  display: grid;
  gap: 10px;
}

.preview-slides {
  display: grid;
  gap: 10px;
}

.question-workbench {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
  align-items: start;
}

.doc-ppt-workbench {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
  align-items: start;
}

.doc-ppt-left {
  display: grid;
  gap: 12px;
}

.doc-param-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  border: 1px solid #d8e7fb;
  border-radius: 14px;
  padding: 10px;
  background: linear-gradient(150deg, #ffffff, #f4f9ff);
}

.doc-param-grid small {
  color: #4d6b96;
  font-weight: 700;
}

.chat-box {
  border: 1px solid #d4e3f7;
  border-radius: 16px;
  background: linear-gradient(180deg, #f7fbff, #f2f7ff);
  padding: 12px;
  display: grid;
  gap: 8px;
  max-height: 420px;
  overflow: auto;
}

.chat-msg {
  padding: 12px 14px;
  border-radius: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  box-shadow: 0 6px 18px rgba(20, 49, 91, 0.06);
}

.chat-msg.user {
  justify-self: end;
  background: linear-gradient(130deg, #eaf3ff, #def4ff);
  border: 1px solid #cfe2fc;
  max-width: 88%;
}

.chat-msg.assistant {
  justify-self: start;
  background: #ffffff;
  border: 1px solid #d9e7fb;
  max-width: 94%;
}

.chat-msg .chat-actions {
  margin-top: 8px;
}

.chat-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.doc-ppt-right {
  position: sticky;
  top: 86px;
  border: 1px solid #d5e5fa;
  border-radius: 14px;
  background: #f9fcff;
  padding: 12px;
  max-height: calc(100vh - 110px);
  overflow: auto;
}

.doc-slide-card {
  border: 1px solid #d7e5fa;
  border-radius: 14px;
  background: #fff;
  padding: 12px;
}

.doc-preview-img {
  width: 100%;
  border: 1px solid #d7e5fa;
  border-radius: 12px;
  background: #fff;
}

.doc-slide-card h4 {
  margin: 0 0 6px;
  font-size: 1.02rem;
}

.doc-slide-card .meta {
  color: #54709a;
  font-size: .86rem;
  margin-bottom: 6px;
}

.question-left {
  display: grid;
  gap: 12px;
}

.question-right {
  position: sticky;
  top: 86px;
  border: 1px solid #d5e5fa;
  border-radius: 14px;
  background: #f9fcff;
  padding: 12px;
  max-height: calc(100vh - 110px);
  overflow: auto;
}

.preview-status-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.preview-wait-tip {
  margin-bottom: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #cfe2ff;
  background: linear-gradient(145deg, #eef5ff, #f6fbff);
  color: #2b4f83;
  font-size: 0.88rem;
  line-height: 1.45;
}

.preview-circle {
  width: 56px;
  height: 56px;
  position: relative;
  display: none;
}

.preview-circle svg {
  width: 56px;
  height: 56px;
  transform: rotate(-90deg);
}

.preview-circle .track {
  fill: none;
  stroke: #d7e7ff;
  stroke-width: 9;
}

.preview-circle .bar {
  fill: none;
  stroke: #0f91ff;
  stroke-width: 9;
  stroke-linecap: round;
  stroke-dasharray: 264;
  stroke-dashoffset: 264;
  transition: stroke-dashoffset .25s ease;
}

.preview-circle span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #245a92;
}

.preview-circle.active {
  display: block;
}

#btnRefreshCropLocal {
  margin-top: 10px;
  width: 100%;
}

.preview-card {
  border: 1px solid #d5e5fa;
  background: #fff;
  border-radius: 14px;
  padding: 12px;
}

.preview-card h4 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: #1a3d6a;
}

.preview-card pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  color: #304f7b;
  font-family: "Noto Sans SC", sans-serif;
}

.preview-card img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #d6e3f8;
  background: #fff;
  margin-bottom: 8px;
}

.crop-editor {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #d6e3f8;
  background: #fff;
  margin-bottom: 8px;
}

.crop-editor img {
  display: block;
  width: 100%;
  margin: 0;
  border: 0;
  cursor: zoom-in;
}

.crop-mask {
  position: absolute;
  left: 0;
  right: 0;
  background: rgba(11, 60, 132, 0.28);
  pointer-events: none;
}

.crop-mask.top { top: 0; }
.crop-mask.bottom { bottom: 0; }

.crop-handle {
  position: absolute;
  left: 0;
  right: 0;
  height: 0;
  border-top: 2px solid #14a2ff;
  cursor: ns-resize;
  z-index: 5;
}

.crop-handle.top { top: 0; }
.crop-handle.bottom { bottom: 0; }

.crop-hint {
  color: #4c6692;
  font-size: 0.84rem;
  margin-top: -2px;
  margin-bottom: 6px;
}

.img-zoom-modal {
  position: fixed;
  inset: 0;
  background: rgba(9, 18, 35, 0.72);
  backdrop-filter: blur(2px);
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.img-zoom-modal.active {
  display: flex;
}

.img-zoom-dialog {
  position: relative;
  width: min(96vw, 1400px);
  max-height: 92vh;
  padding: 10px;
  border: 1px solid rgba(193, 211, 240, 0.65);
  border-radius: 14px;
  background: #f8fbff;
  box-shadow: 0 24px 56px rgba(9, 23, 49, 0.35);
}

.img-zoom-img {
  display: block;
  width: 100%;
  max-height: calc(92vh - 36px);
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid #d6e3f8;
  background: #fff;
}

.img-zoom-close {
  position: absolute;
  right: 10px;
  top: 8px;
  width: 34px;
  height: 34px;
  border: 1px solid #d0ddf4;
  border-radius: 999px;
  background: #fff;
  color: #274366;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.preview-answer {
  margin-top: 8px !important;
  border-top: 1px dashed #cfe0f7;
  padding-top: 8px;
  color: #21456f !important;
  font-weight: 600;
}

.word-preview {
  background: #fff;
  border: 1px solid #d9e3f3;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(18, 45, 90, 0.1);
  padding: 22px 26px;
}

.word-h1 {
  margin: 0 0 14px;
  text-align: center;
  font-family: "Noto Sans SC", sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #10243f;
}

.word-h2 {
  margin: 16px 0 8px;
  font-family: "Noto Sans SC", sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #112a4d;
}

.word-h3 {
  margin: 12px 0 6px;
  font-family: "Noto Sans SC", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #1e3b66;
}

.word-p {
  margin: 0 0 8px;
  text-indent: 2em;
  line-height: 1.75;
  color: #2b4366;
  font-family: "Noto Sans SC", sans-serif;
  font-size: 15px;
  white-space: pre-wrap;
  word-break: break-word;
}

.word-empty {
  margin: 0;
  height: 6px;
}

.answer-toggle {
  margin-top: 10px;
  width: fit-content;
}

input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  font: inherit;
  background: #fff;
}

textarea { min-height: 88px; resize: vertical; }

.options-grid.fancy {
  background: linear-gradient(165deg, #ffffff, #f8fbff);
  border: 1px solid #dce8fb;
  border-radius: 16px;
  padding: 14px;
}

.range-card {
  border: 1px solid #d6e5fb;
  border-radius: 12px;
  padding: 10px;
  background: #fff;
}

.range-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: .9rem;
}

.value-pill {
  background: linear-gradient(135deg, #e6f3ff, #e5fff6);
  border: 1px solid #bde7d6;
  border-radius: 999px;
  font-weight: 700;
  padding: 2px 8px;
}

input[type="range"] {
  accent-color: #0f91ff;
  padding: 0;
}

.toggle-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.question-switch-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

.switch-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: linear-gradient(160deg, #ffffff, #f7fbff);
  border: 1px solid #d7e3f7;
  border-radius: 12px;
  padding: 10px 12px;
  min-height: 48px;
}

.switch-title {
  font-size: .92rem;
  color: #234266;
  font-weight: 600;
}

.switch-chip input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #0f91ff;
}

.switch-chip.select-chip select {
  width: 100%;
  max-width: 180px;
  border: 1px solid #d6e1f4;
  border-radius: 10px;
  padding: 6px 10px;
  background: #fff;
  font-size: .9rem;
}

.inline-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #d8e4f9;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: .92rem;
}

.inline-field select {
  border: 1px solid #d6e1f4;
  border-radius: 999px;
  padding: 5px 10px;
  background: #f8fbff;
}

.manual-crop-panel {
  border: 1px solid #d6e1f4;
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 10px;
}

.manual-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.manual-info {
  font-size: .88rem;
  color: #36547f;
}

.manual-canvas {
  position: relative;
  width: 100%;
  height: min(72vh, 760px);
  min-height: 360px;
  border: 1px dashed #b7cbea;
  border-radius: 10px;
  overflow: hidden;
  background-color: #f7fbff;
  margin-bottom: 8px;
}

.manual-canvas .manual-page-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  user-select: none;
  pointer-events: none;
}

.manual-box {
  position: absolute;
  border: 2px solid #0f91ff;
  background: rgba(15, 145, 255, 0.12);
  border-radius: 6px;
}

.manual-box.draft {
  border-style: dashed;
}

.guide-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 36, 0.45);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 120;
  padding: 16px;
}

.guide-modal.active {
  display: flex;
}

.guide-dialog {
  width: min(680px, 96vw);
  background: #fff;
  border: 1px solid #d5e2f6;
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(10, 36, 72, 0.22);
  padding: 18px 18px 14px;
}

.guide-dialog h3 {
  margin: 0 0 8px 0;
  font-size: 1.15rem;
}

.guide-dialog ul {
  margin: 0;
  padding-left: 18px;
  color: #2f4668;
  line-height: 1.7;
}

.guide-actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 900px) {
  .manual-canvas {
    height: min(62vh, 560px);
    min-height: 300px;
  }
  .question-switch-row {
    grid-template-columns: 1fr;
  }
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #d8e4f9;
  border-radius: 999px;
  padding: 7px 11px;
}

.options-grid .wide { grid-column: span 2; }

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

.price-card {
  border: 1px solid #d7e3f8;
  border-radius: 20px;
  padding: 18px;
  background: linear-gradient(165deg, #ffffff, #f6fbff);
}

.price-card.featured {
  border-color: #94d8ff;
  box-shadow: 0 16px 30px rgba(13, 67, 120, .16);
  transform: translateY(-3px);
}

.plan-tag {
  display: inline-block;
  font-size: .78rem;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef4ff;
  color: #2f4d83;
  border: 1px solid #d4def5;
}

.plan-tag.hot {
  background: linear-gradient(140deg, #d8f2ff, #d8fff3);
  color: #105577;
  border-color: #a9e8ff;
}

.price-card h3 { margin: 12px 0 6px 0; }

.plan-price {
  margin: 0 0 10px 0;
  font-size: 1.7rem;
  font-weight: 800;
}

.plan-price span {
  font-size: .95rem;
  font-weight: 600;
  color: var(--muted);
}

.price-card ul {
  margin: 0 0 16px 0;
  padding-left: 18px;
  color: var(--muted);
}

.pay-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.pay-row label {
  display: flex;
  align-items: center;
  gap: 7px;
}

.billing-qrcode-wrap {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 14px;
  align-items: center;
  border: 1px solid #dbe7f8;
  border-radius: 14px;
  padding: 12px;
  background: linear-gradient(160deg, #ffffff, #f8fcff);
}

.billing-qrcode {
  width: 280px;
  height: 280px;
  object-fit: contain;
  border: 1px solid #d9e5f7;
  border-radius: 12px;
  background: #fff;
}

.billing-qr-note p {
  margin: 0 0 7px;
  color: #31517a;
  line-height: 1.55;
}

.billing-qr-note p:last-child {
  margin-bottom: 0;
}

.billing-qr-dialog {
  width: min(860px, 96vw);
}

.account-orders-card {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid #d8e6fb;
  border-radius: 16px;
  background: linear-gradient(160deg, #ffffff 0%, #f6fbff 100%);
}

.account-orders-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.account-orders-head h4 {
  margin: 0;
  font-size: 1rem;
  color: #16385f;
}

.account-orders-table-wrap {
  overflow: auto;
  margin-top: 8px;
  border: 1px solid #dbe7f8;
  border-radius: 12px;
  background: #fff;
}

.account-orders-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}

.account-orders-table thead th {
  background: #f3f8ff;
  color: #32557f;
  font-weight: 700;
  font-size: 0.88rem;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #dbe7f8;
}

.account-orders-table tbody td {
  padding: 11px 12px;
  border-bottom: 1px solid #edf3fd;
  font-size: 0.9rem;
  color: #234263;
  vertical-align: middle;
}

.account-orders-table tbody tr:last-child td {
  border-bottom: 0;
}

.account-orders-table tbody tr:hover td {
  background: #f9fcff;
}

.account-orders-empty {
  text-align: center;
  color: #6b7f9d;
  padding: 18px 12px;
}

.account-orders-table .mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #1f456f;
}

.account-orders-table .time {
  color: #4c6688;
}

.account-orders-table .amount {
  font-weight: 800;
  color: #0d4f8e;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid #d8e3f5;
  background: #f5f8ff;
  color: #35557f;
  font-size: 0.82rem;
  font-weight: 700;
}

.pill.pending {
  background: #fff5df;
  border-color: #ffd891;
  color: #8a5700;
}

.pill.paid {
  background: #e7fbef;
  border-color: #9de4b7;
  color: #0e6b32;
}

.pill.failed {
  background: #ffecef;
  border-color: #ffb7c2;
  color: #8e1f33;
}

.btn {
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, filter .2s ease;
}

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

.btn.solid {
  color: #fff;
  background: linear-gradient(130deg, #0f91ff 0%, #1bcbb8 70%, #48e2b4 100%);
}

.btn.solid:hover { filter: brightness(.96); }

.btn.ghost {
  color: #234165;
  background: rgba(255,255,255,.9);
  border: 1px solid #d3dff2;
}

.status {
  padding: 11px 12px;
  border-radius: 12px;
  font-size: .92rem;
}
.status.ok { background: var(--ok-bg); color: var(--ok-text); }
.status.err { background: var(--err-bg); color: var(--err-text); }
.status.info { background: var(--info-bg); color: var(--info-text); }

.result {
  font-size: .95rem;
  color: #2d466e;
}

.result a {
  color: #0d6cd8;
  font-weight: 700;
}

.progress-wrap {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #e8f1ff;
  border: 1px solid #cfe0fb;
  overflow: hidden;
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #0f91ff, #24d2bc);
  transition: width .35s ease;
}

.site-footer {
  margin: 28px 0 18px;
}

.footer-inner {
  text-align: center;
  color: #5e738f;
  font-size: 0.86rem;
  line-height: 1.7;
}

.footer-line {
  margin: 2px 0;
}

.footer-line a {
  color: #4b6588;
  text-decoration: none;
}

.footer-line a:hover {
  color: #21446d;
  text-decoration: underline;
}

.footer-police-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  vertical-align: middle;
}

.footer-police-link img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.footer-police-link span {
  line-height: 1.2;
}

.footer-sep {
  margin: 0 8px;
  color: #9bb0c9;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(14px) translateX(-6px); }
}

@media (max-width: 1060px) {
  .nav {
    min-height: auto;
    flex-wrap: wrap;
    row-gap: 8px;
    padding: 8px 0;
  }
  .brand-wrap { order: 1; }
  .header-actions { order: 2; margin-left: auto; }
  .top-nav {
    order: 3;
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
  .nav-link {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  .pricing-grid { grid-template-columns: 1fr; }
  .slide { flex-basis: 82%; }
}

@media (max-width: 820px) {
  .auth-layout,
  .feature-grid,
  .upload-grid,
  .options-grid,
  .doc-param-grid {
    grid-template-columns: 1fr;
  }

  .question-workbench {
    grid-template-columns: 1fr;
  }

  .doc-ppt-workbench {
    grid-template-columns: 1fr;
  }

  .question-right {
    position: static;
    max-height: none;
  }

  .doc-ppt-right {
    position: static;
    max-height: none;
  }

  .options-grid .wide { grid-column: span 1; }
  .slide { flex-basis: 90%; }
  .feature-card h3 { font-size: 1.25rem; }
  .feature-card p { font-size: .96rem; }
  .account-orders-table { min-width: 620px; }
  .billing-qrcode-wrap { grid-template-columns: 1fr; }
  .billing-qrcode { width: min(320px, 100%); height: auto; margin: 0 auto; }
}
