/* ============================================
   Light.W Theme
   Version: 1.3.0
   Primary Color: #050505
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --lw-primary: #050505;
  --lw-primary-hover: #303030;
  --lw-bg: #f7f7f5;
  --lw-card: #ffffff;
  --lw-foreground: #0a0a0a;
  --lw-muted: #777a7c;
  --lw-border: #e5e5e2;
  --lw-radius: 0.375rem;
}

/* ---------- Icons ---------- */
.lw-icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.125em;
  flex-shrink: 0;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--lw-foreground);
  background-color: var(--lw-bg);
  background-image: radial-gradient(circle, rgba(15, 15, 15, 0.085) 1px, transparent 1px);
  background-size: 20px 20px;
  background-position: 0 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(128, 128, 128, 0.3);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(128, 128, 128, 0.5);
}

/* ============================================
   Header
   ============================================ */
.lw-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.84);
  border-bottom: 1px solid var(--lw-border);
  backdrop-filter: blur(18px);
}

.lw-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
/* Logo */
.lw-logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--lw-primary);
  flex-shrink: 0;
}
.lw-logo span {
  font-weight: 300;
  color: var(--lw-foreground);
}

/* Search */
.lw-search {
  display: flex;
  align-items: center;
  margin: 0 2rem;
  flex: 1;
  max-width: 400px;
}
.lw-search-form {
  position: relative;
  width: 100%;
}
.lw-search-input {
  width: 100%;
  height: 36px;
  padding: 0 40px 0 16px;
  border-radius: 999px;
  border: 1px solid var(--lw-border);
  background: var(--lw-card);
  color: var(--lw-foreground);
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s ease;
}
.lw-search-input:focus {
  border-color: var(--lw-primary);
}
.lw-search-btn {
  position: absolute;
  right: 0;
  top: 0;
  height: 36px;
  width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--lw-primary);
  cursor: pointer;
  font-size: 1rem;
}
.lw-search-toggle {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--lw-muted);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.lw-search-toggle:hover,
.lw-search-toggle.is-active {
  background: rgba(0, 0, 0, 0.06);
  color: var(--lw-primary);
}
.lw-search-toggle .lw-icon {
  width: 18px;
  height: 18px;
}
.lw-search-popover {
  position: absolute;
  top: 56px;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--lw-border);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.lw-search-popover.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.lw-search-popover-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 10px 16px 12px;
}
.lw-search-panel {
  width: 100%;
}
.lw-search-panel-row {
  position: relative;
  width: 100%;
}
.lw-search-panel-input {
  width: 100%;
  height: 48px;
  padding: 0 56px 0 18px;
  border-radius: 8px;
  border: 1px solid var(--lw-border);
  background: #fff;
  color: var(--lw-foreground);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.lw-search-panel-input:focus {
  border-color: var(--lw-primary);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}
.lw-search-panel-submit {
  position: absolute;
  top: 0;
  right: 0;
  width: 50px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--lw-primary);
  cursor: pointer;
}
.lw-search-panel-submit .lw-icon {
  width: 18px;
  height: 18px;
}

/* Nav */
.lw-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
}
.lw-nav-group {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.lw-nav a {
  font-size: 0.875rem;
  color: var(--lw-muted);
  transition: color 0.2s ease;
}
.lw-nav a:hover,
.lw-nav a.active {
  color: var(--lw-primary);
}
.lw-nav a.active {
  font-weight: 500;
}
.lw-nav-group.has-children > .lw-nav-parent {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.lw-nav-group.has-children > .lw-nav-parent::after {
  content: "";
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  opacity: 0.78;
}
.lw-nav-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  z-index: 1001;
  min-width: 148px;
  padding: 8px;
  border: 1px solid var(--lw-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 42px rgba(20, 20, 20, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -6px);
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}
.lw-nav-dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -15px;
  height: 15px;
}
.lw-nav-group:hover .lw-nav-dropdown,
.lw-nav-group:focus-within .lw-nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  pointer-events: auto;
}
.lw-nav-dropdown a {
  min-height: 34px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 7px;
  color: #50585f;
  white-space: nowrap;
}
.lw-nav-dropdown a:hover,
.lw-nav-dropdown a.active {
  background: #f2f5f5;
  color: var(--lw-primary);
}
.lw-nav-user {
  color: var(--lw-muted);
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.2s ease;
  background: none;
  border: none;
}
.lw-nav-user:hover {
  color: var(--lw-foreground);
}

/* Mobile Toggle */
.lw-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--lw-foreground);
  font-size: 1.25rem;
  cursor: pointer;
}

