﻿:root {
  --ink: #172033;
  --muted: #657084;
  --paper: #fffdf8;
  --line: #dce2ea;
  --mint: #dff7df;
  --mint-ink: #176238;
  --apricot: #ffe4bc;
  --apricot-ink: #83500b;
  --sky: #e4f0ff;
  --sky-ink: #1f5797;
  --lilac: #eee7ff;
  --lilac-ink: #5940a0;
  --rose: #ffe7e7;
  --rose-ink: #9b3434;
  --blue: #2556d8;
  --green: #2f8f54;
  --shadow: 0 18px 50px rgba(23, 32, 51, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(37, 86, 216, 0.03) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(180deg, #ffffff 0%, var(--paper) 42%, #ffffff 100%);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}

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

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p,
li,
span,
b,
a,
figcaption {
  overflow-wrap: anywhere;
}

.page-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-width: 0;
}

.side-rail {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 42px 28px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(12px);
  min-width: 0;
}

.rail-brand {
  display: inline-flex;
  width: 72px;
  height: 72px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--blue);
  font: 800 18px/1 "Segoe UI", Arial, sans-serif;
  letter-spacing: 0.04em;
  background: #fff;
  box-shadow: var(--shadow);
}

.rail-nav {
  display: grid;
  gap: 8px;
  margin-top: 36px;
}

.rail-nav a {
  padding: 8px 10px;
  color: var(--muted);
  border-radius: 8px;
  font-size: 14px;
}

.rail-nav a:hover,
.rail-nav a:focus-visible {
  color: var(--ink);
  background: var(--sky);
  outline: none;
}

.rail-note {
  margin: auto 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
  letter-spacing: 0;
  white-space: normal;
}

.content {
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: 34px 42px 80px;
  min-width: 0;
}

.hero-board,
.intro-section,
.section-block,
.profile-grid,
.tag-stack,
.link-cards,
.trait-grid,
  .project-grid,
  .tool-showcase,
  .prompt-lab,
  .daily-note {
  min-width: 0;
}

.hero-board {
  position: relative;
  min-height: 150px;
  margin: 0 0 48px;
  overflow: hidden;
  border: 1px solid #f0d9ad;
  border-radius: 8px;
  background:
    radial-gradient(circle at 16% 34%, rgba(255, 228, 188, 0.95) 0 80px, transparent 82px),
    radial-gradient(circle at 72% 16%, rgba(223, 247, 223, 0.9) 0 110px, transparent 112px),
    linear-gradient(135deg, #fff3d4 0%, #e9f5ff 52%, #f8eaff 100%);
}

.board-line {
  position: absolute;
  left: 48px;
  right: 48px;
  top: 54px;
  display: grid;
  grid-template-columns: max-content 1fr max-content 1fr max-content 1fr max-content;
  align-items: center;
  gap: 14px;
}

.board-line span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 14px;
  border: 1px solid rgba(23, 32, 51, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 700;
}

.board-line i {
  height: 2px;
  background: repeating-linear-gradient(90deg, rgba(23, 32, 51, 0.22), rgba(23, 32, 51, 0.22) 8px, transparent 8px, transparent 14px);
}

.board-tag {
  position: absolute;
  right: 28px;
  bottom: 22px;
  color: var(--green);
  font-weight: 800;
}

.intro-section,
.section-block {
  margin-bottom: 62px;
}

.kicker,
.section-title p {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(34px, 6vw, 60px);
  line-height: 1.05;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.hello {
  padding: 18px 22px;
  border: 1px solid #a9dda9;
  border-radius: 8px;
  color: #225c33;
  background: var(--mint);
  font-size: 17px;
}

.profile-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  margin-top: 26px;
  align-items: stretch;
}

.avatar-card {
  display: grid;
  place-items: center;
  min-height: 280px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(37, 86, 216, 0.08), transparent),
    #fff;
  box-shadow: var(--shadow);
  text-align: center;
}

.avatar-mark {
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #172033, #2556d8 58%, #2f8f54);
  font-size: 38px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.avatar-name {
  margin: 18px 0 4px;
  font-size: 22px;
  font-weight: 900;
}

.avatar-sub {
  max-width: 210px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.tag-stack {
  display: grid;
  gap: 12px;
}

.tag {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  align-items: start;
  padding: 16px 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  min-width: 0;
}

.tag b {
  font-size: 18px;
}

.tag span {
  color: rgba(23, 32, 51, 0.82);
  min-width: 0;
}

.tag-orange {
  background: var(--apricot);
  border-color: #efc785;
}

.tag-orange b {
  color: var(--apricot-ink);
}

.tag-rose {
  background: var(--rose);
  border-color: #f1c6c6;
}

.tag-rose b {
  color: var(--rose-ink);
}

.tag-blue {
  background: var(--sky);
  border-color: #b8d2f5;
}

.tag-blue b {
  color: var(--sky-ink);
}

.tag-purple {
  background: var(--lilac);
  border-color: #d2c2fb;
}

.tag-purple b {
  color: var(--lilac-ink);
}

.link-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 26px;
}

.link-cards a {
  min-height: 92px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

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

.link-cards strong {
  display: block;
  margin-top: 8px;
  color: var(--blue);
}

.section-title {
  max-width: 760px;
  margin-bottom: 22px;
}

.section-title h2 {
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.22;
}

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

.trait-card {
  min-height: 246px;
  padding: 24px;
  border-radius: 8px;
  border: 1px solid transparent;
}

.trait-card h3 {
  margin-bottom: 12px;
  font-size: 21px;
}

.trait-card ul {
  margin: 0;
  padding-left: 20px;
  color: #344056;
}

.trait-card li + li {
  margin-top: 10px;
}

.violet {
  background: var(--lilac);
  border-color: #d6c8ff;
}

.green {
  background: #e8f7e9;
  border-color: #b9e3bf;
}

.coral {
  background: var(--rose);
  border-color: #f2c6c4;
}

.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 34px;
  align-items: start;
}

.story-box,
.daily-note {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.story-box p:last-child,
.daily-note p:last-child {
  margin-bottom: 0;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.project-card {
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr);
  min-height: 180px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.project-card img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
}

.project-card div {
  padding: 18px;
}

.project-card span {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.project-card h3 {
  margin: 6px 0 8px;
  font-size: 19px;
  line-height: 1.25;
}

.project-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.tool-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.tool-showcase figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.tool-showcase img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: left top;
  border-bottom: 1px solid var(--line);
}

.tool-showcase figcaption {
  padding: 14px 16px;
  color: var(--muted);
  font-size: 14px;
}

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

.prompt-card {
  position: relative;
  display: grid;
  gap: 14px;
  min-height: 300px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.prompt-card::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  opacity: 0.16;
  background:
    linear-gradient(90deg, rgba(23, 32, 51, 0.34) 1px, transparent 1px) 0 0 / 12px 12px,
    linear-gradient(180deg, rgba(23, 32, 51, 0.34) 1px, transparent 1px) 0 0 / 12px 12px;
}

.prompt-card header {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.prompt-index {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--ink);
  font-weight: 900;
  letter-spacing: 0;
}

.prompt-label {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.prompt-card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.prompt-purpose,
.prompt-proof {
  position: relative;
  z-index: 1;
  margin: 0;
}

.prompt-purpose {
  color: #273247;
  font-size: 15px;
}

.prompt-meta {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  margin: 0;
}

.prompt-meta div {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.prompt-meta dt {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.prompt-meta dd {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.prompt-proof {
  align-self: end;
  padding-top: 12px;
  border-top: 1px dashed rgba(23, 32, 51, 0.18);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.blue-card {
  border-color: #bdd0ff;
  background: linear-gradient(135deg, #ffffff 0%, var(--sky) 100%);
}

.blue-card .prompt-index {
  background: #2556d8;
}

.green-card {
  border-color: #b9e3bf;
  background: linear-gradient(135deg, #ffffff 0%, #e8f7e9 100%);
}

.green-card .prompt-index {
  background: #2f8f54;
}

.coral-card {
  border-color: #f2c6c4;
  background: linear-gradient(135deg, #ffffff 0%, var(--rose) 100%);
}

.coral-card .prompt-index {
  background: #9b3434;
}

.violet-card {
  border-color: #d6c8ff;
  background: linear-gradient(135deg, #ffffff 0%, var(--lilac) 100%);
}

.violet-card .prompt-index {
  background: #5940a0;
}

.prompt-footer {
  display: grid;
  grid-template-columns: 1fr max-content;
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #b8d2f5;
  border-radius: 8px;
  background: #f7fbff;
}

.prompt-footer p {
  margin: 0;
  color: #344056;
}

.evidence-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--blue);
  border-radius: 8px;
  color: var(--blue);
  background: #fff;
  font-weight: 900;
}

.evidence-link:hover,
.evidence-link:focus-visible {
  color: #fff;
  background: var(--blue);
  outline: none;
}

.full-prompt-library {
  display: grid;
  gap: 14px;
  margin-top: 26px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(37, 86, 216, 0.06), rgba(47, 143, 84, 0.05)),
    #fff;
  box-shadow: var(--shadow);
}

.library-title {
  margin-bottom: 4px;
}

.library-title p {
  margin: 0 0 6px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.library-title h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
}

.full-prompt-panel {
  overflow: hidden;
  border: 1px solid #dce2ea;
  border-radius: 8px;
  background: #fff;
}

.full-prompt-panel summary {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) max-content;
  gap: 14px;
  align-items: center;
  min-height: 92px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
}

.full-prompt-panel summary::-webkit-details-marker {
  display: none;
}

.full-prompt-panel summary::after {
  content: "展开";
  justify-self: start;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--blue);
  background: var(--sky);
  font-size: 13px;
  font-weight: 900;
}

.full-prompt-panel[open] summary::after {
  content: "收起";
}

.full-prompt-panel summary span {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.full-prompt-panel summary strong {
  display: block;
  font-size: 21px;
  line-height: 1.2;
}

.full-prompt-panel summary em {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
}

.prompt-text {
  max-height: 560px;
  margin: 0;
  padding: 22px;
  overflow: auto;
  border-top: 1px solid var(--line);
  color: #1f2937;
  background: #fbfcff;
  font: 14px/1.85 "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  white-space: pre-wrap;
  word-break: break-word;
}

.daily {
  margin-bottom: 0;
}

.daily-note {
  display: grid;
  grid-template-columns: 1fr max-content;
  gap: 24px;
  align-items: center;
  background: linear-gradient(135deg, #ffffff, #eaf8ef);
}

.main-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
  font-weight: 800;
}

.main-link:hover,
.main-link:focus-visible {
  background: #183d9e;
  outline: none;
}

@media (max-width: 980px) {
  .page-shell {
    grid-template-columns: 1fr;
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .side-rail {
    position: static;
    height: auto;
    padding: 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .rail-brand {
    width: 54px;
    height: 54px;
    font-size: 15px;
  }

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

  .rail-nav a {
    max-width: 100%;
    padding: 8px 6px;
    text-align: center;
    font-size: 13px;
  }

  .rail-note {
    position: static;
    margin: 18px 0 0;
    line-height: 1.9;
    max-width: 160px;
  }

  .content {
    width: 330px;
    max-width: calc(100vw - 36px);
    margin: 0 18px;
    padding: 24px 0 54px;
  }

  .board-line {
    left: 18px;
    right: 18px;
    top: 36px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .board-line i {
    display: none;
  }

  .board-line span {
    justify-content: center;
    min-width: 0;
  }

  .profile-grid,
  .split,
  .tool-showcase,
  .prompt-footer,
  .daily-note {
    grid-template-columns: 1fr;
  }

  .link-cards,
  .trait-grid,
  .project-grid,
  .prompt-lab {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .rail-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rail-nav a {
    text-align: left;
  }

  .hero-board {
    min-height: 280px;
  }

  .content {
    width: 330px;
    max-width: calc(100vw - 36px);
    margin: 0 18px;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden;
  }

  h1,
  h2,
  h3,
  p,
  li,
  span,
  b,
  a,
  figcaption {
    word-break: break-word;
  }

  .hello,
  .tag,
  .story-box,
  .trait-card,
  .project-card,
  .prompt-card,
  .prompt-footer,
  .daily-note {
    max-width: 100%;
  }

  .full-prompt-library {
    padding: 16px;
  }

  .full-prompt-panel summary {
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 14px;
  }

  .full-prompt-panel summary::after {
    grid-column: 2;
    justify-self: start;
  }

  .full-prompt-panel summary span {
    width: 42px;
    height: 42px;
    font-size: 14px;
  }

  .full-prompt-panel summary strong {
    font-size: 18px;
  }

  .prompt-text {
    max-height: 460px;
    padding: 16px;
    font-size: 13px;
  }

  h1 {
    font-size: 30px;
    line-height: 1.12;
  }

  .hello {
    font-size: 15px;
    padding: 14px 16px;
  }

  .board-line {
    top: 24px;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .board-tag {
    left: 18px;
    right: 18px;
    bottom: 20px;
    text-align: center;
    font-size: 15px;
  }

  .profile-grid {
    gap: 18px;
  }

  .tag {
    grid-template-columns: 1fr;
  }

  .project-card {
    grid-template-columns: 1fr;
  }

  .project-card img {
    height: 180px;
  }

  .tool-showcase img {
    height: 220px;
  }

  .prompt-card {
    min-height: auto;
    padding: 18px;
  }

  .prompt-card header {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .prompt-index {
    width: 46px;
    height: 46px;
    font-size: 14px;
  }

  .prompt-card h3 {
    font-size: 20px;
  }

  .prompt-meta div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .evidence-link {
    width: 100%;
  }
}
