:root {
  --ink: #2d2117;
  --muted: #735d4a;
  --paper: #fffaf2;
  --ivory: #fff4df;
  --gold: #c78a2c;
  --deep-red: #8f2f22;
  --lotus: #e9b7a7;
  --line: rgba(91, 62, 36, 0.16);
  --shadow: 0 22px 70px rgba(66, 38, 18, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Serif SC", "Songti SC", "Microsoft YaHei", Arial, sans-serif;
  overflow-x: hidden;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 5vw, 72px);
  background: rgba(255, 250, 242, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand [data-config="brandName"] {
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: var(--deep-red);
  border-radius: 50%;
  font-size: 15px;
}

nav {
  display: flex;
  gap: clamp(12px, 3vw, 28px);
  color: var(--muted);
  font-size: 15px;
}

nav a.active {
  color: var(--deep-red);
  font-weight: 800;
}

.language-switcher {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
}

.language-current,
.language-menu button {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.language-current {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 112px;
  justify-content: center;
}

.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  display: grid;
  min-width: 164px;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.96);
  box-shadow: 0 18px 50px rgba(66, 38, 18, 0.18);
}

.language-menu[hidden] {
  display: none;
}

.language-menu button {
  width: 100%;
  border-radius: 8px;
  text-align: left;
}

.language-menu button.active {
  color: #fff;
  background: var(--deep-red);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 110px clamp(20px, 6vw, 86px) 72px;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(255, 250, 242, 0.96) 0%, rgba(255, 250, 242, 0.78) 34%, rgba(255, 250, 242, 0.12) 70%),
    linear-gradient(0deg, rgba(255, 250, 242, 0.9) 0%, rgba(255, 250, 242, 0) 28%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.eyebrow,
.section-kicker {
  color: var(--deep-red);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
  overflow-wrap: anywhere;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1.06;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.18;
}

h3 {
  margin-bottom: 10px;
  font-size: 23px;
}

.hero-copy {
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(17px, 2.4vw, 22px);
  line-height: 1.85;
}

.hero-copy-en {
  margin-top: -6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.65;
}

.hero-actions,
.contact {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--deep-red), #bd6e2a);
  box-shadow: 0 12px 28px rgba(143, 47, 34, 0.24);
}

.btn-secondary {
  color: var(--deep-red);
  background: rgba(255, 250, 242, 0.82);
  border: 1px solid rgba(143, 47, 34, 0.28);
}

.btn-wide {
  width: 100%;
}

.section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(52px, 8vw, 86px) 0;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: clamp(24px, 6vw, 70px);
  align-items: start;
}

.intro p,
.offering p,
.contact p,
.ritual-section p,
.bilingual-band p,
.details-section p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.9;
}

.en {
  font-family: Georgia, "Times New Roman", serif;
  color: #816c59;
}

.section-heading {
  max-width: 860px;
  margin-bottom: 30px;
}

.ritual-list,
.details-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ritual-list article,
.details-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
  border-radius: 8px;
  padding: 26px;
}

.ritual-list h3 {
  color: var(--deep-red);
}

.blessing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding-top: 0;
}

.love-intro {
  border-bottom: 1px solid var(--line);
}

.test-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 480px);
  gap: clamp(26px, 6vw, 76px);
  align-items: start;
}

.form-copy p,
.love-form p,
.result-card p,
.detail-strip p {
  color: var(--muted);
  line-height: 1.85;
}

.insight-card {
  position: relative;
  overflow: hidden;
  max-width: 520px;
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, var(--ivory));
  box-shadow: var(--shadow);
}

.clarity-photo {
  position: relative;
  overflow: hidden;
  min-height: 300px;
}

.clarity-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  object-position: center;
  animation: photoBreathe 7s ease-in-out infinite;
}

.photo-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 244, 212, 0.68), transparent 34%),
    linear-gradient(0deg, rgba(45, 33, 23, 0.18), rgba(45, 33, 23, 0.02) 58%);
  animation: glowSweep 4.8s ease-in-out infinite;
}

@keyframes photoBreathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.045);
  }
}

@keyframes glowSweep {
  0%,
  100% {
    opacity: 0.78;
  }
  50% {
    opacity: 1;
  }
}

