:root {
  --bg: #f3f6f8;
  --surface: #ffffff;
  --surface-2: #f7fafc;
  --text: #16202a;
  --muted: #637181;
  --line: #d7e0e8;
  --blue: #2563eb;
  --green: #0f766e;
  --red: #b42318;
  --amber: #b7791f;
  --shadow: 0 16px 36px rgba(31, 41, 55, 0.08);
  --soft-shadow: 0 10px 24px rgba(31, 41, 55, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  overflow-x: hidden;
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

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

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 9px;
  background: #111827;
  color: #fff;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.nav a {
  padding: 8px 11px;
  border-radius: 8px;
  color: var(--muted);
}

.nav a.active,
.nav a:hover {
  background: #e8eef7;
  color: var(--text);
}

main {
  padding: 26px;
}

.page {
  display: none;
}

.page.active {
  display: block;
}

.workspace {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
}

.side-panel,
.content-panel,
.page-header,
.guide-card,
.service-grid article,
.trust-box,
.project-card,
.collection-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.side-panel {
  position: sticky;
  top: 86px;
  align-self: start;
  padding: 22px;
  box-shadow: var(--soft-shadow);
}

.avatar {
  display: grid;
  width: 62px;
  height: 62px;
  margin-bottom: 14px;
  place-items: center;
  border-radius: 10px;
  background: #0f766e;
  color: #fff;
  font-size: 28px;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: 28px;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 8px;
  font-size: 20px;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 17px;
}

p {
  color: var(--muted);
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.quick-links {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.quick-links button,
.ghost,
.search-row button,
.project-actions a,
.drawer-close {
  border: 0;
  border-radius: 7px;
  background: #111827;
  color: #fff;
  padding: 10px 14px;
}

.content-panel {
  min-width: 0;
  padding: 24px;
  box-shadow: var(--soft-shadow);
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
  border: 1px solid #cfe0ff;
  border-radius: 8px;
  background: #f8fbff;
  padding: 24px;
}

.home-hero span {
  display: inline-block;
  margin-bottom: 8px;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 800;
}

.home-hero h1 {
  max-width: 820px;
  margin-bottom: 10px;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.2;
}

.home-hero p {
  max-width: 840px;
  margin-bottom: 0;
}

.hero-checklist {
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}

.hero-checklist strong {
  display: block;
  margin-bottom: 10px;
  font-size: 17px;
}

.hero-checklist ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: #344054;
}

.search-shell {
  padding: 18px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.search-shell label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
}

.search-row {
  display: flex;
  gap: 10px;
}

.search-row input,
.filters input,
.filters select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #fff;
  padding: 0 12px;
  color: var(--text);
}

.stats-grid,
.direction-grid,
.project-grid,
.collection-grid,
.guide-layout,
.service-grid {
  display: grid;
  gap: 14px;
}

.stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin: 16px 0 24px;
}

.stats-grid article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.stats-grid strong {
  display: block;
  margin-bottom: 6px;
  font-size: 22px;
}

.stats-grid span {
  color: var(--muted);
}

.section-head,
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.page-header {
  padding: 22px;
}

.direction-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin-bottom: 28px;
}

.direction-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.direction-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 19px;
}

.direction-card span {
  color: var(--muted);
}

.project-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.project-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.project-card {
  overflow: hidden;
}

.project-cover {
  display: grid;
  height: 160px;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #132433, #0f766e);
  color: #fff;
  font-weight: 700;
}

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

.project-card-body {
  padding: 16px;
}

.project-card.multi-version .project-cover {
  height: auto;
  aspect-ratio: 1 / 1;
  background: #fff;
}

.project-card.multi-version .project-cover img {
  object-fit: contain;
}

.project-card.multi-version h3 {
  font-size: 19px;
  line-height: 1.48;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
}

.tag {
  padding: 4px 8px;
  border-radius: 999px;
  background: #edf2f7;
  color: #344054;
  font-size: 12px;
}

.tag.hot {
  background: #fff4e5;
  color: var(--amber);
}

.tag.tier-flagship {
  background: #fee2e2;
  color: #b91c1c;
  font-weight: 900;
}

.tag.tier-hot-sale {
  background: #fef3c7;
  color: #92400e;
  font-weight: 900;
}

.tag.tier-regular {
  background: #e5e7eb;
  color: #374151;
  font-weight: 900;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.project-actions button,
.project-actions a {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  padding: 8px 10px;
}

.project-actions a.primary,
.project-actions button.primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.project-actions .preview-jump {
  border-color: #15a38a;
  background: #ecfdf7;
  color: #047866;
  font-weight: 700;
}

.project-actions .guide-action {
  border-color: #3370ff;
  background: #eef4ff;
  color: #1d4ed8;
  font-weight: 900;
}

.filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(4, minmax(120px, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.collection-grid,
.guide-layout,
.service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.collection-card,
.guide-card,
.service-grid article {
  padding: 18px;
}

.home-feedback-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
  border: 1px solid #99d8ca;
  border-radius: 8px;
  background: #f0fdfa;
  padding: 18px;
}

.home-feedback-card h2,
.home-feedback-card p {
  margin-bottom: 4px;
}

.course-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(240px, 0.7fr));
  gap: 16px;
}

