/* === 秒字AI 全局样式 - 白色风格 === */

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: #f8fafc;
  color: #333;
  line-height: 1.6;
  min-height: 100vh;
}
a { color: #2563eb; text-decoration: none; }
a:hover { color: #1d4ed8; }

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
.header {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
}
.logo span { color: #2563eb; }

.nav { display: flex; gap: 4px; }
.nav-link {
  color: #666;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.nav-link:hover, .nav-link.active {
  color: #2563eb;
  background: #e8f0fe;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.btn-primary { background: #2563eb; color: #fff; }
.btn-primary:hover { background: #1d4ed8; }
.btn-primary:disabled { background: #a0b4d0; color: #fff; cursor: not-allowed; }
.btn-outline { background: transparent; color: #555; border: 1px solid #d9d9d9; }
.btn-outline:hover { border-color: #2563eb; color: #2563eb; }
.btn-lg { padding: 12px 32px; font-size: 1rem; border-radius: 10px; }
.btn-sm { padding: 6px 14px; font-size: 0.85rem; }
.btn-xs { padding: 4px 10px; font-size: 0.8rem; }

/* Hero */
.hero { padding: 60px 0 40px; }
.hero-content { text-align: center; }
.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
}
.hero-subtitle {
  font-size: 1.1rem;
  color: #888;
  margin-bottom: 32px;
}

/* Input Group */
.input-group {
  display: flex;
  gap: 12px;
  max-width: 700px;
  margin: 0 auto 20px;
}
.input-url {
  flex: 1;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 10px;
  color: #333;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}
.input-url:focus { border-color: #2563eb; box-shadow: 0 0 0 2px rgba(37,99,235,0.1); }
.input-url::placeholder { color: #bbb; }

/* Hero Tabs */
.hero-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 24px auto;
  max-width: 700px;
}
.hero-tab {
  flex: 1;
  padding: 10px 16px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  color: #666;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.hero-tab:hover { border-color: #2563eb; color: #2563eb; }
.hero-tab.active { border-color: #2563eb; color: #2563eb; background: #e8f0fe; }

/* Upload Area */
.upload-area {
  max-width: 700px;
  margin: 0 auto 20px;
  padding: 40px 20px;
  border: 2px dashed #d9d9d9;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s;
  background: #fff;
}
.upload-area:hover, .upload-area.drag-over { border-color: #2563eb; }
.upload-icon { font-size: 3rem; margin-bottom: 12px; }
.upload-text { color: #555; font-size: 1.05rem; margin-bottom: 8px; }
.upload-hint { color: #999; font-size: 0.85rem; }

/* File Info */
.file-info {
  max-width: 700px;
  margin: 0 auto 20px;
  padding: 20px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  color: #555;
}
.input-select {
  padding: 8px 12px;
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  color: #333;
  font-size: 0.9rem;
  outline: none;
}

/* Progress Bar */
.progress-bar {
  max-width: 700px;
  margin: 0 auto;
  height: 8px;
  background: #e8e8e8;
  border-radius: 4px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: #2563eb;
  border-radius: 4px;
  transition: width 0.3s;
  width: 0%;
}

/* Features */
.features-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}
.feature-tag {
  color: #666;
  font-size: 0.9rem;
}

/* Steps */
.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 40px 0;
}
.step { text-align: center; }
.step-icon {
  width: 48px;
  height: 48px;
  background: #2563eb;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 auto 8px;
}
.step-text { color: #555; font-size: 0.95rem; }
.step-arrow { color: #ccc; font-size: 1.5rem; }

/* Section Title */
.section-title {
  text-align: center;
  font-size: 1.5rem;
  color: #1a1a1a;
  margin: 50px 0 30px;
}

/* Platforms */
.platform-list {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.platform-item {
  background: #fff;
  border: 1px solid #e8e8e8;
  padding: 12px 28px;
  border-radius: 8px;
  color: #555;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}
.platform-item:hover { border-color: #2563eb; color: #2563eb; }

/* Advantages */
.advantage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.advantage-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  transition: all 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.advantage-card:hover { border-color: #2563eb; box-shadow: 0 4px 12px rgba(37,99,235,0.1); }
.advantage-icon { font-size: 2rem; margin-bottom: 12px; }
.advantage-card h3 { color: #1a1a1a; margin-bottom: 8px; font-size: 1.05rem; }
.advantage-card p { color: #888; font-size: 0.9rem; }

/* FAQ Section */
.faq-section { margin-top: 40px; }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 12px;
  transition: border-color 0.2s;
}
.faq-item:hover { border-color: #2563eb; }
.faq-item h3 { color: #1a1a1a; font-size: 1rem; margin-bottom: 8px; }
.faq-item p { color: #888; font-size: 0.9rem; line-height: 1.8; }

/* Page Main (sub pages) */
.page-main { padding: 60px 0; text-align: center; }
.page-title { font-size: 2rem; color: #1a1a1a; margin-bottom: 10px; }
.page-desc { color: #888; margin-bottom: 30px; }

/* Tools Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}
.tool-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  transition: all 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.tool-card:hover { border-color: #2563eb; box-shadow: 0 4px 12px rgba(37,99,235,0.1); }
.tool-link { display: block; color: inherit; }
.tool-link:hover { color: inherit; }
.tool-icon { font-size: 2.5rem; margin-bottom: 12px; }
.tool-card h3 { color: #1a1a1a; margin-bottom: 8px; }
.tool-card p { color: #888; font-size: 0.9rem; margin-bottom: 16px; }

/* Teleprompter */
.teleprompter-controls {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.control-item { color: #666; font-size: 0.9rem; display: flex; align-items: center; gap: 8px; }
.control-item label { display: flex; align-items: center; gap: 6px; }
.control-item input[type="range"] { width: 100px; accent-color: #2563eb; }
.teleprompter-actions { display: flex; justify-content: center; gap: 12px; margin: 16px 0; }
.teleprompter-input { max-width: 700px; margin: 0 auto 20px; }
.teleprompter-input textarea {
  width: 100%;
  padding: 14px;
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  color: #333;
  font-size: 1rem;
  line-height: 1.8;
  outline: none;
  resize: vertical;
}
.teleprompter-input textarea:focus { border-color: #2563eb; }
.teleprompter-display {
  max-width: 700px;
  margin: 0 auto;
  height: 400px;
  overflow-y: auto;
  border-radius: 12px;
  padding: 40px 30px;
  line-height: 1.8;
  scroll-behavior: smooth;
  border: 1px solid #e8e8e8;
}
.teleprompter-display.dark-mode { background: #222; color: #fff; }
.teleprompter-display.light-mode { background: #fff; color: #333; }
.scroll-content { font-size: 40px; }

/* Modal */
.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal-content {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  width: 90%;
  max-width: 700px;
  max-height: 80vh;
  overflow: auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #e8e8e8;
}
.modal-header h2 { color: #1a1a1a; font-size: 1.2rem; }
.modal-close {
  background: none;
  border: none;
  color: #999;
  font-size: 1.5rem;
  cursor: pointer;
}
.modal-body { padding: 24px; }

.video-info {
  background: #f8fafc;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: #555;
  line-height: 1.8;
}

/* Tab Bar */
.tab-bar { display: flex; gap: 8px; margin-bottom: 12px; }
.tab-btn {
  padding: 6px 16px;
  background: #f5f5f5;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  color: #666;
  cursor: pointer;
  font-size: 0.9rem;
}
.tab-btn.active { background: #2563eb; color: #fff; border-color: #2563eb; }

.result-text {
  background: #f8fafc;
  color: #333;
  border-radius: 8px;
  padding: 16px;
  min-height: 200px;
  max-height: 300px;
  overflow-y: auto;
  font-size: 0.95rem;
  line-height: 1.8;
  white-space: pre-wrap;
  margin-bottom: 16px;
  border: 1px solid #e8e8e8;
}

.action-bar { display: flex; gap: 10px; flex-wrap: wrap; }

/* Footer */
.footer {
  border-top: 1px solid #e8e8e8;
  padding: 30px 0;
  margin-top: 60px;
  background: #fff;
}
.footer-inner { text-align: center; }
.footer-links { margin-bottom: 12px; display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.footer-links a { color: #888; font-size: 0.85rem; }
.footer-links a:hover { color: #2563eb; }
.footer-copyright { color: #bbb; font-size: 0.8rem; }

/* Loading Spinner */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #e8e8e8;
  border-top: 2px solid #2563eb;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Toast */
.toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: #2563eb;
  color: #fff;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 0.9rem;
  z-index: 2000;
  animation: fadeIn 0.3s ease;
  box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}
@keyframes fadeIn { from { opacity: 0; transform: translateX(-50%) translateY(-10px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

/* Responsive */
@media (max-width: 768px) {
  .nav { display: none; }
  .hero-title { font-size: 1.8rem; }
  .input-group { flex-direction: column; }
  .advantage-grid { grid-template-columns: repeat(2, 1fr); }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); }
  .hero-tabs { flex-direction: column; }
  .teleprompter-controls { flex-direction: column; align-items: center; }
}
