/* 成功日记 SuccessDiary — 站点样式（无外部字体、无脚本依赖） */

:root {
  color-scheme: light;
  --cream: #fbf5ea;
  --cream-deep: #f4ead8;
  --paper: #fffdf8;
  --ink: #2a2019;
  --ink-2: #5a4d41;
  --ink-3: #85766a;
  --line: #eadfcb;
  --orange: #f28c38;
  --orange-light: #ffb347;
  --orange-text: #a84e08;
  --orange-soft: #ffe9d0;
  --green: #5fae66;
  --green-light: #86c98a;
  --green-text: #2c6f37;
  --green-soft: #e3f2df;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(74, 48, 20, 0.05), 0 12px 32px -12px rgba(74, 48, 20, 0.16);
  --shadow-lift: 0 2px 4px rgba(74, 48, 20, 0.06), 0 28px 60px -20px rgba(74, 48, 20, 0.28);
  --wrap: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "MiSans",
    "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC",
    "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.75;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--orange-text);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  line-height: 1.3;
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

.nb {
  display: inline-block;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  border-radius: 10px;
  z-index: 100;
}

.skip:focus {
  left: 12px;
}

/* ---------- 顶栏 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 245, 234, 0.86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(234, 223, 203, 0.7);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.05rem;
  white-space: nowrap;
}

.brand-mark {
  width: 32px;
  height: 32px;
  flex: none;
  filter: drop-shadow(0 3px 6px rgba(242, 140, 56, 0.45));
}

.brand small {
  font-weight: 500;
  color: var(--ink-3);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

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

.nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: var(--cream-deep);
  color: var(--ink);
}

.nav .nav-wide {
  display: none;
}

@media (min-width: 860px) {
  .nav .nav-wide {
    display: inline-block;
  }
}

@media (max-width: 420px) {
  .brand small {
    display: none;
  }
  .nav a {
    padding: 8px 9px;
  }
}

/* ---------- 通用 ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange-text);
  font-size: 0.88rem;
  font-weight: 700;
}

.pill.green {
  background: var(--green-soft);
  color: var(--green-text);
}

.pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

section {
  padding: 72px 0;
}

.section-head {
  max-width: 680px;
  margin-bottom: 40px;
}

.eyebrow {
  color: var(--orange-text);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: clamp(1.65rem, 3.6vw, 2.3rem);
  text-wrap: balance;
}

.section-head p {
  margin-top: 14px;
  color: var(--ink-2);
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- 首屏 ---------- */

.hero {
  padding: 56px 0 72px;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -64px 0 0 0;
  background:
    radial-gradient(520px 380px at 88% 18%, rgba(255, 179, 71, 0.3), transparent 70%),
    radial-gradient(460px 360px at 70% 92%, rgba(134, 201, 138, 0.26), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.hero .wrap {
  display: grid;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.5rem);
  line-height: 1.22;
  margin-top: 20px;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(transparent 62%, rgba(255, 179, 71, 0.55) 62%);
  padding: 0 2px;
}

.hero .lede {
  margin-top: 20px;
  font-size: 1.12rem;
  color: var(--ink-2);
  max-width: 30em;
}

.hero-meta {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
}

.soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff8ec;
  font-weight: 700;
}

.soon svg {
  width: 18px;
  height: 18px;
}

.hero-note {
  font-size: 0.92rem;
  color: var(--ink-3);
}

.hero-facts {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--ink-2);
}

.hero-facts li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.hero-facts svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 5px;
  color: var(--green);
}

.hero-visual {
  position: relative;
  justify-self: center;
  width: min(280px, 72vw);
}

.phone {
  background: #201913;
  border-radius: 46px;
  padding: 8px;
  box-shadow: var(--shadow-lift);
}

.phone img {
  border-radius: 38px;
  width: 100%;
}

.float {
  position: absolute;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-lift);
  padding: 14px 16px;
  font-size: 0.86rem;
  line-height: 1.55;
}

.float-diary {
  top: 9%;
  left: -34%;
  width: 190px;
  transform: rotate(-4deg);
}

.float-diary .tag {
  font-size: 0.72rem;
  color: var(--ink-3);
  letter-spacing: 0.06em;
}

.float-diary strong {
  display: block;
  margin: 2px 0 4px;
  font-size: 0.95rem;
}

.float-diary p {
  color: var(--ink-2);
  font-size: 0.82rem;
}

