:root {
  --paper: #f6f4ee;
  --paper-deep: #efece3;
  --ink: #191b20;
  --ink-soft: #3c4048;
  --muted: #7a7f8a;
  --line: #ddd7c8;
  --accent: #0e4f9e;
  --accent-deep: #0a3a75;
  --seal: #b03a2e;
  --pay-red: #e60012;
  --price-blue: #4a6fa5;
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(rgba(25, 27, 32, 0.035) 1px, transparent 1px);
  background-size: 22px 22px;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 244, 238, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 12px; }

.brand-seal {
  width: 42px;
  height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--seal);
  color: #fff;
  font-family: var(--serif);
  font-weight: 900;
  font-size: 24px;
  border-radius: 6px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.brand-seal.light { background: rgba(255, 255, 255, 0.14); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.3); }

.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-family: var(--serif); font-size: 20px; font-weight: 900; letter-spacing: 2px; }
.brand-text em { font-style: normal; font-size: 10px; letter-spacing: 2.5px; color: var(--muted); }

.site-nav { display: flex; gap: 6px; }

.site-nav a {
  position: relative;
  padding: 8px 16px;
  font-size: 15px;
  letter-spacing: 1px;
  color: var(--ink-soft);
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}

.site-nav a:hover { color: var(--accent); background: rgba(14, 79, 158, 0.07); }

.site-nav a.active { color: var(--accent); font-weight: 700; }

.site-nav a.active::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 2px;
  height: 3px;
  background: var(--seal);
  border-radius: 2px;
}

/* ---------- Main / shared ---------- */
.site-main { position: relative; z-index: 1; min-height: 72vh; }

.page { animation: pageIn 0.45s ease both; }

@keyframes pageIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin: 56px 0 8px;
}

.section-head h2 {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 3px;
}

.section-head .en {
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--muted);
  text-transform: uppercase;
}

.section-head .no {
  margin-left: auto;
  font-family: var(--serif);
  font-size: 14px;
  color: var(--seal);
  letter-spacing: 2px;
}

.double-rule { border: 0; border-top: 3px double var(--line); margin: 10px 0 28px; }

/* ---------- Home ---------- */
.hero {
  position: relative;
  height: min(72vh, 620px);
  min-height: 420px;
  overflow: hidden;
  color: #fff;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoom 14s ease-out both;
}

@keyframes heroZoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 20, 40, 0.25) 0%, rgba(10, 20, 40, 0.55) 60%, rgba(10, 20, 40, 0.82) 100%);
}

.hero-content {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px 56px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 4px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 14px;
}

.hero-kicker::before { content: ""; width: 36px; height: 1px; background: var(--seal); }

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(34px, 5.4vw, 58px);
  font-weight: 900;
  letter-spacing: 6px;
  line-height: 1.3;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.hero p {
  max-width: 620px;
  margin-top: 14px;
  font-size: 16px;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.82);
}

.hero-actions { margin-top: 26px; display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 15px;
  letter-spacing: 2px;
  border: 1px solid transparent;
  border-radius: 3px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
}

.btn-primary { background: var(--seal); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(176, 58, 46, 0.35); }

.btn-ghost { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.gallery figure {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: var(--paper-deep);
  box-shadow: 0 2px 10px rgba(25, 27, 32, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.gallery figure:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(25, 27, 32, 0.16); }

.gallery img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; transition: transform 0.6s ease; }
.gallery figure:hover img { transform: scale(1.06); }

.gallery figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 26px 14px 10px;
  font-size: 14px;
  letter-spacing: 2px;
  color: #fff;
  background: linear-gradient(transparent, rgba(10, 15, 30, 0.85));
}

.gallery figcaption b { font-family: var(--serif); font-weight: 700; }

.home-band {
  margin: 64px 0 72px;
  padding: 34px 38px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  background: var(--ink);
  color: #e9e6dc;
  border-radius: 6px;
}

.home-band p { flex: 1 1 420px; font-size: 15px; letter-spacing: 1px; color: rgba(233, 230, 220, 0.85); }
.home-band strong { font-family: var(--serif); font-size: 22px; letter-spacing: 3px; color: #fff; }

/* ---------- News list ---------- */
.page-head {
  padding: 52px 0 6px;
}

.page-head h1 {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 900;
  letter-spacing: 4px;
}

.page-head .sub { color: var(--muted); font-size: 14px; letter-spacing: 2px; margin-top: 6px; }

.news-list { list-style: none; padding-bottom: 72px; }

.news-item {
  padding: 30px 6px 26px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.25s;
}

.news-item:hover { background: rgba(14, 79, 158, 0.04); }

.news-item h3 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--ink);
  transition: color 0.2s;
}

.news-item:hover h3 { color: var(--accent); }

.news-item h3 .idx {
  flex: none;
  font-size: 13px;
  color: var(--seal);
  letter-spacing: 1px;
  font-weight: 600;
}

.news-item .summary {
  margin-top: 10px;
  color: #6f7480;
  font-size: 14.5px;
  line-height: 2;
  text-align: justify;
}

.news-meta {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  flex-wrap: wrap;
}

.news-meta .date { color: #8b909b; letter-spacing: 1px; }

.news-meta .price { color: var(--accent); font-weight: 700; letter-spacing: 1px; }

.news-meta .pay-link {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 1px;
  border-bottom: 1px dashed transparent;
}

.news-meta .pay-link:hover { color: var(--accent-deep); border-bottom-color: var(--accent-deep); }

/* ---------- News detail ---------- */
.detail { padding: 48px 0 80px; max-width: 820px; margin: 0 auto; }

.detail .back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 1px;
  margin-bottom: 26px;
  transition: color 0.2s;
}