/* Mobile Menu */
.lw-mobile-menu {
  display: none;
  border-top: 1px solid var(--lw-border);
  background: var(--lw-card);
  padding: 12px 16px 16px;
}
.lw-mobile-menu.active {
  display: block;
}
.lw-mobile-menu .lw-search-form {
  margin-bottom: 8px;
}
.lw-mobile-menu .lw-search-input {
  background: var(--lw-bg);
}
.lw-mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.lw-mobile-nav .lw-nav-group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.lw-mobile-nav a {
  padding: 8px 0;
  font-size: 0.875rem;
  color: var(--lw-muted);
}
.lw-mobile-nav a:hover {
  color: var(--lw-primary);
}
.lw-mobile-nav .lw-nav-parent {
  color: var(--lw-foreground);
  font-weight: 600;
}
.lw-mobile-nav .lw-nav-dropdown {
  position: static;
  min-width: 0;
  padding: 0 0 0 14px;
  border: 0;
  border-left: 1px solid var(--lw-border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}
.lw-mobile-nav .lw-nav-dropdown::before {
  display: none;
}
.lw-mobile-nav .lw-nav-dropdown a {
  min-height: 30px;
  padding: 5px 0;
  background: transparent;
}

@media (max-width: 767px) {
  .lw-header-inner {
    height: 54px;
    padding: 0 12px;
  }
  .lw-search,
  .lw-search-popover,
  .lw-nav {
    display: none;
  }
  .lw-mobile-toggle {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: -8px;
    border-radius: 8px;
  }
  .lw-mobile-toggle .lw-icon {
    width: 24px;
    height: 24px;
  }
  .lw-mobile-menu {
    max-height: calc(100vh - 54px);
    overflow: auto;
    padding: 12px 12px calc(16px + env(safe-area-inset-bottom));
  }
  .lw-mobile-nav a {
    min-height: 40px;
    display: flex;
    align-items: center;
  }
}

/* ============================================
   Main Content
   ============================================ */
.lw-main {
  flex: 1;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 16px 12px 8px;
}
@media (min-width: 768px) {
  .lw-main {
    padding: 16px 16px 8px;
  }
}

/* ============================================
   Home Hero
   ============================================ */
.lw-hero {
  width: 100%;
  min-height: min(520px, calc(100vh - 56px));
  margin: 0 0 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(360px, 34%, 470px);
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
  padding: clamp(34px, 5vw, 64px) clamp(18px, 2.6vw, 36px) clamp(30px, 4vw, 54px);
}
.lw-hero-copy {
  min-width: 0;
}
.lw-hero-kicker {
  margin-bottom: 28px;
  color: #777a7c;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: clamp(0.78rem, 1.05vw, 1.08rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lw-hero-title {
  color: #000;
  font-size: clamp(4.2rem, 7vw, 7.2rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0;
  white-space: nowrap;
}
.lw-hero-subtitle {
  max-width: 690px;
  margin-top: 22px;
  color: #1c1f22;
  font-size: clamp(1.8rem, 3.1vw, 3.2rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0;
  text-wrap: balance;
}
.lw-hero-platforms {
  margin-top: 30px;
  color: var(--lw-muted);
}
.lw-hero-platforms > span {
  display: block;
  margin-bottom: 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
}
.lw-hero-platforms strong {
  color: #5b5f62;
  font-weight: 700;
}
.lw-hero-platform-marquee {
  --logo-gap: clamp(28px, 3.6vw, 54px);
  --logo-size: clamp(28px, 2.3vw, 38px);
  width: min(100%, 650px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.lw-hero-platform-track {
  width: max-content;
  display: flex;
  animation: lw-platform-scroll 34s linear infinite;
  will-change: transform;
}
.lw-hero-platform-marquee:hover .lw-hero-platform-track {
  animation-play-state: paused;
}
.lw-hero-platform-set {
  display: flex;
  align-items: center;
  gap: var(--logo-gap);
  padding-right: var(--logo-gap);
}
.lw-platform-logo {
  position: relative;
  width: var(--logo-size);
  height: var(--logo-size);
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #111;
  opacity: 0.96;
  transform: translateZ(0);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.lw-platform-logo:hover {
  opacity: 1;
  transform: translateY(-2px);
}
.lw-platform-logo:focus-visible {
  outline: 2px solid rgba(17, 17, 17, 0.7);
  outline-offset: 6px;
  border-radius: 6px;
}
.lw-platform-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  color: currentColor;
}
.lw-platform-logo span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
@keyframes lw-platform-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .lw-hero-platform-track {
    animation-duration: 1ms;
    animation-iteration-count: 1;
  }
}
.lw-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}
.lw-hero-btn {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 24px;
  border: 1px solid var(--lw-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #2a2c2e;
  font-size: 0.94rem;
  font-weight: 700;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.lw-hero-btn:hover {
  transform: translateY(-2px);
  border-color: #cfcfcb;
}
.lw-hero-btn.primary {
  background: #030303;
  border-color: #030303;
  color: #fff;
}
.lw-hero-btn.primary:hover {
  background: #1f1f1f;
}
.lw-hero-btn .lw-icon {
  width: 22px;
  height: 22px;
}
.lw-hero-panel {
  position: relative;
  width: 100%;
  justify-self: end;
  align-self: center;
  overflow: visible;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.lw-hero-visual {
  position: relative;
  display: grid;
  place-items: center end;
  min-height: 350px;
  isolation: isolate;
}
.lw-hero-visual::before {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
}
.lw-hero-visual::before {
  width: min(78%, 360px);
  aspect-ratio: 1;
  right: 5%;
  top: 12%;
  border: 1px solid rgba(239, 29, 38, 0.18);
  border-radius: 50%;
  transform: rotate(-13deg);
  animation: lw-claw-ring 9s ease-in-out infinite;
}
.lw-hero-visual img {
  display: block;
  width: min(92%, 500px);
  height: auto;
  margin-left: auto;
  transform: translate(-2%, -3%);
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(20, 20, 20, 0.1));
  animation: lw-claw-float 6.5s ease-in-out infinite;
}
.lw-hero-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.lw-hero-stat-grid div {
  min-width: 0;
  padding: 12px 10px;
  border: 1px solid rgba(216, 216, 212, 0.82);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(10px);
}
.lw-hero-stat-grid strong {
  display: block;
  color: #050505;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: clamp(1.1rem, 1.7vw, 1.55rem);
  line-height: 1;
}
.lw-hero-stat-grid span {
  display: block;
  margin-top: 6px;
  color: #6b7278;
  font-size: 0.76rem;
  white-space: nowrap;
}
@keyframes lw-claw-float {
  0%, 100% {
    transform: translate(-2%, -3%);
  }
  50% {
    transform: translate(-3.5%, -5.5%);
  }
}
@keyframes lw-claw-ring {
  0%, 100% {
    transform: rotate(-13deg) scale(1);
    opacity: 0.52;
  }
  50% {
    transform: rotate(-9deg) scale(1.04);
    opacity: 0.72;
  }
}
@media (prefers-reduced-motion: reduce) {
  .lw-hero-visual,
  .lw-hero-visual::before,
  .lw-hero-visual img {
    animation: none;
  }
}

@media (max-width: 1280px) {
  .lw-hero {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    min-height: min(500px, calc(100vh - 56px));
  }
  .lw-hero-title {
    white-space: nowrap;
  }
  .lw-hero-panel {
    justify-self: end;
    max-width: none;
  }
  .lw-hero-visual {
    min-height: 300px;
  }
  .lw-hero-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  .lw-hero {
    gap: 32px;
    width: 100%;
    margin: 0 0 16px;
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 36px 4px 34px;
  }
  .lw-hero-title {
    font-size: clamp(3.7rem, 18vw, 5.6rem);
    line-height: 0.92;
    white-space: normal;
  }
  .lw-hero-subtitle {
    margin-top: 22px;
    font-size: clamp(1.65rem, 8.3vw, 2.7rem);
  }
  .lw-hero-platform-marquee {
    --logo-gap: 30px;
    --logo-size: 34px;
    width: 100%;
  }
  .lw-hero-platform-track {
    animation-duration: 26s;
  }
  .lw-hero-actions {
    gap: 10px;
  }
  .lw-hero-btn {
    min-height: 56px;
    padding: 0 22px;
    font-size: 0.92rem;
  }
  .lw-hero-panel {
    display: none;
  }
}

/* ============================================
   Role Explorer
   ============================================ */
.lw-role-panel {
  width: 100%;
  margin: 0 0 24px;
  padding: clamp(14px, 1.4vw, 22px);
  border: 1px solid rgba(224, 224, 221, 0.92);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 18px 48px rgba(20, 20, 20, 0.035);
  backdrop-filter: blur(14px);
}
.lw-role-explorer {
  width: 100%;
  margin: 0 0 22px;
  padding: 0;
}
.lw-role-panel .masonry-grid {
  margin-top: 0;
}
.lw-role-panel .lw-pagination {
  padding-bottom: 0;
}
.lw-role-step-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.lw-role-step-title span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid #ef1d26;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #ef1d26;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.lw-role-step-title h2 {
  color: #050505;
  font-size: clamp(1.22rem, 1.7vw, 1.65rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
}
.lw-role-search {
  position: relative;
  display: flex;
  align-items: center;
  height: 66px;
  margin-bottom: 16px;
  border: 1px solid #e1e1df;
  border-radius: 12px;
  background: rgba(245, 245, 244, 0.92);
  color: #6f7376;
}
.lw-role-search .lw-icon {
  position: absolute;
  left: 20px;
  width: 24px;
  height: 24px;
  color: #666a6d;
  pointer-events: none;
}
.lw-role-search input {
  width: 100%;
  height: 100%;
  padding: 0 24px 0 60px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #222528;
  font: inherit;
  font-size: 1.06rem;
}
.lw-role-search input::placeholder {
  color: #9a9da0;
}
.lw-role-search:focus-within {
  border-color: #c8c8c5;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.035);
}
.lw-role-tabs {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  padding: 1px 0 5px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.lw-role-tabs::-webkit-scrollbar {
  display: none;
}
.lw-role-tab {
  min-height: 48px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border: 1px solid #e2e2df;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #53575a;
  font-size: 0.96rem;
  line-height: 1;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.lw-role-tab:hover {
  transform: translateY(-1px);
  border-color: #cfcfcb;
  color: #0f1011;
  background: rgba(255, 255, 255, 0.96);
}
.lw-role-tab.active {
  border-color: #ef1d26;
  color: #030303;
  background: rgba(255, 255, 255, 0.94);
}
.lw-role-tab span {
  white-space: nowrap;
}
.lw-role-tab b {
  position: relative;
  color: #1b1d1f;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.94rem;
  font-weight: 700;
}
.lw-role-tab b::before {
  content: ".";
  margin-right: 12px;
  color: #343638;
}
.lw-skill-panel {
  width: 100%;
  margin: 0 0 24px;
  padding: clamp(14px, 1.4vw, 22px);
  border: 1px solid rgba(224, 224, 221, 0.92);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 18px 48px rgba(20, 20, 20, 0.035);
  backdrop-filter: blur(14px);
}
.lw-skill-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.lw-skill-grid .lw-empty {
  grid-column: 1 / -1;
  padding: 34px 0;
}
.lw-category-skill-grid {
  margin-top: 16px;
}
.lw-skill-card {
  min-height: 178px;
  display: flex;
  flex-direction: column;
  padding: 18px;
  border: 1px solid #cfcfca;
  border-radius: 8px;
  background: rgba(239, 239, 238, 0.78);
  color: #17202a;
  box-shadow: 0 8px 24px rgba(18, 18, 18, 0.045);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.lw-skill-card-link {
  min-width: 0;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}
.lw-skill-card:hover {
  transform: translateY(-2px);
  border-color: #b8b8b3;
  background: rgba(248, 248, 247, 0.94);
  box-shadow: 0 14px 34px rgba(18, 18, 18, 0.075);
}
.lw-skill-card-kicker {
  margin-bottom: 12px;
  color: #16202c;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
}
.lw-skill-card h3 {
  margin-bottom: 12px;
  color: #101820;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: 0;
}
.lw-skill-card-subtitle {
  display: block;
  margin: -4px 0 10px;
  color: #202a35;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.45;
}
.lw-skill-card p {
  display: -webkit-box;
  overflow: hidden;
  min-height: 3.9em;
  margin-bottom: 14px;
  color: #3f4954;
  font-size: 0.86rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.lw-skill-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  color: #51606e;
  font-size: 0.78rem;
}
.lw-skill-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.lw-skill-card-meta .lw-icon {
  width: 13px;
  height: 13px;
}
.lw-skill-add-btn {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 14px;
  padding: 0 12px;
  border: 1px solid #d8d8d4;
  border-radius: 999px;
  background: #111315;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.lw-skill-add-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  background: #2b2e31;
}
.lw-skill-add-btn:disabled {
  cursor: not-allowed;
  background: #f4f4f2;
  color: #8a8d90;
}
.lw-skill-add-btn.is-added {
  border-color: #ef1d26;
  background: rgba(239, 29, 38, 0.08);
  color: #ef1d26;
}
.lw-skill-add-btn.is-added:hover:not(:disabled) {
  background: rgba(239, 29, 38, 0.12);
  color: #ef1d26;
}
.lw-skill-add-btn .lw-icon {
  width: 14px;
  height: 14px;
}
.lw-agent-preview-panel {
  width: 100%;
  margin: 0 0 24px;
  padding: clamp(14px, 1.4vw, 22px);
  border: 1px solid rgba(224, 224, 221, 0.92);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 48px rgba(20, 20, 20, 0.035);
  backdrop-filter: blur(14px);
}
.lw-agent-preview-panel.is-hydrating {
  display: none;
}
.lw-agent-preview-card {
  position: relative;
  padding: 26px;
  border: 1px solid #e1e1df;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
}
.lw-agent-preview-empty {
  min-height: 210px;
  display: grid;
  place-content: center;
  gap: 10px;
  color: #5f6469;
  text-align: center;
}
.lw-agent-preview-empty[hidden],
.lw-agent-preview-card [hidden] {
  display: none !important;
}
.lw-agent-preview-empty strong {
  color: #111315;
  font-size: 1.15rem;
}
.lw-agent-preview-empty p {
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.8;
}
.lw-agent-preview-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.lw-agent-avatar-wrap {
  width: 48px;
  height: 48px;
  overflow: hidden;
  flex: 0 0 48px;
  border-radius: 12px;
  background: #e7e7e4;
}
.lw-agent-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lw-agent-preview-label,
.lw-agent-skill-preview-head span,
.lw-agent-facts span {
  color: #687078;
  font-size: 0.76rem;
}
.lw-agent-preview-head h3 {
  color: #050505;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.2;
}
.lw-agent-status-dot {
  width: 12px;
  height: 12px;
  margin-left: auto;
  border-radius: 50%;
  background: #e21820;
}
.lw-agent-preview-intro {
  max-width: 980px;
  margin: 0 0 26px;
  color: #1d252c;
  font-size: 1rem;
  line-height: 1.9;
}
.lw-agent-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 26px;
  border-top: 1px solid #e0e0dc;
  border-bottom: 1px solid #e0e0dc;
}
.lw-agent-facts div {
  min-height: 112px;
  padding: 22px 24px;
  border-right: 1px solid #e0e0dc;
}
.lw-agent-facts div:last-child {
  border-right: 0;
}
.lw-agent-facts strong {
  display: block;
  margin-top: 18px;
  color: #050505;
  font-size: 1.08rem;
  line-height: 1.35;
}
.lw-agent-facts em {
  font-style: normal;
}
.lw-agent-skill-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.lw-agent-skill-preview-head strong {
  color: #4d555c;
  font-size: 0.76rem;
  font-weight: 500;
}
.lw-agent-skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
}
.lw-agent-skill-chip {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid #ef1d26;
  border-radius: 999px;
  background: #fff;
  color: #ef1d26;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.76rem;
  cursor: pointer;
}
.lw-agent-skill-chip b {
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1;
}
.lw-agent-skill-empty {
  color: #8a8f94;
  font-size: 0.9rem;
}
.lw-agent-skill-package {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #e0e0dc;
  color: #5f6469;
}
.lw-agent-package-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9da0a3;
}
.lw-agent-skill-package strong {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid #dededb;
  border-radius: 999px;
  background: #fff;
  color: #111315;
  font-size: 0.82rem;
}
.lw-agent-install-panel {
  width: 100%;
  margin: 0 0 24px;
  padding: clamp(14px, 1.4vw, 22px);
  border: 1px solid rgba(224, 224, 221, 0.92);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 48px rgba(20, 20, 20, 0.035);
  backdrop-filter: blur(14px);
}
.lw-agent-install-panel.is-hydrating {
  display: none;
}
.lw-agent-install-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.lw-agent-install-copy {
  min-width: 0;
}
.lw-agent-install-rule {
  height: 1px;
  margin: 4px 0 18px;
  background: #dededb;
}
.lw-agent-install-kicker {
  display: block;
  margin-bottom: 10px;
  color: #53606b;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.lw-agent-install-copy > h2 {
  margin: 0 0 14px;
  color: #050505;
  font-size: clamp(1.65rem, 2.5vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
}
.lw-agent-install-copy > p {
  max-width: 720px;
  color: #1d252c;
  font-size: 1rem;
  line-height: 1.9;
}
.lw-agent-install-console {
  min-height: 420px;
  padding: 24px;
  border: 1px solid #dededb;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
}
.lw-agent-install-empty {
  min-height: 350px;
  display: grid;
  place-content: center;
  gap: 8px;
  color: #6b7278;
  text-align: center;
}
.lw-agent-install-empty[hidden],
.lw-agent-install-console [hidden] {
  display: none !important;
}
.lw-agent-install-empty strong {
  color: #111315;
  font-size: 1.08rem;
}
.lw-agent-install-summary {
  margin: 0 0 24px;
}
.lw-agent-install-summary div {
  min-height: 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid #e0e0dc;
}
.lw-agent-install-summary dt {
  color: #52606b;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.lw-agent-install-summary dd {
  min-width: 0;
  color: #050505;
  font-size: 0.98rem;
  line-height: 1.35;
  text-align: right;
  overflow-wrap: anywhere;
}
.lw-agent-copy-btn {
  width: 100%;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
  border: 0;
  border-radius: 999px;
  background: #050505;
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}
.lw-agent-copy-btn:hover {
  background: #242629;
  transform: translateY(-1px);
}
.lw-agent-copy-btn .lw-icon {
  width: 16px;
  height: 16px;
}
.lw-agent-copy-status {
  display: block;
  margin-bottom: 10px;
  color: #24924f;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}
.lw-agent-command {
  width: 100%;
  min-height: 132px;
  padding: 12px;
  border: 1px solid #dededb;
  border-radius: 8px;
  background: #fff;
  color: #111315;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  line-height: 1.55;
  resize: vertical;
}
@media (max-width: 767px) {
  .lw-role-panel {
    width: 100%;
    margin: 0 0 18px;
    padding: 10px;
    border-radius: 14px;
  }
  .lw-role-explorer {
    margin-bottom: 16px;
  }
  .lw-role-step-title {
    gap: 10px;
    margin-bottom: 12px;
  }
  .lw-role-step-title span {
    min-height: 22px;
    padding: 0 11px;
    font-size: 0.68rem;
  }
  .lw-role-step-title h2 {
    font-size: 1.18rem;
  }
  .lw-role-search {
    height: 56px;
    border-radius: 10px;
  }
  .lw-role-search .lw-icon {
    left: 16px;
    width: 21px;
    height: 21px;
  }
  .lw-role-search input {
    padding-left: 48px;
    font-size: 0.98rem;
  }
  .lw-role-tabs {
    gap: 9px;
  }
  .lw-role-tab {
    min-height: 42px;
    gap: 9px;
    padding: 0 14px;
    font-size: 0.9rem;
  }
  .lw-role-tab b::before {
    margin-right: 9px;
  }
  .lw-skill-panel {
    margin: 0 0 18px;
    padding: 10px;
    border-radius: 14px;
  }
  .lw-skill-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .lw-skill-card {
    min-height: 146px;
    padding: 14px;
  }
  .lw-skill-card h3 {
    margin-bottom: 8px;
    font-size: 0.93rem;
  }
  .lw-skill-card-subtitle {
    margin-bottom: 8px;
    font-size: 0.82rem;
  }
  .lw-skill-card p {
    min-height: 3.1em;
    margin-bottom: 10px;
    font-size: 0.8rem;
    line-height: 1.5;
    -webkit-line-clamp: 2;
  }
  .lw-skill-card-meta {
    flex-wrap: wrap;
    gap: 7px 9px;
    font-size: 0.72rem;
  }
  .lw-skill-add-btn {
    width: 100%;
    min-height: 32px;
    margin-top: 10px;
    padding: 0 8px;
    font-size: 0.72rem;
  }
  .lw-agent-preview-panel {
    margin: 0 0 18px;
    padding: 10px;
    border-radius: 14px;
  }
  .lw-agent-preview-card {
    padding: 18px;
    border-radius: 12px;
  }
  .lw-agent-preview-empty {
    min-height: 180px;
  }
  .lw-agent-preview-head {
    gap: 12px;
  }
  .lw-agent-avatar-wrap {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }
  .lw-agent-preview-intro {
    margin-bottom: 18px;
    font-size: 0.94rem;
    line-height: 1.75;
  }
  .lw-agent-facts {
    grid-template-columns: 1fr;
    margin-bottom: 18px;
  }
  .lw-agent-facts div {
    min-height: 0;
    padding: 14px 0;
    border-right: 0;
    border-bottom: 1px solid #e0e0dc;
  }
  .lw-agent-facts div:last-child {
    border-bottom: 0;
  }
  .lw-agent-facts strong {
    margin-top: 8px;
    font-size: 0.96rem;
  }
  .lw-agent-skill-package {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .lw-agent-install-panel {
    margin: 0 0 18px;
    padding: 10px;
    border-radius: 14px;
  }
  .lw-agent-install-main {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .lw-agent-install-rule {
    margin-bottom: 14px;
  }
  .lw-agent-install-console {
    min-height: 0;
    padding: 18px;
    border-radius: 12px;
  }
  .lw-agent-install-empty {
    min-height: 220px;
  }
  .lw-agent-install-summary div {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 12px 0;
  }
  .lw-agent-install-summary dd {
    text-align: left;
  }
}
@media (min-width: 768px) and (max-width: 1099px) {
  .lw-skill-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ============================================
   Masonry Grid
   ============================================ */
.masonry-grid {
  column-count: 4;
  column-gap: 12px;
}
.masonry-item {
  break-inside: avoid;
  margin-bottom: 12px;
}

@media (max-width: 991px) {
  .masonry-grid {
    column-count: 2;
    column-gap: 10px;
  }
}
@media (max-width: 575px) {
  .masonry-grid {
    column-count: 2;
    column-gap: 8px;
  }
}

/* ============================================
   Image Card
   ============================================ */
.lw-card {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--lw-radius);
  background: #e5e5e5;
}
.lw-card-wrap {
  position: relative;
}
.lw-agent-role-pick {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 2;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  border: 1px solid rgba(239, 29, 38, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #ef1d26;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(20, 20, 20, 0.08);
  backdrop-filter: blur(12px);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, color 0.18s ease;
}
.lw-agent-role-pick:hover {
  transform: translateY(-1px);
  background: #fff;
  border-color: #ef1d26;
}
.lw-agent-role-pick.is-selected {
  background: #ef1d26;
  color: #fff;
  border-color: #ef1d26;
}
.lw-agent-role-pick .lw-icon {
  width: 13px;
  height: 13px;
}
.lw-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.lw-card:hover img {
  transform: scale(1.05);
}
.lw-card-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.3) 60%, transparent);
  padding: 40px 12px 12px;
}
.lw-card-title {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  margin-bottom: 6px;
}
.lw-card-subtitle {
  display: -webkit-box;
  overflow: hidden;
  margin: -2px 0 7px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.76rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.lw-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.75rem;
}
.lw-card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.lw-card-meta .lw-icon {
  width: 12px;
  height: 12px;
}

/* Post page: images in masonry without card overlay */
.lw-post-header,
.lw-post-gallery,
article > .lw-page-content {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}
.lw-post-gallery {
  display: block;
  column-count: 3;
  column-gap: 16px;
  padding: 0 18px;
}
.lw-post-gallery .masonry-item {
  display: block;
  break-inside: avoid;
  margin-bottom: 16px;
}
.lw-post-gallery .lw-card {
  height: auto;
  margin: 0 4px;
}
.lw-post-gallery .lw-card img {
  width: 100%;
  height: auto;
  object-fit: initial;
}
@media (max-width: 767px) {
  .lw-post-gallery {
    column-count: 2;
    column-gap: 10px;
    padding: 0 10px;
  }
  .lw-post-gallery .masonry-item {
    margin-bottom: 10px;
  }
  .lw-post-gallery .lw-card {
    margin: 0 2px;
  }
}
article .masonry-grid .lw-card {
  border-radius: 4px;
  cursor: default;
}
article .masonry-grid .lw-card:hover img {
  transform: none;
}
.lw-post-gallery .lw-card,
.lw-post-gallery .lw-card img,
.lw-page-body img {
  cursor: zoom-in;
}

/* ============================================
   Pagination
   ============================================ */
.lw-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 32px 0;
}
.lw-pagination a,
.lw-pagination span {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--lw-muted);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.lw-pagination a:hover {
  background: #f0f0f0;
}
.lw-pagination .current {
  background: var(--lw-primary);
  color: #fff;
}
.lw-pagination .disabled {
  color: rgba(128, 128, 128, 0.4);
  pointer-events: none;
}
.lw-pagination .dots {
  pointer-events: none;
}

/* ============================================
   Post Detail
   ============================================ */
.lw-post-header {
  margin-bottom: 16px;
}
.lw-post-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--lw-foreground);
  line-height: 1.4;
  text-wrap: balance;
  margin-bottom: 8px;
}
@media (min-width: 768px) {
  .lw-post-title {
    font-size: 1.5rem;
  }
}
.lw-post-subtitle {
  margin: -2px 0 8px;
  color: #202327;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.5;
}
.lw-post-intro {
  max-width: 780px;
  margin: 0 0 12px;
  color: #5f6469;
  font-size: 0.92rem;
  line-height: 1.75;
}
.lw-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  font-size: 0.75rem;
  color: var(--lw-muted);
}
.lw-post-meta span,
.lw-post-meta a {
  display: flex;
  align-items: center;
  gap: 4px;
}
.lw-post-meta a:hover {
  color: var(--lw-primary);
}
.lw-post-meta .lw-icon {
  width: 14px;
  height: 14px;
}

/* Download Buttons */
.lw-download-area {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 860px;
  margin: 0 auto 32px;
}
.lw-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  background: var(--lw-primary);
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
  text-decoration: none;
}
.lw-download-btn:hover {
  opacity: 0.9;
  color: #fff;
}
.lw-download-btn .lw-icon {
  width: 16px;
  height: 16px;
}

/* Prev / Next */
.lw-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 1000px;
  margin: 0 auto 32px;
}
@media (max-width: 575px) {
  .lw-post-nav {
    grid-template-columns: 1fr;
  }
  .lw-post-nav-link {
    max-width: 10em;
  }
}
.lw-post-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 999px;
  background: var(--lw-primary);
  transition: opacity 0.2s ease;
}
.lw-post-nav-item:hover {
  opacity: 0.9;
}
.lw-post-nav-item.next {
  justify-content: flex-end;
  text-align: right;
}
.lw-post-nav-icon {
  color: #fff;
  flex-shrink: 0;
}
.lw-post-nav-icon .lw-icon {
  width: 20px;
  height: 20px;
}
.lw-post-nav-inner {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.lw-post-nav-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
}
.lw-post-nav-link {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  display: block;
  min-width: 0;
}
.lw-post-nav-link:hover {
  color: #fff;
}