.float-power {
  bottom: 12%;
  right: -30%;
  display: flex;
  gap: 10px;
  align-items: center;
  background: linear-gradient(135deg, var(--green-light), var(--green));
  border: 0;
  color: #fff;
  font-weight: 700;
  transform: rotate(3deg);
  white-space: nowrap;
}

.float-power svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 1180px) {
  .float-power {
    right: -14%;
  }
}

@media (max-width: 899px) {
  .float-diary {
    left: -17%;
    width: 168px;
  }
  .float-power {
    right: -15%;
  }
}

@media (max-width: 380px) {
  .float-diary {
    left: -12%;
    width: 150px;
  }
  .float-power {
    right: -10%;
  }
}

@media (min-width: 900px) {
  .hero {
    padding: 80px 0 104px;
  }
  .hero .wrap {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 32px;
  }
  .hero-visual {
    width: 300px;
  }
}

/* ---------- 功能 ---------- */

.features {
  display: grid;
  gap: 18px;
}

@media (min-width: 640px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature {
  padding: 26px 24px 24px;
}

.feature .icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--orange-soft);
  color: var(--orange-text);
  margin-bottom: 16px;
}

.feature:nth-child(even) .icon {
  background: var(--green-soft);
  color: var(--green-text);
}

.feature .icon svg {
  width: 24px;
  height: 24px;
}

.feature h3 {
  font-size: 1.14rem;
}

.feature p {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 0.97rem;
}

.feature .fine {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 0.86rem;
  color: var(--ink-3);
}

/* ---------- 截图 ---------- */

.screens {
  background: linear-gradient(180deg, transparent, var(--cream-deep) 18%, var(--cream-deep) 82%, transparent);
}

.shots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 820px) {
  .shots {
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
  }
}

.shots figure {
  margin: 0;
}

.shots .phone {
  border-radius: 30px;
  padding: 5px;
  max-width: 230px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}

.shots .phone img {
  border-radius: 25px;
}

.shots figcaption {
  text-align: center;
  margin-top: 14px;
  font-size: 0.92rem;
  color: var(--ink-2);
  line-height: 1.5;
}

.shots figcaption strong {
  display: block;
  color: var(--ink);
}

.caption-note {
  margin-top: 28px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-3);
}

/* ---------- 三步 ---------- */

.steps {
  display: grid;
  gap: 18px;
  counter-reset: step;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 820px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  padding: 28px 24px;
  position: relative;
  counter-increment: step;
}

.step::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange-light), var(--orange));
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 16px;
}

.step:last-child::before {
  background: linear-gradient(135deg, var(--green-light), var(--green));
}

.step h3 {
  font-size: 1.14rem;
}

.step h3 span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-3);
  margin-left: 6px;
  vertical-align: 1px;
}

.step p {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 0.97rem;
}

/* ---------- 隐私 ---------- */

.privacy-grid {
  display: grid;
  gap: 18px;
}

@media (min-width: 880px) {
  .privacy-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.panel {
  padding: 28px 26px;
}

.panel h3 {
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel h3 svg {
  width: 24px;
  height: 24px;
  flex: none;
}

.panel.local h3 svg {
  color: var(--green);
}

.panel.remote h3 svg {
  color: var(--orange);
}

.panel > p {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 0.97rem;
}

.ticks {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: 0.97rem;
  color: var(--ink-2);
}

.ticks li {
  padding-left: 26px;
  position: relative;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft);
}

.consent {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.consent-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--cream);
  border: 1px solid var(--line);
}

.consent-row .box {
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  border-radius: 7px;
  border: 2px solid #cdbfa8;
  background: #fff;
  display: grid;
  place-items: center;
}

.consent-row strong {
  display: block;
  font-size: 0.98rem;
}

.consent-row span {
  display: block;
  font-size: 0.88rem;
  color: var(--ink-2);
  line-height: 1.6;
  margin-top: 2px;
}

.consent-cap {
  font-size: 0.82rem;
  color: var(--ink-3);
  margin-top: 4px;
}

.notes {
  margin-top: 18px;
  padding: 24px 26px;
  background: var(--orange-soft);
  border: 1px solid #f8d6ae;
  border-radius: var(--radius);
  color: #5b3a16;
  font-size: 0.95rem;
}

.notes h3 {
  font-size: 1.02rem;
  margin-bottom: 8px;
}

