/* 赤辰官網。主色取自 App：朱紅底、白紙黃曆、金色線。 */
:root {
  --zhu: #b7222a;
  --zhu-deep: #8c1a21;
  --zhu-tint: #fbefed;
  --ink: #241c1a;
  --muted: #6b5d57;
  --gold: #d9b26a;
  --rule: #eadcd5;
  --jade: #2f6b45;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--zhu); text-underline-offset: 3px; }
a:hover { color: var(--zhu-deep); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 900; line-height: 1.25; margin: 0; letter-spacing: .02em; }
p { margin: 0; }

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

/* ---------- 頂欄 ---------- */
.top {
  background: var(--zhu);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px max(20px, calc((100vw - var(--wrap)) / 2));
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--serif); font-weight: 900; font-size: 22px; letter-spacing: .12em; }
.brand img { border-radius: 9px; }
.top nav { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 15px; }
.top nav a { color: #fff; text-decoration: none; opacity: .88; }
.top nav a:hover { opacity: 1; color: #fff; text-decoration: underline; }
.top nav .lang { border: 1px solid rgba(255, 255, 255, .5); border-radius: 999px; padding: 0 12px; opacity: 1; }

/* ---------- 首屏：朱紅底＋一張撕頁黃曆 ---------- */
.hero {
  background: var(--zhu);
  color: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 56px;
  align-items: center;
  padding: 40px max(20px, calc((100vw - var(--wrap)) / 2)) 88px;
  position: relative;
  overflow: hidden;
}
.hero-text { display: flex; gap: 28px; align-items: flex-start; }
.mark {
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: .5em;
  color: var(--zhu);
  background: var(--gold);
  padding: 14px 6px;
  border-radius: 4px;
  flex: none;
  margin-top: 10px;
}
.hero h1 { font-size: clamp(34px, 5vw, 58px); }
.lede { margin-top: 22px; max-width: 30em; color: #ffe6e1; font-size: 18px; }
.get {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  background: #fff;
  color: var(--zhu-deep);
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 999px;
}
.get:hover { background: var(--gold); color: var(--ink); }
.fine { margin-top: 12px; font-size: 14px; color: #f6c9c3; }

.almanac { margin: 0; position: relative; }
.alm-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.alm-title { font-family: var(--serif); font-weight: 700; font-size: 18px; letter-spacing: .2em; color: var(--gold); }
.alm-nav { display: flex; gap: 6px; }
.alm-nav button {
  font: inherit;
  font-size: 14px;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 999px;
  padding: 2px 12px;
  cursor: pointer;
}
.alm-nav button:hover { background: rgba(255, 255, 255, .14); }
.alm-nav .alm-today[aria-pressed="true"] { background: #fff; color: var(--zhu-deep); border-color: #fff; }

/* 一疊曆紙：後面兩張只露出底邊 */
.sheet {
  position: relative;
  background: #fff;
  color: var(--ink);
  border-radius: 4px 4px 2px 2px;
  padding: 34px 28px 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "date date" "lunar lunar" "yi ji";
  gap: 0 20px;
  box-shadow: 0 7px 0 -2px #f3e9e4, 0 14px 0 -5px #e3d3cb, 0 30px 40px -18px rgba(60, 0, 0, .55);
}
/* 頂端裝訂條與兩個孔 */
.sheet::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 14px;
  background: var(--zhu-deep);
  border-radius: 4px 4px 0 0;
}
.sheet::after {
  content: "";
  position: absolute;
  top: 4px;
  left: calc(50% - 46px);
  width: 92px;
  height: 6px;
  background: radial-gradient(circle, #5a0f14 2.5px, transparent 3px) 0 0 / 46px 6px repeat-x;
}
.sheet.tear { animation: tear .55s cubic-bezier(.55, 0, .7, .4) forwards; transform-origin: 12% 0; }
.sheet.drop { animation: drop .35s ease-out; }
@keyframes tear { to { transform: translate(-30px, 70px) rotate(-11deg); opacity: 0; } }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .sheet.tear, .sheet.drop { animation: none; } }

.sheet-date { grid-area: date; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-items: end; border-bottom: 1px solid var(--rule); padding-bottom: 6px; }
.g-month { font-size: 15px; color: var(--muted); }
.g-week { font-size: 15px; color: var(--muted); text-align: right; }
.g-day {
  grid-column: 1 / -1;
  grid-row: 2;
  order: 2;
  font-family: var(--serif);
  font-weight: 900;
  color: var(--zhu);
  font-size: clamp(110px, 15vw, 150px);
  line-height: 1;
  text-align: center;
  font-variant-numeric: lining-nums;
  margin: 6px 0 4px;
}
.sheet-lunar { grid-area: lunar; text-align: center; padding: 12px 0 14px; border-bottom: 1px solid var(--rule); }
.l-text { font-family: var(--serif); font-weight: 700; font-size: 22px; letter-spacing: .1em; }
.l-gz, .l-chong { font-size: 14px; color: var(--muted); }
.sheet-yi { grid-area: yi; }
.sheet-ji { grid-area: ji; }
.sheet-yi, .sheet-ji { padding-top: 14px; display: flex; gap: 10px; align-items: flex-start; }
.tag {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 900;
  font-size: 16px;
  color: #fff;
}
.tag.yi { background: var(--jade); }
.tag.ji { background: var(--ink); }
.words { font-size: 15px; line-height: 1.7; word-break: keep-all; overflow-wrap: anywhere; }
.alm-note { margin-top: 30px; font-size: 13px; color: #f6c9c3; }

/* ---------- 內容區 ---------- */
main > section:not(.hero) { padding: 88px max(20px, calc((100vw - var(--wrap)) / 2)); }
main > section h2 { font-size: clamp(28px, 3.4vw, 38px); color: var(--zhu-deep); }
.section-lede { margin-top: 14px; max-width: 38em; color: var(--muted); }

.group {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding: 36px 0;
  border-top: 1px solid var(--rule);
}
.play .group:first-of-type { margin-top: 40px; }
.group h3 { font-size: 22px; padding-top: 6px; }
.group .aside { grid-column: 2; font-size: 14px; color: var(--muted); margin-top: -8px; }
.feats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 36px; }
.feats li { display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: start; }
.feats img { grid-row: 1 / 3; width: 56px; height: 56px; }
.feats strong { font-family: var(--serif); font-weight: 700; font-size: 18px; line-height: 1.4; }
.feats span { font-size: 15px; color: var(--muted); line-height: 1.6; }

.shots { background: var(--zhu-tint); }
.phones { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 260px)); gap: 40px; justify-content: start; }
.phones figure { margin: 0; }
.phones img { border-radius: 26px; border: 8px solid var(--ink); background: var(--ink); }
.phones figcaption { margin-top: 12px; font-size: 15px; color: var(--muted); text-align: center; }

.coins-body { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px 56px; align-items: start; }
.coins-body > div p + p { margin-top: 12px; }
.coins table { border-collapse: collapse; width: 100%; font-size: 16px; }
.coins caption { text-align: left; font-family: var(--serif); font-weight: 700; padding-bottom: 8px; }
.coins th { text-align: left; font-weight: 400; padding: 9px 0; border-top: 1px solid var(--rule); }
.coins td { text-align: right; padding: 9px 0; border-top: 1px solid var(--rule); font-variant-numeric: tabular-nums; font-weight: 700; color: var(--zhu-deep); }
.coins .vip { grid-column: 1 / -1; max-width: 46em; color: var(--muted); font-size: 15px; }

.privacy { border-top: 1px solid var(--rule); }
.promises { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.promises strong { display: block; font-family: var(--serif); font-size: 19px; margin-bottom: 6px; }
.promises li { color: var(--muted); font-size: 16px; }
.links { margin-top: 28px; display: flex; gap: 24px; }

/* ---------- 頁尾 ---------- */
.foot {
  background: var(--ink);
  color: #d9cdc8;
  font-size: 15px;
  padding: 48px max(20px, calc((100vw - var(--wrap)) / 2)) 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px 40px;
}
.foot a { color: #fff; }
.foot-brand { font-family: var(--serif); font-weight: 900; font-size: 22px; color: #fff; letter-spacing: .12em; margin-bottom: 6px; }
.foot-links { display: flex; flex-direction: column; gap: 6px; text-align: right; }
.disclaimer, .copy { grid-column: 1 / -1; font-size: 13px; color: #a89993; }
.disclaimer { border-top: 1px solid #43362f; padding-top: 18px; }

/* ---------- 窄螢幕 ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 44px; padding-bottom: 64px; }
  .almanac { max-width: 440px; }
  .coins-body { grid-template-columns: 1fr; }
  .promises { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .top { flex-direction: column; align-items: flex-start; }
  .top nav { gap: 2px 14px; font-size: 14px; align-items: center; }
  .top nav .lang { padding: 0 10px; }
  .mark { display: none; }
  .group { grid-template-columns: 1fr; gap: 16px; padding: 28px 0; }
  .group .aside { grid-column: 1; }
  .feats { grid-template-columns: 1fr; }
  main > section:not(.hero) { padding-top: 64px; padding-bottom: 64px; }
  .phones { grid-template-columns: repeat(3, 72%); overflow-x: auto; scroll-snap-type: x mandatory; gap: 20px; padding-bottom: 8px; }
  .phones figure { scroll-snap-align: start; }
  .sheet { padding: 30px 18px 22px; gap: 0 12px; }
  .foot { grid-template-columns: 1fr; }
  .foot-links { text-align: left; }
}
