/* ============================================================
   且记 QieJi 官网 — 新中式静奢风
   ============================================================ */

:root {
  --paper: #F9F6F0;
  --paper-deep: #F0EBE1;
  --ink: #2C3639;
  --ink-light: #7A8A8E;
  --ink-faint: #A0B2B6;
  --cinnabar: #C84B31;
  --cinnabar-deep: #A63D28;
  --jade: #4E7C75;
  --jade-deep: #3A6159;
  --gold: #D4A373;
  --radius: 18px;
  --shadow-soft: 0 12px 40px rgba(44, 54, 57, .10);
  --shadow-lift: 0 22px 60px rgba(44, 54, 57, .16);
  --container: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Noto Serif SC', 'Songti SC', serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.font-logo { font-family: 'Ma Shan Zheng', cursive; }
.font-title { font-family: 'ZCOOL XiaoWei', 'Noto Serif SC', serif; }
.font-body { font-family: 'Noto Serif SC', serif; }

.accent { color: var(--cinnabar); }

/* 宣纸肌理 */
.paper-noise {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9998;
  opacity: .38;
  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' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.045'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ============ 按钮 ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 34px; border-radius: 999px;
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 15px; font-weight: 500; letter-spacing: .06em;
  transition: all .25s ease; cursor: pointer; border: 1px solid transparent;
}
.btn-primary { background: var(--cinnabar); color: #FFF7F0; box-shadow: 0 8px 22px rgba(200, 75, 49, .32); }
.btn-primary:hover { background: var(--cinnabar-deep); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(200, 75, 49, .4); }
.btn-ghost { border-color: rgba(44, 54, 57, .35); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); background: rgba(44, 54, 57, .05); transform: translateY(-2px); }
.btn-sm { padding: 9px 22px; font-size: 14px; }

/* ============ 导航 ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(249, 246, 240, .82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(44, 54, 57, .07);
  transition: box-shadow .3s ease;
}
.nav.scrolled { box-shadow: 0 6px 24px rgba(44, 54, 57, .08); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav-logo { font-size: 30px; color: var(--cinnabar); letter-spacing: .08em; }
.nav-right { display: flex; align-items: center; gap: 28px; }

.lang-switch {
  display: inline-flex; border: 1px solid rgba(44, 54, 57, .22);
  border-radius: 999px; overflow: hidden;
}
.lang-btn {
  padding: 4px 12px; background: transparent; border: none; cursor: pointer;
  font-family: 'Noto Sans SC', sans-serif; font-size: 13px; color: var(--ink-light);
  transition: all .2s ease;
}
.lang-btn.active { background: var(--ink); color: var(--paper); }

.nav-link { font-family: 'Noto Sans SC', sans-serif; font-size: 15px; color: var(--ink-light); transition: color .2s ease; }
.nav-link:hover { color: var(--cinnabar); }

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: 150px 0 110px;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(212, 163, 115, .16), transparent 60%),
    radial-gradient(900px 420px at -10% 40%, rgba(78, 124, 117, .10), transparent 60%),
    var(--paper);
  overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }

.hero-eyebrow {
  display: inline-block; padding: 6px 16px; margin-bottom: 22px;
  border: 1px solid rgba(200, 75, 49, .35); border-radius: 999px;
  color: var(--cinnabar); font-size: 14px; letter-spacing: .28em;
}
.hero-title { font-size: clamp(44px, 5.6vw, 66px); line-height: 1.28; letter-spacing: .04em; }
.hero-sub { margin-top: 22px; color: var(--ink-light); font-size: 17px; }
.hero-actions { margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero-note { margin-top: 22px; font-size: 13px; color: var(--ink-faint); letter-spacing: .1em; }

/* 手机模型 — 截图统一 1280×2736 */
.hero-visual { position: relative; display: flex; justify-content: center; min-height: 760px; }
.phone-wrap { position: absolute; }
.phone-main { position: relative; z-index: 2; transform: rotate(-2deg); }

.phone {
  position: relative;
  width: 350px; aspect-ratio: 1280 / 2736;
  border-radius: 42px;
  overflow: hidden;
  /* 白色边框用 shadow 实现，不占布局：内容区比例与截图严格一致，避免 cover 缩放发虚 */
  box-shadow:
    0 0 0 6px #fff,
    0 0 0 7px rgba(44, 54, 57, .12),
    var(--shadow-lift);
}
.phone img { width: 100%; height: 100%; object-fit: cover; }
.phone-shadow {
  position: absolute; left: 12%; right: 12%; bottom: -26px; height: 42px;
  background: radial-gradient(ellipse at center, rgba(44, 54, 57, .28), transparent 70%);
  filter: blur(8px); z-index: -1;
}

/* 散文账单演示卡 */
.bill-card {
  position: absolute; z-index: 3;
  left: -14%; top: 34%;
  width: 264px; padding: 20px 22px 18px;
  background: #FFFDF9;
  border: 1px solid rgba(44, 54, 57, .08);
  border-radius: 18px;
  box-shadow: var(--shadow-lift);
  transform: rotate(-3deg);
  animation: billFloat 6s ease-in-out infinite;
}
@keyframes billFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}
.bill-merchant {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: 'Noto Sans SC', sans-serif; font-size: 14px; color: var(--ink-light);
}
.bill-merchant b { font-size: 19px; color: var(--cinnabar); font-weight: 600; letter-spacing: .02em; }
.bill-how {
  margin-top: 12px; text-align: center;
  font-size: 11px; color: var(--ink-faint); letter-spacing: .18em;
}
.bill-prose {
  margin-top: 10px; font-size: 17px; line-height: 1.65;
  letter-spacing: .04em;
}
.bill-mood {
  display: inline-block; margin-top: 12px;
  padding: 3px 12px; border-radius: 999px;
  font-size: 12px; letter-spacing: .1em;
  color: var(--jade-deep); background: rgba(78, 124, 117, .12);
}