.love-form {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, var(--ivory));
  box-shadow: var(--shadow);
}

.love-form label {
  display: grid;
  gap: 8px;
  color: var(--deep-red);
  font-weight: 800;
}

.love-form input,
.love-form select,
.love-form textarea {
  width: 100%;
  border: 1px solid rgba(91, 62, 36, 0.22);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  font: inherit;
  line-height: 1.45;
}

.date-selects {
  display: grid;
  grid-template-columns: 1fr 0.85fr 0.85fr;
  gap: 10px;
}

.love-form textarea {
  resize: vertical;
}

.form-note,
.form-status {
  margin: 0;
  font-size: 14px;
}

.form-status {
  min-height: 22px;
  color: var(--deep-red);
  font-weight: 800;
}

.detail-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-top: 0;
}

.detail-strip article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.6);
}

.detail-strip span {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--gold);
  font-weight: 900;
}

.blessing-grid article,
.offering-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.52);
  border-radius: 8px;
  padding: 24px;
}

.blessing-grid span {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--gold);
  font-weight: 900;
}

h3 small,
.steps small {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  font-weight: 500;
}

.blessing-grid p,
.offering-card p {
  color: var(--muted);
  line-height: 1.7;
}

.bilingual-band {
  display: grid;
  grid-template-columns: 0.75fr 1fr;
  gap: clamp(24px, 6vw, 70px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.meaning-points ul,
.details-card ul {
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.9;
}

.text-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--deep-red);
  font-weight: 800;
}

.offering {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(24px, 6vw, 72px);
  align-items: center;
}

.offering-card {
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, #fff, var(--ivory));
}

.amount-label {
  color: var(--muted);
  font-size: 14px;
}

.offering-card strong {
  display: block;
  margin: 8px 0 18px;
  font-size: 34px;
}

.process {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.steps div {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 18px;
  background: #fff;
  border-radius: 8px;
}

.steps b {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  background: var(--gold);
  border-radius: 50%;
}

.details-section {
  padding-top: 0;
}

.muted-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.68), var(--ivory));
}

.contact {
  justify-content: space-between;
  padding-bottom: 96px;
}

.contact > div {
  max-width: 680px;
}

.contact .btn {
  width: auto;
  min-width: 220px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 6vw, 86px);
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.subpage {
  padding-top: 72px;
}

.page-hero {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(70px, 10vw, 120px) 0 clamp(34px, 5vw, 60px);
}

.page-hero h1 {
  max-width: 780px;
  margin-bottom: 18px;
  overflow-wrap: anywhere;
}

.page-hero p {
  max-width: 820px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.85;
}

.page-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-top: 0;
}

.page-card {
  min-height: 245px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
  border-radius: 8px;
  padding: 26px;
}

.page-card span {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--gold);
  font-weight: 900;
}

.review-wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-top: 0;
}

.review-card {
  display: flex;
  min-width: 0;
  min-height: 360px;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, var(--ivory));
  box-shadow: var(--shadow);
  overflow-wrap: anywhere;
}

.review-stars {
  color: var(--gold);
  font-size: 18px;
  letter-spacing: 0.12em;
}

.review-tag {
  margin: 0;
  color: var(--deep-red);
  font-weight: 900;
}

.review-card blockquote {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.8;
}

.review-result {
  margin: 0;
  padding: 14px;
  color: var(--muted);
  border-left: 3px solid var(--gold);
  background: rgba(255, 255, 255, 0.58);
  line-height: 1.75;
}

.review-person {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.review-person span,
.review-person small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.review-person span {
  color: var(--ink);
  font-weight: 900;
}

.review-person small {
  color: var(--muted);
  text-align: right;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: clamp(22px, 5vw, 64px);
  align-items: stretch;
  padding-top: 0;
}

.contact-page .page-hero {
  padding-bottom: 30px;
}

.contact-page .contact-panel {
  margin-top: -18px;
}

.contact-page .details-card,
.contact-page .offering-card {
  min-height: 430px;
  padding: clamp(30px, 4vw, 42px);
}

.contact-page .details-card ul {
  margin-top: 22px;
  padding-bottom: 12px;
}

.contact-page .details-card li {
  margin-bottom: 10px;
}

.contact-panel > *,
.details-card,
.offering-card,
.details-card li,
.offering-card p,
.offering-card strong,
footer span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.result-page {
  min-height: 100svh;
}

.result-hero {
  padding-bottom: 24px;
}

.result-shell {
  padding-top: 0;
}

.result-card {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 46px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, var(--ivory));
  box-shadow: var(--shadow);
}