/* Related Posts */
.lw-related {
  max-width: 1000px;
  margin: 0 auto 16px;
  padding-top: 8px;
}
.lw-related-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--lw-foreground);
  margin-bottom: 12px;
}
.lw-related-grid {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  -ms-overflow-style: none;
  scrollbar-width: none;
  justify-content: flex-start;
}
.lw-related-grid::-webkit-scrollbar {
  display: none;
}
.lw-related-item {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border-radius: var(--lw-radius);
  overflow: hidden;
  background: #e5e5e5;
}
@media (min-width: 768px) {
  .lw-related-item {
    width: 135px;
    height: 120px;
  }
}
.lw-related-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.lw-related-item:hover img {
  transform: scale(1.05);
}

/* ============================================
   Category Header
   ============================================ */
.lw-category-panel {
  width: 100%;
  margin: 0 0 24px;
  padding: clamp(14px, 1.4vw, 22px);
  border: 1px solid rgba(224, 224, 221, 0.92);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 48px rgba(20, 20, 20, 0.035);
  backdrop-filter: blur(14px);
}
.lw-category-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.lw-category-header h1 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--lw-foreground);
}
.lw-category-header .count {
  font-size: 0.75rem;
  color: var(--lw-muted);
}
.lw-category-filter {
  margin-bottom: 18px;
}
.lw-category-search {
  margin-bottom: 16px;
}
.lw-category-tabs {
  margin-bottom: 2px;
}
.lw-category-tabs .lw-role-tab {
  border-color: #dededb;
  background: rgba(255, 255, 255, 0.92);
}
.lw-category-tabs .lw-role-tab.active {
  border-color: #d8d8d5;
  color: #111315;
  background: #fff;
}
.lw-category-panel .masonry-grid,
.lw-category-panel .lw-skill-grid {
  margin-top: 0;
}
.lw-category-panel .lw-pagination {
  padding-bottom: 0;
}
@media (max-width: 767px) {
  .lw-category-panel {
    margin: 0 0 18px;
    padding: 10px;
    border-radius: 14px;
  }
  .lw-category-header {
    margin-bottom: 12px;
  }
  .lw-category-filter {
    margin-bottom: 14px;
  }
  .lw-category-search {
    margin-bottom: 12px;
  }
}