.hero-seal {
  position: absolute; bottom: 60px; right: 4%;
  width: 96px; height: 96px; border-radius: 26px;
  background: linear-gradient(145deg, #D85A3B, #B03E26);
  color: #FFF3EA; font-size: 52px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 16px 34px rgba(176, 62, 38, .38);
  transform: rotate(8deg); z-index: 3;
}

/* ============ 通用区块 ============ */
.section { padding: 110px 0; }
.section-title {
  text-align: center; font-size: clamp(30px, 3.6vw, 42px);
  letter-spacing: .12em; margin-bottom: 14px;
}
.section-sub { text-align: center; color: var(--ink-light); font-size: 16px; margin-bottom: 60px; }

.section-title-left { font-size: clamp(30px, 3.4vw, 40px); letter-spacing: .12em; margin-bottom: 14px; }
.section-sub-left { color: var(--ink-light); font-size: 16px; margin-bottom: 34px; max-width: 460px; }

.card {
  background: #FFFDF9; border: 1px solid rgba(44, 54, 57, .07);
  border-radius: var(--radius); box-shadow: var(--shadow-soft);
}

/* 入场动画 */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ============ 理念 ============ */
.philosophy { background: linear-gradient(var(--paper) 30%, var(--paper-deep)); }
.philo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.philo-card { padding: 44px 36px; text-align: center; transition: transform .3s ease, box-shadow .3s ease; }
.philo-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lift); }
.philo-icon {
  width: 76px; height: 76px; margin: 0 auto 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--ic) 12%, white);
  color: var(--ic);
}
.philo-icon svg { width: 36px; height: 36px; }
.philo-card h3 { font-size: 26px; letter-spacing: .14em; margin-bottom: 12px; }
.philo-card p { color: var(--ink-light); font-size: 15px; }

/* ============ 功能 Tab 面板 ============ */
.feature-panel {
  display: grid; grid-template-columns: 250px 1fr; gap: 48px;
  align-items: stretch;
}

.feature-tabs {
  display: flex; flex-direction: column; gap: 10px;
}

