
:root {
  --primary-color: #4f46e5;
  --primary-glow: rgba(99, 102, 241, 0.1);
  --accent-color: #7c3aed;
  --bg-color: #f8fafc;
  --card-bg: rgba(255, 255, 255, 0.75);
  --card-border: rgba(99, 102, 241, 0.08);
  --text-color: #0f172a;
  --text-muted: #64748b;
  --text-link: #2563eb;
  --font-sans: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-width: 1200px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}


body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1400px;
  height: 600px;
  background: radial-gradient(circle 400px at 50% 100px, rgba(99, 102, 241, 0.06), transparent 80%),
    radial-gradient(circle 300px at 20% 300px, rgba(168, 85, 247, 0.04), transparent 80%);
  z-index: -1;
  pointer-events: none;
}


.lang-nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  position: static;
}

.lang-nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 0;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  
  -ms-overflow-style: none;
  
  display: flex;
  gap: 12px;
  align-items: center;
}

.lang-nav .lang-link {
  font-size: 12px;
}

@media (max-width: 1240px) {

  .lang-nav,
  .app-container {
    padding-left: 20px;
    padding-right: 20px;
  }
}


.lang-nav::-webkit-scrollbar {
  height: 5px;
  display: none;
}


.lang-nav:hover {
  scrollbar-width: thin;
  -ms-overflow-style: auto;
}

.lang-nav:hover::-webkit-scrollbar {
  display: block;
}

.lang-nav::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.02);
  border-radius: 10px;
}

.lang-nav::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

.lang-nav::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.2);
}

.lang-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  padding: 4px 4px;
  display: inline-block;
}

.lang-link:hover {
  color: var(--primary-color);
  text-decoration: underline;
  transform: translateY(-1px);
}


.footer-lang-nav .lang-link {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.05);
  border: 1px solid rgba(99, 102, 241, 0.08);
}

.footer-lang-nav .lang-link:hover {
  color: var(--primary-color);
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.2);
  text-decoration: none;
  transform: translateY(-1px);
}


.app-container {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 20px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}


.app-body {
  width: 100%;
}


.brand-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  width: 100%;
  margin-bottom: 6px;
}

.brand-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}


.toolbox-badge-wrapper {
  margin-bottom: 6px;
  display: flex;
  justify-content: flex-start;
}

.toolbox-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.06), rgba(168, 85, 247, 0.06));
  border: 1px solid rgba(99, 102, 241, 0.2);
  padding: 2px 8px;
  border-radius: 30px;
  color: var(--primary-color);
  text-decoration: none;
  font-size: 10px;
  font-weight: 500;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.04);
}

.toolbox-badge:hover {
  border-color: rgba(168, 85, 247, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.08);
}

.toolbox-badge svg {
  width: 10px;
  height: 10px;
  fill: currentColor;
  transition: var(--transition);
}

.toolbox-badge:hover svg {
  transform: translateX(2px);
}


.app-header {
  text-align: left;
}

.app-title {
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-top: 0;
  margin-bottom: 4px;
  background: linear-gradient(to right, #0f172a, #4f46e5, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.app-description {
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--text-muted);
  max-width: 100%;
}


.header-ad {
  flex-shrink: 0;
  width: 728px;
  height: 90px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  overflow: hidden;
}


.app-footer {
  margin: auto auto 0;
  max-width: var(--max-width);
  width: 100%;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
}

.footer-lang-nav {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 16px;
  padding: 4px 0 12px;
}

.footer-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.footer-link {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(99, 102, 241, 0.2);
  background: rgba(99, 102, 241, 0.04);
  transition: var(--transition);
  display: inline-block;
}

.footer-link:hover {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.4);
  color: var(--accent-color);
  transform: translateY(-1px);
}

.footer-copyright {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.35);
}


@media (max-width: 1024px) {
  .brand-section {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 24px;
  }

  .brand-info {
    align-items: flex-start;
  }

  .app-header {
    text-align: left;
  }

  .toolbox-badge-wrapper {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .app-title {
    font-size: 1.4rem;
  }

  .header-ad {
    display: none;
  }

  .lang-nav,
  .app-container {
    padding-left: 10px;
    padding-right: 10px;
  }

  .footer-lang-nav {
    justify-content: flex-start;
  }
}


.demo-wrapper {
  margin-top: 15px;
  width: 100%;
}

.demo-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.03);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 30px;
  transition: var(--transition);
}


.upload-zone {
  min-height: 380px;
  border: 2px dashed rgba(99, 102, 241, 0.25);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  text-align: center;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition);
  margin: 16px;
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--primary-color);
  background: rgba(99, 102, 241, 0.05);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.06);
}

.upload-icon-wrapper {
  margin-bottom: 20px;
  color: var(--primary-color);
  transition: var(--transition);
}

.upload-zone:hover .upload-icon-wrapper {
  transform: translateY(-4px) scale(1.05);
}

.upload-icon {
  width: 56px;
  height: 56px;
  stroke-width: 1.5;
}

