:root {
  --paper: #f6f2ea;
  --paper-warm: #f0e7dc;
  --paper-deep: #e8ddcf;
  --white: #ffffff;
  --ink: #2e2a24;
  --ink-soft: #6f665c;
  --ink-faint: #9d9184;
  --primary: #2f6f64;
  --primary-dark: #204d45;
  --accent: #e28a52;
  --accent-soft: #f4c9a9;
  --rose: #c98a97;
  --sky: #c6dde6;
  --line: rgba(46, 42, 36, 0.14);
  --card-border: rgba(46, 42, 36, 0.12);
  --shadow: 0 18px 46px rgba(46, 42, 36, 0.14);
  --shadow-soft: 0 8px 24px rgba(46, 42, 36, 0.08);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  line-height: 1.7;
  letter-spacing: 0;
}

body.menu-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
}

.container {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.container.narrow {
  width: min(820px, calc(100% - 40px));
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 14px rgba(46, 42, 36, 0.08);
  backdrop-filter: blur(14px);
}

.header-inner {
  max-width: 1200px;
  height: 66px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", serif;
  font-size: 21px;
  font-weight: 700;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 4px 12px rgba(46, 42, 36, 0.14);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
}

.nav-links a {
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  width: 100%;
}

.nav-links .nav-cta {
  padding: 9px 18px;
  border-radius: 999px;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 8px 20px rgba(226, 138, 82, 0.28);
}

.nav-links .nav-cta::after {
  display: none;
}

.nav-links .nav-cta:hover {
  color: #fff;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

.nav-toggle .icon-close {
  display: none;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 112px 0 84px;
  background: var(--paper);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  opacity: 0.18;
  transform: scale(1.06);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(246, 242, 234, 0.97) 0%,
    rgba(246, 242, 234, 0.88) 42%,
    rgba(246, 242, 234, 0.52) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: center;
  gap: 42px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  color: var(--ink);
  font-family: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", serif;
  font-size: clamp(46px, 6.4vw, 76px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.02em;
}

.hero h1 span {
  display: block;
  margin-top: 14px;
  color: var(--primary);
  font-size: clamp(23px, 3vw, 34px);
  font-weight: 600;
}

.hero-lead {
  max-width: 560px;
  margin: 24px 0 32px;
  color: var(--ink-soft);
  font-size: clamp(17px, 2vw, 21px);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease, color 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 12px 30px rgba(226, 138, 82, 0.32);
}

.button.primary:hover {
  background: #d47a43;
  box-shadow: 0 14px 34px rgba(226, 138, 82, 0.38);
}

.button.outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: rgba(255, 255, 255, 0.34);
}

.button.outline:hover {
  background: rgba(47, 111, 100, 0.1);
}

.button.light {
  color: var(--primary-dark);
  background: #fff;
}

.button.outline-light {
  border: 2px solid rgba(255, 255, 255, 0.78);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.button.app-store {
  gap: 10px;
  color: #fff;
  background: #1d1d1d;
  box-shadow: 0 12px 30px rgba(29, 29, 29, 0.22);
}

.button.app-store svg {
  width: 22px;
  height: 22px;
}

.hero-phone {
  position: relative;
  justify-self: end;
  padding: 16px;
}

.phone-frame {
  position: relative;
  z-index: 2;
  width: min(300px, 100%);
  aspect-ratio: 9 / 19.5;
  padding: 8px;
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(46, 42, 36, 0.26);
  animation: float 5.5s ease-in-out infinite;
}

.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 26px;
}

.hero-note {
  position: absolute;
  z-index: 3;
  right: -2px;
  top: 42px;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--primary-dark);
  background: #fff;
  box-shadow: var(--shadow-soft);
  font-size: 13px;
  font-weight: 800;
  transform: rotate(3deg);
}

.glow {
  position: absolute;
  width: 46px;
  height: 18px;
  border-radius: 2px;
  box-shadow: var(--shadow-soft);
}

.glow-a {
  left: -12px;
  top: 24%;
  background: var(--accent-soft);
  transform: rotate(-9deg);
}

.glow-b {
  right: -14px;
  bottom: 18%;
  background: var(--sky);
  transform: rotate(8deg);
}

.section {
  padding: 96px 0;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-heading h2 {
  margin: 0 0 14px;
  font-family: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", serif;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.25;
}

.section-heading p:not(.section-kicker) {
  margin: 0;
  color: var(--ink-soft);
  font-size: 17px;
}

.section-heading.light p:not(.section-kicker) {
  color: rgba(255, 255, 255, 0.8);
}

.features {
  background: var(--white);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  min-height: 250px;
  padding: 26px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 4px 18px rgba(46, 42, 36, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.feature-icon,
.diy-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  border-radius: var(--radius);
  color: #fff;
  background: var(--primary);
}

.feature-icon svg,
.diy-icon svg {
  width: 26px;
  height: 26px;
}

.feature-card h3,
.diary-card h3,
.diy-card h3 {
  margin: 0 0 10px;
  font-family: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", serif;
  font-size: 20px;
  line-height: 1.35;
}

.feature-card p,
.diary-card p,
.diy-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.functions {
  background: var(--paper-deep);
}

.function-list {
  display: grid;
  gap: 76px;
}

.function-row {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: 56px;
}

.function-row.reverse .function-media {
  order: 2;
}

.function-row.reverse .function-copy {
  order: 1;
}

.function-media {
  position: relative;
  width: min(440px, 100%);
  justify-self: end;
}

.function-row.reverse .function-media {
  justify-self: start;
}

.function-media img {
  width: 100%;
  max-height: 560px;
  aspect-ratio: 9 / 14;
  object-fit: cover;
  border: 8px solid #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.media-label {
  position: absolute;
  left: 14px;
  bottom: 18px;
  padding: 7px 12px;
  border-radius: 6px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  font-size: 13px;
  font-weight: 800;
}

.function-copy h3 {
  margin: 0 0 16px;
  font-family: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", serif;
  font-size: clamp(25px, 3.2vw, 34px);
  line-height: 1.25;
}

.function-copy > p {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 16px;
}

.function-copy ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.function-copy li {
  position: relative;
  padding-left: 24px;
  color: var(--ink-soft);
  font-size: 14px;
}

.function-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--accent);
  transform: rotate(45deg);
}

.diary-types {
  background: var(--paper);
}

.diary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.diary-card {
  padding: 16px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 6px 20px rgba(46, 42, 36, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.diary-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.book-cover {
  position: relative;
  height: 184px;
  margin-bottom: 18px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--cover);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.book-cover::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  height: 118px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 3px;
  background: var(--accent);
  box-shadow: 0 8px 18px rgba(46, 42, 36, 0.12);
  transform: rotate(-2deg);
}

.book-title {
  position: relative;
  z-index: 2;
  color: var(--ink);
  font-family: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.book-lines {
  position: absolute;
  z-index: 3;
  left: 36px;
  right: 36px;
  bottom: 42px;
  height: 64px;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.42) 0,
    rgba(255, 255, 255, 0.42) 1px,
    transparent 1px,
    transparent 12px
  );
  transform: rotate(-2deg);
}

.diy {
  background: var(--paper-warm);
}

.diy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.diy-card {
  padding: 28px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 24px rgba(46, 42, 36, 0.06);
}

.diy-icon {
  color: var(--accent);
  background: #fff1e6;
}

.swatch-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 22px;
}