.detail .back:hover { color: var(--accent); }

.detail h1 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 2px;
  line-height: 1.5;
}

.detail .meta {
  margin: 16px 0 8px;
  display: flex;
  gap: 24px;
  font-size: 14px;
  color: #8b909b;
  border-bottom: 3px double var(--line);
  padding-bottom: 16px;
}

.detail .meta .price { color: var(--accent); font-weight: 700; }

.detail .body p {
  margin-top: 20px;
  font-size: 15.5px;
  line-height: 2.1;
  color: var(--ink-soft);
  text-align: justify;
}

.paywall {
  margin-top: 40px;
  padding: 34px 28px;
  text-align: center;
  border: 1px dashed var(--line);
  background: var(--paper-deep);
  border-radius: 6px;
}

.paywall p { color: var(--muted); font-size: 14px; letter-spacing: 2px; margin-bottom: 18px; }

.btn-pay {
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  padding: 13px 46px;
  letter-spacing: 3px;
}

.btn-pay:hover { background: var(--accent-deep); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(14, 79, 158, 0.3); }

/* ---------- About ---------- */
.about { padding: 8px 0 80px; display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: start; }

.about-text p {
  margin-top: 18px;
  font-size: 15.5px;
  line-height: 2.15;
  color: var(--ink-soft);
  text-align: justify;
}

.about-text p:first-of-type::first-letter {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 900;
  color: var(--seal);
  float: left;
  line-height: 1;
  margin: 4px 10px 0 0;
}

.about-side figure {
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 14px 34px rgba(25, 27, 32, 0.16);
}

.about-side img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

.about-side figcaption { padding: 12px 4px 0; font-size: 13px; color: var(--muted); letter-spacing: 2px; }

.values {
  margin-top: 28px;
  display: grid;
  gap: 14px;
}

.values li {
  list-style: none;
  padding: 16px 18px;
  background: #fff;
  border-left: 3px solid var(--seal);
  border-radius: 0 6px 6px 0;
  box-shadow: 0 2px 8px rgba(25, 27, 32, 0.06);
}

.values li b { font-family: var(--serif); letter-spacing: 2px; font-size: 16px; }
.values li span { display: block; font-size: 13.5px; color: var(--muted); margin-top: 2px; }

/* ---------- Contact ---------- */
.contact { padding: 8px 0 88px; }

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

.contact-card {
  background: #fff;
  border-radius: 6px;
  padding: 34px 28px;
  box-shadow: 0 4px 16px rgba(25, 27, 32, 0.07);
  border-top: 3px solid var(--accent);
  transition: transform 0.25s, box-shadow 0.25s;
}

.contact-card:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(25, 27, 32, 0.13); }

.contact-card .label {
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--muted);
}

.contact-card .value {
  margin-top: 12px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.7;
  word-break: break-all;
}

.contact-card a.value { color: var(--accent); }
.contact-card a.value:hover { text-decoration: underline; }

.contact-note {
  margin-top: 34px;
  padding: 22px 26px;
  background: var(--ink);
  color: rgba(233, 230, 220, 0.85);
  border-radius: 6px;
  font-size: 14.5px;
  letter-spacing: 1px;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  background: var(--ink);
  color: rgba(233, 230, 220, 0.75);
  padding: 46px 24px 30px;
}

.footer-inner { max-width: 1120px; margin: 0 auto; }

.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand strong { font-family: var(--serif); font-size: 20px; letter-spacing: 3px; color: #fff; }
.footer-brand p { font-size: 13px; letter-spacing: 2px; margin-top: 2px; }

.footer-info { list-style: none; margin: 20px 0 0; display: flex; gap: 34px; flex-wrap: wrap; font-size: 13.5px; letter-spacing: 1px; }
.footer-info a { color: #9fc0e8; }
.footer-info a:hover { text-decoration: underline; }

.copyright {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12.5px;
  letter-spacing: 1.5px;
  color: rgba(233, 230, 220, 0.5);
}

.copyright a { color: rgba(233, 230, 220, 0.7); transition: color 0.2s; }
.copyright a:hover { color: #fff; text-decoration: underline; }

/* ---------- QR Modal ---------- */
.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: rgba(15, 18, 26, 0.62);
  backdrop-filter: blur(3px);
  animation: fadeIn 0.25s ease both;
  padding: 20px;
}

.modal-mask[hidden] { display: none; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-card {
  position: relative;
  width: min(400px, 92vw);
  background: #fff;
  border-radius: 8px;
  padding: 30px 30px 26px;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  animation: popIn 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.86) translateY(12px); }
  to { opacity: 1; transform: none; }
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  color: #9aa0ab;
  border-radius: 50%;
  transition: color 0.2s, background 0.2s;
}

.modal-close:hover { color: var(--ink); background: rgba(0, 0, 0, 0.06); }

.modal-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--price-blue);
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.modal-qr {
  width: min(300px, 74vw);
  margin: 0 auto;
  border: 1px solid #e6e6e6;
  padding: 6px;
  background: #fff;
}

.modal-tip {
  margin-top: 16px;
  color: var(--pay-red);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .header-inner { flex-direction: column; gap: 10px; }
  .site-nav { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr; }
  .section-head h2 { font-size: 24px; }
  .page-head h1 { font-size: 28px; }
  .detail h1 { font-size: 24px; }
}
