:root {
  --bg: #f7faf8;
  --panel: rgba(255, 255, 255, 0.9);
  --panel-solid: #ffffff;
  --ink: #151d1a;
  --muted: #66736e;
  --line: rgba(21, 29, 26, 0.1);
  --yeelight: #18c37e;
  --yeelight-dark: #0b6f4c;
  --cyan: #55bdd3;
  --sun: #f2d47a;
  --coral: #ff7a6e;
  --violet: #7b61ff;
  --shadow: 0 26px 70px rgba(18, 44, 36, 0.12);
  --soft-shadow: 0 14px 38px rgba(18, 44, 36, 0.08);
  --radius: 18px;
  --max: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(120deg, rgba(242, 212, 122, 0.12), transparent 34rem),
    radial-gradient(circle at 84% 8%, rgba(24, 195, 126, 0.12), transparent 28rem),
    linear-gradient(180deg, #ffffff 0%, #f8fbf9 48%, #eef5f2 100%);
  color: var(--ink);
  font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: 15px;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.78), rgba(255,255,255,0) 34%),
    radial-gradient(circle at 22% 18%, rgba(24, 195, 126, 0.055), transparent 18rem);
}

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

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

button {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(21, 29, 26, 0.07);
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.82);
}

.nav-inner {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 214px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #fff 0 28%, transparent 29%),
    conic-gradient(from 220deg, var(--yeelight), #9edfc3, var(--sun), var(--yeelight));
  box-shadow: 0 0 20px rgba(24, 195, 126, 0.3);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  background: var(--yeelight);
  box-shadow: 0 0 18px rgba(24, 195, 126, 0.55);
}

.brand-text strong {
  display: block;
  font-size: 16px;
  line-height: 1.12;
  font-weight: 800;
}

.brand-text span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(21, 29, 26, 0.035);
  box-shadow: inset 0 0 0 1px rgba(21, 29, 26, 0.055);
  min-width: 0;
  max-width: min(690px, 56vw);
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links a {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  color: #35433f;
  font-size: 12.5px;
  white-space: nowrap;
}

.nav-links a.active,
.nav-links a:hover {
  background: #17211d;
  color: #fff;
}

.nav-action {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.small-button,
.copy-btn,
.ghost-btn {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  color: #fff;
  background: #17211d;
  padding: 11px 15px;
  box-shadow: var(--soft-shadow);
}

.ghost-btn {
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(21, 29, 26, 0.1);
}

.hero {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  min-height: 0;
  padding: clamp(56px, 8vh, 78px) 0 clamp(46px, 7vh, 66px);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(390px, 1.08fr);
  gap: clamp(34px, 4.6vw, 62px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--yeelight-dark);
  background: rgba(24, 195, 126, 0.1);
  box-shadow: inset 0 0 0 1px rgba(24, 195, 126, 0.2);
  font-weight: 700;
  font-size: 13px;
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--yeelight);
  box-shadow: 0 0 0 0 rgba(17, 199, 127, 0.55);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 14px rgba(17, 199, 127, 0); }
  100% { box-shadow: 0 0 0 0 rgba(17, 199, 127, 0); }
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.14;
}

.hero h1 {
  max-width: 520px;
  margin-top: 20px;
  font-size: clamp(29px, 2.9vw, 38px);
  font-weight: 800;
  letter-spacing: 0;
}

.hero h1 span {
  display: block;
  color: var(--yeelight-dark);
}

.hero-copy {
  margin: 22px 0 0;
  max-width: 600px;
  color: #40514c;
  font-size: 15px;
  line-height: 1.82;
}

.hero-signature {
  margin-top: 22px;
  color: #26342f;
  font-size: 15px;
  font-weight: 800;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 11px 17px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  background: var(--yeelight);
  color: #062015;
  box-shadow: 0 14px 34px rgba(24, 195, 126, 0.26);
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(21, 29, 26, 0.1);
}

.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(18, 44, 36, 0.12);
}

