:root {
  --bg: #f6f7f4;
  --surface: #ffffff;
  --ink: #1c2522;
  --muted: #68716d;
  --line: #dce1dc;
  --navy: #17324d;
  --green: #2f6f5e;
  --gold: #b8893a;
  --danger-soft: #f5eadb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 40px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  color: var(--navy);
  font-size: 20px;
  font-weight: 700;
  white-space: nowrap;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 18px;
  color: #394540;
  font-size: 14px;
}

.nav a:hover,
.text-link:hover {
  color: var(--green);
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: stretch;
  padding: 56px 0 34px;
}

.hero-copy {
  min-height: 360px;
  padding: 44px;
  color: #fff;
  background:
    linear-gradient(rgba(17, 42, 62, 0.82), rgba(22, 50, 43, 0.88)),
    url("https://images.unsplash.com/photo-1450101499163-c8848c66ca85?auto=format&fit=crop&w=1600&q=80");
  background-position: center;
  background-size: cover;
  border-radius: 8px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #d9c193;
  font-size: 14px;
  font-weight: 700;
}

.hero h1,
.page-head h1,
.detail h1,
.auth-panel h1 {
  margin: 0;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
}

.lead {
  max-width: 760px;
  margin: 20px 0 28px;
  color: #edf2ef;
  font-size: 17px;
}

.search-box {
  display: flex;
  width: min(760px, 100%);
  gap: 10px;
}

.search-box input,
.search-box select,
.auth-form input {
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.search-box input {
  flex: 1;
}

.search-box button,
.auth-form button,
.locked a,
.plan-card button,
.button-link {
  height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 6px;
  background: var(--green);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-panel {
  display: grid;
  gap: 12px;
}

.hero-panel div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 112px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.hero-panel strong {
  color: var(--navy);
  font-size: 28px;
}

.hero-panel span,
.section-head p,
.content-card p,
.summary,
.locked p,
.auth-panel p {
  color: var(--muted);
}

.section,
.page-head,
.detail,
.auth-panel {
  padding: 28px 0;
}

.support-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 6px 0 22px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
}

.support-band span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
}

.support-band strong {
  display: block;
  margin-top: 4px;
  color: var(--navy);
  font-size: 19px;
}

.support-band p {
  margin: 6px 0 0;
  color: var(--muted);
}

.detail-support {
  margin-top: 28px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.section-head h2 {
  margin: 0;
  color: var(--navy);
  font-size: 24px;
}

.section-head p {
  margin: 0;
}

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

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

.feature,
.content-card,
.locked,
.auth-panel,
.plan-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.feature {
  display: grid;
  gap: 8px;
  min-height: 118px;
  padding: 20px;
}

.feature span,
.meta span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
}

.feature strong {
  color: var(--navy);
  font-size: 18px;
}

.plan-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 260px;
  padding: 22px;
}

.plan-code {
  color: var(--gold);
  font-size: 14px;
  font-weight: 700;
}

.plan-card h2 {
  margin: 10px 0 8px;
  color: var(--navy);
  font-size: 36px;
}

.plan-card p {
  color: var(--muted);
}

.duration {
  font-weight: 700;
}

.plan-card form {
  margin: 0;
}

.plan-card button,
.button-link {
  width: 100%;
}

.content-list {
  display: grid;
  gap: 14px;
}

.content-card {
  padding: 20px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 10px;
}

.content-card h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 20px;
}

.content-card p {
  margin: 0 0 12px;
}

.text-link {
  color: var(--green);
  font-weight: 700;
}

.page-head {
  display: grid;
  gap: 18px;
}

.page-head h1,
.detail h1 {
  color: var(--navy);
  font-size: 34px;
}

.compact {
  width: 100%;
}

.detail {
  max-width: 860px;
}

.summary {
  font-size: 18px;
}

.body-text {
  margin-top: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  white-space: pre-line;
}

.locked {
  margin-top: 24px;
  padding: 20px;
  background: var(--danger-soft);
}

.locked a {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
}

.auth-panel {
  max-width: 560px;
  margin: 60px auto;
  padding: 28px;
}

.auth-form {
  display: grid;
  gap: 12px;
}

.inline-form {
  margin: 12px 0 0;
}

.inline-action {
  margin: 0;
}

.inline-action button {
  height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 6px;
  background: var(--green);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.inline-form button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--green);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.account-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
  padding: 20px 0 44px;
}

.account-card,
.profile-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.account-card {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 22px;
}

.account-card h2 {
  margin: 0;
  color: var(--navy);
  font-size: 22px;
  word-break: break-all;
}

.account-card p {
  margin: 0;
  color: var(--muted);
}

.profile-panel {
  padding: 24px;
}

.profile-panel h2 {
  margin: 0 0 18px;
  color: var(--navy);
}

.profile-form {
  display: grid;
  gap: 14px;
}

.profile-form label {
  display: grid;
  gap: 6px;
  color: #33413c;
  font-weight: 700;
}

.profile-form .check-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-form .check-row input {
  width: auto;
}

.profile-form input,
.profile-form textarea,
.profile-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  font-weight: 400;
}

.profile-form textarea {
  min-height: 110px;
  resize: vertical;
}

.profile-form button {
  width: fit-content;
  min-width: 150px;
  height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 6px;
  background: var(--green);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.compact-form {
  display: grid;
  gap: 10px;
}

.compact-form select,
.compact-form button {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border-radius: 6px;
  font: inherit;
}

.compact-form select {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.compact-form button {
  border: 0;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.profile-readonly {
  display: grid;
  gap: 12px;
}

.profile-readonly p {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  margin: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.profile-readonly strong {
  color: var(--navy);
}

.profile-readonly span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.admin-form-panel {
  max-width: 860px;
  margin-bottom: 44px;
}

.admin-list {
  display: grid;
  gap: 12px;
}

.admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  gap: 18px;
  align-items: center;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.billing-row {
  grid-template-columns: 1fr;
}

.admin-row h2 {
  margin: 4px 0 8px;
  color: var(--navy);
  font-size: 18px;
}

.admin-row p {
  margin: 0;
  color: var(--muted);
}

.admin-row .small-note {
  margin-top: 8px;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.admin-actions {
  display: flex;
  justify-content: flex-end;
}

.admin-actions form {
  margin: 0;
}

.admin-actions button,
.narrow {
  width: auto;
  min-width: 96px;
}

.admin-actions button {
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  background: var(--green);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  color: var(--gold);
  background: #fff7e8;
  border: 1px solid #ead4aa;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.empty {
  padding: 28px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.notice {
  margin: 0;
  padding: 12px 14px;
  color: var(--green);
  background: #e7f2ee;
  border: 1px solid #c8dfd6;
  border-radius: 8px;
}

@media (max-width: 860px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 20px;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 28px;
  }

  .hero-copy {
    min-height: auto;
    padding: 28px;
  }

  .search-box,
  .section-head,
  .support-band {
    align-items: stretch;
    flex-direction: column;
  }

  .search-box {
    display: grid;
  }

  .feature-grid,
  .plan-grid,
  .account-layout,
  .admin-row {
    grid-template-columns: 1fr;
  }

  .profile-readonly p {
    grid-template-columns: 1fr;
  }

  .admin-actions {
    justify-content: flex-start;
  }
}