.ftab {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 16px;
  background: transparent; cursor: pointer;
  border: 1px solid transparent; border-radius: 14px;
  font-family: 'Noto Sans SC', sans-serif; font-size: 15px;
  color: var(--ink-light);
  text-align: left; letter-spacing: .06em;
  transition: all .22s ease;
}
.ftab:hover { color: var(--ink); background: rgba(44, 54, 57, .04); }
.ftab.active {
  color: var(--cinnabar-deep);
  background: #FFFDF9;
  border-color: rgba(200, 75, 49, .25);
  box-shadow: var(--shadow-soft);
}
.ftab-ico {
  flex: none;
  width: 38px; height: 38px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  color: var(--cinnabar);
  background: rgba(200, 75, 49, .09);
  border: 1px solid rgba(200, 75, 49, .22);
  transition: all .22s ease;
}
.ftab-ico svg { width: 20px; height: 20px; }
.ftab.active .ftab-ico {
  color: #FFF3EA;
  background: linear-gradient(145deg, #D85A3B, #B03E26);
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(176, 62, 38, .32);
}
.ftab-name { font-weight: 500; }

.feature-stage {
  display: grid; grid-template-columns: auto 1fr; gap: 52px;
  align-items: center;
  background: #FFFDF9;
  border: 1px solid rgba(44, 54, 57, .07);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  padding: 46px 52px;
}

.stage-phone {
  width: 258px;
  animation: stageIn .45s ease;
}
@keyframes stageIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.feature-copy h3 {
  font-size: clamp(24px, 2.6vw, 32px); letter-spacing: .1em; margin-bottom: 14px;
}
.feature-copy p { color: var(--ink-light); font-size: 16px; max-width: 420px; }

.feat-tag {
  display: inline-block; padding: 5px 16px; margin-bottom: 18px;
  border-radius: 999px; font-family: 'Noto Sans SC', sans-serif; font-size: 13px;
  letter-spacing: .18em; color: var(--cinnabar);
  border: 1px solid rgba(200, 75, 49, .32); background: rgba(200, 75, 49, .05);
}

/* ============ 岁月留书 · 排版示范 ============ */
.notebook {
  background:
    radial-gradient(900px 400px at 90% 10%, rgba(212, 163, 115, .12), transparent 60%),
    linear-gradient(var(--paper), var(--paper-deep));
}
.notebook-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.note-points { list-style: none; }
.note-points li {
  position: relative; padding-left: 26px; margin-bottom: 12px;
  color: var(--ink-light); font-size: 15px;
}
.note-points li::before {
  content: ''; position: absolute; left: 4px; top: .72em;
  width: 7px; height: 7px; border-radius: 2px;
  background: var(--cinnabar); transform: rotate(45deg);
}

.note-card {
  position: relative;
  margin: 0 auto; max-width: 430px;
  padding: 40px 38px 30px;
  background: #FFFDF9;
  border: 1px solid rgba(44, 54, 57, .08);
  border-radius: 22px;
  box-shadow: var(--shadow-lift);
  transform: rotate(1.5deg);
}
.note-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-bottom: 16px; margin-bottom: 20px;
  border-bottom: 1px dashed rgba(44, 54, 57, .18);
}
.note-head-title { font-size: 21px; letter-spacing: .1em; }
.note-head-year { font-family: 'Noto Sans SC', sans-serif; font-size: 12px; color: var(--ink-faint); letter-spacing: .12em; }
.note-body {
  position: relative;
  font-size: 17px; line-height: 2; letter-spacing: .03em; color: var(--ink);
}
.note-body::before {
  content: '\201C';
  position: absolute; left: -8px; top: -34px;
  font-size: 58px; color: rgba(200, 75, 49, .28);
  font-family: Georgia, serif;
}
.note-sign {
  margin-top: 18px; text-align: right;
  font-size: 13px; color: var(--ink-faint); letter-spacing: .14em;
}
.note-seal {
  position: absolute; right: -18px; bottom: -20px;
  width: 62px; height: 62px; border-radius: 17px;
  background: linear-gradient(145deg, #D85A3B, #B03E26);
  color: #FFF3EA; font-size: 33px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 26px rgba(176, 62, 38, .36);
  transform: rotate(-7deg);
}

/* ============ 下载 ============ */
.download { padding-bottom: 130px; background: var(--paper); }
.download-card {
  background: linear-gradient(160deg, #FFFDF9, var(--paper-deep));
  border: 1px solid rgba(44, 54, 57, .08);
  border-radius: 28px; box-shadow: var(--shadow-soft);
  padding: 70px 48px; text-align: center;
}
.download-title { font-size: clamp(30px, 3.6vw, 42px); letter-spacing: .14em; }
.download-sub { color: var(--ink-light); margin: 16px 0 44px; font-size: 16px; }

.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.dl-item { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.qr {
  width: 168px; height: 168px; background: #fff; border-radius: 16px;
  border: 1px solid rgba(44, 54, 57, .1);
  box-shadow: var(--shadow-soft);
  display: flex; align-items: center; justify-content: center;
  padding: 12px;
}
.qr img { width: 100%; height: 100%; object-fit: contain; }
.dl-meta { display: flex; flex-direction: column; gap: 4px; }
.dl-meta strong { font-size: 19px; letter-spacing: .1em; }
.dl-link { font-size: 14px; color: var(--jade); font-family: 'Noto Sans SC', sans-serif; }
.dl-link:hover { color: var(--jade-deep); text-decoration: underline; }

/* ============ 页脚 ============ */
.footer {
  border-top: 1px solid rgba(44, 54, 57, .08);
  background: var(--paper-deep);
  padding: 48px 0 40px;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-logo { font-size: 28px; color: var(--cinnabar); }
.footer-brand span:last-child { color: var(--ink-light); font-size: 15px; letter-spacing: .12em; }
.footer-links { font-family: 'Noto Sans SC', sans-serif; font-size: 14px; color: var(--ink-light); }
.footer-links a:hover { color: var(--cinnabar); }
.footer-links .dot { margin: 0 10px; color: var(--ink-faint); }
.footer-copy { font-size: 12px; color: var(--ink-faint); letter-spacing: .1em; }

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { min-height: 540px; margin-top: 30px; }
  .hero-actions { justify-content: center; }
  .hero-eyebrow { display: inline-block; }
  .phone-main { transform: rotate(-2deg) scale(.86); }
  .bill-card { left: -4%; top: 26%; }

  .feature-panel { grid-template-columns: 1fr; gap: 30px; }
  .feature-tabs {
    flex-direction: row; overflow-x: auto; gap: 8px;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }
  .ftab { flex: none; padding: 9px 14px; }
  .ftab-name { white-space: nowrap; }
  .feature-stage { grid-template-columns: 1fr; text-align: center; padding: 34px 26px; gap: 30px; }
  .stage-phone { margin: 0 auto; width: min(258px, 72vw); }
  .feature-copy p { margin: 0 auto; }

  .notebook-inner { grid-template-columns: 1fr; gap: 44px; }
  .section-title-left, .section-sub-left { text-align: center; }
  .section-sub-left { margin-left: auto; margin-right: auto; }

  .dl-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  .nav-link { display: none; }
  .nav-right { gap: 14px; }
  .section { padding: 80px 0; }
  .philo-grid { grid-template-columns: 1fr; }
  .dl-grid { grid-template-columns: 1fr; gap: 40px; }
  .download-card { padding: 48px 24px; }
  .phone-main { transform: rotate(-2deg) scale(.78); }
  .hero-visual { min-height: 520px; }
  .hero-seal { width: 76px; height: 76px; font-size: 40px; border-radius: 20px; bottom: 12px; right: 0; }
  .bill-card { width: 228px; padding: 16px 18px 14px; left: -6px; top: 18%; }
  .bill-prose { font-size: 15px; }
  .feature-copy h3 { font-size: 24px; }
}
