/* ===========================================================
   Plotwith 静态页（关于 / 定价 / 条款 / 隐私 / 退款 / 内容政策 / 404）
   与主应用共用同一套底色与文字层级，避免每页各写一份内联样式。
   =========================================================== */

:root {
  --page-bg: #131313;
  --text: rgba(255, 255, 255, 0.78);
  --text-strong: #e5e2e1;
  --text-dim: rgba(255, 255, 255, 0.5);
  --text-mute: rgba(255, 255, 255, 0.42);
  --accent: #a78bfa;
  --accent-soft: #c4b5fd;
  --line: rgba(255, 255, 255, 0.08);
  --surface: rgba(255, 255, 255, 0.04);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Noto Sans SC', sans-serif;
  background: var(--page-bg);
  color: var(--text);
  max-width: 720px;
  margin: 0 auto;
  padding: 44px 20px 64px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

h1 {
  font-family: 'Playfair Display', 'Noto Serif SC', serif;
  color: var(--text-strong);
  font-size: 26px;
  line-height: 1.35;
  margin-bottom: 10px;
}
h1 span {
  background: linear-gradient(135deg, #a5b4fc, #c4b5fd, #f0abfc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
h2 {
  color: var(--accent-soft);
  font-size: 17px;
  line-height: 1.5;
  margin-top: 34px;
  margin-bottom: 8px;
}
h3 {
  color: var(--text-strong);
  font-size: 14.5px;
  margin-top: 20px;
  margin-bottom: 6px;
}
p { margin: 11px 0; }
a { color: var(--accent-soft); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { color: var(--text-strong); }
hr { border: none; border-top: 1px solid var(--line); margin: 28px 0; }

ul, ol { margin: 12px 0; padding-left: 22px; }
li { margin: 6px 0; font-size: 14.5px; }

.tagline {
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.7;
  margin-bottom: 30px;
}
.updated {
  color: var(--text-mute);
  font-size: 12px;
  margin-bottom: 24px;
}

/* 功能卡 / 场景标签 */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin: 20px 0;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
}
.feature-card h3 { margin-top: 0; color: var(--accent-soft); font-size: 14px; }
.feature-card p { font-size: 12.5px; color: var(--text-mute); margin: 0; }

.scene-list, .scenes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}
.scenes { justify-content: center; margin-top: 24px; }
.scene-tag {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.18);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 12.5px;
  color: var(--accent-soft);
}
.tech-list { margin: 12px 0; padding-left: 20px; }
.tech-list li { font-size: 13.5px; }

/* CTA 与主应用一致：米白药丸 */
.cta {
  display: inline-block;
  background: var(--text-strong);
  color: #2a2827;
  padding: 11px 30px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  margin-top: 22px;
  transition: background 0.2s, transform 0.15s;
}
.cta:hover { background: #f4f3f1; text-decoration: none; }
.cta:active { transform: scale(0.98); }

/* 表格（定价页） */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 13.5px;
}
th, td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
th { color: var(--text-dim); font-weight: 600; font-size: 12px; letter-spacing: 0.02em; }
td { color: var(--text); }

.footer-links {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12.5px;
}
.footer-links a { color: var(--text-mute); }

/* 语言切换 + 双语显隐 */
.lang-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 6px 14px;
  color: var(--accent-soft);
  cursor: pointer;
  font-size: 12.5px;
  font-family: inherit;
  backdrop-filter: blur(8px);
}
.lang-toggle:hover { background: rgba(255, 255, 255, 0.1); }
[data-lang] { display: none; }
[data-lang="zh"] { display: block; }
html[lang="en"] [data-lang="zh"] { display: none; }
html[lang="en"] [data-lang="en"] { display: block; }
html[lang="zh-CN"] [data-lang="en"] { display: none; }

/* 404：整页居中 */
body.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  max-width: none;
  padding: 20px;
  text-align: center;
}
body.error-page .container { max-width: 460px; }
body.error-page .code {
  font-size: 88px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #a5b4fc, #c4b5fd, #f0abfc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
body.error-page h1 { font-size: 21px; font-weight: 500; margin-bottom: 12px; }
body.error-page p { color: var(--text-mute); font-size: 14.5px; line-height: 1.7; margin-bottom: 26px; }

@media (max-width: 480px) {
  body { padding: 34px 18px 52px; }
  h1 { font-size: 23px; }
  h2 { font-size: 16px; }
}
