/* 耒阳永成：松柏绿、朱砂与宣纸。 */
:root {
  --ink: #1a2c26;
  --ink-soft: #5e6f68;
  --paper: #f6f3ec;
  --paper-soft: #ede7da;
  --pine: #1f5c4a;
  --pine-dark: #163f34;
  --cinnabar: #b33a2c;
  --gold: #c4a15a;
  --line: #d8d0c2;
  --nav-height: 88px;
  font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-height) + 28px); overflow-x: hidden; }
body { margin: 0; min-width: 320px; max-width: 100%; overflow-x: hidden; background: var(--paper); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
[hidden] { display: none !important; }

.brand { display: inline-flex; align-items: center; gap: 13px; min-width: 0; flex: none; }
.brand-logo { width: 52px; height: 52px; flex: none; display: block; object-fit: contain; mix-blend-mode: multiply; }
.brand-copy { display: grid; gap: 4px; }
.brand-copy strong { font-size: 22px; font-weight: 800; letter-spacing: .18em; }
.brand-copy small { color: var(--ink-soft); font-size: 10px; letter-spacing: .16em; }

.hero { position: relative; min-height: min(820px, 100svh); display: flex; align-items: center; padding: calc(var(--nav-height) + 84px) clamp(24px, 8vw, 138px) 124px; overflow: hidden; background: #efe8d8; }
.hero-image { position: absolute; inset: 0; background: url('/assets/hero-yongcheng.jpg') center 46% / cover no-repeat; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(246, 243, 236, .78), rgba(246, 243, 236, .22) 46%, transparent 68%); }
.hero-content { position: relative; z-index: 2; width: 100%; max-width: 1300px; margin: 0 auto; }
.hero-kicker { margin: 0 0 18px; color: var(--cinnabar); font-size: 12px; letter-spacing: .28em; font-weight: 700; }
.hero h1 { margin: 0; max-width: 680px; font-size: clamp(48px, 5.3vw, 76px); line-height: 1.28; letter-spacing: .12em; font-weight: 800; }
.hero h1 em { display: block; margin-top: 10px; color: var(--pine); font-family: "STKaiti", "KaiTi", "Kaiti SC", serif; font-size: .52em; font-style: normal; font-weight: 700; letter-spacing: .08em; }
.hero-actions { display: flex; align-items: center; gap: 26px; margin-top: 36px; }
.primary-action { display: inline-flex; align-items: center; justify-content: space-between; gap: 34px; padding: 16px 22px; border-radius: 2px; color: #fff; background: var(--pine); font-size: 15px; font-weight: 700; box-shadow: 0 10px 24px rgba(31, 92, 74, .16); transition: translate .2s ease, background .2s ease; }
.primary-action:hover { translate: 0 -2px; background: var(--pine-dark); }
.primary-action span { font-size: 22px; line-height: 1; font-weight: 400; }
.text-action { border: 0; border-bottom: 1px solid #b7c4b6; padding: 8px 0; color: #4f655c; font-size: 13px; cursor: pointer; background: none; }
.text-action:hover { border-color: var(--cinnabar); color: var(--cinnabar); }
.scroll-cue { position: absolute; z-index: 3; left: clamp(24px, 8vw, 138px); bottom: 29px; display: flex; align-items: center; gap: 25px; color: #61756c; font-size: 11px; letter-spacing: .12em; }
.scroll-cue span:last-child { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid #c9d2c8; border-radius: 50%; font-size: 16px; }

.workbench { padding: 88px clamp(22px, 6vw, 96px) 108px; background: var(--paper); }
.module-groups { max-width: 1380px; margin: 0 auto; }
.module-group { --section-accent: var(--pine); --section-soft: #e6efe9; }
.module-group:nth-child(2) { --section-accent: var(--cinnabar); --section-soft: #f6e8e4; }
.module-group:nth-child(3) { --section-accent: #8a6d32; --section-soft: #f3ead4; }
.module-group + .module-group { margin-top: 84px; }
.module-group-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 28px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.module-group-kicker { margin: 0 0 12px; color: var(--section-accent); font: 11px/1.5 "Microsoft YaHei UI", sans-serif; letter-spacing: .22em; }
.module-group-kicker::before { content: ''; display: inline-block; width: 18px; height: 1px; margin-right: 10px; margin-bottom: 4px; background: var(--section-accent); }
.module-group-heading h2 { margin: 0; color: var(--ink); font-size: clamp(26px, 2.5vw, 34px); letter-spacing: .06em; font-weight: 700; }
.module-group-heading > p { max-width: 350px; margin: 0 0 3px; color: var(--ink-soft); font-size: 13px; line-height: 1.8; }
.module-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; width: 100%; }
.module-card { position: relative; min-width: 0; min-height: 312px; padding: 26px 24px 22px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 2px; background: #fffcf6; cursor: pointer; transition: border-color .2s ease, translate .2s ease, box-shadow .2s ease; }
.module-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--section-accent); }
.module-card:hover, .module-card:focus-visible { translate: 0 -4px; border-color: var(--section-accent); box-shadow: 0 16px 32px rgba(26, 44, 38, .08); }
.module-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.module-number { font: 11px/1.4 "Microsoft YaHei UI", sans-serif; letter-spacing: .16em; color: var(--section-accent); }
.module-cost { display: inline-flex; align-items: center; padding: 5px 9px; border: 1px solid var(--line); background: var(--section-soft); color: var(--section-accent); font-size: 10px; letter-spacing: .04em; white-space: nowrap; flex: none; }
.module-title { margin: 32px 0 10px; color: var(--ink); font-size: clamp(20px, 1.6vw, 24px); line-height: 1.4; letter-spacing: .04em; }
.module-label { margin: 0 0 9px; color: var(--section-accent); font-size: 13px; font-weight: 700; line-height: 1.6; }
.module-description { margin: 0 0 23px; color: var(--ink-soft); font-size: 12px; line-height: 1.85; }
.module-enter { margin-top: auto; padding-top: 16px; border-top: 1px solid #e8e1d4; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #66756e; font-size: 12px; letter-spacing: .08em; }
.module-enter b { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--section-accent); color: var(--section-accent); font-size: 16px; font-weight: 400; transition: background .2s ease, color .2s ease; }
.module-card:hover .module-enter b { color: #fff; background: var(--section-accent); }
.module-card[aria-disabled="true"] { opacity: .6; cursor: not-allowed; }
.module-card[aria-disabled="true"]:hover { translate: none; box-shadow: none; border-color: var(--line); }
.module-loading { padding: 30px; color: var(--ink-soft); }

footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 30px clamp(22px, 6vw, 96px); border-top: 1px solid var(--line); background: var(--paper-soft); }
footer .brand-logo { width: 46px; height: 46px; }
footer .brand-copy strong { font-size: 18px; }
footer p { color: var(--ink-soft); font-size: 12px; letter-spacing: .08em; }

:focus-visible { outline: 3px solid var(--cinnabar); outline-offset: 4px; }

@media (min-width: 1600px) {
  .hero { min-height: 860px; }
}

@media (max-width: 1100px) {
  .brand-copy strong { font-size: 20px; }
  .brand-logo { width: 46px; height: 46px; }
  .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .module-title { font-size: 23px; }
  .hero { padding-left: 6vw; padding-right: 6vw; }
  .hero h1 { font-size: 58px; }
  .scroll-cue { left: 6vw; }
}

@media (max-width: 900px) {
  :root { --nav-height: 80px; }
  .hero { min-height: 760px; padding-top: 205px; }
  .hero h1 { font-size: 52px; }
  .hero-image { background-position: 62% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(246,243,236,.94), rgba(246,243,236,.78) 40%, rgba(246,243,236,.08) 85%); }
  .module-group-heading { align-items: start; flex-direction: column; gap: 12px; }
  .module-group-heading > p { max-width: 520px; }
}

@media (max-width: 600px) {
  :root { --nav-height: 72px; }
  .brand { gap: 8px; }
  .brand-logo { width: 40px; height: 40px; }
  .brand-copy strong { font-size: 17px; letter-spacing: .08em; }
  .brand-copy small { display: none; }
  .hero { min-height: 700px; align-items: flex-start; padding: 126px 24px 360px; }
  .hero-image { background-size: auto 440px; background-position: right -4px bottom 0; }
  .hero-shade { background: linear-gradient(180deg, #f6f3ec 0%, #f6f3ec 39%, rgba(246,243,236,.5) 51%, transparent 65%); }
  .hero-kicker { margin-bottom: 12px; font-size: 11px; }
  .hero h1 { font-size: clamp(36px, 10vw, 52px); letter-spacing: .08em; }
  .hero h1 em { margin-top: 8px; }
  .hero-actions { gap: 18px; flex-wrap: wrap; margin-top: 25px; }
  .primary-action { padding: 14px 18px; gap: 22px; font-size: 13px; }
  .text-action { font-size: 11px; }
  .scroll-cue { left: 24px; bottom: 20px; padding: 6px 10px; background: rgba(246,243,236,.88); font-size: 10px; gap: 12px; }
  .scroll-cue span:last-child { width: 22px; height: 22px; font-size: 13px; }
  .workbench { padding: 52px 16px 64px; }
  .module-groups, .module-group, .module-grid { min-width: 0; max-width: 100%; }
  .module-grid { display: flex; flex-direction: column; gap: 13px; }
  .module-group + .module-group { margin-top: 49px; }
  .module-group-heading { margin-bottom: 20px; gap: 11px; }
  .module-group-heading h2 { font-size: 26px; }
  .module-card { min-height: 270px; padding: 23px; }
  .module-title { margin-top: 24px; font-size: 22px; }
  footer { padding: 25px 20px; flex-wrap: wrap; }
  footer .brand-copy strong { font-size: 16px; }
  footer p { font-size: 10px; }
}

@media (max-width: 360px) {
  .brand-copy small { display: none; }
  .hero { padding-inline: 20px; }
  .hero-actions { gap: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