/* ============================================
   Search Header
   ============================================ */
.lw-search-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.lw-search-header .lw-icon {
  width: 16px;
  height: 16px;
  color: var(--lw-muted);
}
.lw-search-header h1 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--lw-foreground);
}
.lw-search-header .count {
  font-size: 0.75rem;
  color: var(--lw-muted);
}

/* ============================================
   Empty State
   ============================================ */
.lw-empty {
  padding: 80px 0;
  text-align: center;
  color: var(--lw-muted);
  font-size: 0.875rem;
}

/* ============================================
   Home Intro
   ============================================ */
.lw-home-intro {
  margin: 24px auto 4px;
  padding: 18px 0 8px;
  border-top: 1px solid var(--lw-border);
}
.lw-home-intro h2 {
  margin-bottom: 8px;
  font-size: 1.125rem;
  color: var(--lw-foreground);
}
.lw-home-intro-body {
  color: var(--lw-muted);
  font-size: 0.9375rem;
  line-height: 1.8;
}
.lw-home-intro-body p {
  margin-bottom: 0.75em;
}
.lw-home-intro-body a {
  color: var(--lw-primary);
}

/* ============================================
   404 Page
   ============================================ */
.lw-404 {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lw-404-inner {
  text-align: center;
  padding: 80px 0;
}
.lw-404-code {
  font-size: 4.5rem;
  font-weight: 700;
  color: var(--lw-primary);
  margin-bottom: 16px;
}
.lw-404-text {
  color: var(--lw-muted);
  margin-bottom: 24px;
}
.lw-404-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  background: var(--lw-primary);
  transition: opacity 0.2s ease;
}
.lw-404-btn:hover {
  opacity: 0.9;
  color: #fff;
}

