:root {
  --bg: #f8f5ee;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --accent: #b0843e;
  --accent-dark: #7b5a20;
  --border: #ece4d5;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fffdf8 0%, var(--bg) 100%);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  padding: 1rem 0 4rem;
  background: radial-gradient(circle at top left, rgba(208, 168, 91, 0.2), transparent 30%), var(--bg);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.brand {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  padding-top: 2rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin: 0 0 1rem;
}

.lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 1.5rem 0;
}

.hero-actions-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.button {
  display: inline-block;
  border-radius: 999px;
  padding: 0.8rem 1.2rem;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 8px 20px rgba(176, 132, 62, 0.2);
}

.button.secondary {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.8);
}

.hero-tags {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  padding: 0;
  margin: 1.2rem 0 0;
  list-style: none;
}

.hero-tags li {
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-card {
  display: flex;
  justify-content: center;
}

.hero-screenshot {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 22px 48px rgba(17, 24, 39, 0.15);
}

.phone-frame {
  padding: 1rem;
  border-radius: 32px;
  background: linear-gradient(145deg, #252d37, #111827);
  box-shadow: 0 22px 48px rgba(17, 24, 39, 0.15);
}

.phone-screen {
  width: min(320px, 100%);
  border-radius: 24px;
  overflow: hidden;
  background: #fffdf8;
}

.screen-top {
  display: flex;
  gap: 0.35rem;
  padding: 0.8rem 0.9rem;
  background: #f0e6d1;
}

.dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: #c7a36b;
}

.screen-body {
  min-height: 360px;
  padding: 1.2rem;
  background: linear-gradient(180deg, #fffdf8 0%, #f7ebd6 100%);
  position: relative;
}

.focus-ring {
  position: absolute;
  inset: 2.2rem 3rem auto;
  height: 180px;
  border: 3px solid rgba(176, 132, 62, 0.65);
  border-radius: 50%;
}

.person-card {
  position: absolute;
  left: 1.2rem;
  right: 1.2rem;
  bottom: 1.2rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 16px 32px rgba(31, 41, 55, 0.08);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d4a373, #7b5a20);
}

.avatar-info h3 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
}

.avatar-info p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.section {
  padding: 4rem 0;
}

.alt-bg {
  background: rgba(255, 255, 255, 0.6);
}

.section-heading {
  margin-bottom: 1.6rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card,
.gallery-card,
.step,
.feedback-form,
.feedback-list {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.04);
}

.card {
  padding: 1.2rem;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.card p {
  color: var(--muted);
  margin: 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.step {
  padding: 1.2rem;
}

.step span {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(176, 132, 62, 0.16);
  color: var(--accent-dark);
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-card {
  padding: 1rem;
}

.gallery-card svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  margin-bottom: 0.8rem;
}

.gallery-card h3 {
  margin: 0 0 0.3rem;
}

.gallery-card p {
  margin: 0;
  color: var(--muted);
}

.feedback-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
  align-items: start;
}

.feedback-form {
  padding: 1.2rem;
  display: grid;
  gap: 0.8rem;
}

.feedback-form--standalone {
  max-width: 560px;
  margin: 0 auto;
}

.feedback-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
}

.feedback-form input,
.feedback-form textarea,
.feedback-form select {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  font: inherit;
  background: #fcfaf6;
}

.feedback-list {
  padding: 1.2rem;
}

.feedback-list h3 {
  margin-top: 0;
}

.feedback-list ul {
  padding-left: 1rem;
  color: var(--muted);
}

.feedback-list li + li {
  margin-top: 0.6rem;
}

.footer {
  padding: 1.4rem 0 2rem;
  color: var(--muted);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.privacy-page {
  padding: 3rem 0 4rem;
}

.privacy-page h1,
.privacy-page h2 {
  margin-top: 1.5rem;
}

/* ===== Section descriptions ===== */
.section-desc {
  margin: 0.5rem 0 0;
  color: var(--muted);
  max-width: 640px;
}

/* ===== Guide blocks (step-by-step) ===== */
.guide-block {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.4rem;
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.04);
}

.guide-number {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  background: rgba(176, 132, 62, 0.16);
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 1.2rem;
}

.guide-content {
  flex: 1;
  min-width: 0;
}

.guide-content h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.guide-content p {
  margin: 0 0 0.6rem;
  color: var(--text);
}

.guide-content ul,
.guide-content ol {
  margin: 0.4rem 0 0.6rem;
  padding-left: 1.2rem;
  color: var(--text);
}

.guide-content li {
  margin-bottom: 0.3rem;
}

.guide-note {
  font-size: 0.92rem;
  padding: 0.5rem 0.7rem;
  background: rgba(176, 132, 62, 0.08);
  border-radius: 10px;
  margin: 0.6rem 0;
}

/* ===== Guide screenshot images ===== */
.guide-screenshot {
  width: 100%;
  max-width: 320px;
  border-radius: 16px;
  margin-top: 0.8rem;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
  border: 1px solid var(--border);
}

.guide-screenshot-row {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.8rem;
  flex-wrap: wrap;
}

.guide-screenshot-row .guide-screenshot {
  flex: 1;
  min-width: 200px;
  margin-top: 0;
}

/* ===== Screenshot placeholders ===== */
.screenshot-placeholder {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.2rem 1rem;
  margin-top: 0.8rem;
  border: 2px dashed var(--border);
  border-radius: 14px;
  background: rgba(236, 228, 213, 0.2);
  color: var(--muted);
  font-size: 0.95rem;
  transition: border-color 0.2s, background 0.2s;
}

.screenshot-placeholder:hover {
  border-color: var(--accent);
  background: rgba(176, 132, 62, 0.04);
}

.placeholder-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* ===== Control bar diagram ===== */
.control-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0.6rem 0;
}

