/* 墨灵古诗官网 */
:root {
  --bg: #faf7f2;
  --bg-footer: #2d2d2d;
  --text: #2d2d2d;
  --text-light: #8b7e74;
  --text-footer: #c8c2b8;
  --accent: #b5544a;
  --border: #e8e2d9;
  --font-serif: 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
  --font-sans: -apple-system, 'PingFang SC', 'Helvetica Neue', 'Microsoft YaHei', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Hero ── */
.hero {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem 3rem;
  text-align: center;
  position: relative;
  animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Mountain decoration */
.mountain-decoration {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0.04;
  pointer-events: none;
}

/* App icon */
.app-icon {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  background: linear-gradient(145deg, #ebe4d8, #d9cfc2);
  border: 1px solid var(--border);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.07);
  overflow: hidden;
}

.app-icon img {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  object-fit: cover;
}

h1 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.tagline {
  font-size: 1.125rem;
  color: var(--text-light);
  margin-bottom: 3rem;
  letter-spacing: 0.06em;
}

/* Phone mockup */
.phone-mockup {
  width: 260px;
  height: 520px;
  border-radius: 36px;
  border: 6px solid #3a3a3a;
  background: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.phone-mockup::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 24px;
  background: #3a3a3a;
  border-radius: 0 0 16px 16px;
  z-index: 1;
}

.phone-mockup img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

/* ── Footer ── */
footer {
  background: var(--bg-footer);
  color: var(--text-footer);
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2rem;
  margin-bottom: 1.25rem;
}

.footer-links a {
  color: var(--text-footer);
  text-decoration: none;
  font-size: 0.8125rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

.icp {
  font-size: 0.75rem;
  opacity: 0.5;
}

/* ── Agreement page ── */
.agreement-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  min-height: calc(100dvh - 120px);
}

.back-link {
  display: inline-block;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.875rem;
  margin-bottom: 2.5rem;
  transition: opacity 0.2s;
}

.back-link:hover {
  opacity: 0.7;
}

.agreement-page h1 {
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

.update-date {
  color: var(--text-light);
  font-size: 0.8125rem;
  margin-bottom: 2.5rem;
}

.agreement-page h2 {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  color: var(--text);
}

.agreement-page p,
.agreement-page li {
  font-size: 0.9375rem;
  line-height: 1.85;
  color: #4a4a4a;
  margin-bottom: 0.5rem;
}

.agreement-page ul,
.agreement-page ol {
  padding-left: 1.5em;
  margin-bottom: 0.5rem;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  h1 { font-size: 2rem; }
  .tagline { font-size: 1rem; }
  .phone-mockup { width: 220px; height: 440px; border-radius: 30px; }
  .phone-mockup::before { width: 80px; height: 20px; border-radius: 0 0 12px 12px; }
  .footer-links { gap: 0.5rem 1.25rem; }
}