/* ============================================
   Footer
   ============================================ */
.lw-footer {
  margin-top: auto;
  border-top: 1px solid var(--lw-border);
  background: var(--lw-card);
}
.lw-footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
@media (max-width: 575px) {
  .lw-footer-inner {
    flex-direction: column;
  }
}
.lw-footer-copy {
  font-size: 0.75rem;
  color: var(--lw-muted);
}
.lw-footer-copy a:hover {
  color: var(--lw-primary);
}
.lw-footer-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}
.lw-footer-nav a {
  font-size: 0.75rem;
  color: var(--lw-muted);
}
.lw-footer-nav a:hover {
  color: var(--lw-primary);
}

/* ============================================
   Page Template (single page like "About")
   ============================================ */
.lw-page-content {
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 32px;
}
.lw-page-content h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--lw-foreground);
  margin-bottom: 8px;
}
.lw-page-content .lw-page-date {
  font-size: 0.75rem;
  color: var(--lw-muted);
  margin-bottom: 24px;
}
.lw-page-content .lw-page-body {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--lw-foreground);
}
.lw-page-content .lw-page-body p {
  margin-bottom: 1em;
}
.lw-page-content .lw-page-body img {
  border-radius: var(--lw-radius);
  margin: 1em 0;
}
.lw-page-content .lw-page-body a {
  color: var(--lw-primary);
}
.lw-page-content .lw-page-body a:hover {
  text-decoration: underline;
}
.lw-blog-page {
  max-width: 980px;
  margin: 0 auto 32px;
  padding: clamp(14px, 1.4vw, 22px);
  border: 1px solid rgba(224, 224, 221, 0.92);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 48px rgba(20, 20, 20, 0.035);
  backdrop-filter: blur(14px);
}
.lw-blog-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}
.lw-blog-header h1 {
  color: var(--lw-foreground);
  font-size: 1.35rem;
  font-weight: 750;
  line-height: 1.25;
}
.lw-blog-header .count {
  color: var(--lw-muted);
  font-size: 0.75rem;
}
.lw-blog-tabs {
  margin: 0 0 18px;
}
.lw-blog-list {
  display: grid;
  gap: 12px;
  margin-top: 0;
}
.lw-blog-item {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  padding: 14px;
  border: 1px solid #e5e5e2;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.lw-blog-item:hover {
  transform: translateY(-1px);
  border-color: #d4d4d0;
  box-shadow: 0 12px 30px rgba(20, 20, 20, 0.055);
}
.lw-blog-thumb {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  background: #e8e8e5;
}
.lw-blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.24s ease;
}
.lw-blog-item:hover .lw-blog-thumb img {
  transform: scale(1.04);
}
.lw-blog-item-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.lw-blog-item-body h2 {
  margin-bottom: 8px;
  color: #111315;
  font-size: 1.08rem;
  font-weight: 720;
  line-height: 1.35;
}
.lw-blog-item-body h2 a:hover {
  color: var(--lw-primary-hover);
}
.lw-blog-item-body p {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 12px;
  color: #555d64;
  font-size: 0.9rem;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.lw-blog-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  color: #73787d;
  font-size: 0.78rem;
}
.lw-blog-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.lw-blog-meta .lw-icon {
  width: 13px;
  height: 13px;
}
.lw-blog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
}
.lw-blog-view {
  min-height: 34px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 13px;
  border: 1px solid #d8d8d4;
  border-radius: 999px;
  background: #111315;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.lw-blog-view:hover {
  transform: translateX(1px);
  border-color: #111315;
  background: #2b2e31;
  color: #fff;
}
.lw-blog-view .lw-icon {
  width: 14px;
  height: 14px;
}
.lw-blog-page .lw-pagination {
  padding-bottom: 0;
}
@media (max-width: 767px) {
  .lw-blog-page {
    padding: 10px;
    border-radius: 14px;
  }
  .lw-blog-item {
    grid-template-columns: clamp(104px, 34vw, 136px) minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }
  .lw-blog-thumb {
    aspect-ratio: 4 / 3;
  }
  .lw-blog-item-body h2 {
    margin-bottom: 6px;
    font-size: 0.96rem;
  }
  .lw-blog-item-body p {
    margin-bottom: 9px;
    font-size: 0.84rem;
    line-height: 1.55;
    -webkit-line-clamp: 2;
  }
  .lw-blog-footer {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    gap: 8px;
  }
  .lw-blog-meta {
    min-width: 0;
    flex: 1 1 auto;
    gap: 8px;
    line-height: 1.25;
  }
  .lw-blog-view {
    align-self: center;
    min-height: 30px;
    padding: 0 11px;
    font-size: 0.78rem;
  }
}
@media (max-width: 390px) {
  .lw-blog-item {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 9px;
    padding: 10px;
  }
  .lw-blog-item-body h2 {
    font-size: 0.9rem;
  }
  .lw-blog-item-body p {
    font-size: 0.8rem;
  }
  .lw-blog-meta {
    font-size: 0.72rem;
  }
  .lw-blog-view {
    min-height: 28px;
    gap: 5px;
    padding: 0 9px;
    font-size: 0.74rem;
  }
}

