:root {
  --page: #f4f5f3;
  --panel: #fbfbf8;
  --card: #ffffff;
  --ink: #25322d;
  --muted: #7b817a;
  --soft: #eef3ec;
  --green: #456e5a;
  --green-light: #7aa891;
  --gold: #c5a86a;
  --line: #e6e8e2;
  --shadow: 0 18px 48px rgba(51, 61, 55, 0.08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 8%, rgba(122, 168, 145, 0.12), transparent 24%),
    linear-gradient(180deg, #f8f7f2 0%, var(--page) 44%, #f8f7f2 100%);
  font-family: "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  letter-spacing: 0;
}

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

.site-shell {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr) 320px;
  gap: 28px;
  width: min(1680px, calc(100% - 72px));
  margin: 0 auto;
  padding: 32px 0;
}

.left-rail,
.right-rail {
  position: sticky;
  top: 32px;
  align-self: start;
}

.left-rail {
  min-height: calc(100vh - 64px);
  padding: 30px 22px;
  border-radius: 28px;
  background: rgba(251, 251, 248, 0.78);
  box-shadow: var(--shadow);
}

.profile {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-profile {
  display: grid;
  justify-items: start;
  gap: 10px;
}

.profile img {
  width: 58px;
  height: 58px;
}

.logo-profile img {
  width: 100%;
  height: auto;
  max-height: 74px;
  border: 1px solid rgba(197, 168, 106, 0.2);
  border-radius: 18px;
  object-fit: contain;
  box-shadow: 0 14px 30px rgba(117, 83, 45, 0.08);
}

.profile span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.logo-profile span {
  padding-left: 4px;
  color: #9b8567;
  font-size: 12px;
  letter-spacing: 0.18em;
}

.search-box {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin: 34px 0 28px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  background: #f4f5f2;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
}

kbd {
  color: #a5aaa2;
  font-size: 12px;
  font-family: inherit;
}

.side-nav {
  display: grid;
  gap: 8px;
}

.side-nav a {
  padding: 12px 13px;
  border-radius: 12px;
  color: #687067;
  font-size: 15px;
  transition: 0.2s ease;
}

.side-nav a:hover,
.side-nav a.active {
  color: var(--green);
  background: var(--soft);
}

.owner-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 42vh;
  padding: 16px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.66);
}

.avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
}

.owner-card strong {
  display: block;
  font-size: 15px;
}

