/* ============================================================
   替胖 TiPang 官网样式
   品牌语言：纸感（软阴影替代描边）· 灰玫瑰色板 · 三大一小右下折角
   折角 border-radius 顺序 = 左上 / 右上 / 右下 / 左下
   ============================================================ */

:root {
  --ink: #29282a;
  --ink-2: #626168;
  --canvas: #f3f2ee;
  --paper: #fffcf7;
  --paper-muted: #ecebe7;
  --line: #d9d8d2;
  --rose: #d8c0c0;
  --rose-deep: #a89090;
  --rose-soft: #f0d8d8;
  --sand: #d8c0a8;
  --cream: #d8d8c0;
  --coral: #df7650;
  --coral-deep: #c95f3a;
  --violet: #5c5263;

  --fold-lg: 18px 18px 8px 18px;
  --fold-md: 14px 14px 6px 14px;
  --fold-sm: 10px 10px 4px 10px;

  --shadow-rest: 0 1px 2px rgba(41, 40, 42, 0.05), 0 12px 32px rgba(41, 40, 42, 0.09);
  --shadow-hover: 0 2px 4px rgba(41, 40, 42, 0.06), 0 18px 40px rgba(41, 40, 42, 0.13);

  --font-serif: "Songti SC", "Noto Serif SC", "STSong", "SimSun", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 纸感颗粒 —— 极淡，只给"纸"的质地 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--rose-soft); color: var(--ink); }

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

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

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

/* ============ 顶栏 ============ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 245, 242, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(217, 216, 210, 0.6);
}

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

.wordmark {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.02em;
}

.wordmark .latin {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: var(--ink-2);
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: var(--ink-2);
}

.site-nav a { transition: color 0.2s; }
.site-nav a:hover { color: var(--ink); }

.site-nav .ext::after {
  content: "↗";
  font-size: 11px;
  margin-left: 3px;
  color: var(--rose-deep);
}

/* ============ 通用段落 ============ */

section { padding: 88px 0; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 4px var(--rose-soft);
}

.section-head { max-width: 620px; margin-bottom: 48px; }

.section-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

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

/* ============ Hero ============ */

.hero { padding: 68px 0 76px; overflow: hidden; }

.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 48px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(34px, 5.6vw, 58px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.hero .sub {
  margin-top: 22px;
  max-width: 480px;
  color: var(--ink-2);
  font-size: 16.5px;
}

.hero .sub strong { color: var(--ink); font-weight: 600; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
  padding: 13px 24px;
  border-radius: var(--fold-md);
  background: var(--rose-deep);
  color: #fffcf7;
  box-shadow: var(--shadow-rest);
  cursor: default;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-store.ghost {
  background: var(--paper);
  color: var(--ink);
  border: none;
}

.btn-store .platform {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  text-align: left;
}

.btn-store .platform .os { font-size: 15px; font-weight: 600; }
.btn-store .platform .note { font-size: 12px; opacity: 0.82; }
.btn-store svg { width: 22px; height: 22px; flex: none; }

.cta-hint {
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-2);
}

.cta-hint em { font-style: normal; color: var(--rose-deep); }

/* 小鸥 · 直接立在纸面上，航线在身后 */
.hero-figure {
  position: relative;
  max-width: 380px;
  margin: 0 auto;
}

.hero-figure img {
  position: relative;
  z-index: 1;
  width: 100%;
  filter: drop-shadow(0 18px 28px rgba(168, 144, 144, 0.32));
  animation: float 6s ease-in-out infinite alternate;
}

@keyframes float {
  from { transform: translateY(0); }
  to { transform: translateY(-10px); }
}

.hero-figure figcaption {
  margin-top: 10px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-2);
  letter-spacing: 0.1em;
}

.route-svg {
  position: absolute;
  inset: -14% -18%;
  width: 136%;
  height: 128%;
  pointer-events: none;
}

/* ============ 出口卡 ============ */

.exits {
  background: linear-gradient(180deg, var(--canvas) 0%, rgba(240, 216, 216, 0.28) 100%);
}

.exit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.exit-card {
  background: var(--paper);
  border-radius: var(--fold-lg);
  box-shadow: var(--shadow-rest);
  padding: 30px 28px 28px;
  transition: transform 0.25s, box-shadow 0.25s;
}

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

.exit-card .num {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 700;
  color: var(--coral-deep);
  line-height: 1;
}

.exit-card h3 {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 700;
  margin-top: 16px;
}

.exit-card .tag {
  margin-top: 6px;
  font-size: 14px;
  color: var(--rose-deep);
  letter-spacing: 0.04em;
}

.exit-card p {
  margin-top: 14px;
  font-size: 14.5px;
  color: var(--ink-2);
}

/* ============ 同行模块网格 ============ */

.companion-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.companion-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--paper);
  border-radius: var(--fold-lg);
  box-shadow: var(--shadow-rest);
  padding: 26px 26px 24px;
  transition: transform 0.25s, box-shadow 0.25s;
}

.companion-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.companion-card .seat {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: var(--fold-sm);
  display: grid;
  place-items: center;
  font-size: 24px;
  background: var(--paper-muted);
  box-shadow: inset 0 0 0 1px rgba(41, 40, 42, 0.05), inset 0 -2px 6px rgba(41, 40, 42, 0.05);
}

