﻿/* Dyoot Landing — aligned with Dyoot.com layout */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-cream: #F2EFE4;
  --text-primary: #1F2119;
  --text-secondary: rgba(31, 33, 25, 0.62);
  --text-muted: rgba(31, 33, 25, 0.45);
  --green: #2E6754;
  --green-dark: #285B4A;
  --green-light: rgba(46, 103, 84, 0.08);
  --green-outline: rgba(46, 103, 84, 0.05);
  --link-blue: #618BCC;
  --doc-orange: #E8A04A;
  --white: #ffffff;
  --border: rgba(20, 20, 20, 0.06);
  --border-hover: rgba(20, 20, 20, 0.2);
  --footer-bg: #1A2E27;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.08);
  --font-serif: "Playfair Display", "Times New Roman", "Songti SC", serif;
  --font-sans: "Outfit", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", -apple-system, sans-serif;
  --header-h: 64px;
  --max-w: 1280px;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--bg-cream);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.zh-serif { font-family: var(--font-serif); }
.zh-editorial-mark { color: var(--green); }

/* Header */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(242, 239, 228, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(46, 103, 84, 0.06);
}
.header-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 20px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.header-logo img { height: 24px; width: auto; }
.header-nav { display: flex; gap: 32px; align-items: center; }
.header-nav a {
  font-size: 14px; color: var(--text-secondary);
  transition: color 0.2s;
}
.header-nav a:hover { color: var(--green); }
.header-actions { display: flex; gap: 12px; align-items: center; }
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 24px;
  background: var(--green); color: #fff;
  border-radius: 999px; font-size: 14px; font-weight: 500;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--green-dark); }
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 20px;
  border: 1px solid var(--border); border-radius: 999px;
  font-size: 14px; background: var(--white);
  transition: all 0.2s;
}
.btn-outline:hover { border-color: var(--border-hover); background: rgba(20,20,20,0.04); }
.menu-toggle { display: none; font-size: 24px; padding: 4px; }

/* Hero */
.hero {
  min-height: 100vh; padding-top: var(--header-h);
  background: var(--bg-cream); text-align: center;
  overflow-x: clip;
}
.hero-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 66px 20px 48px;
  display: flex; flex-direction: column; align-items: center;
  min-height: calc(100vh - var(--header-h));
}
.hero-title {
  max-width: 980px;
  font-family: var(--font-serif);
  font-size: clamp(36px, 8vw, 96px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.045em;
}
.hero-copy {
  margin-top: 32px; max-width: 900px;
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.75; color: var(--text-secondary);
}

/* Workbench Panel */
.workbench {
  margin-top: 80px; width: min(900px, 100%);
  display: grid; grid-template-columns: 220px minmax(0, 1fr);
  gap: 12px; padding: 12px;
  border-radius: var(--radius-xl);
  outline: 4px solid var(--green-outline);
  text-align: left;
}
.source-stack { display: flex; flex-direction: column; gap: 10px; }
.source-card {
  display: flex; align-items: center; gap: 12px;
  height: 88px; padding: 14px 12px;
  background: var(--white); border-radius: var(--radius-md);
  border: 1px solid var(--border);
  cursor: pointer; transition: all 0.2s;
}
.source-card:hover { border-color: var(--border-hover); box-shadow: var(--shadow-sm); }
.source-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px; font-size: 18px;
}
.source-icon-doc { background: rgba(232, 160, 74, 0.12); color: var(--doc-orange); }
.source-icon-link { background: rgba(97, 139, 204, 0.12); color: var(--link-blue); }
.source-copy span { display: block; font-size: 14px; font-weight: 500; color: #141414; }
.source-copy small { display: block; font-size: 11px; color: var(--text-muted); margin-top: 2px; line-height: 1.4; }

.prompt-card {
  display: flex; flex-direction: column;
  min-height: 200px; padding: 16px;
  background: var(--white); border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.prompt-input {
  flex: 1; min-height: 82px; outline: none;
  font-size: 14px; color: #141414; line-height: 1.6;
  word-break: break-word; white-space: pre-wrap;
}
.prompt-input:empty::before {
  content: attr(data-placeholder);
  color: rgba(20, 20, 20, 0.35); pointer-events: none;
}
.control-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 12px;
}
.control-chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 12px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 999px; font-size: 13px; color: #141414;
  cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.chip:hover { background: rgba(20,20,20,0.04); border-color: var(--border-hover); }
.chip svg { flex-shrink: 0; }
.btn-send {
  height: 36px; padding: 0 20px;
  background: var(--green); color: #fff;
  border-radius: 999px; font-size: 14px; font-weight: 500;
  white-space: nowrap; transition: background 0.2s;
}
.btn-send:hover { background: var(--green-dark); }

/* Section common */
.section { padding: 100px 0; }
.section-label {
  display: inline-block; font-size: 13px; font-weight: 500;
  color: var(--green); letter-spacing: 0.04em;
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 600; line-height: 1.2;
  letter-spacing: -0.03em;
}
.section-desc {
  margin-top: 16px; font-size: 16px; line-height: 1.75;
  color: var(--text-secondary); max-width: 640px;
}
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .section-desc { margin-left: auto; margin-right: auto; }

/* Demo Video */
.demo-section { background: var(--bg-cream); }
.video-frame {
  margin-top: 48px; max-width: 960px; margin-left: auto; margin-right: auto;
  border: 4px solid rgba(46, 103, 84, 0.12);
  border-radius: var(--radius-lg); overflow: hidden;
  background: #000; position: relative;
  aspect-ratio: 16/9;
}
.video-frame video { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: calc(var(--radius-lg) - 4px); }
.video-play-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.2); cursor: pointer;
  transition: background 0.2s;
}
.video-play-overlay:hover { background: rgba(0,0,0,0.35); }
.play-btn {
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(255,255,255,0.95);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
  transition: transform 0.2s;
}
.play-btn:hover { transform: scale(1.05); }
.play-btn svg { margin-left: 4px; }