.course-card,
.feedback-form,
.feedback-help,
.empty-state {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.course-card {
  padding: 20px;
}

.featured-course {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  grid-row: span 2;
  border-color: #cfe0ff;
  background: #f8fbff;
}

.featured-course > div:first-child {
  min-width: 0;
}

.featured-course span:first-child {
  display: inline-block;
  margin-bottom: 8px;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 800;
}

.course-actions {
  display: flex;
  flex: 0 0 170px;
  flex-direction: column;
  gap: 10px;
  justify-content: flex-start;
}

.course-actions a {
  display: inline-flex;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  padding: 10px 12px;
  font-weight: 700;
}

.course-actions a.primary {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.course-status {
  display: inline-block;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
}

.feedback-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 16px;
}

.feedback-form,
.feedback-help {
  padding: 20px;
}

.feedback-form {
  display: grid;
  gap: 14px;
}

.feedback-form label {
  display: grid;
  gap: 7px;
  color: #344054;
  font-weight: 700;
}

.feedback-form input,
.feedback-form select,
.feedback-form textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  padding: 11px 12px;
}

.feedback-form textarea {
  resize: vertical;
  line-height: 1.7;
}

.feedback-form button {
  width: fit-content;
  border: 0;
  border-radius: 7px;
  background: #111827;
  color: #fff;
  padding: 11px 16px;
}

.feedback-result {
  margin: 0;
  color: var(--green);
  font-weight: 700;
}

.feedback-help ul {
  margin: 0 0 12px;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 24px;
}

.collection-card ul,
.guide-card ol {
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}

.setup-guide {
  display: grid;
  gap: 16px;
}

.setup-advice-card {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
  gap: 18px;
  border: 1px solid #f4c95d;
  border-radius: 8px;
  background: #fffdf5;
  box-shadow: var(--shadow);
  padding: 22px;
}

.setup-advice-card > div:first-child > span,
.setup-os-label {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 8px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  padding: 5px 9px;
  font-size: 13px;
  font-weight: 900;
}

.setup-advice-card h2,
.setup-advice-card p,
.setup-paid-service p {
  margin-bottom: 8px;
}

.setup-advice-card p {
  color: var(--muted);
  line-height: 1.85;
}

.setup-paid-service {
  border: 1px solid #fed7aa;
  border-radius: 8px;
  background: #fff7ed;
  padding: 16px;
}

.setup-paid-service > strong {
  display: block;
  margin-bottom: 7px;
  color: #9a3412;
  font-size: 18px;
}

.setup-paid-service > span {
  display: block;
  color: #c2410c;
  font-weight: 800;
  line-height: 1.6;
}

.setup-intro-card,
.setup-resource-card,
.setup-flow-card,
.setup-support-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 22px;
}

.setup-intro-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.setup-intro-card span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.setup-intro-card h2,
.setup-intro-card p,
.setup-flow-card h2,
.setup-flow-card p,
.setup-support-card h2,
.setup-support-card p {
  margin-bottom: 8px;
}

.setup-video-first {
  margin-top: 14px;
  border: 1px solid #bfd0ff;
  border-radius: 8px;
  background: #edf3ff;
  padding: 14px;
}

.setup-video-first strong {
  display: block;
  margin-bottom: 6px;
  color: #1f4ed8;
  font-size: 18px;
}

.setup-video-first p {
  color: var(--muted);
}

.setup-video-first a,
.setup-pending-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  border-radius: 7px;
  background: var(--blue);
  color: #fff;
  padding: 10px 14px;
  font-weight: 800;
}

.setup-pending-link {
  cursor: default;
  background: #64748b;
}

.setup-link-group {
  display: grid;
  flex: 0 0 220px;
  gap: 10px;
}

.setup-link-group a,
.setup-pending-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  padding: 10px 12px;
  font-weight: 800;
}

.setup-link-group a.primary,
.setup-pending-button.primary {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.setup-pending-button {
  cursor: default;
  opacity: 0.82;
}

.setup-os-label.mac {
  background: #e0f2fe;
  color: #075985;
}

.video-entry-highlight {
  outline: 4px solid rgba(37, 99, 235, 0.22);
  box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.12);
}

.setup-resource-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.setup-resource-grid > div {
  display: grid;
  align-content: start;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 14px;
}

.setup-resource-grid strong {
  color: var(--text);
  font-size: 16px;
}

.setup-resource-grid p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.setup-resource-grid a {
  width: fit-content;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  padding: 7px 10px;
  font-weight: 800;
}

.setup-resource-grid span {
  color: #b45309;
  font-weight: 800;
}

.setup-timeline {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  counter-reset: setup-step;
}

.setup-timeline li {
  position: relative;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 18px 18px 18px 64px;
}