/* ============================================
   Image Lightbox
   ============================================ */
body.lw-lightbox-open {
  overflow: hidden;
}
.lw-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 56px 72px;
  background: rgba(0, 0, 0, 0.92);
}
.lw-lightbox.is-active {
  display: flex;
}
.lw-lightbox-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35);
}
.lw-lightbox-close,
.lw-lightbox-prev,
.lw-lightbox-next {
  position: fixed;
  z-index: 2001;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(20, 20, 20, 0.62);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}
.lw-lightbox-close:hover,
.lw-lightbox-prev:hover,
.lw-lightbox-next:hover {
  background: rgba(0, 0, 0, 0.82);
}
.lw-lightbox-close {
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1rem;
}
.lw-lightbox-prev,
.lw-lightbox-next {
  top: 50%;
  width: 46px;
  height: 64px;
  margin-top: -32px;
  border-radius: var(--lw-radius);
  font-size: 1.5rem;
}
.lw-lightbox-prev {
  left: 18px;
}
.lw-lightbox-next {
  right: 18px;
}
.lw-lightbox-single .lw-lightbox-prev,
.lw-lightbox-single .lw-lightbox-next {
  display: none;
}
@media (max-width: 575px) {
  .lw-lightbox {
    padding: 52px 12px;
  }
  .lw-lightbox-close {
    top: 12px;
    right: 12px;
  }
  .lw-lightbox-prev,
  .lw-lightbox-next {
    width: 38px;
    height: 54px;
    font-size: 1.25rem;
  }
  .lw-lightbox-prev {
    left: 8px;
  }
  .lw-lightbox-next {
    right: 8px;
  }
}

/* ============================================
   Back to Top
   ============================================ */
.lw-back-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 999;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: none;
  background: var(--lw-primary);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}
.lw-back-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lw-back-top:hover {
  opacity: 0.9;
}
.lw-back-top .lw-icon {
  width: 18px;
  height: 18px;
}

/* ============================================
   评论区样式 (Comments Section)
   ============================================ */

/* --- 评论区容器 --- */
.lw-comments-section {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  background: var(--lw-card);
  border-radius: var(--lw-radius);
  padding: 20px;
  border: 1px solid var(--lw-border);
  margin-top: 24px;
}

.lw-comments-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--lw-foreground);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.lw-comment-count {
  font-size: 14px;
  font-weight: 400;
  color: var(--lw-muted);
}

/* --- 评论表单 --- */
.lw-comment-form-wrapper {
  background: var(--lw-bg);
  border-radius: var(--lw-radius);
  padding: 14px;
  margin-bottom: 16px;
  border: 1px solid var(--lw-border);
}

.lw-comment-form-wrapper h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--lw-foreground);
  margin-bottom: 12px;
}

.lw-form-group {
  margin-bottom: 12px;
}