/* Showcase Grid */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.showcase-card {
  border-radius: var(--radius-md); overflow: hidden;
  background: var(--white); cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.showcase-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.showcase-thumb {
  aspect-ratio: 16/9; overflow: hidden; position: relative;
  background: #ddd;
}
.showcase-thumb img { width: 100%; height: 100%; object-fit: cover; }
.showcase-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.15); opacity: 0; transition: opacity 0.2s;
}
.showcase-card:hover .showcase-play { opacity: 1; }
.showcase-play-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.9);
  display: flex; align-items: center; justify-content: center;
}
.showcase-info { padding: 16px 18px 20px; }
.showcase-info h3 { font-size: 15px; font-weight: 600; line-height: 1.4; margin-bottom: 6px; }
.showcase-meta { font-size: 13px; color: var(--text-muted); }
.section-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 40px; font-size: 14px; font-weight: 500;
  color: var(--green); transition: color 0.2s;
}
.section-link:hover { color: var(--green-dark); }
.text-center { text-align: center; }

/* Scenes Grid */
.scenes-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.scene-card {
  border-radius: var(--radius-md); overflow: hidden;
  background: var(--white); transition: transform 0.2s, box-shadow 0.2s;
}
.scene-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.scene-img { aspect-ratio: 4/3; overflow: hidden; }
.scene-img img { width: 100%; height: 100%; object-fit: cover; }
.scene-body { padding: 20px 22px 24px; }
.scene-body h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.scene-body p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* Stats */
.stats-section { background: var(--white); }
.stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 32px; margin-top: 56px;
}
.stat-card {
  text-align: center; padding: 40px 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-cream);
}
.stat-number {
  font-family: var(--font-serif);
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 600; color: var(--green);
  line-height: 1; letter-spacing: -0.04em;
}
.stat-label { font-size: 18px; font-weight: 600; margin-top: 12px; }
.stat-desc { font-size: 14px; color: var(--text-secondary); margin-top: 8px; line-height: 1.6; }

/* Pricing Table */
.pricing-section { background: var(--bg-cream); }
.pricing-table {
  margin-top: 48px; border-radius: var(--radius-lg);
  overflow: hidden; background: var(--white);
  border: 1px solid var(--border);
}
.pricing-header {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr;
  padding: 24px 32px; border-bottom: 1px solid var(--border);
  font-size: 14px; font-weight: 600; color: var(--text-muted);
}
.pricing-header .col-dyoot { color: var(--green); font-size: 16px; }
.pricing-row {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr;
  padding: 20px 32px; border-bottom: 1px solid var(--border);
  align-items: center; font-size: 15px;
}
.pricing-row:last-child { border-bottom: none; background: var(--green-light); font-weight: 600; }
.pricing-row .col-label { color: var(--text-primary); }
.pricing-row .col-old { color: var(--text-muted); text-decoration: line-through; }
.pricing-row .col-new { color: var(--green); font-weight: 600; }
.pricing-highlight {
  text-align: center; margin-bottom: 48px;
}
.pricing-highlight h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600; line-height: 1.3;
}
.pricing-highlight .price-old { color: var(--text-muted); text-decoration: line-through; }
.pricing-highlight .price-new { color: var(--green); }

/* Feedback */
.feedback-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.feedback-card {
  padding: 32px 28px; border-radius: var(--radius-lg);
  background: var(--white); border: 1px solid var(--border);
  display: flex; flex-direction: column;
}
.feedback-tag {
  display: inline-block; font-size: 12px; font-weight: 500;
  color: var(--green); background: var(--green-light);
  padding: 4px 12px; border-radius: 999px; margin-bottom: 20px;
  align-self: flex-start;
}
.feedback-card blockquote {
  font-size: 15px; line-height: 1.75; color: var(--text-primary);
  flex: 1; margin-bottom: 24px;
}
.feedback-author { font-size: 13px; color: var(--text-muted); }
.feedback-result {
  margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--green);
}