.owner-card span:last-child {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.content-main {
  padding: 26px 0 60px;
}

.masthead {
  padding: 28px 6px 50px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.masthead h1 {
  margin-bottom: 20px;
  font-size: clamp(48px, 6vw, 78px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.lead {
  margin-bottom: 18px;
  color: #17241f;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.35;
  font-weight: 850;
}

.intro {
  max-width: 760px;
  color: #687067;
  font-size: 16px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 15px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(51, 61, 55, 0.08);
}

.button.primary {
  color: #fff;
  border-color: var(--green);
  background: var(--green);
}

.button.secondary {
  color: var(--green);
  border-color: rgba(69, 110, 90, 0.18);
  background: #edf4ee;
}

.button.ghost {
  color: #806b45;
  border-color: rgba(197, 168, 106, 0.26);
  background: #fbf5e7;
}

.topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 780px;
}

.topic-tags span {
  padding: 8px 12px;
  border: 1px solid rgba(197, 168, 106, 0.22);
  border-radius: 999px;
  color: #6d735f;
  background: rgba(255, 255, 255, 0.56);
  font-size: 13px;
}

.section-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 6px 18px;
}

.section-bar h2,
.rooms-section h2 {
  font-size: 27px;
  line-height: 1.25;
  font-weight: 850;
}

.section-bar a {
  color: var(--muted);
  font-size: 14px;
}

.featured-section,
.rooms-section,
.updates-section {
  margin-bottom: 62px;
}

.feature-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36%;
  min-height: 156px;
  overflow: hidden;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 12px 34px rgba(51, 61, 55, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(51, 61, 55, 0.11);
}

.feature-copy {
  padding: 30px 32px;
}

.feature-copy span,
.update-list span {
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.feature-copy h3 {
  margin: 12px 0 12px;
  font-size: 25px;
  line-height: 1.38;
}

.feature-copy p,
.update-list p,
.widget p {
  color: var(--muted);
  line-height: 1.8;
}

.meta {
  margin-top: 18px;
  color: #8c9289;
  font-size: 13px;
}

.feature-visual {
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.92);
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.finance-feature .feature-visual {
  background: linear-gradient(135deg, #5d826b, #dec98e);
}

.ai-feature .feature-visual {
  background: linear-gradient(135deg, #91aac4, #b6dedf);
}

.community-feature .feature-visual {
  background: linear-gradient(135deg, #d2be7e, #8dbca8);
}

.writing-feature .feature-visual {
  background: linear-gradient(135deg, #a7b7d9, #d8c08d);
}

.rooms-section {
  padding-top: 6px;
}

.room-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.seven-grid .room-card:first-child,
.seven-grid .room-card:nth-child(2) {
  min-height: 204px;
}

.room-card {
  min-height: 178px;
  padding: 26px 24px;
  border: 1px solid rgba(230, 232, 226, 0.95);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(51, 61, 55, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.room-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(51, 61, 55, 0.1);
}

.room-card span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.room-card h3 {
  margin: 18px 0 10px;
  font-size: 20px;
}

.room-card p {
  color: var(--muted);
  line-height: 1.75;
}

.mint { background: linear-gradient(145deg, #f8fbf6, #eaf4ec); }
.blue { background: linear-gradient(145deg, #fbfbf8, #e8f1f5); }
.orange { background: linear-gradient(145deg, #fffaf2, #f6ead8); }
.warm { background: linear-gradient(145deg, #fffdf8, #f2eee2); }
.khaki { background: linear-gradient(145deg, #fbfaf3, #ede6d0); }
.green { background: linear-gradient(145deg, #f6faf5, #e7f2ec); }
.lavender { background: linear-gradient(145deg, #fbf8ff, #eeeaf6); }

.update-list {
  display: grid;
  gap: 16px;
}

.update-list article {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.compact-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tool-section,
.path-section {
  margin-bottom: 62px;
}

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

.tool-grid article,
.path-grid article {
  min-height: 142px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 28px rgba(51, 61, 55, 0.05);
}

.tool-grid strong,
.path-grid span {
  display: block;
  margin-bottom: 10px;
  color: var(--green);
  font-size: 17px;
  font-weight: 900;
}

.tool-grid span {
  display: block;
  min-height: 44px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.tool-grid a {
  display: inline-flex;
  margin-top: 14px;
  color: #8b744f;
  font-size: 13px;
  font-weight: 800;
}

.path-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.path-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.site-intro-widget strong {
  color: var(--green);
}

.page-hero {
  margin-bottom: 34px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(251, 251, 248, 0.78);
  box-shadow: 0 14px 36px rgba(51, 61, 55, 0.06);
}

.page-hero h1 {
  margin-bottom: 14px;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.12;
}

.page-hero p {
  max-width: 820px;
  color: var(--muted);
  line-height: 1.85;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.category-tabs,
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 26px;
}

.category-tabs a,
.filter-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #667067;
  background: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  cursor: pointer;
}

.category-tabs a.active,
.filter-chip.active {
  color: #fff;
  border-color: var(--green);
  background: var(--green);
}

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

.collection-card {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 12px 28px rgba(51, 61, 55, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.collection-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(51, 61, 55, 0.1);
}

.collection-card h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.collection-card p {
  color: var(--muted);
  line-height: 1.75;
}

.card-meta,
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.card-meta span,
.card-tags span {
  padding: 6px 9px;
  border-radius: 999px;
  color: #728075;
  background: #eef3ec;
  font-size: 12px;
}

.card-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.text-button {
  border: 0;
  color: var(--green);
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.route-section {
  margin-bottom: 58px;
}

.section-note {
  margin-top: -8px;
  margin-bottom: 22px;
  color: var(--muted);
  line-height: 1.75;
}

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

.timeline-item {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.timeline-item strong {
  color: var(--green);
}

.timeline-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(37, 50, 45, 0.36);
}

.modal-backdrop.open {
  display: flex;
}

.modal-panel {
  width: min(760px, 100%);
  max-height: min(86vh, 760px);
  overflow: auto;
  padding: 28px;
  border-radius: 22px;
  background: #fbfbf8;
  box-shadow: 0 30px 70px rgba(37, 50, 45, 0.22);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.modal-head h2 {
  margin-bottom: 8px;
  font-size: 28px;
}

.modal-close {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.modal-body {
  color: var(--muted);
  line-height: 1.85;
}

.modal-body h3 {
  margin: 18px 0 8px;
  color: var(--ink);
}

.modal-body ul {
  padding-left: 20px;
}

.empty-state {
  padding: 36px;
  border: 1px dashed #d7dacc;
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
}

.loading-state {
  padding: 18px;
  border-radius: 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.58);
}

.right-rail {
  display: grid;
  gap: 16px;
}

.widget {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(251, 251, 248, 0.84);
  box-shadow: 0 12px 30px rgba(51, 61, 55, 0.06);
}

.widget h2 {
  margin-bottom: 16px;
  font-size: 18px;
}

.widget small {
  color: #9ba199;
}

.widget-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 14px 0;
  border-radius: 12px;
  background: #f0f2ed;
}

.stats-grid div {
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
}

.stats-grid strong {
  font-size: 16px;
}

.stats-grid span {
  color: var(--muted);
  font-size: 12px;
}

.community-widget {
  display: grid;
  gap: 10px;
}

.community-widget h2 {
  margin-bottom: 4px;
}

.community-widget a {
  padding: 12px 14px;
  border-radius: 10px;
  color: #687067;
  background: #f0f1ed;
}

.tech-widget dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.tech-widget div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.tech-widget dt {
  color: var(--muted);
}

.tech-widget dd {
  margin: 0;
}

.article-shell {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0;
}

.back-home {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--green);
  font-weight: 700;
}

.article-card {
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(251, 251, 248, 0.92);
  box-shadow: var(--shadow);
}

.article-card h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.2;
}

.article-content {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

.icp-widget a,
.article-icp a {
  color: var(--muted);
  font-size: 13px;
}

.article-icp {
  margin-top: 18px;
  text-align: center;
}

@media (max-width: 1180px) {
  .site-shell {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .right-rail {
    grid-column: 1 / -1;
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .path-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 840px) {
  .site-shell {
    display: block;
    width: min(100% - 28px, 720px);
    padding: 18px 0 34px;
  }

  .left-rail {
    position: static;
    min-height: auto;
    margin-bottom: 24px;
  }

  .owner-card {
    margin-top: 24px;
  }

  .masthead {
    padding-top: 12px;
  }

  .feature-card,
  .room-grid,
  .tool-grid,
  .path-grid,
  .collection-grid,
  .compact-list,
  .right-rail {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 24px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .feature-visual {
    min-height: 120px;
  }
}