.hero-card {
  position: relative;
  min-height: 470px;
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.94), rgba(241,248,244,0.9)),
    #fff;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.92);
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 18% 24%, rgba(24, 195, 126, 0.18), transparent 15rem),
    radial-gradient(circle at 82% 26%, rgba(242, 212, 122, 0.24), transparent 18rem),
    linear-gradient(180deg, transparent 0 62%, rgba(15, 31, 25, 0.08));
  pointer-events: none;
}

.light-wall {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.light-beam {
  position: absolute;
  left: 12%;
  right: 12%;
  height: 34%;
  border-radius: 999px;
  filter: blur(20px);
  opacity: 0.72;
  transform: rotate(-12deg);
  animation: glowShift 8s ease-in-out infinite;
}

.beam-one {
  top: 24%;
  background: linear-gradient(90deg, rgba(24,195,126,0.02), rgba(24,195,126,0.42), rgba(255,255,255,0));
}

.beam-two {
  top: 43%;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(242,212,122,0.5), rgba(255,255,255,0));
  animation-delay: -2.2s;
}

.beam-three {
  top: 62%;
  background: linear-gradient(90deg, rgba(85,189,211,0.02), rgba(85,189,211,0.22), rgba(255,255,255,0));
  animation-delay: -4.4s;
}

@keyframes glowShift {
  50% { transform: translateY(-10px) rotate(-10deg); opacity: 0.9; }
}

.hero-card-top {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 30px 0;
  color: #32433e;
  font-size: 13px;
}

.hero-card-top strong {
  color: var(--ink);
}

.tool-switch {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 34px 30px 0;
  padding: 6px;
  border-radius: 24px;
  background: rgba(255,255,255,0.76);
  box-shadow: inset 0 0 0 1px rgba(21, 29, 26, 0.08);
}

.tool-switch button {
  min-width: 0;
  border: 0;
  border-radius: 18px;
  padding: 10px 8px;
  background: transparent;
  color: #43514c;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
}

.tool-switch button.active {
  background: #17211d;
  color: #fff;
}

.hero-tool-panels {
  position: relative;
  z-index: 1;
  margin: 58px 30px 0;
  max-width: 430px;
}

.hero-tool-panel {
  padding: 26px;
  border-radius: 24px;
  background: rgba(255,255,255,0.78);
  box-shadow: 0 20px 60px rgba(18, 44, 36, 0.12);
  border: 1px solid rgba(255,255,255,0.82);
}

.hero-tool-panel span {
  color: var(--yeelight-dark);
  font-size: 13px;
  font-weight: 800;
}

.hero-tool-panel h2 {
  margin-top: 12px;
  font-size: clamp(20px, 1.9vw, 24px);
}

.hero-tool-panel p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 14px;
}

.hub-line {
  position: absolute;
  z-index: 1;
  left: 30px;
  right: 30px;
  bottom: 26px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #3b4a45;
  font-size: 13px;
  font-weight: 700;
}

.hub-line i {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(24,195,126,0.45), rgba(21,29,26,0.08));
}

.section {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 52px 0;
}

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

.section-head h2 {
  margin-top: 12px;
  font-size: clamp(22px, 2.1vw, 28px);
  font-weight: 800;
}

.section-head p {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
  font-size: 15px;
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.path-card,
.glass-card,
.tutorial-card {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px);
}

.path-card {
  padding: 24px 22px;
  min-height: 318px;
  position: relative;
  overflow: hidden;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.path-card::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -68px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.11;
  filter: blur(2px);
}

.path-card:hover,
.path-card.is-focused {
  transform: translateY(-6px);
  box-shadow: 0 22px 54px rgba(18, 44, 36, 0.13);
  border-color: rgba(24, 195, 126, 0.22);
}

.path-number {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #082219;
  font-weight: 800;
}

.path-card h3 {
  margin-top: 20px;
  font-size: 18px;
  line-height: 1.22;
}

.path-card p {
  color: var(--muted);
  line-height: 1.72;
  font-size: 14px;
}

.tag-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 22px 0;
}

.tag {
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(16, 32, 28, 0.06);
  color: #33443f;
  font-size: 12px;
  font-weight: 700;
}

.path-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.path-actions .primary-btn {
  min-height: 40px;
  padding: 9px 14px;
  font-size: 13px;
}