.setup-timeline li::before {
  position: absolute;
  top: 18px;
  left: 18px;
  counter-increment: setup-step;
  content: counter(setup-step, decimal-leading-zero);
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 7px;
  background: #111827;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.setup-timeline strong,
.setup-editor-grid h3 {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 18px;
}

.setup-timeline p,
.setup-editor-grid p,
.setup-support-card p {
  color: var(--muted);
  line-height: 1.8;
}

.setup-timeline code,
.setup-editor-grid code {
  border-radius: 5px;
  background: #eaf1fb;
  color: #0f3f7a;
  padding: 2px 6px;
}

.setup-result {
  margin-top: 10px;
  border-left: 3px solid #10b981;
  border-radius: 6px;
  background: #ecfdf5;
  color: #065f46;
  padding: 9px 12px;
  line-height: 1.7;
}

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

.setup-editor-grid > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 16px;
}

.setup-support-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-color: #bfdbfe;
  background: #f8fbff;
}

.setup-support-list {
  display: flex;
  flex: 0 0 420px;
  flex-wrap: wrap;
  gap: 8px;
}

.setup-support-list span {
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  padding: 8px 10px;
  font-weight: 800;
}

.module-cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  border: 1px solid #22c55e;
  border-radius: 7px;
  background: #ecfdf5;
  color: #047857;
  padding: 11px 14px;
  font-weight: 900;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
}

.about-layout > div {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.trust-box a,
.trust-box span {
  display: block;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.detail-drawer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.42);
}

.detail-drawer.open {
  display: block;
}

.drawer-panel {
  width: clamp(860px, 70vw, 1180px);
  max-width: 100%;
  height: 100%;
  margin-left: auto;
  overflow-y: auto;
  overflow-x: hidden;
  background: #fff;
  padding: 24px clamp(24px, 3vw, 48px);
}

.drawer-close {
  position: sticky;
  top: 0;
  float: right;
}

.detail-hero {
  min-width: 0;
  max-width: 100%;
  margin-bottom: 20px;
}

.detail-hero.multi-version h1 {
  max-width: 980px;
  font-size: clamp(27px, 3.5vw, 42px);
  line-height: 1.25;
}

.detail-hero.multi-version > p {
  max-width: 900px;
  font-size: 16px;
  line-height: 1.75;
}

.detail-cover {
  width: 100%;
  max-height: 310px;
  margin: 14px 0;
  border-radius: 8px;
  object-fit: cover;
  background: #14202b;
}

.detail-gallery {
  min-width: 0;
  max-width: 100%;
  margin: 16px 0 14px;
}

.detail-gallery-main {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  aspect-ratio: 16 / 9;
}

.detail-hero.multi-version .detail-gallery-main {
  max-height: 760px;
  aspect-ratio: 1 / 1;
}

.detail-hero.multi-version .detail-gallery {
  width: min(760px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.multi-file-carousel-showcase {
  display: grid;
  gap: 14px;
}

.multi-file-carousel-showcase .module-image-carousel {
  margin: 0;
}

.multi-file-carousel-captions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.multi-file-carousel-captions span {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.multi-file-carousel-captions strong {
  display: grid;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 4px;
  background: var(--green);
  color: #fff;
  font-size: 12px;
}

.detail-gallery-main img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  object-fit: contain;
  transition: opacity 0.35s ease;
}

.detail-gallery-main img.active {
  opacity: 1;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 38px;
  height: 44px;
  place-items: center;
  transform: translateY(-50%);
  border: 0;
  border-radius: 7px;
  background: rgba(17, 24, 39, 0.72);
  color: #fff;
  font-size: 30px;
  line-height: 1;
}

.gallery-arrow.prev {
  left: 12px;
}

.gallery-arrow.next {
  right: 12px;
}

.detail-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
  max-width: 100%;
  overflow-x: hidden;
}

.detail-gallery-thumbs button {
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 7px;
  background: #fff;
  padding: 0;
  aspect-ratio: 16 / 9;
}

.detail-gallery-thumbs button.active {
  border-color: var(--blue);
}

.detail-gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.module-image-carousel {
  display: grid;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  margin: 16px 0;
}

.module-carousel-main {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  aspect-ratio: 16 / 10;
  min-height: 430px;
}

.module-carousel-main img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  object-fit: contain;
  transition: opacity 0.35s ease;
}

.module-carousel-main img.active {
  opacity: 1;
}

.module-carousel-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  max-width: 100%;
  overflow-x: hidden;
}

.module-carousel-thumbs button {
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 7px;
  background: #fff;
  padding: 0;
  aspect-ratio: 16 / 9;
  cursor: pointer;
}

.module-carousel-thumbs button.active {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(66, 96, 235, 0.12);
}

.module-carousel-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

.detail-box {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.detail-box.wide {
  grid-column: 1 / -1;
  margin-bottom: 14px;
}

.detail-box ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}

