:root {
  --ink: #1c1a17;
  --ink-soft: #3a362f;
  --paper: #f6f3ec;
  --paper-2: #efeae0;
  --line: #ddd5c6;
  --muted: #6f685d;
  --accent: #2f5d50;
  --accent-2: #23463d;
  --seal: #a33a2a;
  --white: #fffdf8;
  --shadow: 0 18px 50px rgba(28, 26, 23, .08);
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: var(--white); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.25; margin: 0; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(246, 243, 236, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(246, 243, 236, .94); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-seal {
  width: 40px; height: 40px; display: block; flex: 0 0 auto;
}
.brand-seal img { width: 100%; height: 100%; display: block; filter: drop-shadow(0 6px 14px rgba(133, 39, 28, .22)); }
.brand-seal.small { width: 28px; height: 28px; }
.brand-seal.small img { filter: none; }
.brand-text {
  display: flex; flex-direction: column; line-height: 1.1;
  font-family: var(--serif); font-size: 17px; letter-spacing: .08em;
}
.brand-text em { font-family: var(--sans); font-style: normal; font-size: 10px; letter-spacing: .28em; color: var(--muted); margin-top: 5px; }
.nav-links { display: flex; gap: 34px; }
.nav-links a { font-size: 14px; letter-spacing: .12em; color: var(--ink-soft); position: relative; padding: 6px 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--accent); transition: width .3s;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--ink); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--ink); margin: 5px 0; transition: .3s; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 150px 0 0; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; min-height: 66vh; padding-bottom: 80px; }
.eyebrow { font-size: 12px; letter-spacing: .28em; color: var(--muted); margin-bottom: 22px; }
.hero h1 { font-size: clamp(40px, 6vw, 72px); letter-spacing: .02em; margin-bottom: 26px; }
.hero h1 span { color: var(--accent); }
.lede { font-size: 17px; color: var(--ink-soft); max-width: 30em; }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px; border-radius: 2px; font-size: 14px; letter-spacing: .12em;
  border: 1px solid transparent; transition: .25s; cursor: pointer;
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-1px); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--white); transform: translateY(-1px); }

.hero-art { position: relative; height: 420px; display: grid; place-items: center; }
.ink-disc {
  position: absolute; width: 380px; height: 380px; border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(47, 93, 80, .85), rgba(47, 93, 80, .25) 45%, rgba(47, 93, 80, 0) 70%),
    radial-gradient(circle at 60% 65%, rgba(28, 26, 23, .55), rgba(28, 26, 23, 0) 60%);
  filter: blur(2px);
  animation: float 9s ease-in-out infinite;
}
.ink-disc::after {
  content: ""; position: absolute; inset: 16% 8% 30% 22%;
  border-radius: 50%; border: 1px solid rgba(246, 243, 236, .35);
}
@keyframes float { 0%, 100% { transform: translateY(-8px); } 50% { transform: translateY(8px); } }
.seal-card {
  position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.seal-img { width: 176px; height: 176px; filter: drop-shadow(0 22px 38px rgba(28, 26, 23, .24)); }
.seal-en { font-size: 11px; letter-spacing: .4em; color: var(--muted); text-transform: uppercase; }
.hero-line { height: 1px; background: var(--line); width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--paper-2); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.kicker { font-size: 12px; letter-spacing: .3em; color: var(--accent); margin-bottom: 16px; text-transform: uppercase; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 16px; }
.section-note { color: var(--muted); font-size: 14px; }
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--line); padding: 34px 30px;
  transition: transform .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-no { font-size: 12px; letter-spacing: .2em; color: var(--seal); }
.card h3 { font-size: 22px; margin: 18px 0 12px; }
.card p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- products ---------- */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.product-card {
  display: block; background: var(--paper); border: 1px solid var(--line); padding: 40px 38px;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.section-alt .product-card { background: var(--paper); }
.product-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow); }
.tag {
  display: inline-block; font-size: 11px; letter-spacing: .16em; color: var(--accent);
  border: 1px solid rgba(47, 93, 80, .4); padding: 4px 10px; margin-bottom: 18px;
}
.product-card h3 { font-size: 28px; margin-bottom: 12px; }
.product-card p { color: var(--muted); font-size: 15px; min-height: 3.4em; }
.more { display: inline-block; margin-top: 18px; font-size: 13px; letter-spacing: .12em; color: var(--accent); }