.companion-card h3 {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
}

.companion-card .tag {
  margin-top: 2px;
  font-size: 13.5px;
  color: var(--rose-deep);
}

.companion-card p {
  margin-top: 10px;
  font-size: 14px;
  color: var(--ink-2);
}

/* ============ 理念 ============ */

.creed {
  position: relative;
  background: var(--violet);
  color: #f5f5f2;
  overflow: hidden;
}

.creed .container { position: relative; z-index: 1; }

.creed blockquote {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3.6vw, 36px);
  font-weight: 700;
  line-height: 1.5;
  max-width: 720px;
  letter-spacing: 0.02em;
}

.creed .why {
  margin-top: 24px;
  max-width: 640px;
  color: rgba(245, 245, 242, 0.86);
  font-size: 15.5px;
}

.creed .not-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  margin-top: 36px;
}

.creed .not-list span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--fold-sm);
  background: rgba(245, 245, 242, 0.1);
  font-size: 13.5px;
  letter-spacing: 0.04em;
}

.creed .not-list span::before {
  content: "·";
  color: var(--coral);
  font-weight: 700;
}

.creed .ou {
  position: absolute;
  right: -72px;
  bottom: -96px;
  width: 360px;
  opacity: 0.16;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(315deg, rgba(0, 0, 0, 1) 34%, rgba(0, 0, 0, 0) 82%);
  mask-image: linear-gradient(315deg, rgba(0, 0, 0, 1) 34%, rgba(0, 0, 0, 0) 82%);
}

/* ============ 关于 ============ */

.about-card {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 22px;
}

.about-main {
  background: var(--paper);
  border-radius: var(--fold-lg);
  box-shadow: var(--shadow-rest);
  padding: 32px 34px 32px;
}

.about-main h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
}

.about-main p {
  margin-top: 14px;
  font-size: 15px;
  color: var(--ink-2);
}

.about-facts {
  margin-top: 26px;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.about-facts .row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.about-facts .k { color: var(--ink-2); letter-spacing: 0.06em; }
.about-facts .v { text-align: right; }

.about-side {
  display: grid;
  gap: 22px;
  align-content: start;
}

.link-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  background: linear-gradient(168deg, var(--paper) 0%, var(--rose-soft) 160%);
  border-radius: var(--fold-lg);
  box-shadow: var(--shadow-rest);
  padding: 32px 26px 26px;
  transition: transform 0.25s, box-shadow 0.25s;
}

.link-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.link-card .t {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
}

.link-card .d {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--ink-2);
}

.link-card .go {
  font-size: 13.5px;
  color: var(--rose-deep);
  letter-spacing: 0.04em;
}

.link-card .go::after { content: " →"; }

/* ============ 页脚 ============ */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper-muted);
  padding: 42px 0 38px;
  font-size: 13.5px;
  color: var(--ink-2);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.footer-nav a:hover { color: var(--ink); }

.footer-rule {
  margin: 24px 0 18px;
  border-top: 1px solid var(--line);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
}

.footer-meta a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(98, 97, 104, 0.4); }
.footer-meta a:hover { color: var(--ink); }

.footer-slogan {
  margin-top: 22px;
  font-family: var(--font-serif);
  color: var(--rose-deep);
  letter-spacing: 0.18em;
  font-size: 14px;
}

/* ============ 文档页（隐私 / 协议）——朴素正文版 ============ */

.doc-hero { padding: 56px 0 0; }

.doc-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3.4vw, 30px);
  font-weight: 700;
}

.doc-hero .meta {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--ink-2);
}

.doc-body {
  max-width: 760px;
  margin: 28px auto 80px;
}

.doc-body h2 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  margin: 36px 0 12px;
}

.doc-body h2:first-child { margin-top: 0; }

.doc-body p { margin: 12px 0; font-size: 15px; color: #3b3a3d; }

.doc-body ul, .doc-body ol { margin: 12px 0 12px 1.4em; }
.doc-body li { margin: 6px 0; font-size: 15px; color: #3b3a3d; }

.doc-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}

.doc-body th, .doc-body td {
  text-align: left;
  padding: 8px 10px;
  border: 1px solid var(--line);
  vertical-align: top;
}

.doc-body th { font-weight: 700; }

.doc-body a { color: var(--coral-deep); text-underline-offset: 3px; text-decoration: underline; }

/* ============ 响应式 ============ */

@media (max-width: 880px) {
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  .hero-figure { max-width: 420px; margin: 0 auto; }
  .exit-grid { grid-template-columns: 1fr; }
  .companion-grid { grid-template-columns: 1fr; }
  .about-card { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  section { padding: 64px 0; }
  .hero { padding: 48px 0 72px; }
  .site-nav .hide-sm { display: none; }
  .site-header .container { height: 58px; }
  .cta-row .btn-store { flex: 1 1 100%; justify-content: center; }
  .creed .ou { width: 220px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-figure .stage img { animation: none; }
  .exit-card, .companion-card, .link-card, .btn-store { transition: none; }
}