.control-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.5rem 0.8rem;
  background: #fcfaf6;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.3;
  text-align: center;
  flex: 1;
  min-width: 80px;
}

.control-item strong {
  font-size: 0.95rem;
  color: var(--text);
}

.control-item small {
  color: var(--muted);
  font-size: 0.78rem;
}

.control-item.highlight {
  border-color: var(--accent);
  background: rgba(176, 132, 62, 0.08);
}

/* ===== Settings grid ===== */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.settings-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.2rem;
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.04);
}

.settings-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.settings-card p {
  margin: 0;
  color: var(--muted);
}

/* ===== Nav CTA ===== */
.nav-cta {
  background: var(--accent);
  color: white !important;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
}

.lang-toggle {
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: background 0.2s;
}

.lang-toggle:hover {
  background: var(--accent);
  color: white !important;
  border-color: var(--accent);
}

/* ===== Hero inline video ===== */
.hero-card {
  position: relative;
}

.hero-video-box {
  position: relative;
  width: 100%;
  max-width: 267px;
}

.hero-video-player {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 22px 48px rgba(17, 24, 39, 0.15);
  background: #e8e0d0;
}

.hero-video-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 10;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.45);
  color: white;
  font-size: 1rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s;
}

.hero-video-close:hover {
  background: rgba(0,0,0,0.7);
}

@media (max-width: 900px) {
  .hero-grid,
  .feedback-layout,
  .card-grid,
  .gallery-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }

  .guide-block {
    flex-direction: column;
    gap: 0.8rem;
  }

  .control-bar {
    flex-wrap: wrap;
  }

  .control-item {
    min-width: calc(50% - 0.6rem);
    flex: none;
  }
}

/* ===== Hamburger menu ===== */
.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  color: var(--text);
  line-height: 1;
  z-index: 20;
}

@media (max-width: 640px) {
  .hamburger {
    display: block;
    margin-left: auto;
  }

  .nav {
    flex-wrap: wrap;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
    padding: 0.5rem 0 0;
    border-top: 1px solid var(--border);
    margin-top: 0.5rem;
  }

  .nav-links.nav-open {
    display: flex;
  }

  .nav-links a {
    padding: 0.5rem 0;
    font-size: 1rem;
  }

  .hero {
    padding-bottom: 3rem;
  }

  .footer-content {
    flex-direction: column;
  }
}

/* ===== Small screen tweaks ===== */
@media (max-width: 480px) {
  .container {
    width: calc(100% - 1.2rem);
  }

  .guide-block {
    padding: 1rem;
    border-radius: 16px;
  }

  .guide-number {
    width: 2.2rem;
    height: 2.2rem;
    font-size: 1rem;
  }

  .control-item {
    min-width: 100%;
    flex: none;
    padding: 0.6rem 0.7rem;
  }

  .screenshot-placeholder {
    padding: 1rem 0.8rem;
    font-size: 0.88rem;
  }

  .hero-screenshot {
    max-width: 280px;
  }

  .hero-video-box {
    max-width: 187px;
  }

  .card {
    padding: 1rem;
  }

  .settings-card {
    padding: 1rem;
  }

  .feedback-form {
    padding: 1rem;
  }

  .feedback-form input,
  .feedback-form textarea,
  .feedback-form select {
    padding: 0.7rem 0.8rem;
  }

  .button {
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
  }
}