/* ---------- about ---------- */
.about-home { display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; align-items: start; }
.about-copy h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 20px; }
.about-copy p { color: var(--muted); max-width: 34em; }
.link-arrow { display: inline-block; margin-top: 10px; font-size: 14px; letter-spacing: .1em; color: var(--accent); border-bottom: 1px solid rgba(47, 93, 80, .35); padding-bottom: 3px; }
.facts { margin: 0; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 96px 1fr; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: 13px; letter-spacing: .08em; }
.facts dd { margin: 0; font-size: 15px; }
.facts-block { border-top: 1px solid var(--line); margin-top: 12px; }

/* ---------- CTA ---------- */
.cta-band { background: var(--ink); color: var(--paper); padding: 70px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cta-inner h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 8px; }
.cta-inner p { color: rgba(246, 243, 236, .7); margin: 0; }

/* ---------- footer ---------- */
.footer { padding: 44px 0 40px; border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 16px 30px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 15px; letter-spacing: .06em; }
.footer-links { display: flex; gap: 24px; font-size: 13px; color: var(--muted); }
.footer-links a:hover { color: var(--ink); }
.icp { grid-column: 1 / -1; font-size: 12px; color: var(--muted); margin: 8px 0 0; }

/* ---------- page head ---------- */
.page-head { padding: 150px 0 60px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 18px; }

/* ---------- product detail ---------- */
.product-detail { padding: 90px 0; }
.detail-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 70px; align-items: center; }
.detail-grid.reverse .detail-copy { order: 2; }
.detail-grid.reverse .detail-visual { order: 1; }
.detail-grid.wide-visual { grid-template-columns: .95fr 1.05fr; }
.detail-title { display: flex; align-items: center; gap: 16px; margin-bottom: 6px; }
.detail-title .tag { margin: 0; }
.detail-title h2 { font-size: clamp(30px, 4vw, 44px); }
.detail-sub { color: var(--accent); font-size: 14px; letter-spacing: .14em; margin-bottom: 22px; }
.detail-copy p { color: var(--muted); max-width: 36em; }
.feature-list { padding: 0; margin: 22px 0; list-style: none; }
.feature-list li { position: relative; padding-left: 20px; margin-bottom: 9px; color: var(--ink-soft); font-size: 15px; }
.feature-list li::before { content: ""; position: absolute; left: 0; top: .75em; width: 7px; height: 1px; background: var(--seal); }
.note { font-size: 13px; color: var(--muted); border-left: 2px solid var(--line); padding-left: 14px; }
.detail-visual {
  position: relative; aspect-ratio: 4 / 3; border: 1px solid var(--line);
  background: var(--paper-2); overflow: hidden; display: grid; place-items: center;
}
.ink-map, .ink-body, .ink-collection { width: 78%; height: 78%; position: relative; }
.ink-map {
  background:
    radial-gradient(ellipse at 30% 40%, rgba(47, 93, 80, .55), transparent 55%),
    radial-gradient(ellipse at 70% 60%, rgba(28, 26, 23, .35), transparent 60%),
    repeating-linear-gradient(115deg, transparent 0 16px, rgba(47, 93, 80, .12) 16px 17px);
  border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%;
}
.ink-body {
  background:
    radial-gradient(circle at 50% 34%, rgba(163, 58, 42, .55), transparent 26%),
    radial-gradient(ellipse at 50% 65%, rgba(47, 93, 80, .5), transparent 55%),
    linear-gradient(180deg, rgba(28, 26, 23, .12), transparent);
  border-radius: 50% 50% 44% 44% / 60% 60% 40% 40%;
}
.ink-collection {
  border: 1px solid rgba(28, 26, 23, .25); transform: rotate(-3deg);
  background:
    linear-gradient(90deg, transparent 49.5%, rgba(28, 26, 23, .18) 49.5% 50.5%, transparent 50.5%),
    linear-gradient(0deg, transparent 49.5%, rgba(163, 58, 42, .45) 49.5% 50.5%, transparent 50.5%);
  box-shadow: inset 0 0 0 14px var(--paper-2), inset 0 0 0 15px rgba(28, 26, 23, .12);
}
.visual-label { position: absolute; bottom: 16px; left: 18px; font-size: 11px; letter-spacing: .24em; color: var(--muted); }
.detail-visual.shot { aspect-ratio: auto; border: 0; background: none; display: block; overflow: visible; }
.detail-visual.shot .shot-frame { position: relative; display: block; width: 100%; height: 0; padding-bottom: 75%; overflow: hidden; border: 1px solid var(--line); background: var(--paper-2); }
.detail-visual.shot a.shot-frame { color: inherit; text-decoration: none; }
.detail-visual.shot a.shot-frame:hover { border-color: var(--accent); }
.detail-visual.shot a.shot-frame::after {
  content: "点击进入四时和集 →";
  position: absolute; right: 14px; bottom: 12px;
  background: rgba(28, 26, 23, .78); color: #fff;
  font-size: 12px; letter-spacing: .08em; padding: 6px 10px;
  opacity: 0; transition: opacity .2s;
}
.detail-visual.shot a.shot-frame:hover::after { opacity: 1; }
.detail-visual.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.detail-visual.shot .visual-label { position: static; display: block; margin-top: 10px; font-size: 11px; letter-spacing: .24em; color: var(--muted); }