.swatch-strip span {
  height: 46px;
  border: 1px solid rgba(46, 42, 36, 0.12);
  border-radius: 6px;
  background: var(--swatch);
}

.sticker-strip {
  display: flex;
  gap: 9px;
  margin-top: 24px;
}

.sticker-strip span {
  width: 38px;
  height: 38px;
  border-radius: 7px;
  background: var(--tape);
  box-shadow: 0 5px 12px rgba(46, 42, 36, 0.1);
  transform: rotate(-6deg);
}

.sticker-strip span:nth-child(even) {
  transform: rotate(5deg);
}

.font-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
  margin-top: 22px;
}

.font-strip span {
  padding: 11px;
  border: 1px solid var(--card-border);
  border-radius: 6px;
  text-align: center;
  font-family: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", serif;
  font-size: 16px;
  font-weight: 700;
}

.font-strip span:nth-child(2) {
  font-family: "Songti SC", "Noto Serif CJK SC", serif;
}

.diy-note {
  margin: 32px 0 0;
  text-align: center;
  color: var(--ink-soft);
  font-size: 14px;
}

.facts {
  padding: 72px 0;
  color: #fff;
  background: var(--ink);
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.fact strong {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
  font-family: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", serif;
  font-size: clamp(40px, 5vw, 58px);
  line-height: 1;
}

.fact span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

.privacy {
  color: #fff;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 34px;
}

.privacy-card {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.09);
}

