:root {
  --sc-bg: #f6f1e8;
  --sc-paper: rgba(255, 252, 247, 0.92);
  --sc-ink: #1b2320;
  --sc-muted: #67746d;
  --sc-line: rgba(27, 35, 32, 0.1);
  --sc-shadow: 0 28px 60px rgba(27, 35, 32, 0.08);
}

* {
  box-sizing: border-box;
}

.hidden {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

html[data-page-lang="zh"] [data-lang="en"] {
  display: none !important;
}

html[data-page-lang="en"] [data-lang="zh"] {
  display: none !important;
}

html[data-page-lang="zh"] [data-lang="zh"],
html[data-page-lang="en"] [data-lang="en"] {
  display: initial !important;
}

html[data-page-lang="zh"] table[data-lang="en"],
html[data-page-lang="zh"] .sc-compare-wrap table[data-lang="en"] {
  display: none !important;
}

html[data-page-lang="en"] table[data-lang="zh"],
html[data-page-lang="en"] .sc-compare-wrap table[data-lang="zh"] {
  display: none !important;
}

html[data-page-lang="zh"] table[data-lang="zh"],
html[data-page-lang="en"] table[data-lang="en"] {
  display: table;
}

body[data-page="smallclaw-article"],
body[data-page="smallclaw-tech-guide"],
body[data-page="smallclaw-blog-article"],
body[data-page="smallclaw-faq"] {
  margin: 0;
  min-height: 100vh;
  color: var(--sc-ink);
  font-family: "Noto Sans SC", sans-serif;
  background:
    radial-gradient(900px 520px at 100% 0%, rgba(83, 142, 124, 0.08) 0%, rgba(83, 142, 124, 0) 62%),
    radial-gradient(780px 460px at 0% 10%, rgba(190, 151, 87, 0.08) 0%, rgba(190, 151, 87, 0) 60%),
    linear-gradient(180deg, #f8f4ec 0%, var(--sc-bg) 100%);
}

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

h1,
h2,
p {
  margin: 0;
}

ul {
  margin: 0;
  padding-left: 1.2rem;
}

.sc-page {
  width: min(100%, 920px);
  margin: 0 auto;
  padding: 40px 20px 72px;
}

.sc-article {
  border: 1px solid var(--sc-line);
  background: var(--sc-paper);
  box-shadow: var(--sc-shadow);
  border-radius: 28px;
  padding: clamp(28px, 5vw, 56px);
}

.sc-article-head {
  padding-bottom: 18px;
}

.sc-article-title-icon {
  width: clamp(40px, 5vw, 52px);
  height: clamp(40px, 5vw, 52px);
  display: block;
  flex: 0 0 auto;
  border-radius: 12px;
  box-shadow: 0 10px 22px rgba(27, 35, 32, 0.1);
}

.sc-article-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.sc-article-link,
.sc-guide-action,
.sc-guide-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.72rem 0.98rem;
  border-radius: 999px;
  border: 1px solid var(--sc-line);
  background: rgba(255, 255, 255, 0.56);
  color: var(--sc-ink);
  font-size: 0.92rem;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.sc-article-link:hover,
.sc-guide-action:hover,
.sc-guide-back:hover,
.sc-article-link:focus-visible,
.sc-guide-action:focus-visible,
.sc-guide-back:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.9);
  outline: none;
}

.sc-article-link-strong,
.sc-guide-action-strong {
  background: #17221e;
  border-color: #17221e;
  color: #faf7f1;
}

.sc-article-head h1 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Newsreader", "Noto Sans SC", serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.sc-article-body {
  padding-top: 18px;
}

.sc-article-body p {
  font-size: 1.04rem;
  line-height: 2;
}

.sc-article-body p + p {
  margin-top: 1.4rem;
}

.sc-blog-section {
  margin-top: 42px;
  padding-top: 34px;
  border-top: 1px solid var(--sc-line);
}

.sc-section-head {
  max-width: 48rem;
}

