:root {
  --bg: #f6f7f4;
  --surface: #ffffff;
  --text: #1f2924;
  --muted: #68736d;
  --green: #17654e;
  --border: #dfe4e0;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { min-width: 320px; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, .86);
}

.site-nav a {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.site-nav a:hover { color: var(--green); }

.site-nav .brand {
  color: var(--text);
  font-size: 15px;
  font-weight: 650;
}

.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(420px, .65fr);
  min-height: calc(100svh - 64px);
  background: var(--surface);
}

.home-visual {
  position: relative;
  min-width: 0;
  min-height: 620px;
  margin: 0;
  overflow: hidden;
  background: #8c9c77;
}

.home-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 48% center;
  filter: saturate(.94) contrast(1.02);
  animation: image-in .8s ease-out both;
}

.home-visual picture {
  display: block;
  width: 100%;
  height: 100%;
}

.home-visual::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, transparent 65%, rgba(14, 27, 21, .22));
}

.home-visual figcaption {
  position: absolute;
  z-index: 1;
  right: 14px;
  bottom: 12px;
  padding: 5px 8px;
  border-radius: 3px;
  background: rgba(18, 29, 24, .56);
  backdrop-filter: blur(6px);
}

.home-visual figcaption a {
  display: block;
  color: rgba(255, 255, 255, .88);
  font-size: 9px;
  line-height: 1.2;
  text-decoration: none;
}

.home-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(46px, 5vw, 76px);
  border-left: 1px solid var(--border);
}

.home-content .page-head h1 { font-size: clamp(42px, 4vw, 58px); }
.home-content .content-section { margin-top: clamp(50px, 7vh, 78px); }
.home-content .plan-list { margin-top: 0; }
.home-content .featured-row {
  grid-template-columns: 1fr;
  gap: 13px;
  min-height: 164px;
  margin: 0 -12px;
  padding: 24px 12px;
  transition: background-color .18s ease, border-color .18s ease;
}
.home-content .row-meta { text-align: left; }
.home-content .row-action { margin-top: 12px; }

.page-shell {
  width: min(1120px, calc(100% - 40px));
  min-height: calc(100vh - 129px);
  margin: 0 auto;
  padding: clamp(54px, 8vw, 96px) 0 88px;
}

.page-head h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 680;
  letter-spacing: -.035em;
}

.page-head p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.content-section { margin-top: 58px; }

.content-section h2 {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 650;
}

.plan-list {
  margin-top: 58px;
  border-top: 1px solid var(--border);
}

.content-section .plan-list { margin-top: 0; }

.plan-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  min-height: 94px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease;
}

.plan-row:hover { background: rgba(23, 101, 78, .045); border-bottom-color: rgba(23, 101, 78, .3); }
.plan-row:hover .row-action,
.plan-row:hover .row-title { color: var(--green); }
.plan-row:focus-visible { position: relative; z-index: 1; }

.featured-row { grid-template-columns: minmax(280px, 1fr) auto auto; }

.row-main { display: grid; gap: 7px; }
.row-main strong, .row-title { font-size: 21px; font-weight: 650; letter-spacing: -.015em; }
.row-main > span { color: var(--muted); font-size: 13px; }
.row-no { color: var(--muted); font-size: 11px; }
.row-meta { color: var(--muted); font-size: 12px; text-align: right; }
.row-action { color: var(--green); font-size: 13px; font-weight: 650; white-space: nowrap; }
.row-action span { display: inline-block; transition: transform .18s ease; }
.plan-row:hover .row-action span { transform: translateX(4px); }

.empty-state {
  margin: 42px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.status-code {
  margin: 0 0 12px !important;
  color: var(--muted);
  font-size: 13px !important;
  font-weight: 650;
}

.primary-link {
  display: inline-flex;
  gap: 10px;
  margin-top: 28px;
  color: var(--green);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 11px;
}

.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--green); }

@keyframes image-in {
  from { opacity: 0; transform: scale(1.018); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 720px) {
  .site-nav { min-height: 56px; padding: 0 20px; }
  .page-shell { width: min(100% - 32px, 1120px); min-height: calc(100vh - 113px); padding-top: 44px; }
  .content-section, .plan-list { margin-top: 42px; }
  .content-section .plan-list { margin-top: 0; }
  .plan-row, .featured-row { grid-template-columns: 1fr; gap: 9px; padding: 20px 2px; }
  .row-no { margin-bottom: 2px; }
  .row-meta { text-align: left; }
  .row-action { margin-top: 6px; }
  .site-footer { min-height: 56px; padding: 0 16px; }
}

@media (max-width: 900px) {
  .home-layout { grid-template-columns: 1fr; min-height: auto; }
  .home-visual { min-height: 0; aspect-ratio: 16 / 10; }
  .home-visual img { object-position: center center; }
  .home-content { padding: 36px 20px 56px; border-left: 0; }
  .home-content .content-section { margin-top: 36px; }
  .home-content .featured-row { min-height: 0; margin: 0 -10px; padding: 20px 10px; }
}

@media (min-width: 901px) and (max-width: 1300px) {
  .home-content { padding: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .home-visual img { animation: none; }
  .plan-row, .row-action span { transition: none; }
}
