:root {
  --navy-950: #06101f;
  --navy-900: #091a31;
  --navy-800: #0d2748;
  --navy-700: #123a65;
  --blue-500: #2075d6;
  --gold-500: #cfa65a;
  --gold-300: #efd89f;
  --ink: #152033;
  --muted: #667184;
  --paper: #f8f6f0;
  --line: rgba(12, 37, 70, 0.12);
  --white: #ffffff;
  --shadow: 0 28px 80px rgba(4, 18, 38, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #eef3f8;
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  line-height: 1.8;
  overflow-x: hidden;
}
button, a { font: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }

.page-glow { position: fixed; z-index: -2; border-radius: 999px; filter: blur(90px); opacity: .32; }
.page-glow--one { width: 420px; height: 420px; right: -120px; top: 110px; background: #6da9ec; }
.page-glow--two { width: 480px; height: 480px; left: -260px; top: 780px; background: #edd296; opacity: .18; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 14px clamp(24px, 5vw, 80px);
  color: #fff;
  background: rgba(6, 16, 31, .92);
  border-bottom: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 13px; min-width: 0; }
.brand-mark {
  flex: 0 0 auto;
  width: 47px;
  height: 47px;
  display: grid;
  place-items: center;
  color: var(--navy-950);
  background: linear-gradient(145deg, #fff3d2, #c79d4f);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: -1px;
  clip-path: polygon(50% 0, 95% 24%, 95% 76%, 50% 100%, 5% 76%, 5% 24%);
}
.brand-copy { display: grid; line-height: 1.25; }
.brand-copy strong { font-size: 14px; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-copy small { margin-top: 4px; color: rgba(255,255,255,.58); font-size: 8px; letter-spacing: .14em; }
.site-nav { margin-left: auto; display: flex; gap: 28px; }
.site-nav a { color: rgba(255,255,255,.72); font-size: 14px; transition: .25s ease; }
.site-nav a:hover { color: var(--gold-300); }
.print-button { border: 1px solid rgba(239,216,159,.65); padding: 9px 18px; color: var(--gold-300); background: transparent; border-radius: 999px; transition: .25s ease; }
.print-button:hover { color: var(--navy-950); background: var(--gold-300); }

main { overflow: hidden; }
.hero {
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, .65fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
  padding: clamp(72px, 9vw, 130px) clamp(24px, 7vw, 110px);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(5,15,30,.98) 0%, rgba(7,28,52,.95) 58%, rgba(10,46,82,.88) 100%),
    radial-gradient(circle at 80% 20%, #2f7fc3 0, transparent 42%);
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(90deg, #000, transparent);
}
.hero::after {
  content: "";
  position: absolute;
  width: 620px; height: 620px;
  right: -250px; bottom: -340px;
  border: 1px solid rgba(239,216,159,.18);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(239,216,159,.035), 0 0 0 140px rgba(239,216,159,.025);
}
.hero-copy, .hero-panel { position: relative; z-index: 1; min-width: 0; }
.eyebrow { margin: 0 0 16px; display: flex; align-items: center; gap: 12px; color: var(--gold-500); font-size: 12px; font-weight: 700; letter-spacing: .22em; }
.eyebrow span { width: 42px; height: 1px; background: currentColor; }
.hero h1 { margin: 0; font-family: "Noto Serif SC", serif; font-size: clamp(58px, 8vw, 118px); line-height: .96; letter-spacing: -.06em; }
.hero h1 em { display: inline-block; margin-top: 18px; color: var(--gold-300); font-size: .58em; font-style: normal; letter-spacing: .02em; }
.hero-intro { max-width: 720px; margin: 38px 0 0; color: rgba(255,255,255,.68); font-size: clamp(16px, 1.6vw, 20px); line-height: 2; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.primary-button, .secondary-button { display: inline-flex; justify-content: center; align-items: center; min-width: 170px; min-height: 50px; padding: 0 24px; border-radius: 4px; font-weight: 600; transition: .25s ease; }
.primary-button { color: var(--navy-950); background: linear-gradient(135deg, #f2dfa9, #c89a48); }
.primary-button span { margin-left: 20px; }
.secondary-button { border: 1px solid rgba(255,255,255,.24); color: rgba(255,255,255,.84); }
.primary-button:hover, .secondary-button:hover { transform: translateY(-2px); }
.secondary-button:hover { border-color: var(--gold-300); color: var(--gold-300); }

.hero-panel { padding: 34px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.055); box-shadow: 0 24px 70px rgba(0,0,0,.18); backdrop-filter: blur(14px); }
.hero-panel__label { margin-bottom: 10px; color: var(--gold-300); font-size: 13px; letter-spacing: .18em; }
.hero-panel ul { margin: 0; padding: 0; list-style: none; }
.hero-panel li { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.hero-panel li:last-child { border-bottom: 0; padding-bottom: 0; }
.hero-panel li > span { grid-row: span 2; color: rgba(239,216,159,.65); font-family: Georgia, serif; font-size: 23px; font-style: italic; }
.hero-panel strong { font-size: 17px; letter-spacing: .08em; }
.hero-panel small { color: rgba(255,255,255,.52); font-size: 13px; }

.quick-facts {
  width: min(1140px, calc(100% - 48px));
  margin: -38px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  box-shadow: var(--shadow);
  position: relative; z-index: 2;
}
.quick-facts article { padding: 30px 28px; display: flex; align-items: center; gap: 18px; border-right: 1px solid var(--line); }
.quick-facts article:last-child { border-right: 0; }
.quick-facts b { color: var(--gold-500); font-family: Georgia, serif; font-size: 25px; font-style: italic; font-weight: 400; }
.quick-facts span { font-weight: 700; letter-spacing: .06em; }

.contract-section, .materials-section { width: min(1160px, calc(100% - 48px)); margin: 0 auto; padding: 120px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 36px; margin-bottom: 46px; }
.section-heading h2 { margin: 0; color: var(--navy-900); font-family: "Noto Serif SC", serif; font-size: clamp(38px, 5vw, 62px); line-height: 1.15; }
.section-heading > p { max-width: 470px; margin: 0 0 8px; color: var(--muted); font-size: 15px; }

.contract-paper { position: relative; overflow: hidden; padding: clamp(26px, 5vw, 68px); background: var(--paper); border: 1px solid rgba(20,35,55,.09); box-shadow: var(--shadow); }
.contract-paper::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(191,146,67,.25); pointer-events: none; }
.paper-watermark { position: absolute; right: -35px; top: 250px; color: rgba(13,39,72,.035); font-family: Georgia, serif; font-size: 220px; font-weight: 900; transform: rotate(90deg); pointer-events: none; }
.clause { position: relative; display: grid; grid-template-columns: 78px minmax(0,1fr); gap: clamp(18px, 4vw, 44px); padding: 42px 0; border-bottom: 1px solid rgba(13,39,72,.12); }
.clause:last-child { border-bottom: 0; padding-bottom: 8px; }
.clause-number { color: rgba(13,39,72,.19); font-family: Georgia, serif; font-size: 48px; font-style: italic; line-height: 1; }
.clause-content h3 { margin: 0 0 22px; color: var(--navy-900); font-family: "Noto Serif SC", serif; font-size: 20px; }
.clause-content h3 span { margin-left: 10px; font-size: 1.25em; }
.clause-content ol { margin: 0; padding-left: 1.4em; }
.clause-content li { margin: 12px 0; padding-left: 8px; color: #384354; }
.clause-content li::marker { color: var(--gold-500); font-weight: 700; }
.clause--highlight { margin: 18px -26px; padding: 45px 26px; background: linear-gradient(90deg, rgba(231,216,178,.38), rgba(255,255,255,.25)); border: 1px solid rgba(191,146,67,.22); }
.special-promise { margin: 0 0 25px; padding: 16px 20px; color: #79591c; background: rgba(239,216,159,.34); border-left: 3px solid var(--gold-500); font-weight: 700; }
.reserved { color: #9a7b42 !important; font-style: italic; }
.reserved-block { margin: 0; padding: 18px 20px; color: #816a43; border: 1px dashed rgba(167,127,55,.45); background: rgba(255,255,255,.4); }
.clause--compact { padding-top: 34px; padding-bottom: 34px; }

.signature-section { padding: 110px max(24px, calc((100vw - 1160px) / 2)); color: #fff; background: var(--navy-900); position: relative; }
.signature-section::before { content: ""; position: absolute; inset: 0; opacity: .08; background-image: linear-gradient(45deg, transparent 48%, #fff 49%, #fff 51%, transparent 52%); background-size: 60px 60px; }
.signature-section > * { position: relative; z-index: 1; }
.section-heading--light h2 { color: #fff; }
.section-heading--light > p { color: rgba(255,255,255,.56); }
.signature-grid { display: grid; grid-template-columns: 1fr 150px 1fr; align-items: center; gap: 34px; }
.signature-card { min-height: 300px; padding: 36px; color: var(--ink); background: #fff; box-shadow: 0 24px 60px rgba(0,0,0,.18); }
.signature-card .party { display: inline-grid; place-items: center; width: 50px; height: 28px; margin: 0 0 16px; color: #fff; background: var(--navy-800); font-size: 12px; letter-spacing: .15em; }
.signature-card h3 { margin: 0 0 56px; color: var(--navy-900); font-family: "Noto Serif SC", serif; font-size: 24px; }
.signature-line, .date-line { display: flex; align-items: end; gap: 10px; margin-top: 30px; color: #536071; font-size: 14px; }
.signature-line i { flex: 1; height: 24px; border-bottom: 1px solid #adb5c0; }
.date-line i { width: 42px; height: 22px; border-bottom: 1px solid #adb5c0; }
.date-line i:first-of-type { flex: 1; }
.agreement-seal { width: 135px; height: 135px; display: grid; place-content: center; text-align: center; border: 1px solid rgba(239,216,159,.55); border-radius: 50%; box-shadow: inset 0 0 0 6px var(--navy-900), inset 0 0 0 7px rgba(239,216,159,.28); color: var(--gold-300); transform: rotate(-7deg); }
.agreement-seal span { font-size: 8px; letter-spacing: .22em; }
.agreement-seal b { font-family: "Noto Serif SC", serif; font-size: 33px; line-height: 1.2; }
.agreement-seal small { font-size: 10px; letter-spacing: .16em; }
.attachment-list { margin-top: 60px; display: grid; grid-template-columns: 220px 1fr; gap: 40px; padding: 34px 38px; border: 1px solid rgba(255,255,255,.13); background: rgba(255,255,255,.04); }
.attachment-title span { color: var(--gold-500); font-size: 12px; letter-spacing: .18em; }
.attachment-title h3 { margin: 5px 0 0; font-family: "Noto Serif SC", serif; font-size: 24px; }
.attachment-list ol { margin: 0; padding-left: 1.4em; columns: 2; column-gap: 50px; color: rgba(255,255,255,.68); }
.attachment-list li { margin: 5px 0 12px; break-inside: avoid; }
.attachment-list li::marker { color: var(--gold-500); }

.materials-section { padding-bottom: 130px; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; }
.gallery-card { position: relative; min-height: 430px; padding: 0; overflow: hidden; text-align: left; border: 0; background: #dfe5eb; box-shadow: 0 20px 55px rgba(9,26,49,.13); }
.gallery-card--wide { min-height: 520px; }
.gallery-card img { width: 100%; height: 100%; min-height: inherit; object-fit: contain; background: #e9edf2; transition: transform .6s cubic-bezier(.2,.8,.2,1); image-orientation: from-image; }
.gallery-card--license img { object-fit: contain; }
.gallery-card::after { content: ""; position: absolute; inset: 42% 0 0; background: linear-gradient(transparent, rgba(3,12,25,.88)); pointer-events: none; }
.gallery-card > span { position: absolute; z-index: 2; left: 28px; right: 28px; bottom: 24px; display: grid; color: #fff; }
.gallery-card b { font-size: 20px; }
.gallery-card small { margin-top: 2px; color: rgba(255,255,255,.58); font-size: 12px; letter-spacing: .12em; }
.gallery-card:hover img { transform: scale(1.025); }

.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 40px clamp(24px, 6vw, 90px); color: #fff; background: var(--navy-950); border-top: 1px solid rgba(239,216,159,.18); }
.brand--footer .brand-copy strong { font-size: 13px; }
.site-footer > p { max-width: 550px; margin: 0; text-align: right; color: rgba(255,255,255,.45); font-size: 12px; }

.lightbox { width: min(94vw, 1200px); height: min(92vh, 920px); padding: 0; border: 0; background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgba(2,8,18,.9); backdrop-filter: blur(8px); }
.lightbox img { width: 100%; height: 100%; object-fit: contain; image-orientation: from-image; }
.lightbox-close { position: fixed; right: 24px; top: 18px; width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; color: #fff; background: rgba(0,0,0,.25); font-size: 30px; line-height: 1; }
.back-to-top { position: fixed; z-index: 15; right: 24px; bottom: 24px; width: 46px; height: 46px; border: 0; border-radius: 50%; color: var(--navy-950); background: var(--gold-300); box-shadow: 0 12px 30px rgba(0,0,0,.22); opacity: 0; pointer-events: none; transform: translateY(12px); transition: .25s ease; }
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

@media (max-width: 980px) {
  .site-nav { display: none; }
  .print-button { margin-left: auto; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-panel { max-width: 640px; }
  .quick-facts { grid-template-columns: repeat(2, 1fr); }
  .quick-facts article:nth-child(2) { border-right: 0; }
  .quick-facts article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .signature-grid { grid-template-columns: 1fr 1fr; }
  .agreement-seal { display: none; }
}

@media (max-width: 680px) {
  .site-header { min-height: 68px; padding: 10px 16px; }
  .brand-mark { width: 42px; height: 42px; }
  .brand-copy strong { max-width: 185px; font-size: 11px; }
  .brand-copy small { display: none; }
  .print-button { display: none; }
  .hero { padding: 70px 24px 100px; }
  .hero-copy { width: 100%; overflow: hidden; }
  .hero h1 { font-size: clamp(52px, 17vw, 76px); }
  .hero-intro { font-size: 15px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; width: 100%; gap: 10px; }
  .primary-button, .secondary-button { min-width: 0; padding: 0 12px; font-size: 13px; white-space: nowrap; }
  .primary-button span { margin-left: 12px; }
  .hero-panel { padding: 26px 22px; }
  .quick-facts { width: calc(100% - 28px); grid-template-columns: 1fr 1fr; }
  .quick-facts article { padding: 19px 14px; gap: 10px; }
  .quick-facts b { font-size: 20px; }
  .quick-facts span { font-size: 12px; }
  .contract-section, .materials-section { width: calc(100% - 28px); padding: 85px 0; }
  .section-heading { display: block; margin-bottom: 30px; }
  .section-heading > p { margin-top: 18px; }
  .contract-paper { padding: 24px 22px; }
  .contract-paper::before { inset: 7px; }
  .clause { grid-template-columns: 1fr; gap: 12px; padding: 34px 0; }
  .clause-number { font-size: 30px; }
  .clause-content h3 span { display: block; margin: 6px 0 0; font-size: 1.15em; }
  .clause-content li { font-size: 14px; }
  .clause--highlight { margin: 10px -12px; padding: 34px 12px; }
  .signature-section { padding: 85px 14px; }
  .signature-grid { grid-template-columns: 1fr; }
  .signature-card { min-height: 270px; padding: 28px 24px; }
  .attachment-list { grid-template-columns: 1fr; padding: 28px 24px; }
  .attachment-list ol { columns: 1; }
  .gallery { grid-template-columns: 1fr; }
  .gallery-card, .gallery-card--wide { min-height: 360px; }
  .site-footer { display: block; }
  .site-footer > p { margin-top: 24px; text-align: left; }
}

@media print {
  @page { size: A4; margin: 14mm; }
  body { background: #fff; }
  .site-header, .hero, .quick-facts, .materials-section, .site-footer, .back-to-top { display: none !important; }
  .contract-section { width: 100%; padding: 0; }
  .section-heading { margin-bottom: 20px; }
  .section-heading h2 { font-size: 30px; }
  .contract-paper { padding: 0; border: 0; box-shadow: none; background: #fff; }
  .contract-paper::before, .paper-watermark { display: none; }
  .clause { grid-template-columns: 48px 1fr; gap: 16px; padding: 18px 0; break-inside: avoid; }
  .clause-number { font-size: 25px; }
  .clause-content h3 { margin-bottom: 10px; font-size: 16px; }
  .clause-content li, .clause-content p { margin: 5px 0; font-size: 11px; line-height: 1.65; }
  .clause--highlight { margin: 0; padding-left: 0; padding-right: 0; background: #fff; border-left: 0; border-right: 0; }
  .signature-section { padding: 32px 0 0; color: #000; background: #fff; break-before: page; }
  .signature-section::before, .section-heading--light > p { display: none; }
  .section-heading--light h2 { color: #000; }
  .signature-grid { grid-template-columns: 1fr 1fr; }
  .signature-card { border: 1px solid #aaa; box-shadow: none; }
  .agreement-seal { display: none; }
  .attachment-list { color: #000; border-color: #aaa; background: #fff; }
  .attachment-list ol { color: #000; }
}