.presale-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.presale-hero img {
  width: 100%;
  max-height: 300px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.presale-hero ul {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.85;
}

.product-intro-card {
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 24px;
}

.product-intro-card h2 {
  margin-bottom: 12px;
  text-align: center;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.28;
}

.product-intro-highlights {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
  text-align: center;
}

.product-intro-highlights p {
  margin: 0;
  color: #ef4444;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.6;
}

.product-intro-note {
  margin: 8px 0 18px;
  color: #111827;
  text-align: center;
  font-size: 17px;
  font-weight: 800;
}

.product-spec-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.product-spec-list p {
  margin: 0;
  color: #111827;
  font-size: 16px;
  line-height: 1.8;
}

.product-spec-list strong {
  color: #ef4444;
  font-weight: 900;
}

.product-spec-list span {
  color: #111827;
}

.product-price-line {
  margin: 18px 0 0;
  color: #ef4444;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.7;
}

.presale-modules {
  display: grid;
  gap: 18px;
}

.presale-module {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.service-assurance {
  border-color: #bcd3ff;
  background: linear-gradient(180deg, #ffffff 0%, #f5f8ff 100%);
}

.after-sale-panel {
  border: 1px solid #c8d9ff;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--soft-shadow);
  padding: 24px;
}

.after-sale-panel h3 {
  margin-bottom: 22px;
  color: #c99a43;
  font-size: clamp(30px, 5vw, 54px);
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
}

.service-assurance-list {
  display: grid;
  gap: 18px;
}

.service-assurance-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 18px;
  align-items: flex-start;
}

.service-assurance-icon {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 4px solid #d1a252;
  border-radius: 50%;
  color: #c99a43;
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
}

.service-assurance-card h4 {
  margin-bottom: 6px;
  color: #c99a43;
  font-size: 26px;
  font-weight: 900;
}

.service-assurance-card p {
  margin-bottom: 4px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.8;
}

.service-assurance-card strong {
  display: block;
  color: #dc2626;
  font-size: 16px;
  line-height: 1.8;
}

.comparison-panel {
  margin-top: 16px;
  border-radius: 8px;
  background: linear-gradient(180deg, #70a8ff 0%, #86b8ff 100%);
  padding: 22px;
}

.comparison-panel h3 {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 18px;
  border-radius: 999px;
  background: #ffe15b;
  color: #0f172a;
  padding: 13px 28px;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
}

.comparison-table {
  overflow: hidden;
  border: 1px solid #111827;
  border-radius: 3px;
  background: #fff;
}

.comparison-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) minmax(0, 1fr);
}

.comparison-row span {
  min-width: 0;
  border-right: 1px solid #111827;
  border-bottom: 1px solid #111827;
  padding: 12px 14px;
  color: var(--text);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.comparison-row span:last-child {
  border-right: 0;
}

.comparison-row:last-child span {
  border-bottom: 0;
}

.comparison-row span:first-child {
  display: grid;
  place-items: center;
  color: #111827;
  font-weight: 900;
  text-align: center;
}

.comparison-head span {
  color: #dc2626;
  font-weight: 900;
  text-align: center;
}

.comparison-row .official-cell {
  color: #166534;
  font-weight: 800;
}

.comparison-row .official-cell::before {
  content: "✓";
  display: inline-grid;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  place-items: center;
  border-radius: 4px;
  background: #22c55e;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.comparison-row .pirated-cell {
  color: #991b1b;
  font-weight: 800;
}

.comparison-row .pirated-cell::before {
  content: "×";
  display: inline-block;
  margin-right: 10px;
  color: #dc2626;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  vertical-align: -2px;
}

.module-head {
  margin-bottom: 14px;
}

.module-head h2 {
  margin-bottom: 6px;
}

.visual-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.visual-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.visual-card img {
  width: 100%;
  height: 250px;
  object-fit: contain;
  background: #f8fafc;
}

.visual-card div {
  padding: 14px;
}

.visual-card p {
  margin-bottom: 0;
}

.single-effect-preview {
  margin: 0;
}

.single-effect-preview img {
  width: 100%;
  max-height: 620px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.single-effect-preview figcaption {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.7;
}

.split-showcase {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(260px, 0.9fr);
  gap: 14px;
  align-items: start;
}

.vertical-file-showcase {
  display: grid;
  gap: 14px;
}

.vertical-file-showcase > img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.vertical-file-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.vertical-explain-showcase {
  display: grid;
  gap: 14px;
}

.vertical-explain-images {
  display: grid;
  gap: 14px;
}

.vertical-explain-images img {
  width: 100%;
  max-height: 620px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.split-image-stack {
  display: grid;
  gap: 12px;
}

.split-image-stack img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.split-list-grid {
  display: grid;
  gap: 12px;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.metric-strip div {
  padding: 14px;
  border-radius: 8px;
  background: #eef6ff;
  border: 1px solid #cfe0ff;
}

.metric-strip strong,
.metric-strip span {
  display: block;
}

.metric-strip strong {
  margin-bottom: 4px;
  font-size: 20px;
  color: var(--blue);
}

.metric-strip span {
  color: var(--muted);
}

.step-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
  padding: 0;
  counter-reset: step;
}

.step-flow li {
  position: relative;
  list-style: none;
  padding: 42px 12px 14px;
  min-height: 104px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
}

.step-flow li::before {
  position: absolute;
  top: 12px;
  left: 12px;
  counter-increment: step;
  content: counter(step);
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.mini-preview-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.mini-preview-row img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.file-preview-module {
  scroll-margin-top: 92px;
  border-color: #b7e3d8;
  background: linear-gradient(180deg, #f7fffc 0%, #ffffff 42%);
}

.file-preview {
  display: grid;
  grid-template-columns: minmax(230px, 0.34fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f172a;
}

.file-tree {
  min-height: 520px;
  border-right: 1px solid rgba(148, 163, 184, 0.24);
  background: #1f2937;
  color: #e5e7eb;
}

.file-tree-title {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.24);
  background: #111827;
  font-weight: 800;
}

.file-tree-body {
  max-height: 620px;
  overflow: auto;
  padding: 10px 8px 14px;
}

.tree-item {
  margin-left: calc(var(--depth) * 14px);
}

.tree-item.collapsed > .tree-children {
  display: none;
}

.file-node {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  width: 100%;
  margin-bottom: 3px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #e5e7eb;
  padding: 8px 9px;
  text-align: left;
}

.file-node:hover,
.file-node.active {
  background: #334155;
}

.file-node:hover {
  outline: 1px solid rgba(52, 211, 153, 0.2);
}

.file-node.active {
  box-shadow: inset 3px 0 0 #34d399;
}

.file-node span {
  display: inline-grid;
  width: 26px;
  height: 22px;
  place-items: center;
  border-radius: 5px;
  background: rgba(148, 163, 184, 0.18);
  color: #a7f3d0;
  font-size: 10px;
  font-weight: 800;
}

.file-node.folder span {
  color: #fde68a;
}

.tree-item.has-children > .file-node.folder span {
  transform: rotate(90deg);
}

.tree-item.has-children.collapsed > .file-node.folder span {
  transform: rotate(0deg);
}

.file-node strong {
  overflow: hidden;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-preview-panel {
  min-height: 520px;
  background: #f8fafc;
}

.file-panel {
  display: none;
  padding: 22px;
}

.file-panel.active {
  display: block;
}

.file-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.file-panel-head h3 {
  margin: 8px 0 4px;
  font-size: 22px;
}

.file-panel-head p,
.file-desc {
  margin-bottom: 0;
  color: var(--muted);
}

.file-lines {
  flex: 0 0 auto;
  align-self: flex-start;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  padding: 6px 10px;
  font-weight: 700;
}

.file-badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 9px;
  background: #e5e7eb;
  color: #374151;
  font-size: 12px;
  font-weight: 800;
}

.file-badge.full {
  background: #dcfce7;
  color: #166534;
}

.file-badge.partial {
  background: #fef3c7;
  color: #92400e;
}

.file-badge.hidden {
  background: #fee2e2;
  color: #991b1b;
}

.file-badge.summary {
  background: #dbeafe;
  color: #1d4ed8;
}

.file-desc {
  margin: 0 0 14px;
  padding: 0 2px;
}

.file-user-card,
.code-empty-note {
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px 20px;
}

.file-panel.has-code .file-panel-head {
  margin-bottom: 10px;
  padding: 14px 18px;
}

.file-panel.has-code .file-panel-head h3 {
  font-size: 20px;
}

.file-panel.has-code .file-user-card {
  margin-bottom: 12px;
  padding: 14px 18px;
}

.file-panel.has-code .file-user-card h4 {
  margin-bottom: 6px;
  font-size: 16px;
}

.file-panel.has-code .file-user-card p {
  margin-bottom: 8px;
}

.file-panel.has-code .file-user-card ul {
  gap: 5px 18px;
}

.file-user-card h4,
.code-empty-note h4,
.code-section-head h4 {
  margin: 0 0 10px;
  font-size: 18px;
}

.file-user-card p,
.code-empty-note p {
  margin-bottom: 10px;
  color: var(--muted);
}

.file-user-card ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  margin: 0;
  padding-left: 18px;
}

.file-user-card li {
  color: #344054;
}

.code-profile {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  border: 1px solid #cfe0ff;
  border-radius: 8px;
  background: #f8fbff;
  padding: 16px;
}

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

.code-profile-stats div {
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.code-profile-stats strong,
.code-profile-stats span {
  display: block;
}

.code-profile-stats strong {
  margin-bottom: 4px;
  color: #1d4ed8;
  font-size: 20px;
}

.code-profile-stats span {
  color: var(--muted);
  font-size: 13px;
}

.code-profile-section h4 {
  margin: 0 0 10px;
  font-size: 16px;
}

.module-pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.module-pill-grid span {
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 700;
}

.locked-block-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.locked-block-card {
  border: 1px solid #fed7aa;
  border-radius: 8px;
  background: #fff7ed;
  padding: 12px;
}

.locked-block-card strong,
.locked-block-card span {
  display: block;
}

.locked-block-card strong {
  margin-bottom: 5px;
  color: #9a3412;
}

.locked-block-card span {
  width: fit-content;
  margin-bottom: 8px;
  border-radius: 999px;
  background: #ffedd5;
  color: #9a3412;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 800;
}

.locked-block-card p {
  margin: 0;
  line-height: 1.6;
}

.folder-file-list {
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.folder-file-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  background: #f1f5f9;
  padding: 13px 16px;
}

.folder-file-list-head h4 {
  margin: 0;
  font-size: 17px;
}

.folder-file-list-head span {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
}

.folder-file-table {
  display: grid;
}

.folder-file-row {
  display: grid;
  grid-template-columns: minmax(190px, 0.8fr) minmax(100px, 0.32fr) minmax(0, 1.4fr);
  gap: 12px;
  align-items: start;
  padding: 12px 16px;
  border-bottom: 1px solid #e6edf4;
}

.folder-file-row:last-child {
  border-bottom: 0;
}

.folder-file-row strong {
  overflow-wrap: anywhere;
}

.folder-file-row span {
  width: fit-content;
  border-radius: 6px;
  background: #ecfdf7;
  color: #047866;
  padding: 4px 7px;
  font-size: 12px;
  font-weight: 800;
}

.folder-file-row p {
  margin: 0;
  line-height: 1.65;
}

.code-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 10px;
}

.code-section-head span {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #ecfdf7;
  color: #047866;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 800;
}

.code-preview {
  overflow: auto;
  margin: 0;
  border: 1px solid #1f2937;
  border-radius: 8px;
  background: #111827;
  color: #d1fae5;
  padding: 14px 0;
  min-height: 360px;
  max-height: 640px;
  line-height: 1.65;
  font-family: Consolas, "JetBrains Mono", "Courier New", monospace;
  font-size: 14px;
}

.code-line {
  display: grid;
  grid-template-columns: 56px minmax(720px, 1fr);
  min-height: 24px;
  padding-right: 18px;
}

.code-line:hover {
  background: rgba(148, 163, 184, 0.08);
}

.code-line.locked-line {
  background: rgba(251, 191, 36, 0.12);
  color: #fde68a;
}

.code-line.locked-line .line-text {
  color: #fde68a;
  font-weight: 700;
}

.line-number {
  user-select: none;
  border-right: 1px solid rgba(148, 163, 184, 0.18);
  color: #64748b;
  padding-right: 12px;
  text-align: right;
}

.line-text {
  display: block;
  white-space: pre;
  color: #d1fae5;
  padding-left: 16px;
}

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

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

.file-image-grid img {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.file-image-grid.single img {
  max-height: 640px;
}

.file-notice {
  margin-top: 14px;
  border-left: 4px solid #ef4444;
  border-radius: 7px;
  background: #fff1f2;
  color: #991b1b;
  padding: 12px 14px;
  font-weight: 700;
}

.file-preview-teaser {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-color: #99d8ca;
  background: linear-gradient(135deg, #f0fdfa 0%, #ffffff 58%);
}

.file-preview-teaser h2 {
  margin: 8px 0 6px;
}

.preview-large-link,
.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid #0f766e;
  border-radius: 8px;
  background: #0f766e;
  color: #fff;
  padding: 12px 16px;
  font-weight: 800;
}

.ghost-link {
  border-color: var(--line);
  background: #fff;
  color: var(--text);
}

.file-viewer-page.active {
  display: block;
}

.file-workbench {
  display: grid;
  gap: 14px;
}

.file-workbench-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border: 1px solid #243244;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  box-shadow: var(--shadow);
}

.file-workbench-top h1 {
  margin: 4px 0 8px;
  font-size: clamp(24px, 3vw, 38px);
}

.file-workbench-top p {
  max-width: 860px;
  margin: 0;
  color: #cbd5e1;
}

.file-kicker {
  color: #86efac;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.file-workbench-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.file-workbench-actions a {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 9px 12px;
}

.file-workbench-actions a.primary {
  border-color: #4f7cff;
  background: #4f7cff;
}

.editor-shell {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  min-height: calc(100vh - 210px);
  overflow: hidden;
  border: 1px solid #1f2937;
  border-radius: 8px;
  background: #0f172a;
  box-shadow: var(--shadow);
}

.editor-sidebar {
  min-height: 680px;
  border-right: 1px solid #334155;
  background: #1f2937;
  color: #e5e7eb;
}

.editor-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid #334155;
  background: #111827;
}

.editor-titlebar strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.editor-titlebar span {
  color: #9ca3af;
  font-size: 12px;
}

.editor-main {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  padding: 0;
  background: #f8fafc;
}

.editor-guidebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 14px 18px;
}

.editor-guidebar strong {
  font-size: 17px;
}

.editor-guidebar span {
  color: var(--muted);
  font-size: 14px;
}

.editor-preview {
  min-height: 0;
  overflow: auto;
}

.editor-preview .file-panel {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px;
}

.editor-preview .file-panel-head {
  position: sticky;
  top: 0;
  z-index: 2;
}

.inline-action {
  border: 0;
  border-radius: 7px;
  background: var(--blue);
  color: #fff;
  padding: 9px 12px;
}

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

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

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 12px 14px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
}

.faq-list p {
  margin: 10px 0 0;
}

.detail-tabs {
  position: sticky;
  top: 42px;
  z-index: 3;
  display: flex;
  gap: 8px;
  margin: 18px 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
}

.detail-tabs button {
  flex: 1;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  padding: 10px;
}

.detail-tabs button.active {
  background: #111827;
  color: #fff;
}

.detail-tab-panel {
  display: none;
  min-width: 0;
  max-width: 100%;
}

.detail-tab-panel.active {
  display: block;
}

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

.preview-grid img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.guide-sections {
  display: grid;
  gap: 14px;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

.doc-section {
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.usage-guide-head {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.usage-template-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.usage-template-grid div {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #d8e4f8;
  border-radius: 8px;
  background: #f8fbff;
  padding: 10px;
}

.usage-template-grid span {
  display: grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 7px;
  background: #111827;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.usage-template-grid strong {
  color: var(--text);
  font-size: 14px;
}

.doc-section-head {
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
  padding-bottom: 12px;
}

.doc-section-head h3 {
  margin-bottom: 6px;
  font-size: 22px;
}

.doc-section-head p {
  color: #1d4ed8;
  font-weight: 700;
}

.doc-section p {
  margin-bottom: 8px;
  color: var(--muted);
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.doc-bullet-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 14px 0;
}

.doc-bullet-grid > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 14px;
}

.doc-bullet-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 16px;
}

.doc-bullet-grid ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}

.doc-code {
  overflow-x: hidden;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  margin: 14px 0;
  border-radius: 8px;
  background: #111827;
  color: #dcfce7;
  padding: 16px;
  line-height: 1.7;
}

.doc-table-wrap {
  overflow-x: hidden;
  margin: 14px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.doc-table-wrap h4 {
  margin: 0;
  border-bottom: 1px solid var(--line);
  background: #f8fbff;
  color: var(--text);
  padding: 12px 14px;
  font-size: 17px;
}

.doc-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: collapse;
}

.doc-table th,
.doc-table td {
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 12px 14px;
  color: var(--muted);
  line-height: 1.7;
  text-align: left;
  vertical-align: top;
}

.doc-table th {
  background: #eef5ff;
  color: var(--text);
  font-weight: 900;
}

.doc-table th:first-child,
.doc-table td:first-child {
  width: 130px;
  color: #1d4ed8;
  font-weight: 900;
}

.doc-table th:nth-child(2),
.doc-table td:nth-child(2) {
  width: 170px;
  color: #0f766e;
  font-weight: 800;
}

.doc-table th:last-child,
.doc-table td:last-child {
  border-right: 0;
}

.doc-table tr:last-child td {
  border-bottom: 0;
}

.doc-image-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 14px 0 4px;
}

.doc-image-grid figure {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.doc-image-grid img {
  display: block;
  width: 100%;
  max-height: 620px;
  object-fit: contain;
  background: #fff;
}

.doc-image-grid figcaption {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 9px 12px;
  font-size: 14px;
}

.doc-note {
  border-left: 3px solid #f59e0b;
  border-radius: 6px;
  background: #fffbeb;
  color: #92400e !important;
  padding: 10px 12px;
}

.doc-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.doc-link-row a {
  border: 1px solid #22c55e;
  border-radius: 7px;
  background: #ecfdf5;
  color: #047857;
  padding: 10px 12px;
  font-weight: 900;
}

.report-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.price {
  display: inline-block;
  margin-top: 6px;
  color: var(--red);
  font-size: 18px;
}

.report-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.report-stat-grid div,
.report-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.report-stat-grid div {
  padding: 16px;
}

.report-stat-grid strong {
  display: block;
  color: var(--blue);
  font-size: 24px;
  line-height: 1.3;
}

.report-stat-grid span {
  color: var(--muted);
}

.report-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}

.report-card {
  padding: 18px;
}

.report-card.wide {
  margin-bottom: 14px;
}

.report-card h2 {
  margin-bottom: 12px;
}

.report-info-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.report-info-list div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.report-info-list div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.report-info-list dt {
  color: var(--muted);
  font-weight: 700;
}

.report-info-list dd {
  margin: 0;
  color: var(--text);
  font-weight: 800;
}

.report-warning-list,
.report-disclaimer ul,
.report-chapter-list {
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.9;
}

.report-chapter-list li {
  margin-bottom: 6px;
}

.report-disclaimer {
  border-color: #fecaca;
  background: #fff7f7;
}

.report-disclaimer h2 {
  color: #b91c1c;
}

.report-disclaimer li {
  color: #7f1d1d;
}

.report-preview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 14px;
}

