:root {
  --ink: #172233;
  --muted: #607082;
  --brand: #58748e;
  --brand-deep: #334f68;
  --line: #dce4ea;
  --line-strong: #cbd7df;
  --surface: #ffffff;
  --page: #f5f7fa;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--ink);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); font-size: 14px; line-height: 1.6; }
a { color: inherit; }
:focus-visible { outline: 3px solid #819eb7; outline-offset: 4px; }
.wrap { width: min(1184px, calc(100% - 48px)); margin-inline: auto; }
.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.site-shell main { flex: 1; }
.skip-link { position: absolute; top: -100px; left: 16px; z-index: 50; padding: 10px 14px; background: #fff; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.site-header { height: 92px; border-bottom: 1px solid rgba(203, 215, 223, .72); background: rgba(255,255,255,.72); backdrop-filter: blur(18px); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; }
.brand img { width: 46px; height: 46px; border-radius: 13px; box-shadow: 0 5px 16px rgba(69, 62, 50, .12); }
.brand span { display: flex; flex-direction: column; }
.brand strong { font-family: Georgia, "Times New Roman", serif; font-size: 20px; font-weight: 650; letter-spacing: .12em; color: var(--brand-deep); white-space: nowrap; line-height: 1.2; }
.brand small { margin-top: 3px; font-size: 10px; letter-spacing: .18em; color: #8b99a5; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { position: relative; padding: 8px 0; color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 650; transition: color .18s; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--brand-deep); }
.site-nav a[aria-current="page"]::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; border-radius: 2px; background: var(--brand); }

.hero { min-height: 320px; display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: center; gap: 28px; padding: 48px 0 34px; border-bottom: 1px solid var(--line); }
.hero-copy { padding: 0 0 8px 3px; }
.eyebrow { display: inline-block; color: #74889a; font-size: 11px; font-weight: 750; letter-spacing: .18em; }
.hero h1 { margin: 18px 0 20px; font-size: clamp(40px, 4.5vw, 60px); font-weight: 740; line-height: 1.31; letter-spacing: .015em; }
.hero-period { color: #c5a46b; }
.hero p { margin: 0; color: var(--muted); font-size: 16px; }
.hero-visual { height: 234px; position: relative; display: grid; place-items: center; overflow: hidden; }
.hero-visual::before { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(205,217,226,.7), rgba(205,217,226,0) 70%); }
.hero-visual img { position: relative; z-index: 2; width: 160px; height: 160px; border: 7px solid rgba(255,255,255,.86); border-radius: 31px; box-shadow: 0 24px 52px rgba(49,74,95,.18), 0 2px 7px rgba(49,74,95,.06); transform: rotate(-4deg); }
.hero-orbit { position: absolute; border: 1px solid rgba(112,143,167,.25); border-radius: 50%; }
.orbit-one { width: 220px; height: 220px; }
.orbit-two { width: 310px; height: 310px; }
.visual-rule { position: absolute; width: 30px; height: 30px; border-color: #bd9c62; opacity: .75; }
.rule-top { top: 20px; left: 29px; border-top: 2px solid; border-left: 2px solid; }
.rule-bottom { right: 32px; bottom: 22px; border-right: 2px solid; border-bottom: 2px solid; }

.tools-section { padding: 37px 0 76px; scroll-margin-top: 24px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-heading h2 { margin: 5px 0 0; font-size: 26px; line-height: 1.25; letter-spacing: -.02em; }
.section-count { color: #91a1ad; font-size: 12px; letter-spacing: .15em; font-variant-numeric: tabular-nums; }
.tools-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.tool-card { position: relative; min-height: 216px; display: flex; flex-direction: column; padding: 25px 26px 23px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); box-shadow: 0 5px 20px rgba(31, 53, 75, .045); text-decoration: none; overflow: hidden; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.tool-card:hover, .tool-card:focus-visible { transform: translateY(-4px); border-color: #b8c9d6; box-shadow: 0 18px 38px rgba(31, 53, 75, .1); }
.tool-card-featured { grid-column: span 2; min-height: 236px; display: grid; grid-template-columns: minmax(0,1fr) 220px; background: linear-gradient(115deg, #fff 15%, #f1f6f9 100%); }
.card-content { display: flex; flex-direction: column; min-width: 0; }
.card-top { display: flex; align-items: center; gap: 11px; }
.tool-icon { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; border-radius: 11px; background: #edf2f7; color: #436a91; }
.tool-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tool-icon.amber { color: #93723d; background: #f6f0e5; }
.tool-icon.violet { color: #715a90; background: #f1eef7; }
.tool-icon.teal { color: #357b73; background: #eaf5f2; }
.tool-icon.rose { color: #a76970; background: #f8edef; }
.tool-icon.gold { color: #9a7843; background: #f8f2e8; }
.tool-icon.slate { color: #506e86; background: #edf3f7; }
.card-type { color: #8796a3; font-size: 11px; font-weight: 650; letter-spacing: .03em; }
.tool-card h3 { margin: 22px 0 8px; font-size: 21px; line-height: 1.36; font-weight: 750; letter-spacing: -.025em; }
.tool-card p { margin: 0 0 24px; max-width: 360px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.card-action { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; width: fit-content; color: var(--brand-deep); font-size: 13px; font-weight: 750; }
.card-action span { font-size: 17px; line-height: 1; transition: transform .2s; }
.tool-card:hover .card-action span { transform: translate(3px,-3px); }
.timeline-art { position: relative; min-height: 170px; align-self: center; }
.art-line { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: linear-gradient(#85a7bf, #c9dce8); }
.timeline-art i { position: absolute; left: calc(50% - 6px); width: 14px; height: 14px; border: 3px solid #f5f9fb; border-radius: 50%; background: #6386a3; box-shadow: 0 0 0 1px #9bb4c8; }
.timeline-art i:nth-of-type(1) { top: 15px; }
.timeline-art i:nth-of-type(2) { top: 78px; background: #bd9c62; box-shadow: 0 0 0 1px #d6bc90; }
.timeline-art i:nth-of-type(3) { bottom: 11px; }
.timeline-art span { position: absolute; width: 72px; height: 23px; border: 1px solid #d4e1e9; border-radius: 6px; background: rgba(255,255,255,.8); box-shadow: 0 2px 6px rgba(48,77,97,.04); }
.timeline-art span:nth-of-type(1) { right: 56%; top: 10px; }
.timeline-art span:nth-of-type(2) { left: 56%; top: 74px; width: 80px; }
.timeline-art span:nth-of-type(3) { right: 56%; bottom: 7px; width: 66px; }

.site-footer { border-top: 1px solid var(--line); background: rgba(255,255,255,.42); }
.footer-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #7e8d9a; font-size: 12px; }
.footer-inner a { color: var(--muted); text-decoration: none; }
.footer-inner a:hover { color: var(--brand-deep); text-decoration: underline; }

.page-intro { padding: 54px 0 25px; }
.page-intro h1 { margin: 0 0 12px; font-size: clamp(30px,3vw,38px); letter-spacing: -.035em; }
.page-intro p { max-width: 880px; margin: 0 0 8px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.page-intro .method-meta { color: #8295a4; font-size: 12px; }
.method-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; padding-bottom: 70px; }
.method-card { padding: 26px 28px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 5px 20px rgba(31,53,75,.04); scroll-margin-top: 20px; }
.method-card h2 { margin: 0 0 13px; font-size: 18px; }
.method-card p { margin: 0 0 12px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.method-card p:last-child { margin-bottom: 0; }
.method-card a { color: var(--brand-deep); text-underline-offset: 3px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr 240px; }
  .hero-visual { height: 210px; }
  .hero-visual img { width: 140px; height: 140px; }
  .tools-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .tool-card-featured { grid-column: span 2; }
}
@media (max-width: 620px) {
  .wrap { width: calc(100% - 32px); }
  .site-header { height: 76px; }
  .brand img { width: 40px; height: 40px; }
  .brand strong { font-size: 16px; }
  .brand small { font-size: 9px; }
  .site-nav { gap: 16px; }
  .site-nav a { font-size: 12px; }
  .hero { display: block; min-height: 0; padding: 48px 0 42px; }
  .hero h1 { font-size: clamp(36px,9vw,48px); margin: 15px 0 18px; line-height: 1.34; }
  .hero p { font-size: 14px; }
  .hero-visual { display: none; }
  .tools-section { padding: 30px 0 48px; }
  .section-heading h2 { font-size: 23px; }
  .tools-grid, .method-list { grid-template-columns: 1fr; gap: 12px; }
  .tool-card, .tool-card-featured { grid-column: auto; display: flex; min-height: 208px; padding: 21px 22px; }
  .timeline-art { display: none; }
  .tool-card h3 { margin-top: 17px; font-size: 19px; }
  .tool-card p { margin-bottom: 19px; }
  .page-intro { padding-top: 38px; }
  .method-card { padding: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