.lw-comment-form-wrapper textarea {
  width: 100%;
  min-height: 80px;
  padding: 10px;
  border: 1px solid var(--lw-border);
  border-radius: var(--lw-radius);
  background: var(--lw-card);
  color: var(--lw-foreground);
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.lw-comment-form-wrapper textarea:focus {
  outline: none;
  border-color: var(--lw-primary);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.lw-form-row {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.lw-form-row input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--lw-border);
  border-radius: var(--lw-radius);
  background: var(--lw-card);
  color: var(--lw-foreground);
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.lw-form-row input:focus {
  outline: none;
  border-color: var(--lw-primary);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.lw-form-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.lw-form-submit-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lw-btn-submit {
  padding: 8px 20px;
  background: var(--lw-primary);
  color: #fff;
  border: none;
  border-radius: var(--lw-radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16);
}

.lw-btn-submit:hover {
  background: var(--lw-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.lw-btn-cancel {
  padding: 8px 16px;
  background: var(--lw-bg);
  color: var(--lw-muted);
  border: 1px solid var(--lw-border);
  border-radius: var(--lw-radius);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.lw-btn-cancel:hover {
  background: var(--lw-border);
  color: var(--lw-foreground);
}

.lw-form-tip {
  font-size: 12px;
  color: var(--lw-muted);
}

/* --- 评论列表 --- */
.lw-comment-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* --- 评论项 --- */
.lw-comment-item {
  display: flex;
  gap: 10px;
  background: var(--lw-bg);
  border-radius: var(--lw-radius);
  padding: 10px;
  border: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s;
  margin-bottom: 4px;
}

.lw-comment-item:hover {
  border-color: var(--lw-primary);
  background: var(--lw-card);
}

/* --- 头像 --- */
.lw-comment-avatar {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--lw-border);
}

.lw-comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- 评论主体 --- */
.lw-comment-content {
  flex: 1;
  min-width: 0;
}

.lw-comment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
  flex-wrap: wrap;
  gap: 4px;
}

.lw-comment-author-info {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.lw-comment-author {
  font-size: 14px;
  font-weight: 600;
  color: var(--lw-foreground);
}

a.lw-comment-author {
  color: var(--lw-primary);
  text-decoration: none;
}

a.lw-comment-author:hover {
  color: var(--lw-primary-hover);
  text-decoration: underline;
}

.lw-comment-badge {
  background: var(--lw-primary);
  color: #fff;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 500;
}

.lw-comment-floor {
  font-size: 11px;
  color: var(--lw-primary);
  background: rgba(0, 0, 0, 0.06);
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 500;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.lw-comment-reply-info {
  font-size: 12px;
  color: var(--lw-muted);
  background: var(--lw-bg);
  padding: 1px 7px;
  border-radius: 4px;
  border: 1px solid var(--lw-border);
}

.lw-comment-time {
  font-size: 12px;
  color: var(--lw-muted);
}

/* --- 评论内容 --- */
.lw-comment-text-wrapper {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.lw-comment-text {
  font-size: 14px;
  line-height: 1.65;
  color: var(--lw-foreground);
  flex: 1;
  min-width: 0;
  word-wrap: break-word;
}

.lw-comment-item[data-level="0"] .lw-comment-text {
  background: var(--lw-card);
  padding: 8px 10px;
  border-radius: var(--lw-radius);
  border: 1px solid transparent;
}

.lw-comment-item[data-level="0"]:hover .lw-comment-text {
  border-color: rgba(0, 0, 0, 0.12);
}

.lw-comment-item[data-level="1"] .lw-comment-text {
  background: rgba(0, 0, 0, 0.025);
  padding: 7px 10px;
  border-radius: var(--lw-radius);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.lw-comment-item[data-level="2"] .lw-comment-text,
.lw-comment-item[data-level="3"] .lw-comment-text {
  background: rgba(0, 0, 0, 0.035);
  padding: 6px 10px;
  border-radius: var(--lw-radius);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.lw-comment-text p { margin-bottom: 6px; }
.lw-comment-text p:last-child { margin-bottom: 0; }

.lw-comment-text a {
  color: var(--lw-primary);
  text-decoration: none;
}

.lw-comment-text a:hover { text-decoration: underline; }

.lw-comment-text pre {
  background: var(--lw-bg);
  border: 1px solid var(--lw-border);
  border-radius: var(--lw-radius);
  padding: 12px;
  overflow-x: auto;
  margin: 10px 0;
}

.lw-comment-text code {
  background: rgba(0, 0, 0, 0.06);
  color: var(--lw-primary-hover);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 13px;
}

.lw-comment-text blockquote {
  border-left: 3px solid var(--lw-primary);
  padding-left: 12px;
  margin: 10px 0;
  color: var(--lw-muted);
  font-style: italic;
}

/* --- 子评论嵌套 --- */
.lw-comment-children {
  margin-top: 4px;
  margin-left: 26px;
  position: relative;
}

.lw-comment-children::before {
  content: '';
  position: absolute;
  left: -13px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--lw-border);
  opacity: 0.5;
}

.lw-comment-children .lw-comment-item {
  background: var(--lw-card);
  padding: 8px;
}

.lw-comment-children .lw-comment-item:hover {
  background: var(--lw-bg);
}

.lw-comment-children .lw-comment-children { margin-left: 20px; }
.lw-comment-children .lw-comment-children .lw-comment-children { margin-left: 16px; }

.lw-comment-children .lw-comment-avatar { width: 28px; height: 28px; }
.lw-comment-children .lw-comment-children .lw-comment-avatar { width: 26px; height: 26px; }
.lw-comment-children .lw-comment-children .lw-comment-children .lw-comment-avatar { width: 24px; height: 24px; }

.lw-comment-children .lw-comment-author { font-size: 13px; }
.lw-comment-children .lw-comment-text { font-size: 13px; }
.lw-comment-children .lw-comment-time { font-size: 11px; }
.lw-comment-children .lw-comment-children .lw-comment-text { font-size: 12px; }
.lw-comment-children .lw-comment-children .lw-comment-time { font-size: 11px; }

/* --- 回复按钮 --- */
.lw-comment-actions { flex-shrink: 0; align-self: flex-start; }

.lw-comment-reply-link {
  display: inline-block;
  font-size: 12px;
  color: var(--lw-muted);
  padding: 2px 8px;
  border-radius: var(--lw-radius);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
  cursor: pointer;
  white-space: nowrap;
}

.lw-comment-reply-link:hover {
  color: var(--lw-primary);
  background: rgba(0, 0, 0, 0.06);
}

/* --- 无评论 --- */
.lw-no-comments {
  text-align: center;
  padding: 20px;
  color: var(--lw-muted);
  font-size: 14px;
}

/* --- 评论分页 --- */
.lw-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.lw-pagination a,
.lw-pagination span {
  padding: 4px 10px;
  border-radius: var(--lw-radius);
  font-size: 13px;
  color: var(--lw-muted);
  text-decoration: none;
  border: 1px solid var(--lw-border);
  transition: all 0.2s;
}

.lw-pagination a:hover {
  color: var(--lw-primary);
  border-color: var(--lw-primary);
}

.lw-pagination .current {
  background: var(--lw-primary);
  color: #fff;
  border-color: var(--lw-primary);
}

/* --- 响应式 --- */
@media (max-width: 768px) {
  .lw-comments-section { padding: 14px; }
  .lw-comment-form-wrapper { padding: 12px; }
  .lw-form-row { flex-direction: column; }
  .lw-form-submit { flex-direction: column; align-items: stretch; }
  .lw-form-submit-left { justify-content: flex-start; }
  .lw-comment-header { flex-direction: column; align-items: flex-start; }
  .lw-comment-children { margin-left: 14px; }
}

@media (max-width: 767px) {
  body {
    background-size: 18px 18px;
  }
  .lw-main {
    padding: 10px 8px max(12px, env(safe-area-inset-bottom));
  }
  .lw-pagination {
    gap: 8px;
    margin-top: 12px;
    padding: 18px 0 8px;
  }
  .lw-pagination a,
  .lw-pagination span {
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    align-items: center;
    justify-content: center;
  }
  .lw-footer-inner {
    padding: 14px 12px calc(14px + env(safe-area-inset-bottom));
    text-align: center;
  }
  .lw-footer-copy {
    line-height: 1.7;
  }
  .lw-back-top {
    right: 12px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    width: 38px;
    height: 38px;
  }
  .lw-comments-section {
    margin-top: 18px;
    border-radius: 8px;
  }
  .lw-comment-item {
    gap: 8px;
    padding: 9px;
  }
  .lw-comment-avatar {
    width: 30px;
    height: 30px;
  }
  .lw-comment-text-wrapper {
    flex-direction: column;
    gap: 8px;
  }
  .lw-comment-actions {
    align-self: flex-end;
  }
  .lw-comment-reply-link {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
  }
}

/* ============================================
   Skill Article Detail
   ============================================ */
.lw-skill-detail-main {
  max-width: 1120px;
  padding-top: 22px;
}
.lw-skill-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 314px;
  gap: 32px;
  align-items: start;
}
.lw-skill-detail.no-sidebar {
  max-width: 860px;
  margin: 0 auto;
  grid-template-columns: minmax(0, 1fr);
}
.lw-skill-detail-primary {
  min-width: 0;
}
.lw-skill-hero {
  padding: 0 0 32px;
  border-bottom: 1px solid #dfe9eb;
}
.lw-skill-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.lw-skill-detail .lw-post-title {
  margin: 0 0 8px;
  color: #10182a;
  font-size: clamp(2.7rem, 5.4vw, 4.9rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: 0;
}
.lw-skill-detail .lw-post-subtitle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #101820;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  font-weight: 800;
  line-height: 1.35;
}
.lw-skill-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 14px;
}
.lw-skill-pill {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border: 1px solid #8bd2ff;
  border-radius: 7px;
  background: #d8f2ff;
  color: #168dff;
  font-size: 0.86rem;
  font-weight: 800;
}
.lw-skill-pill .lw-icon {
  width: 15px;
  height: 15px;
}
.lw-skill-pill-icon {
  position: relative;
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
}
.lw-skill-pill-icon::before,
.lw-skill-pill-icon::after {
  content: "";
  position: absolute;
  inset: 2px 6px;
  border-radius: 999px;
  background: currentColor;
}
.lw-skill-pill-icon::after {
  transform: rotate(90deg);
}
.lw-skill-detail .lw-post-intro {
  max-width: none;
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid #dfe9eb;
  color: #4e5a61;
  font-size: 1rem;
  line-height: 1.9;
}
.lw-skill-stat-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(96px, 1fr));
  align-items: center;
  margin-top: 26px;
  border: 1px solid #dce6e7;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.58);
  overflow: hidden;
}
.lw-skill-stat {
  min-height: 74px;
  display: grid;
  place-items: center;
  gap: 5px;
  padding: 13px 10px;
  border-right: 1px solid #dfe9eb;
  text-align: center;
}
.lw-skill-stat:last-child {
  border-right: 0;
}
.lw-skill-stat.is-action {
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}
.lw-skill-stat.is-action:hover {
  background: rgba(255, 255, 255, 0.72);
  transform: translateY(-1px);
}
.lw-skill-stat span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #788386;
  font-size: 0.8rem;
}
.lw-skill-stat span .lw-icon {
  width: 15px;
  height: 15px;
}
.lw-skill-stat strong {
  color: #071016;
  font-size: 0.92rem;
  font-weight: 700;
}
.lw-skill-sidebar {
  position: sticky;
  top: 78px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.lw-skill-install-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.lw-skill-install-main,
.lw-skill-install-compact {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 11px;
  background: #17191d;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(18, 20, 24, 0.12);
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.lw-skill-install-main:hover,
.lw-skill-install-compact:hover {
  color: #fff;
  background: #25282e;
  transform: translateY(-1px);
}
.lw-skill-install-main.is-added,
.lw-skill-install-compact.is-added {
  background: #fff;
  color: #ef1d26;
  box-shadow: inset 0 0 0 1px #ef1d26;
}
.lw-skill-install-main .lw-icon,
.lw-skill-install-compact .lw-icon {
  width: 19px;
  height: 19px;
}
.lw-skill-install-compact {
  display: none;
  flex: 0 0 auto;
  padding: 0 18px;
}
.lw-agent-detail-add.lw-skill-install-compact {
  display: inline-flex;
}
.lw-skill-install-card > p {
  margin: 0;
  color: #27313b;
  font-size: 0.94rem;
}
.lw-skill-download-card h2,
.lw-skill-agent-card h2 {
  margin: 0;
  color: #26323d;
  font-size: 1rem;
  font-weight: 800;
}
.lw-agent-list {
  max-height: 240px;
  overflow: auto;
  border: 1px solid #d9e1e2;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.7);
}
.lw-agent-row {
  min-height: 46px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 0 14px 0 18px;
  border: 0;
  background: transparent;
  color: #384046;
  font: inherit;
  font-size: 0.94rem;
  text-align: left;
  cursor: pointer;
}
.lw-agent-row:hover {
  background: rgba(255, 255, 255, 0.86);
  color: #111820;
}
.lw-agent-row .lw-icon {
  width: 17px;
  height: 17px;
  color: #788287;
}
.lw-agent-icon {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 900;
}
.lw-agent-icon.dark { background: #121622; }
.lw-agent-icon.red { background: #f0333b; }
.lw-agent-icon.orange { background: #ff9d47; }
.lw-agent-icon.coral { background: #ff4d37; }
.lw-agent-icon.blue { background: #3d9cff; }
.lw-agent-icon.green { background: #23a36f; }
.lw-agent-install-list {
  max-height: 240px;
}
.lw-agent-provider-row {
  grid-template-columns: 24px minmax(0, 1fr) 18px;
}
.lw-agent-provider-row span:nth-child(2) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lw-agent-install-logo {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  overflow: hidden;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.08);
}
.lw-agent-install-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.lw-agent-install-detail {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #d9e1e2;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.72);
}
.lw-agent-install-detail[hidden] {
  display: none !important;
}
.lw-agent-install-back,
.lw-agent-provider-copy {
  border: 0;
  background: transparent;
  color: #4d5961;
  cursor: pointer;
}
.lw-agent-install-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: start;
  padding: 0;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
}
.lw-agent-install-back .lw-icon {
  width: 16px;
  height: 16px;
}
.lw-agent-install-detail-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lw-agent-install-detail-head img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.lw-agent-install-detail-head strong {
  color: #111820;
  font-size: 1rem;
  font-weight: 800;
}
.lw-agent-install-detail-label,
.lw-agent-install-copy-tip {
  color: #68737a;
  font-size: 0.84rem;
}
.lw-agent-install-command-card {
  position: relative;
  padding: 12px 48px 12px 12px;
  border: 1px solid #dce6e7;
  border-radius: 9px;
  background: #fff;
}
.lw-agent-install-command-card pre {
  margin: 0;
  color: #26323d;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.74rem;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.lw-agent-provider-copy {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #f3f7f7;
}
.lw-agent-provider-copy:hover {
  background: #e8f0f1;
  color: #111820;
}
.lw-agent-provider-copy .lw-icon {
  width: 15px;
  height: 15px;
}
.lw-download-row .lw-agent-icon .lw-icon {
  width: 13px;
  height: 13px;
  color: #fff;
}
.lw-download-empty {
  padding: 16px;
  border: 1px dashed #cbd8d9;
  border-radius: 11px;
  color: #68737a;
  background: rgba(255, 255, 255, 0.48);
  font-size: 0.9rem;
  text-align: center;
}
.lw-skill-related h2 {
  margin: 0 0 14px;
  color: #26323d;
  font-size: 1rem;
  font-weight: 700;
}
.lw-skill-related-list {
  display: grid;
  gap: 14px;
}
.lw-skill-related-card {
  display: block;
  padding: 18px 16px 14px;
  border: 1px solid #d9e1e2;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.62);
  color: #303943;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.lw-skill-related-card:hover {
  transform: translateY(-2px);
  border-color: #c4d4d6;
  background: rgba(255, 255, 255, 0.86);
}
.lw-related-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 6px;
  color: #6e7378;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
}
.lw-skill-related-card strong {
  display: block;
  margin-bottom: 10px;
  color: #253040;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.35;
}
.lw-skill-related-card p {
  margin: 0;
  color: #667079;
  font-size: 0.82rem;
  line-height: 1.75;
}
.lw-skill-related-card .lw-related-card-subtitle {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  color: #1f2d38;
  font-size: 0.9rem;
  font-weight: 700;
}
.lw-related-card-subtitle .lw-icon {
  width: 15px;
  height: 15px;
  color: #7a64ff;
}
.lw-related-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  color: #7b858b;
  font-size: 0.76rem;
}
.lw-related-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.lw-related-card-meta .lw-icon {
  width: 13px;
  height: 13px;
}
.lw-skill-detail article > .lw-page-content,
.lw-skill-content-card {
  max-width: none;
  margin: 32px 0;
  padding: 28px 24px;
  border: 1px solid #d9e3e5;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.54);
}
.lw-skill-detail .lw-page-body {
  color: #3f4a51;
  font-size: 0.94rem;
  line-height: 1.95;
}
.lw-skill-detail .lw-page-body h1,
.lw-skill-detail .lw-page-body h2,
.lw-skill-detail .lw-page-body h3 {
  color: #121b2b;
  line-height: 1.35;
}
.lw-skill-detail .lw-page-body h1 {
  font-size: 1.45rem;
}
.lw-skill-detail .lw-page-body h2 {
  margin: 0 0 12px;
  font-size: 1.28rem;
}
.lw-skill-detail .lw-page-body h3 {
  margin: 20px 0 8px;
  font-size: 1rem;
}
.lw-skill-detail .lw-page-body p,
.lw-skill-detail .lw-page-body ul,
.lw-skill-detail .lw-page-body ol {
  margin-bottom: 1em;
}
.lw-skill-detail .lw-page-body ul,
.lw-skill-detail .lw-page-body ol {
  padding-left: 1.35em;
}
.lw-skill-detail .lw-page-body li {
  margin-bottom: 0.38em;
}
.lw-skill-detail .lw-page-body a {
  color: #078fd1;
}
.lw-skill-detail .lw-post-gallery {
  max-width: none;
  margin: 28px 0 0;
  padding: 0;
}
.lw-skill-detail .lw-download-area {
  justify-content: flex-start;
  max-width: none;
  margin: 0 0 30px;
}
.lw-skill-detail .lw-download-btn.secondary {
  background: #f4f8f8;
  color: #17202a;
  border: 1px solid #d9e3e5;
}
.lw-skill-detail .lw-post-nav {
  max-width: none;
}
.lw-skill-detail-main .lw-comments-section {
  max-width: calc(100% - 346px);
  margin-left: 0;
}
.lw-plain-detail-main .lw-comments-section {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}
.lw-skill-tags-panel {
  max-width: calc(100% - 346px);
  margin: 0 0 24px;
  padding: 18px 20px;
  border: 1px solid #d9e3e5;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.56);
}
.lw-plain-detail-main .lw-skill-tags-panel {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}
.lw-skill-tags-panel h2 {
  margin: 0 0 12px;
  color: #26323d;
  font-size: 1rem;
  font-weight: 800;
}
.lw-skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.lw-skill-tag {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid #cfe0e3;
  border-radius: 7px;
  background: rgba(247, 251, 251, 0.88);
  color: #40505a;
  font-size: 0.86rem;
  font-weight: 700;
}
.lw-skill-tag .lw-icon {
  width: 14px;
  height: 14px;
  color: #168dff;
}

@media (max-width: 980px) {
  .lw-skill-detail {
    grid-template-columns: 1fr;
  }
  .lw-skill-sidebar {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
  .lw-skill-install-main {
    display: none;
  }
  .lw-skill-install-compact {
    display: inline-flex;
  }
  .lw-skill-detail-main .lw-comments-section {
    max-width: none;
  }
  .lw-skill-tags-panel {
    max-width: none;
  }
}
@media (max-width: 720px) {
  .lw-skill-detail-main {
    padding-top: 14px;
  }
  .lw-skill-detail {
    gap: 24px;
  }
  .lw-skill-hero {
    padding-bottom: 24px;
  }
  .lw-skill-hero-top {
    display: block;
  }
  .lw-skill-install-compact {
    width: 100%;
    margin-top: 18px;
  }
  .lw-skill-detail .lw-post-title {
    font-size: clamp(2.35rem, 14vw, 3.8rem);
  }
  .lw-skill-stat-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .lw-skill-content-card {
    padding: 22px 18px;
  }
  .lw-skill-detail .lw-post-nav {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 460px) {
  .lw-skill-card {
    min-height: 136px;
    padding: 12px;
  }
  .lw-skill-card h3 {
    font-size: 0.88rem;
  }
  .lw-skill-card-meta {
    gap: 6px;
    font-size: 0.68rem;
  }
  .lw-skill-stat-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .lw-skill-stat {
    min-height: 68px;
    padding: 11px 6px;
    border-right: 1px solid #dfe9eb;
    border-bottom: 0;
  }
  .lw-skill-stat:last-child {
    border-right: 0;
  }
  .lw-skill-stat span {
    gap: 4px;
    font-size: 0.76rem;
  }
  .lw-skill-stat strong {
    font-size: 0.88rem;
  }
}