.report-preview-grid figure {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.report-preview-grid img {
  display: block;
  width: 100%;
  background: #fff;
}

.report-preview-grid figcaption {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 9px 12px;
  font-size: 14px;
}

.multi-version-report {
  display: grid;
  gap: 16px;
}

.multi-version-report-head {
  border: 1px solid #f4cc4f;
  background: #fff8d8;
  padding: 22px;
}

.multi-version-report-head > span,
.multi-version-report-title span {
  display: inline-block;
  margin-bottom: 6px;
  color: #a16207;
  font-size: 13px;
  font-weight: 900;
}

.multi-version-report-head h2 {
  margin-bottom: 8px;
  font-size: clamp(24px, 3vw, 34px);
}

.multi-version-report-head p,
.multi-version-report-title p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.multi-version-report-stats {
  margin-bottom: 0;
}

.multi-version-report-stats div:nth-child(2) {
  border-color: #f4cc4f;
  background: #fff9df;
}

.multi-version-report-card {
  margin-bottom: 0 !important;
  padding: 16px;
}

.multi-version-report-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.multi-version-report-title h2 {
  margin: 0;
}

.multi-version-report-title p {
  max-width: 420px;
  text-align: right;
}

.multi-version-report-image {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  background: #f8fafc;
  object-fit: contain;
}

.multi-version-report-pages {
  display: grid;
  gap: 18px;
}

.multi-version-report-pages figure {
  margin: 0;
}

.multi-version-report-pages figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.multi-version-report-notes {
  margin-bottom: 0 !important;
  border-color: #bfdbfe;
  background: #f5f9ff;
}

.multi-version-report-notes ul {
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.9;
}

@media (max-width: 1040px) {
  .workspace,
  .about-layout,
  .course-grid,
  .feedback-layout,
  .setup-editor-grid,
  .report-layout {
    grid-template-columns: 1fr;
  }

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

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

  .setup-advice-card {
    grid-template-columns: 1fr;
  }

  .setup-intro-card,
  .setup-support-card {
    align-items: stretch;
    flex-direction: column;
  }

  .setup-link-group,
  .setup-support-list {
    flex: 0 0 auto;
    width: 100%;
  }

  .side-panel {
    position: static;
  }

  .project-grid,
  .project-grid.compact,
  .collection-grid,
  .guide-layout,
  .service-grid,
  .setup-resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .editor-shell {
    grid-template-columns: 280px minmax(0, 1fr);
  }

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

@media (max-width: 720px) {
  .drawer-panel {
    width: 100vw;
    max-width: 100vw;
    margin-left: 0;
    padding: 18px 14px 24px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 16px;
  }

  main {
    padding: 14px;
  }

  .nav {
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .nav a {
    flex: 0 0 auto;
  }

  .search-row,
  .section-head,
  .page-header {
    align-items: stretch;
    flex-direction: column;
  }

  .stats-grid,
  .direction-grid,
  .project-grid,
  .project-grid.compact,
  .collection-grid,
  .guide-layout,
  .service-grid,
  .filters,
  .detail-grid,
  .preview-grid,
  .presale-hero,
  .visual-card-grid,
    .split-showcase,
    .metric-strip,
    .fit-grid,
    .file-preview,
    .home-hero,
    .vertical-file-groups,
    .setup-resource-grid,
    .usage-template-grid,
    .doc-bullet-grid,
    .doc-image-grid,
    .report-stat-grid,
    .file-image-grid,
    .multi-file-carousel-captions {
    grid-template-columns: 1fr;
  }

  .file-tree {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.24);
  }

  .file-tree-body {
    max-height: 320px;
  }

  .file-preview-panel {
    min-height: auto;
  }

  .file-panel-head {
    flex-direction: column;
  }

  .file-user-card ul {
    grid-template-columns: 1fr;
  }

  .folder-file-list-head,
  .folder-file-row,
  .code-profile-stats,
  .locked-block-grid {
    grid-template-columns: 1fr;
  }

  .folder-file-list-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .editor-guidebar {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .detail-tabs,
  .report-hero {
    flex-direction: column;
  }

  .multi-version-report-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .multi-version-report-title p {
    max-width: none;
    text-align: left;
  }

  .detail-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    overflow-x: hidden;
    padding-bottom: 0;
  }

  .detail-gallery-thumbs button {
    min-width: 0;
  }

  .module-carousel-main {
    width: 100%;
    min-width: 0;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .module-carousel-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    gap: 8px;
    max-width: 100%;
    overflow-x: hidden;
    padding-bottom: 0;
  }

  .module-carousel-thumbs button {
    min-width: 0;
  }

  .after-sale-panel,
  .comparison-panel {
    padding: 16px;
  }

  .service-assurance-card {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .service-assurance-icon {
    width: 54px;
    height: 54px;
    font-size: 22px;
  }

  .service-assurance-card h4 {
    font-size: 22px;
  }

  .comparison-row {
    grid-template-columns: 1fr;
  }

  .comparison-row span {
    border-right: 0;
  }

  .comparison-row span:first-child {
    justify-content: flex-start;
    background: #f8fafc;
    text-align: left;
  }

  .project-cover {
    height: 190px;
  }

  .file-preview-teaser,
  .file-workbench-top,
  .home-feedback-card,
  .featured-course {
    align-items: stretch;
    flex-direction: column;
  }

  .course-actions {
    flex: 0 0 auto;
  }

  .file-workbench-actions {
    justify-content: flex-start;
  }

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

  .editor-sidebar {
    min-height: auto;
    border-right: 0;
  }

  .editor-sidebar {
    border-bottom: 1px solid #334155;
  }

}