.text-link {
  color: var(--yeelight-dark);
  font-size: 13px;
  font-weight: 800;
}

.lamp-line {
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), transparent);
  margin-top: 20px;
  transform-origin: left;
  transition: transform 0.24s ease;
}

.path-card:hover .lamp-line,
.path-card.is-focused .lamp-line {
  transform: scaleX(1.08);
}

.page-hero {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 52px 0 34px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 36px;
  align-items: center;
}

.page-hero h1 {
  margin-top: 18px;
  font-size: clamp(28px, 3.45vw, 42px);
  font-weight: 800;
}

.page-hero p {
  color: #40514c;
  font-size: 15px;
  line-height: 1.82;
}

.source-note {
  margin-top: 10px;
  font-size: 13px !important;
  color: var(--muted) !important;
}

.source-note a,
.glass-card a {
  color: var(--yeelight-dark);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.comic-frame {
  border-radius: 24px;
  background: #fff;
  padding: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
  max-height: 620px;
}

.comic-frame img {
  width: 100%;
  border-radius: 20px;
  cursor: zoom-in;
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.stat {
  padding: 15px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 0 0 1px rgba(21, 29, 26, 0.08);
}

.stat strong {
  display: block;
  font-size: 18px;
}

.stat span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.tutorial-layout {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 28px;
  padding: 28px 0 80px;
  min-width: 0;
}

.side-rail {
  position: sticky;
  top: 92px;
  align-self: start;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--soft-shadow);
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.side-rail h3 {
  font-size: 16px;
  margin-bottom: 14px;
}

.rail-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 14px;
  color: #41534e;
  font-size: 14px;
  min-width: 0;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.rail-link:hover,
.rail-link.active {
  background: rgba(17, 199, 127, 0.12);
  color: #083f2b;
}

.rail-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--yeelight);
}

.content-stack {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.glass-card {
  padding: clamp(22px, 3vw, 34px);
  min-width: 0;
}

.glass-card h2 {
  font-size: clamp(21px, 2.15vw, 29px);
  line-height: 1.22;
  margin-bottom: 16px;
}

.glass-card h3 {
  margin: 24px 0 10px;
  font-size: 18px;
}

.glass-card p,
.glass-card li {
  color: #41534e;
  line-height: 1.75;
  font-size: 14px;
}

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

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

.step {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(16, 32, 28, 0.08);
}

.step-num {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  background: var(--yeelight);
  display: grid;
  place-items: center;
  font-weight: 900;
}

.step strong {
  display: block;
  margin-bottom: 4px;
}

.code-card {
  margin: 14px 0;
  background: #10201c;
  color: #dff8ed;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(16, 32, 28, 0.18);
}

.code-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #b6d7ca;
  font-size: 13px;
}

.copy-btn {
  padding: 7px 10px;
  box-shadow: none;
  background: rgba(17, 199, 127, 0.18);
  color: #c7ffdf;
}

pre {
  margin: 0;
  padding: 18px;
  overflow: auto;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.visual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.comic-preview-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.visual-card {
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--soft-shadow);
  border: 1px solid rgba(21, 29, 26, 0.055);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.visual-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 48px rgba(18, 44, 36, 0.12);
}

.visual-card img {
  width: 100%;
  max-height: 640px;
  object-fit: contain;
  background: #f7faf8;
  cursor: zoom-in;
}

.visual-card figcaption {
  padding: 11px 13px;
  color: var(--muted);
  font-size: 13px;
}

.comic-preview-grid .visual-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top;
}

.feishu-image.portrait img {
  max-height: 760px;
  object-position: top;
}

.doc-callout {
  margin: 16px 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(24, 195, 126, 0.08);
  border: 1px solid rgba(24, 195, 126, 0.16);
}

.doc-callout p:first-child {
  margin-top: 0;
}

.doc-callout p:last-child {
  margin-bottom: 0;
}

.table-wrap {
  margin: 16px 0;
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid rgba(21, 29, 26, 0.08);
  background: rgba(255, 255, 255, 0.76);
}

.feishu-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 14px;
}

.feishu-table th,
.feishu-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(21, 29, 26, 0.07);
  text-align: left;
  vertical-align: top;
  line-height: 1.65;
}

