:root {
  --bg: #f6f0e8;
  --surface: rgba(255, 250, 245, 0.82);
  --line: rgba(68, 45, 23, 0.12);
  --text: #2f241b;
  --muted: #746657;
  --accent: #b85c38;
  --accent-dark: #8e3f21;
  --forest: #365c4f;
  --shadow: 0 24px 60px rgba(71, 45, 20, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Outfit", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(184, 92, 56, 0.2), transparent 30%),
    radial-gradient(circle at top right, rgba(54, 92, 79, 0.16), transparent 24%),
    linear-gradient(180deg, #f8f2ea 0%, #f3ede3 52%, #efe6da 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 95%);
}

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

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

.site-header,
.shell {
  width: min(1120px, calc(100vw - 32px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0 8px;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff8f0;
  background: linear-gradient(135deg, var(--accent) 0%, var(--forest) 100%);
  box-shadow: var(--shadow);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: all 0.2s ease;
}

.site-nav a.active,
.site-nav a:hover {
  color: var(--text);
  background: rgba(255, 250, 245, 0.8);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 380px);
  gap: 28px;
  align-items: center;
  padding: 44px 0 32px;
}

.hero-copy,
.panel,
.profile-card,
.teaching-card,
.tech-strip {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-copy,
.panel,
.profile-card,
.teaching-card {
  border-radius: 28px;
}

.hero-copy {
  padding: 42px;
}

.eyebrow,
.panel-label {
  margin: 0 0 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-dark);
  font-size: 12px;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Noto Serif SC", serif;
  line-height: 1.15;
}

h1 {
  font-size: clamp(40px, 7vw, 76px);
  max-width: 10ch;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--forest);
  margin: 16px 0 18px;
}

.hero-description,
.intro-copy,
.teaching-copy p,
.timeline-card p,
.bullet-list li,
.source-list span,
.microcopy,
.profile-body p,
.contact-list strong,
.contact-list span {
  color: var(--muted);
  line-height: 1.7;
}

.hero-actions,
.cta-links,
.chat-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.button,
.chip {
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
}

.button:hover,
.chip:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: #fffaf4;
  background: linear-gradient(135deg, var(--accent) 0%, #cf7b4e 100%);
  box-shadow: 0 16px 26px rgba(184, 92, 56, 0.28);
}

.button.secondary,
.button.ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line);
}

.profile-card {
  overflow: hidden;
}

.profile-photo {
  aspect-ratio: 4 / 4.2;
  overflow: hidden;
}

.profile-photo img,
.teaching-image img {
  height: 100%;
  object-fit: cover;
}

.profile-body {
  padding: 24px;
}

.profile-label {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--accent-dark);
}

.contact-list,
.bullet-list,
.source-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.contact-list li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.info-grid,
.assistant-grid,
.assistant-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.panel {
  padding: 28px;
}

.tag-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.tag {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(184, 92, 56, 0.1);
  color: var(--accent-dark);
}

.bullet-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.bullet-list li {
  position: relative;
  padding-left: 20px;
}

.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--forest);
}

.timeline-section,
.page-intro,
.assistant-layout {
  padding: 24px 0 48px;
}

.section-heading {
  margin-bottom: 22px;
}

.section-heading.compact {
  margin-bottom: 28px;
}

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

.timeline-card {
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 250, 245, 0.78);
  border: 1px solid var(--line);
}

.timeline-index {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff6ef;
  background: linear-gradient(135deg, var(--forest) 0%, var(--accent) 100%);
  margin-bottom: 14px;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px;
  margin-bottom: 48px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(54, 92, 79, 0.9), rgba(184, 92, 56, 0.88));
  color: #fff8f2;
  box-shadow: var(--shadow);
}

.cta-band .eyebrow,
.cta-band h2 {
  color: inherit;
}

.cards-grid {
  display: grid;
  gap: 24px;
}

.teaching-card {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  overflow: hidden;
}

.teaching-body {
  padding: 28px;
}

.teaching-copy {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.teaching-copy section {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.assistant-hero {
  max-width: 780px;
  margin-bottom: 24px;
}

.assistant-notes {
  margin-bottom: 22px;
}

.flow-list {
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}

.flow-list li + li {
  margin-top: 8px;
}

.info-copy {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.prompt-chips {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.chip {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line);
  color: var(--text);
}

textarea {
  width: 100%;
  resize: vertical;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
  color: var(--text);
  font: inherit;
  min-height: 160px;
  margin: 8px 0 18px;
}

textarea:focus {
  outline: 2px solid rgba(184, 92, 56, 0.24);
  border-color: rgba(184, 92, 56, 0.35);
}

.answer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.status-pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(54, 92, 79, 0.12);
  color: var(--forest);
  font-size: 13px;
}

.answer-box {
  margin: 18px 0 22px;
  white-space: pre-wrap;
  word-break: break-word;
  font: inherit;
  padding: 18px;
  min-height: 260px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
  line-height: 1.8;
}

.sources {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

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

.source-list li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
}

.tech-strip {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  padding: 18px;
  margin-top: 24px;
  border-radius: 28px;
}

.tech-pill {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(184, 92, 56, 0.08);
  color: var(--accent-dark);
  border: 1px solid var(--line);
}

.loading-card {
  text-align: center;
}

@media (max-width: 900px) {
  .hero,
  .info-grid,
  .assistant-notes,
  .timeline,
  .assistant-grid,
  .teaching-card,
  .cta-band {
    grid-template-columns: 1fr;
  }

  .site-header,
  .cta-band {
    align-items: flex-start;
  }

  .hero-copy,
  .panel,
  .teaching-body {
    padding: 22px;
  }

  h1 {
    max-width: none;
  }

  .contact-list li,
  .source-list li {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .site-header,
  .shell {
    width: min(100vw - 20px, 1120px);
  }

  .site-header {
    padding-top: 18px;
    position: static;
  }

  .button,
  .chip {
    width: 100%;
  }
}