.upload-text {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 18px;
}

.btn-select-file {
  padding: 10px 24px;
  border: none;
  background: var(--primary-color);
  color: white;
  font-weight: 600;
  font-size: 13.5px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.btn-select-file:hover {
  background: var(--accent-color);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.3);
}

.file-input-hidden {
  display: none;
}

.supported-formats-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
  max-width: 600px;
}

.badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
}

.badge-pdf { background: #fee2e2; color: #dc2626; }
.badge-word { background: #dbeafe; color: #2563eb; }
.badge-excel { background: #d1fae5; color: #059669; }
.badge-ppt { background: #fef3c7; color: #d97706; }
.badge-ofd { background: #e0f2fe; color: #0284c7; }
.badge-cad { background: #ffe4e6; color: #e11d48; }
.badge-csv { background: #dcfce7; color: #15803d; }
.badge-md { background: #f3e8ff; color: #7c3aec; }
.badge-media { background: #e0e7ff; color: #4f46e5; }


.preview-container {
  display: flex;
  flex-direction: column;
  height: 680px;
}

.controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(99, 102, 241, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.file-info {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.file-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-size-badge {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-muted);
  flex-shrink: 0;
}

.buttons-group {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}

.ctrl-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid rgba(99, 102, 241, 0.12);
  background: white;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.ctrl-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: rgba(99, 102, 241, 0.04);
  transform: translateY(-1px);
}

.ctrl-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.reupload-btn {
  width: auto;
  padding: 0 12px;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  border-color: rgba(99, 102, 241, 0.2);
  background: rgba(99, 102, 241, 0.04);
  color: var(--primary-color);
}

.reupload-btn:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.reupload-btn svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.viewer-target {
  flex: 1;
  background: #f1f5f9;
  min-height: 0;
  position: relative;
}


.docs-section {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.01);
}

.docs-nav-tabs {
  display: flex;
  border-bottom: 1px solid rgba(99, 102, 241, 0.1);
  gap: 8px;
  margin-bottom: 20px;
  overflow-x: auto;
  scrollbar-width: none;
}

.docs-nav-tabs::-webkit-scrollbar {
  display: none;
}

html {
  scroll-behavior: smooth;
}

.doc-tab-btn {
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  border: none;
  background: none;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  display: inline-block;
}

.doc-tab-btn:hover {
  color: var(--primary-color);
  border-bottom-color: rgba(99, 102, 241, 0.3);
  text-decoration: none;
}

.doc-tab-panel {
  display: block;
  margin-bottom: 50px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(99, 102, 241, 0.08);
}

.doc-tab-panel:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.doc-tab-panel h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 12px;
}

.doc-tab-panel h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-color);
  margin-top: 24px;
  margin-bottom: 12px;
}

.doc-p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 18px;
}


.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0;
}

.feature-item {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(99, 102, 241, 0.05);
  border-radius: 10px;
  padding: 16px;
  transition: var(--transition);
}

.feature-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.04);
}

.feature-item h4 {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 6px;
}

.feature-item p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
}


.formats-table-wrapper {
  overflow-x: auto;
  border: 1px solid rgba(99, 102, 241, 0.08);
  border-radius: 10px;
  margin-top: 12px;
}

.formats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  text-align: left;
}

.formats-table th {
  background: rgba(99, 102, 241, 0.02);
  padding: 12px 14px;
  font-weight: 600;
  color: var(--text-color);
  border-bottom: 1px solid rgba(99, 102, 241, 0.08);
}

.formats-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(99, 102, 241, 0.04);
  color: var(--text-muted);
}

.formats-table tr:last-child td {
  border-bottom: none;
}

.cat-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  text-align: center;
  min-width: 64px;
}


.tutorial-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 16px;
}

.step-card {
  display: flex;
  gap: 16px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(99, 102, 241, 0.05);
  border-radius: 12px;
  padding: 16px;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.step-desc {
  flex: 1;
  min-width: 0;
}

.step-desc h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 6px;
}

.step-desc p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.code-snippet {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 8px;
  padding: 12px;
  font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
  font-size: 12px;
  overflow-x: auto;
  line-height: 1.5;
  margin: 6px 0;
  border: 1px solid rgba(255, 255, 255, 0.05);
}


.scenes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.scene-card {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(99, 102, 241, 0.05);
  border-radius: 12px;
  padding: 20px;
  transition: var(--transition);
}

.scene-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.03);
}

.scene-icon {
  font-size: 24px;
  margin-bottom: 8px;
}

.scene-card h3 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 6px;
}

.scene-card p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.55;
}


@media (max-width: 768px) {
  .preview-container {
    height: 520px;
  }

  .controls-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .buttons-group {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

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

  .step-card {
    flex-direction: column;
    gap: 10px;
  }

  .upload-zone {
    min-height: 300px;
    padding: 24px 16px;
  }
}


.jv-viewer__branding {
  
  opacity: 0.4 !important;
}