.feishu-table th {
  color: #26342f;
  background: rgba(24, 195, 126, 0.08);
  font-weight: 800;
}

.feishu-table tr:last-child td {
  border-bottom: 0;
}

.attachment-list {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.attachment-card {
  padding: 13px 15px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(21, 29, 26, 0.08);
}

.attachment-card strong,
.attachment-card span {
  display: block;
}

.attachment-card span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.toggle {
  display: inline-grid;
  grid-template-columns: repeat(2, 1fr);
  border-radius: 999px;
  background: rgba(16, 32, 28, 0.07);
  padding: 5px;
  margin: 10px 0 18px;
}

.toggle button {
  border: 0;
  border-radius: 999px;
  padding: 10px 15px;
  background: transparent;
  cursor: pointer;
  color: #41534e;
}

.toggle button.active {
  background: #10201c;
  color: #fff;
}

.callout {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 213, 106, 0.18);
  border: 1px solid rgba(255, 213, 106, 0.44);
  color: #5b4610;
  line-height: 1.7;
}

.generator {
  display: grid;
  gap: 14px;
}

.advanced-generator {
  margin-top: 16px;
}

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

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

.full-field {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 8px;
  color: #33443f;
  font-weight: 800;
  font-size: 14px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(16, 32, 28, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  padding: 12px 13px;
  font: inherit;
}

textarea {
  min-height: 112px;
  resize: vertical;
}

.advanced-generator textarea {
  min-height: 92px;
}

.generator-hint {
  margin-top: -4px;
  color: #8b5e09 !important;
  font-size: 13px !important;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4, 12, 10, 0.84);
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-height: 92vh;
  max-width: 94vw;
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.lightbox button {
  position: fixed;
  right: 24px;
  top: 24px;
  border: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  font-size: 24px;
}

.footer {
  padding: 36px 0 54px;
  color: var(--muted);
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 920px) {
  .nav-inner {
    height: auto;
    padding: 12px 0;
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    max-width: none;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .hero,
  .page-hero,
  .tutorial-layout {
    grid-template-columns: 1fr;
  }

  .hero-card {
    min-height: 460px;
  }

  .path-grid,
  .split,
  .visual-grid,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .side-rail {
    position: static;
  }

  .section-head {
    display: block;
  }

  .hero-tool-panels {
    margin-top: 60px;
  }

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

@media (max-width: 560px) {
  .brand {
    min-width: 0;
  }

  .brand-text span {
    display: none;
  }

  .nav-inner {
    width: min(var(--max), calc(100% - 24px));
  }

  .nav-action {
    display: none;
  }

  .nav-links {
    flex-wrap: wrap;
    overflow-x: visible;
    border-radius: 20px;
  }

  .nav-links a {
    flex: 1 0 calc(33.333% - 4px);
    text-align: center;
    padding: 8px 6px;
    font-size: 12px;
  }

  .hero,
  .page-hero,
  .section,
  .tutorial-layout {
    width: min(100% - 24px, var(--max));
  }

  .hero {
    padding-top: 46px;
    min-height: auto;
  }

  .hero h1 {
    font-size: 28px;
  }

  .page-hero h1 {
    font-size: 28px;
  }

  .hero-copy,
  .page-hero p {
    font-size: 14px;
  }

  .hero-card {
    min-height: 500px;
    border-radius: 24px;
  }

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

  .hero-card-top,
  .tool-switch,
  .hero-tool-panels,
  .hub-line {
    left: auto;
    right: auto;
    margin-left: 18px;
    margin-right: 18px;
  }

  .hero-card-top {
    padding: 22px 18px 0;
    display: grid;
  }

  .hero-tool-panels {
    margin-top: 44px;
  }

  .hero-tool-panel {
    padding: 20px;
  }

  .hub-line {
    flex-wrap: wrap;
    bottom: 18px;
  }

  .quick-stats {
    grid-template-columns: 1fr;
  }

  .feishu-table {
    min-width: 0;
    table-layout: fixed;
    font-size: 13px;
  }

  .feishu-table th,
  .feishu-table td {
    padding: 10px 11px;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}