.game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.game-card { background: var(--paper); border: 1px solid var(--line); padding: 0 0 20px; overflow: hidden; transition: transform .3s, border-color .3s; }
.game-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.game-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; border-bottom: 1px solid var(--line); }
.game-card h3 { font-size: 19px; margin: 16px 20px 8px; }
.game-card p { font-size: 13px; color: var(--muted); margin: 0 20px 12px; min-height: 4.4em; }
.game-card span { display: block; font-size: 11px; letter-spacing: .14em; color: var(--accent); padding: 0 20px; }

/* ---------- prose / about page ---------- */
.narrow { max-width: 820px; }
.prose h2 { font-size: clamp(24px, 3vw, 32px); margin: 46px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink-soft); }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 26px 0 8px; }
.principle { border-top: 1px solid var(--line); padding-top: 16px; }
.principle h3 { font-size: 18px; margin-bottom: 8px; }
.principle p { font-size: 14px; color: var(--muted); margin: 0; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: start; }
.contact-info h2, .contact-form h2 { font-size: 26px; margin-bottom: 22px; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form label { display: flex; flex-direction: column; gap: 7px; }
.contact-form span { font-size: 12px; letter-spacing: .12em; color: var(--muted); }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; font-size: 15px; color: var(--ink); background: var(--white);
  border: 1px solid var(--line); border-radius: 2px; padding: 11px 13px; outline: none;
  transition: border-color .2s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--accent); }
.contact-form textarea { resize: vertical; }
.contact-form .btn { align-self: flex-start; margin-top: 6px; }
.form-hint { font-size: 12px; color: var(--muted); margin: 2px 0 0; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .ink-disc { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-inner, .about-home, .detail-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { height: 300px; }
  .ink-disc { width: 280px; height: 280px; }
  .detail-grid.reverse .detail-copy, .detail-grid.reverse .detail-visual { order: 0; }
  .game-grid { grid-template-columns: repeat(2, 1fr); }
  .principles { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 36px); }
  .nav-inner { height: 62px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 62px; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 10px 18px 18px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid rgba(221, 213, 198, .5); }
  .nav-links a:last-child { border-bottom: 0; }
  .hero { padding-top: 110px; }
  .hero h1 { font-size: 40px; }
  .hero-art { height: 260px; }
  .seal-card { gap: 14px; }
  .seal-img { width: 132px; height: 132px; }
  .section, .product-detail { padding: 64px 0; }
  .product-grid, .grid-3, .game-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .footer-inner { grid-template-columns: 1fr; }
  .facts > div { grid-template-columns: 84px 1fr; }
}
