/* DodorPos 官网样式 —— 现代、简约、暖色品牌 */
:root {
  --brand: #ffa000;
  --brand-dark: #ff6f00;
  --brand-light: #ffd54d;
  --accent: #159df6;
  --ink: #2b2b2b;
  --muted: #6b6b6b;
  --line: #ececec;
  --bg: #ffffff;
  --bg-soft: #fff9ef;
  --bg-warm: linear-gradient(160deg, #fff6e3 0%, #ffffff 60%);
  --radius: 16px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 顶栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: saturate(180%) blur(12px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
}
.brand img { width: 32px; height: 32px; border-radius: 50%; display: block; }

.lang-switch select {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  padding: 7px 30px 7px 12px;
  border-radius: 999px;
  font-size: 14px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b6b6b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--bg-warm);
  padding: 72px 0 64px;
  text-align: center;
}
.hero-logo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.badge {
  display: inline-block;
  background: var(--brand-light);
  color: var(--brand-dark);
  font-weight: 600;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(32px, 6vw, 52px);
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}
.hero .tagline { color: var(--brand-dark); font-weight: 600; }
.hero p.subtitle {
  max-width: 620px;
  margin: 0 auto 32px;
  color: var(--muted);
  font-size: clamp(16px, 2.4vw, 18px);
}

/* ---------- 按钮 ---------- */
.cta { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.play-badge-link { display: inline-block; transition: transform 0.15s ease; }
.play-badge-link:hover { transform: translateY(-2px); }
.play-badge { display: block; height: 56px; width: auto; }
.req-note { color: var(--muted); font-size: 13px; margin-top: 8px; }

/* ---------- 高亮 chips ---------- */
.highlights {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 36px;
}
.chip {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
}

/* ---------- 截图 ---------- */
.shots-section { background: var(--bg-soft); }

/* 设备切换分段控件 */
.device-toggle {
  display: flex;
  justify-content: center;
  margin: -24px 0 40px;
}
.device-tab {
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  padding: 9px 24px;
  cursor: pointer;
}
.device-tab:first-child { border-radius: 999px 0 0 999px; }
.device-tab:last-child { border-radius: 0 999px 999px 0; border-left: none; }
.device-tab.is-active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

/* 截图容器（图片自带设备边框，故不再加外框） */
.shots,
.tablets {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 28px;
}
[data-device-view][hidden] { display: none; }
.shot {
  display: block;
  height: auto;
  cursor: zoom-in;
  transition: transform 0.15s ease;
}
.shot:hover { transform: translateY(-4px); }
.shots .shot { width: 216px; }
.tablets .shot { width: min(480px, 100%); }

/* 点击放大 */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.85);
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 92vh;
  cursor: default;
}
.lb-nav,
.lb-close {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.15s ease;
}
.lb-nav:hover,
.lb-close:hover { background: rgba(0, 0, 0, 0.74); }
.lb-nav svg,
.lb-close svg { width: 24px; height: 24px; display: block; }
.lb-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
}
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-close {
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
}

/* 圆点指示器（仅移动端相册显示） */
.dots { display: none; }
.dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--line);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.dot.is-active { background: var(--brand); transform: scale(1.3); }

/* 移动端：截图改为左右滑动的相册 */
@media (max-width: 860px) {
  .shots,
  .tablets {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding: 6px 16px 16px;
    scrollbar-width: none;
  }
  .shots::-webkit-scrollbar,
  .tablets::-webkit-scrollbar { display: none; }
  .shots .shot,
  .tablets .shot {
    flex: 0 0 auto;
    scroll-snap-align: center;
  }
  .shots .shot { width: 62vw; }
  .tablets .shot { width: 70vw; }
  .dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
  .dots[hidden] { display: none; }
}

/* ---------- 功能区 ---------- */
.section { padding: 72px 0; }
.section h2 {
  text-align: center;
  font-size: clamp(26px, 4vw, 34px);
  margin: 0 0 48px;
  letter-spacing: -0.01em;
}
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand-light); }
.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  color: var(--brand-dark);
  margin-bottom: 18px;
}
.card .icon svg { width: 24px; height: 24px; }
.card h3 { margin: 0 0 8px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 36px 0;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
}
.site-footer a { color: var(--brand-dark); font-weight: 500; }
.site-footer .footer-links { display: flex; gap: 20px; }

/* ---------- 法律页（隐私政策） ---------- */
.legal { padding: 56px 0 72px; }
/* 语言分块：JS 执行前仅显示第一种（无 JS 时的兜底），JS 按所选语言切换 */
[data-lang-block] { display: none; }
[data-lang-block]:first-of-type { display: block; }
.legal .back { display: inline-block; margin-bottom: 24px; color: var(--brand-dark); font-weight: 500; }
.legal h1 { font-size: clamp(26px, 4vw, 34px); margin: 0 0 6px; }
.legal .updated { color: var(--muted); margin: 0 0 8px; }
.legal h2 {
  margin: 48px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--brand-light);
  font-size: 24px;
}
.legal h3 { margin: 28px 0 10px; font-size: 19px; }
.legal h4 { margin: 20px 0 8px; font-size: 16px; color: var(--brand-dark); }
.legal p, .legal li { color: #444; }
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 14px;
}
.legal th, .legal td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.legal th { background: var(--bg-soft); font-weight: 600; }
.legal hr { border: none; border-top: 1px solid var(--line); margin: 40px 0; }
.legal .note { color: var(--muted); font-size: 14px; font-style: italic; }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 48px; }
  .section { padding: 56px 0; }
}