.result-output {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.result-output p {
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 18px;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

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

.footer-nav a {
  color: var(--deep-red);
  font-weight: 800;
}

.notice-card {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(143, 47, 34, 0.24);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 244, 223, 0.72);
  font-size: 14px;
  line-height: 1.7;
}

.notice-card code {
  color: var(--deep-red);
  font-weight: 800;
}

.blog-hero,
.blog-article-hero {
  max-width: 940px;
}

.blog-hero h1,
.blog-article-hero h1 {
  font-size: clamp(38px, 6vw, 68px);
}

.blog-summary {
  max-width: 780px;
  color: var(--muted);
  font-size: clamp(17px, 2.4vw, 21px);
  line-height: 1.8;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding-top: 0;
}

.blog-card {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, var(--ivory));
  box-shadow: 0 16px 46px rgba(66, 38, 18, 0.1);
}

.blog-card h2 {
  font-size: clamp(25px, 3vw, 34px);
}

.blog-card > p:not(.blog-card-meta) {
  color: var(--muted);
  line-height: 1.75;
}

.blog-card .text-link {
  margin-top: auto;
}

.blog-card-meta,
.blog-article-meta,
.legal-updated {
  color: var(--gold);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.article-content,
.legal-content {
  max-width: 820px;
  padding-top: 0;
}

.article-content section {
  margin-bottom: 54px;
}

.article-content h2,
.legal-content h2 {
  font-size: clamp(27px, 4vw, 40px);
}

.article-content p,
.article-content li,
.legal-content p,
.legal-content li {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.95;
}

.article-content ul {
  display: grid;
  gap: 10px;
  padding-left: 24px;
}

.blog-cta {
  margin-bottom: 80px;
  padding: clamp(30px, 6vw, 58px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #fff, var(--ivory));
  box-shadow: var(--shadow);
}

.blog-cta p {
  max-width: 700px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.legal-page {
  min-height: 100svh;
}

.legal-content h1 {
  font-size: clamp(42px, 7vw, 72px);
}

.legal-content h2 {
  margin-top: 46px;
}

.loading-ring {
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  border: 4px solid rgba(143, 47, 34, 0.16);
  border-top-color: var(--deep-red);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 860px) {
  .site-header {
    position: absolute;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
  }

  nav {
    display: flex;
    order: 3;
    width: 100%;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 2px;
    white-space: nowrap;
  }

  .language-switcher {
    margin-left: auto;
  }

  .hero {
    min-height: 92svh;
    padding-top: 96px;
  }

  .hero-overlay {
    background:
      linear-gradient(0deg, rgba(255, 250, 242, 0.98) 0%, rgba(255, 250, 242, 0.72) 48%, rgba(255, 250, 242, 0.18) 100%),
      linear-gradient(90deg, rgba(255, 250, 242, 0.88), rgba(255, 250, 242, 0.2));
  }

  .hero-image {
    object-position: 64% center;
  }

  .intro,
  .offering,
  .bilingual-band,
  .ritual-list,
  .details-section,
  .test-panel,
  .page-grid,
  .review-wall,
  .contact-panel,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-card {
    min-height: auto;
  }

  .footer-nav {
    order: initial;
    width: auto;
    overflow: visible;
  }

  .blessing-grid,
  .detail-strip,
  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .contact {
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .brand [data-config="brandName"] {
    max-width: 58vw;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero-actions .btn,
  .contact .btn {
    width: 100%;
  }

  .date-selects {
    grid-template-columns: 1fr;
  }

  .blessing-grid,
  .detail-strip,
  .steps {
    grid-template-columns: 1fr;
  }

  footer {
    flex-direction: column;
  }

  footer .footer-nav {
    display: flex;
  }
}