.sc-section-head .sc-kicker {
  color: var(--sc-muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sc-section-head h2 {
  margin-top: 14px;
  font-family: "Newsreader", "Noto Sans SC", serif;
  font-size: clamp(1.2rem, 2.15vw, 1.68rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.sc-section-head p {
  margin-top: 14px;
  font-size: 1.02rem;
  line-height: 1.95;
}

.sc-blog-index {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.sc-blog-index-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border: 1px solid var(--sc-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.58);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.sc-blog-index-card:hover,
.sc-blog-index-card:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(27, 35, 32, 0.16);
  outline: none;
}

.sc-blog-index-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 999px;
  background: #17221e;
  color: #f8f4ec;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  flex: 0 0 auto;
}

.sc-blog-index-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sc-blog-index-copy strong {
  font-size: 1rem;
  line-height: 1.4;
}

.sc-blog-index-copy span {
  color: var(--sc-muted);
  font-size: 0.94rem;
  line-height: 1.7;
}

.sc-blog-featured {
  margin-top: 24px;
  border: 1px solid var(--sc-line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.56);
  padding: 22px;
}

.sc-blog-head h3 {
  margin-top: 12px;
  font-family: "Newsreader", "Noto Sans SC", serif;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.sc-blog-head p {
  margin-top: 14px;
  font-size: 1.01rem;
  line-height: 1.95;
}

.sc-blog-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.sc-blog-tag,
.sc-blog-date {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--sc-line);
  font-size: 0.8rem;
  color: var(--sc-muted);
  background: rgba(255, 255, 255, 0.62);
}

.sc-blog-tag {
  color: #21433b;
  background: rgba(24, 182, 164, 0.1);
}

.sc-blog-body {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.sc-blog-block h4 {
  font-family: "Newsreader", "Noto Sans SC", serif;
  font-size: clamp(1.02rem, 2vw, 1.3rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.sc-blog-block p {
  margin-top: 10px;
  font-size: 1rem;
  line-height: 1.96;
}

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

.sc-blog-card {
  border: 1px solid var(--sc-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.56);
  padding: 18px;
}

.sc-blog-card h3 {
  margin-top: 12px;
  font-family: "Newsreader", "Noto Sans SC", serif;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.sc-blog-card p {
  margin-top: 12px;
  color: var(--sc-muted);
  font-size: 0.96rem;
  line-height: 1.82;
}

.sc-guide-page {
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: 30px 20px 72px;
}

.sc-guide-shell {
  border: 1px solid var(--sc-line);
  background: var(--sc-paper);
  box-shadow: var(--sc-shadow);
  border-radius: 30px;
  padding: clamp(28px, 4.6vw, 52px);
}

.sc-guide-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 24px;
}

.sc-guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sc-guide-head {
  max-width: 46rem;
  padding: 8px 0 18px;
}

.sc-guide-kicker {
  color: var(--sc-muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sc-guide-head h1 {
  margin-top: 14px;
  font-family: "Newsreader", "Noto Sans SC", serif;
  font-size: clamp(1.85rem, 4.2vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.sc-guide-lead {
  margin-top: 18px;
  font-size: 1.08rem;
  line-height: 1.95;
}

.sc-guide-section {
  max-width: 48rem;
  padding-top: 34px;
}

.sc-guide-section h2 {
  font-family: "Newsreader", "Noto Sans SC", serif;
  font-size: clamp(1.2rem, 2.15vw, 1.68rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.sc-guide-section p {
  margin-top: 14px;
  font-size: 1.02rem;
  line-height: 1.95;
}

.sc-guide-list {
  margin-top: 14px;
}

.sc-guide-list li {
  line-height: 1.9;
}

.sc-guide-list li + li {
  margin-top: 0.55rem;
}

.sc-guide-note {
  margin-top: 18px;
  border: 1px solid var(--sc-line);
  background: rgba(255, 255, 255, 0.52);
  border-radius: 18px;
  padding: 18px;
}

.sc-guide-note strong {
  display: inline-block;
  font-size: 0.95rem;
}

.sc-guide-note p {
  margin-top: 10px;
  font-size: 0.96rem;
  color: var(--sc-muted);
}

.sc-guide-note code {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.92em;
}

.sc-compare-wrap {
  margin-top: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.sc-compare-table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
}

.sc-compare-table-wide {
  min-width: 980px;
}

.sc-compare-table th,
.sc-compare-table td {
  padding: 14px 14px;
  border-bottom: 1px solid rgba(27, 35, 32, 0.1);
  vertical-align: top;
  text-align: left;
  line-height: 1.7;
  word-break: break-word;
}

.sc-compare-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(248, 244, 236, 0.96);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sc-muted);
}

.sc-compare-table tbody th {
  width: 15%;
  font-size: 0.96rem;
  color: var(--sc-ink);
  background: rgba(255, 255, 255, 0.46);
}

.sc-compare-table tbody td {
  width: 28%;
  color: var(--sc-ink);
}

.sc-compare-table tbody tr:nth-child(even) td,
.sc-compare-table tbody tr:nth-child(even) th {
  background: rgba(255, 255, 255, 0.34);
}

.sc-compare-table tbody tr:last-child th,
.sc-compare-table tbody tr:last-child td {
  border-bottom: none;
}

.sc-code-block {
  margin-top: 12px;
  border: 1px solid rgba(27, 35, 32, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
  padding: 14px 16px;
  overflow-x: auto;
}

.sc-code-block code {
  display: block;
  white-space: pre-wrap;
  line-height: 1.8;
}

.sc-guide-footer {
  max-width: 48rem;
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid var(--sc-line);
}

.sc-guide-footer p {
  font-size: 1rem;
  line-height: 1.9;
}

.sc-guide-footer .sc-guide-actions {
  margin-top: 18px;
}

.lang-toggle {
  position: fixed;
  right: 18px;
  top: 18px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(27, 35, 32, 0.16);
  background: rgba(23, 34, 30, 0.86);
  color: #f8f4ec;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
  z-index: 50;
}

.lang-toggle:hover,
.lang-toggle:focus-visible {
  background: rgba(23, 34, 30, 0.96);
  outline: none;
}

@media (max-width: 720px) {
  .sc-page {
    padding: 18px 14px 40px;
  }

  .sc-article {
    border-radius: 20px;
    padding: 22px 18px 24px;
  }

  .sc-article-head {
    padding-bottom: 14px;
  }

  .sc-article-title-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .sc-article-head h1 {
    font-size: clamp(1.75rem, 9vw, 2.4rem);
  }

  .sc-article-body {
    padding-top: 14px;
  }

  .sc-article-body p {
    font-size: 0.98rem;
    line-height: 1.92;
  }

  .sc-article-body p + p {
    margin-top: 1.18rem;
  }

  .sc-blog-section {
    margin-top: 34px;
    padding-top: 28px;
  }

  .sc-section-head h2 {
    font-size: clamp(1.05rem, 4.9vw, 1.32rem);
    line-height: 1.2;
  }

  .sc-section-head p {
    font-size: 0.98rem;
    line-height: 1.9;
  }

  .sc-blog-index-card {
    padding: 14px 15px;
    gap: 12px;
  }

  .sc-blog-index-number {
    width: 2rem;
    height: 2rem;
    font-size: 0.76rem;
  }

  .sc-blog-featured {
    margin-top: 20px;
    padding: 18px;
    border-radius: 20px;
  }

  .sc-blog-head h3 {
    font-size: clamp(1.3rem, 6vw, 1.8rem);
  }

  .sc-blog-head p,
  .sc-blog-block p {
    font-size: 0.98rem;
    line-height: 1.9;
  }

  .sc-blog-body {
    gap: 16px;
    margin-top: 20px;
  }

  .sc-blog-grid {
    grid-template-columns: 1fr;
  }

  .sc-guide-page {
    padding: 18px 14px 40px;
  }

  .sc-guide-shell {
    border-radius: 22px;
    padding: 22px 18px 24px;
  }

  .sc-guide-topbar {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 18px;
  }

  .sc-guide-head {
    padding-bottom: 10px;
  }

  .sc-guide-head h1 {
    font-size: clamp(1.55rem, 7.4vw, 2.2rem);
  }

  .sc-guide-lead,
  .sc-guide-section p,
  .sc-guide-footer p {
    font-size: 0.98rem;
    line-height: 1.9;
  }

  .sc-guide-section {
    padding-top: 28px;
  }

  .sc-guide-section h2 {
    font-size: clamp(1.05rem, 4.9vw, 1.32rem);
    line-height: 1.2;
  }

  .sc-guide-note {
    padding: 16px;
  }

  .sc-compare-wrap {
    overflow: visible;
  }

  .sc-compare-table {
    min-width: 0;
    display: block;
  }

  .sc-compare-table thead {
    display: none;
  }

  .sc-compare-table tbody,
  .sc-compare-table tr,
  .sc-compare-table th,
  .sc-compare-table td {
    display: block;
    width: 100%;
  }

  .sc-compare-table tbody tr {
    margin-top: 12px;
    border: 1px solid rgba(27, 35, 32, 0.1);
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.54);
  }

  .sc-compare-table tbody th,
  .sc-compare-table tbody td {
    border-bottom: 1px solid rgba(27, 35, 32, 0.08);
    background: transparent;
  }

  .sc-compare-table tbody th {
    padding: 12px 14px 8px;
    font-weight: 700;
  }

  .sc-compare-table tbody td {
    padding: 10px 14px;
    padding-left: 40%;
    position: relative;
  }

  .sc-compare-table tbody td::before {
    content: attr(data-label);
    position: absolute;
    left: 14px;
    top: 10px;
    width: calc(40% - 24px);
    color: var(--sc-muted);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.45;
  }

  .sc-compare-table tbody td:last-child {
    border-bottom: none;
    padding-bottom: 12px;
  }

  .lang-toggle {
    right: 14px;
    top: 14px;
  }
}