.privacy-card h3 {
  margin: 0 0 10px;
  font-family: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", serif;
  font-size: 20px;
}

.privacy-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.privacy-action {
  text-align: center;
}

.download {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #e8a87c, #c38d9e);
}

.download-bg {
  position: absolute;
  inset: 0;
  opacity: 0.34;
  background: linear-gradient(135deg, #c38d9e, #e8a87c, #41a394, #e8a87c);
  background-size: 320% 320%;
  animation: gradient-shift 12s ease infinite;
}

.download-inner {
  position: relative;
  max-width: 820px;
  text-align: center;
}

.download h2 {
  margin: 0 0 14px;
  color: #fff;
  font-family: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", serif;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.2;
}

.download-inner > p:not(.store-note) {
  margin: 0 0 32px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 17px;
}

.download-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.store-note {
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.site-footer {
  color: rgba(255, 255, 255, 0.72);
  background: var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 42px;
  padding: 56px 0 44px;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.footer-brand img {
  flex: 0 0 auto;
  border-radius: 11px;
}

.footer-brand strong {
  color: #fff;
  font-family: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", serif;
  font-size: 22px;
}

.footer-brand p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

.footer-links,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links h4,
.footer-contact h4 {
  margin: 0 0 4px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

.footer-links a,
.footer-contact a {
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--accent-soft);
}

.footer-bottom {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
}

.footer-bottom a {
  color: inherit;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: rgba(255, 255, 255, 0.7);
}

.policy-page {
  padding: 128px 0 96px;
  background: var(--white);
}

.policy-page h1 {
  margin: 0 0 8px;
  font-family: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", serif;
  font-size: clamp(30px, 4vw, 42px);
}

.policy-date {
  margin: 0 0 36px;
  color: var(--ink-soft);
  font-size: 14px;
}

.policy-page section {
  margin-top: 30px;
}

.policy-page h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

.policy-page p,
.policy-page li {
  color: var(--ink-soft);
  font-size: 15px;
}

.policy-page ul {
  padding-left: 22px;
}

.policy-page a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal.delay-1 {
  transition-delay: 0.1s;
}

.reveal.delay-2 {
  transition-delay: 0.2s;
}

.reveal.delay-3 {
  transition-delay: 0.3s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes gradient-shift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@media (max-width: 1080px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .function-row,
  .function-row.reverse {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .function-media,
  .function-row.reverse .function-media {
    justify-self: center;
  }

  .diary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .diy-grid {
    grid-template-columns: 1fr;
  }

  .privacy-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    inset: 66px 0 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 26px;
    padding: 24px;
    background: rgba(246, 242, 234, 0.98);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .site-header.menu-open .nav-links {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-header.menu-open .icon-menu {
    display: none;
  }

  .site-header.menu-open .icon-close {
    display: block;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-phone {
    justify-self: center;
    margin-top: 12px;
  }

  .hero-note {
    right: auto;
    left: 2px;
    top: 20px;
  }

  .facts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 32px, 1200px);
  }

  .hero {
    padding: 100px 0 64px;
  }

  .hero h1 {
    font-size: clamp(40px, 12vw, 52px);
  }

  .hero h1 span {
    font-size: 23px;
  }

  .phone-frame {
    width: min(280px, 100%);
  }

  .section {
    padding: 68px 0;
  }

  .section-heading {
    margin-bottom: 36px;
  }

  .feature-grid,
  .diary-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 0;
  }

  .function-list {
    gap: 56px;
  }

  .function-media img {
    max-height: 460px;
  }

  .diy-card {
    padding: 22px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 44px;
  }
}