.notes ul {
  margin: 0;
  padding-left: 1.2em;
  display: grid;
  gap: 6px;
}

.notes a {
  color: #7a3a05;
  font-weight: 700;
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 800px;
  display: grid;
  gap: 12px;
}

.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 20px;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 28px 18px 0;
  font-weight: 700;
  position: relative;
}

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

.faq summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--ink-3);
  border-bottom: 2px solid var(--ink-3);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

.faq details p {
  padding: 0 0 18px;
  color: var(--ink-2);
  font-size: 0.97rem;
}

/* ---------- 下载 ---------- */

.download .box {
  background: linear-gradient(135deg, #ffb956, var(--orange) 55%, #ee7b2c);
  border-radius: 32px;
  padding: 56px 28px;
  text-align: center;
  color: #3a1f06;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}

.download .box::before,
.download .box::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.download .box::before {
  width: 280px;
  height: 280px;
  left: -90px;
  top: -120px;
}

.download .box::after {
  width: 220px;
  height: 220px;
  right: -60px;
  bottom: -110px;
}

.download h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.2rem);
  position: relative;
  text-wrap: balance;
}

.download p {
  position: relative;
  margin: 12px auto 0;
  max-width: 34em;
}

.download .soon {
  margin-top: 26px;
  position: relative;
}

.download .req {
  font-size: 0.9rem;
  margin-top: 16px;
  opacity: 0.85;
}

/* ---------- 页脚 ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 48px;
  font-size: 0.92rem;
  color: var(--ink-3);
}

.site-footer .wrap {
  display: grid;
  gap: 18px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.site-footer a {
  color: var(--ink-2);
}

.site-footer .fine {
  max-width: 62em;
  line-height: 1.7;
}

@media (min-width: 760px) {
  .site-footer .top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
  }
}

.site-footer .top {
  display: grid;
  gap: 14px;
}

/* ---------- 政策 / 条款 ---------- */

.legal-hero {
  padding-top: 48px;
  padding-bottom: 8px;
}

.legal-hero h1 {
  font-size: clamp(1.9rem, 4.6vw, 2.7rem);
  margin-top: 14px;
}

.legal-hero .meta {
  margin-top: 10px;
  color: var(--ink-3);
  font-size: 0.93rem;
}

.legal-layout {
  display: grid;
  gap: 32px;
  padding-top: 28px;
  padding-bottom: 80px;
}

@media (min-width: 960px) {
  .legal-layout {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 56px;
    align-items: start;
  }
  .toc {
    position: sticky;
    top: 88px;
    max-height: calc(100vh - 110px);
    overflow: auto;
  }
}

.toc {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 18px 14px;
  font-size: 0.92rem;
}

.toc h2 {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  font-weight: 700;
  margin-bottom: 8px;
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 2px;
}

.toc a {
  display: block;
  padding: 5px 8px;
  border-radius: 8px;
  color: var(--ink-2);
  text-decoration: none;
  line-height: 1.5;
}

.toc a:hover {
  background: var(--cream-deep);
  color: var(--ink);
}

.legal {
  max-width: 720px;
  min-width: 0;
}

.legal .summary {
  background: var(--green-soft);
  border: 1px solid #c9e4c4;
  border-radius: var(--radius);
  padding: 22px 24px;
  color: #23492a;
  font-size: 0.97rem;
}

.legal .summary h2 {
  font-size: 1.05rem;
  margin: 0 0 8px;
  padding: 0;
  border: 0;
}

.legal .summary ul {
  margin: 0;
}

.legal h2 {
  font-size: 1.4rem;
  margin: 48px 0 14px;
  padding-top: 8px;
}

.legal h3 {
  font-size: 1.08rem;
  margin: 28px 0 8px;
}

.legal p {
  margin: 12px 0;
  color: #3b3027;
}

.legal ul {
  margin: 12px 0;
  padding-left: 1.3em;
  display: grid;
  gap: 8px;
  color: #3b3027;
}

.legal li::marker {
  color: var(--orange);
}

.legal .callout {
  background: var(--orange-soft);
  border-left: 4px solid var(--orange);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
  margin: 18px 0;
  color: #5b3a16;
  font-size: 0.97rem;
}

.legal .callout p {
  margin: 0;
  color: inherit;
}

.legal .also {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--ink-2);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}

@media print {
  .site-header,
  .toc,
  .site-footer nav {
    display: none;
  }
  body {
    background: #fff;
  }
}