/* Tutorials */
.tutorials-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.tutorial-card {
  border-radius: var(--radius-md); overflow: hidden;
  background: var(--white); cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.tutorial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tutorial-img { aspect-ratio: 16/10; overflow: hidden; }
.tutorial-img img { width: 100%; height: 100%; object-fit: cover; }
.tutorial-body { padding: 18px 20px 22px; }
.tutorial-body h3 { font-size: 16px; font-weight: 600; }
.tutorial-tag {
  display: inline-block; font-size: 11px; font-weight: 500;
  color: var(--green); margin-bottom: 8px;
}

/* FAQ */
.faq-section { background: var(--white); }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 24px 0; font-size: 16px; font-weight: 500;
  text-align: left; color: var(--text-primary);
  cursor: pointer; gap: 16px;
}
.faq-question:hover { color: var(--green); }
.faq-icon {
  width: 24px; height: 24px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s; color: var(--text-muted);
}
.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--green); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-item.open .faq-answer { max-height: 300px; padding-bottom: 24px; }
.faq-answer p { font-size: 15px; line-height: 1.75; color: var(--text-secondary); }

/* CTA */
.cta-section {
  padding: 100px 0; text-align: center;
  background: var(--bg-cream);
}
.cta-box {
  max-width: 640px; margin: 0 auto;
  padding: 56px 40px; border-radius: var(--radius-xl);
  background: var(--white); border: 1px solid var(--border);
}
.cta-box h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 36px); font-weight: 600;
  margin-bottom: 12px;
}
.cta-box p { font-size: 16px; color: var(--text-secondary); margin-bottom: 32px; line-height: 1.7; }
.cta-tags {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  margin-top: 20px; font-size: 13px; color: var(--text-muted);
}
.cta-tags span { display: flex; align-items: center; gap: 6px; }

/* Footer */
.footer {
  background: var(--footer-bg); color: rgba(255,255,255,0.8);
  padding: 64px 0 32px;
}
.footer-top {
  display: grid; grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px; margin-bottom: 48px;
}
.footer-brand p { font-size: 14px; line-height: 1.7; margin-top: 16px; max-width: 280px; }
.footer-brand img { height: 24px; filter: brightness(0) invert(1); opacity: 0.9; }
.footer-col h4 { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 16px; }
.footer-col a {
  display: block; font-size: 14px; color: rgba(255,255,255,0.7);
  margin-bottom: 10px; transition: color 0.2s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px; display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: rgba(255,255,255,0.5); flex-wrap: wrap; gap: 12px;
}
.footer-contact { position: relative; }
.footer-contact-btn {
  font-size: 14px; color: rgba(255,255,255,0.8);
  cursor: pointer; transition: color 0.2s;
}
.footer-contact-btn:hover { color: #fff; }

/* Video Modal */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.7);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal-panel {
  width: min(960px, 100%);
  border: 4px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md); overflow: hidden;
  background: #000; transform: scale(0.95);
  transition: transform 0.3s;
}
.modal-overlay.open .modal-panel { transform: scale(1); }
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  height: 52px; padding: 0 16px;
  background: rgba(255,255,255,0.05);
}
.modal-head span { font-size: 14px; color: rgba(255,255,255,0.8); }
.modal-close {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7); font-size: 20px;
  transition: background 0.2s;
}
.modal-close:hover { background: rgba(255,255,255,0.1); color: #fff; }
.modal-body video { width: 100%; display: block; aspect-ratio: 16/9; }

/* Mobile Nav */
.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 99;
  background: var(--bg-cream); padding: 80px 24px 24px;
  flex-direction: column; gap: 8px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 18px; padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 900px) {
  .header-nav, .header-actions .btn-outline { display: none; }
  .menu-toggle { display: block; }
  .workbench { grid-template-columns: 1fr; margin-top: 40px; }
  .showcase-grid, .scenes-grid, .stats-grid,
  .feedback-grid, .tutorials-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .hero-inner { padding-top: 44px; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .showcase-grid, .scenes-grid, .stats-grid,
  .feedback-grid, .tutorials-grid { grid-template-columns: 1fr; }
  .pricing-header, .pricing-row { grid-template-columns: 1.2fr 0.9fr 0.8fr; padding: 16px 12px; font-size: 13px; }
  .footer-top { grid-template-columns: 1fr; }
  .control-row { flex-direction: column; align-items: stretch; }
  .btn-send { width: 100%; height: 40px; }
  .source-card { height: 78px; padding: 12px 10px; }
  .source-icon { width: 30px; height: 30px; }
}
