*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background: #fff;
  color: #333;
  min-height: 100vh;
}

/* ========== 页面 Header ========== */
.page-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: #fff;
  border-bottom: 1px solid #eee;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.view-pdf {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #e65100;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  transition: opacity 0.2s;
}

.view-pdf:hover {
  opacity: 0.85;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(230, 81, 0, 0.3);
}

.pdf-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-link {
  color: #37474f;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.nav-link:hover {
  color: #e65100;
}

.settings-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #e0e0e0;
  background: #fff;
  color: #37474f;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.globe-icon {
  width: 22px;
  height: 22px;
}

.settings-btn:hover {
  background: #f5f5f5;
  border-color: #bdbdbd;
  color: #263238;
}

.page-main {
  margin: 0 auto;
  padding: 120px 12em 120px;
  background-image: url('./background.svg');
  background-size: cover;
  background-repeat: no-repeat;
}

/* 面包屑 */
.breadcrumb {
  font-size: 13px;
  color: #757575;
  margin-bottom: 24px;
}

.breadcrumb a {
  color: #2c3e50;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
  color: #e65100;
}

.breadcrumb-sep {
  margin: 0 8px;
  color: #bdbdbd;
}

/* ========== 主内容区 ========== */
.content-section {
  margin: 0 auto;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 48px;
}

.hero-title {
  font-size: 32px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 12px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 16px;
  color: #555;
  margin: 0 0 24px;
  line-height: 1.5;
}

.hero-features {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.hero-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: #333;
  margin-bottom: 12px;
}

.feature-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: #1565c0;
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: bold;
  flex-shrink: 0;
}

.hero-support {
  font-size: 14px;
  color: #757575;
  margin: 0;
}

.hero-contact {
  font-size: 14px;
  color: #555;
  margin-top: 16px;
}

.hero-contact a {
  color: #e65100;
  text-decoration: none;
  font-weight: 500;
}

.hero-contact a:hover {
  text-decoration: underline;
}

/* 亮点统计栏 */
.highlights-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px 48px;
  padding: 24px 20px;
  margin-bottom: 40px;
  background: #f8f9fa;
  border-radius: 12px;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.highlight-value {
  font-size: 24px;
  font-weight: 700;
  color: #e65100;
}

.highlight-icon {
  color: #2e7d32;
  font-size: 18px;
  font-weight: bold;
}

.highlight-label {
  font-size: 15px;
  color: #555;
}

/* 使用步骤 */
.how-it-works {
  margin-bottom: 48px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 24px;
  text-align: center;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

.step-card {
  padding: 24px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  text-align: center;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.step-card:hover {
  border-color: #e65100;
  box-shadow: 0 4px 12px rgba(230, 81, 0, 0.08);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #e65100;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 16px;
}

.step-title {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 8px;
}

.step-desc {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
  margin: 0;
}

/* 更多说明 */
.more-info {
  margin-top: 48px;
}

.info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .info-cards {
    grid-template-columns: 1fr;
  }
  .use-cases-grid {
    flex-wrap: wrap;
  }
}

.info-card {
  padding: 24px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  transition: box-shadow 0.2s;
}

.info-card img {
  width: 100%;
}

.info-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.info-icon {
  font-size: 28px;
  display: block;
  margin-bottom: 12px;
}

.info-title {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 8px;
}

.info-desc {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
  margin: 0;
}

/* 浏览器支持 */
.browser-support {
  margin-top: 48px;
  padding: 28px 24px;
  background: #f8f9fa;
  border-radius: 12px;
}

.browser-support-desc {
  font-size: 14px;
  color: #555;
  text-align: center;
  margin: 0 0 16px;
  line-height: 1.5;
}

.browser-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 20px;
}

.browser-item {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  padding: 8px 16px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
}

/* 小贴士 */
.tips-section {
  margin-top: 32px;
}

.tips-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.tips-list li {
  display: flex;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  font-size: 14px;
  color: #555;
  line-height: 1.5;
}

.tips-list li:last-child {
  border-bottom: none;
}

.tip-bullet {
  color: #e65100;
  font-weight: bold;
  flex-shrink: 0;
}

