/* ===== AutoSlice 官网 - 暗夜科技风 ===== */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0a0e17;
  --bg-card: #131a2a;
  --bg-alt: #10141c;
  --accent: #00e5ff;
  --accent-sub: rgba(0, 229, 255, 0.12);
  --green: #34d399;
  --red: #f87171;
  --text: #ffffff;
  --text-mid: #d4dae5;
  --text-dim: #94a3b8;
  --border: rgba(0, 229, 255, 0.10);
  --border-focus: rgba(0, 229, 255, 0.30);
  --max-width: 1100px;
  --font: 'Inter', -apple-system, 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

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

code {
  background: rgba(0, 229, 255, 0.08);
  color: var(--accent);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.9em;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10, 14, 23, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-brand-icon {
  color: var(--accent);
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  color: var(--text-mid);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-mid);
  border-radius: 1px;
  transition: all 0.3s;
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px 60px;
  position: relative;
}

.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 59px, rgba(0,229,255,0.02) 59px, rgba(0,229,255,0.02) 60px),
    repeating-linear-gradient(90deg, transparent, transparent 59px, rgba(0,229,255,0.02) 59px, rgba(0,229,255,0.02) 60px);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-badge {
  display: inline-block;
  padding: 5px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 1px;
  margin-bottom: 24px;
  background: var(--accent-sub);
}

.hero-title {
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.hero-title-accent {
  color: var(--accent);
  text-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--text-mid);
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.hero-stat-label {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.hero-scroll {
  position: absolute;
  bottom: 24px;
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: 2px;
  animation: scroll-bounce 2s infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* --- Section Base --- */
.section {
  padding: 80px 24px;
}

.section-alt {
  background-color: var(--bg-alt);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 52px;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 10px;
}

.section-desc {
  color: var(--text-mid);
  font-size: 1rem;
  max-width: 480px;
  margin: 0 auto;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-family: var(--font);
}

.btn-primary {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.15), rgba(0, 229, 255, 0.05));
  border: 1px solid var(--border-focus);
  color: var(--accent);
}

.btn-primary:hover {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.25), rgba(0, 229, 255, 0.1));
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.15);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-mid);
}

.btn-outline:hover {
  border-color: var(--border-focus);
  color: var(--accent);
}

/* --- Features --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 28px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.3s;
}

.feature-card:hover {
  border-color: var(--border-focus);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 229, 255, 0.06);
}

.feature-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-mid);
  font-size: 0.9rem;
}

/* --- Workflow --- */
.workflow-steps {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 700px;
  margin: 0 auto;
}

.workflow-step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.workflow-number {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
}

.workflow-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.workflow-content p {
  color: var(--text-mid);
  font-size: 0.95rem;
}

/* --- Showcase --- */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.showcase-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s;
}

.showcase-card:hover {
  border-color: var(--border-focus);
  box-shadow: 0 8px 32px rgba(0, 229, 255, 0.08);
}

.showcase-img-wrap {
  padding: 16px;
  background: #0d1117;
  display: flex;
  justify-content: center;
  align-items: center;
}

.showcase-img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}

.showcase-caption {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.showcase-label {
  font-weight: 600;
  font-size: 0.95rem;
}

.showcase-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.showcase-tag {
  padding: 2px 8px;
  font-size: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--accent);
  background: var(--accent-sub);
}

/* --- Formats --- */
.format-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.format-card {
  padding: 28px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.format-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.format-logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--accent-sub);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}

.format-letter {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
}

.format-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

.format-files {
  margin-bottom: 20px;
}

.file-tree {
  font-family: 'Cascadia Code', Consolas, 'Courier New', monospace;
  font-size: 0.78rem;
  color: var(--text-mid);
  line-height: 1.8;
  padding: 14px 16px;
  background: #0d1117;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.indent-1 { padding-left: 18px; }
.indent-2 { padding-left: 36px; }

.format-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.format-list li {
  color: var(--text-mid);
  font-size: 0.9rem;
  padding-left: 16px;
  position: relative;
}

.format-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
}

/* --- Download --- */
.download-card {
  max-width: 600px;
  margin: 0 auto;
  padding: 36px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-align: center;
}

.download-icon {
  margin-bottom: 16px;
}

.download-icon svg {
  filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.25));
}

.download-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.download-desc {
  color: var(--text-mid);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.download-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.download-requirements {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.contact-card {
  padding: 28px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: center;
}

.contact-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.contact-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.contact-qq {
  margin-bottom: 6px;
}

.contact-qq-label {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.contact-qq-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 2px;
}

.contact-hint {
  color: var(--text-dim);
  font-size: 0.8rem;
  margin-bottom: 16px;
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-mid);
  font-size: 0.9rem;
}

.contact-list-icon {
  flex-shrink: 0;
  font-size: 16px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.faq-item summary {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
  list-style: none;
  transition: background 0.2s;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  background: var(--accent-sub);
}

.faq-item p {
  padding: 0 14px 10px;
  color: var(--text-mid);
  font-size: 0.85rem;
}

/* --- Footer --- */
.footer {
  padding: 28px 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-brand {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.footer-brand-icon {
  color: var(--accent);
}

.footer-copy {
  color: var(--text-dim);
  font-size: 0.8rem;
}

/* --- Fade In Animation --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .feature-grid,
  .format-grid,
  .showcase-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    gap: 24px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: rgba(10, 14, 23, 0.98);
    flex-direction: column;
    padding: 16px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .workflow-step {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-title {
    font-size: 1.6rem;
  }

  .section {
    padding: 60px 16px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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