/* 底部 CTA */
.cta-block {
  margin-top: 48px;
  padding: 32px 24px;
  background: linear-gradient(135deg, #fff8f5 0%, #fffbf7 100%);
  border: 1px solid #ffe0d0;
  border-radius: 12px;
  text-align: center;
}

.cta-text {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  margin: 0;
}

/* 适用人群 */
.use-cases {
  margin-top: 48px;
}

.use-cases-grid {
  display: flex;
  justify-content: center;
  gap: 20px 32px;
}

.use-case-item {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.use-case-item img {
  width: 100%;
  max-height: 190px;
  object-fit: cover;
}

.use-case-item:hover {
  border-color: #e65100;
  box-shadow: 0 2px 8px rgba(230, 81, 0, 0.08);
}

.use-case-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.use-case-text {
  font-size: 14px;
  color: #333;
}

/* FAQ */
.faq-section {
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid #eee;
}

.faq-list {
  max-width: 640px;
  margin: 0 auto;
}

.faq-item {
  padding: 16px 0;
  border-bottom: 1px solid #eee;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-q {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 8px;
}

.faq-a {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  margin: 0;
}

.hero-right {
  display: flex;
  justify-content: center;
  align-items: stretch;
}

.upload-zone {
  width: 100%;
  max-width: 340px;
  min-height: 280px;
  border: 2px dashed #e0e0e0;
  border-radius: 16px;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}

.upload-zone.upload-zone-dragover {
  border-color: #e65100;
  background: #fffbf7;
}

.upload-zone-content {
  text-align: center;
  padding: 24px;
}

.upload-illustration {
  position: relative;
  width: 120px;
  height: 80px;
  margin: 0 auto 20px;
}

.doc-badge {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.doc-badge-left {
  left: 0;
  top: 0;
  background: #2196f3;
  color: #fff;
}

.doc-badge-right {
  right: 0;
  bottom: 0;
  background: #e65100;
  color: #fff;
}

.upload-hint {
  font-size: 14px;
  color: #757575;
  margin: 0;
}

/* 工具网格标题与说明 */
.tools-title {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 12px;
  text-align: center;
}

.tools-intro {
  font-size: 15px;
  color: #555;
  text-align: center;
  max-width: 560px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

/* 类别卡片网格 */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 20px;
  justify-items: stretch;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 16px;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s,
    background 0.2s;
}

.category-card:hover {
  border-color: #e65100;
  box-shadow: 0 4px 12px rgba(230, 81, 0, 0.12);
  background: #fffbf7;
}

.category-card[aria-pressed="true"] {
  border-color: #e65100;
  box-shadow: 0 0 0 2px rgba(230, 81, 0, 0.25);
  background: #fffbf7;
}

.category-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.category-label {
  font-size: 15px;
  font-weight: 600;
  color: #333;
}

/* 上传加载弹窗（图2风格） */
.loading-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 24px;
}

.loading-backdrop.hidden {
  display: none;
}

.loading-card {
  text-align: center;
  max-width: 320px;
  width: 100%;
}

.loading-folder {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
}

.loading-folder svg {
  width: 100%;
  height: 100%;
}

.loading-text {
  font-size: 18px;
  font-weight: 500;
  color: #e65100;
  margin: 0 0 24px;
}

.loading-progress-wrap {
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 16px;
}

.loading-progress-bar {
  height: 100%;
  width: 0%;
  background: #1565c0;
  border-radius: 4px;
  transition: width 0.2s ease-out;
}

.loading-disclaimer {
  font-size: 12px;
  color: #757575;
  margin: 0;
}

/* 文件预览区 */
.preview-section {
  max-width: 960px;
  margin: 24px auto 0;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  background: #fafafa;
}

.preview-section.hidden {
  display: none;
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
}

.preview-close {
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  color: #666;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.preview-close:hover {
  background: #f5f5f5;
  color: #333;
}

.preview-title {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.preview-body {
  min-height: 360px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-body img,
.preview-body video {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 8px;
}

.preview-body iframe,
.preview-body embed,
.preview-body object {
  width: 100%;
  min-height: 480px;
  border: none;
  border-radius: 8px;
}

/* xlsx 表格预览（SheetJS 渲染） */
.preview-body .xlsx-preview-wrap {
  width: 100%;
  overflow: auto;
  max-height: 70vh;
}

.preview-body .xlsx-preview-wrap table {
  border-collapse: collapse;
  font-size: 13px;
  background: #fff;
}

.preview-body .xlsx-preview-wrap th,
.preview-body .xlsx-preview-wrap td {
  border: 1px solid #e0e0e0;
  padding: 8px 12px;
  text-align: left;
}

.preview-body .xlsx-preview-wrap th {
  background: #f5f5f5;
  font-weight: 600;
}

/* pptx 预览（每页为一张幻灯片） */
.preview-body .pptx-preview-wrap {
  width: 100%;
  overflow: auto;
  max-height: 70vh;
  padding: 16px;
}

.preview-body .pptx-slide {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 20px;
  min-height: 200px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.preview-body .pptx-slide:last-child {
  margin-bottom: 0;
}

.preview-body .pptx-text {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.5;
  color: #333;
}

.preview-body .pptx-img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 12px 0;
  border-radius: 4px;
}

.preview-body .pptx-slide-fail {
  color: #757575;
  font-size: 14px;
  margin: 0;
}

/* 全站页脚 */
.site-footer {
  width: 100%;
  padding-bottom: max(20px, 20px);
  padding: 20px 12em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: #757575;
  border-top: 1px solid #eee;
  margin-top: 24px;
}

.site-footer a {
  color: #2c3e50;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-sep {
  margin: 0 10px;
  color: #bdbdbd;
}

/* 子页面（Privacy / Contact）正文区 */
.page-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.page-content-title {
  font-size: 22px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 20px;
}

.page-content p {
  font-size: 15px;
  line-height: 1.6;
  color: #333;
  margin: 0 0 16px;
}

.page-content .contact-intro {
  margin-bottom: 12px;
}

.page-content .contact-email {
  font-size: 16px;
}

.page-content .contact-email a {
  color: #e65100;
  text-decoration: none;
}

.page-content .contact-email a:hover {
  text-decoration: underline;
}

.hidden {
  display: none !important;
}

/* ========== 图2：切换语言弹框 ========== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-sheet {
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  background: #fff;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
  display: flex;
  flex-direction: column;
}

.modal-backdrop.is-open .modal-sheet {
  transform: translateY(0);
}

/* 顶部深色条 + 拖动手柄 */
.modal-handle {
  flex-shrink: 0;
  height: 28px;
  background: #2c3e50;
  border-radius: 20px 20px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-handle::after {
  content: "";
  width: 36px;
  height: 4px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 2px;
}

.modal-content {
  flex: 1;
  overflow-y: auto;
  padding: 0 0 24px;
}

.language-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.language-list li {
  border-bottom: 1px solid #e8e8e8;
}

.language-list li:last-of-type {
  border-bottom: none;
}

.language-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  cursor: pointer;
  transition: background 0.15s;
}

.language-option:hover {
  background: #f8f8f8;
}

.flag {
  font-size: 24px;
  line-height: 1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.lang-name {
  flex: 1;
  font-size: 15px;
  color: #1a1a1a;
}

.language-option input[type="radio"] {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #bdbdbd;
  border-radius: 50%;
  margin: 0;
  flex-shrink: 0;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.language-option input[type="radio"]:checked {
  border-color: #2c3e50;
  background: #2c3e50;
  box-shadow: inset 0 0 0 3px #fff;
}

.get-started-btn {
  display: block;
  width: calc(100% - 40px);
  margin: 20px 20px 0;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: #78909c;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.get-started-btn:hover {
  background: #607d8b;
}

.get-started-btn.has-selection {
  background: #2c3e50;
}

.get-started-btn.has-selection:hover {
  background: #1a252f;
}

/* 点击遮罩关闭 */
.modal-backdrop {
  cursor: pointer;
}

.modal-sheet {
  cursor: default;
}

.modal-backdrop:has(.modal-sheet) {
  cursor: default;
}

.modal-backdrop .modal-sheet {
  cursor: default;
}

@media (max-width: 768px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }
  .page-main {
    padding: 120px 1em 120px;
  }
  .site-footer{
    padding: 20px 1em;
    flex-direction: column;
  }
  .footer-copyright{
    font-size: 12px;
  }
}