:root {
  color-scheme: light;
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-soft: #fbfcfe;
  --line: #e6edf3;
  --text: #1f2d3d;
  --text-soft: #5f6b7a;
  --text-faint: #98a2b3;
  --brand: #12b7f5;
  --brand-deep: #0aa4de;
  --brand-soft: #edf9ff;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: var(--brand-deep);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 14px;
}

.site-shell {
  width: 100%;
  overflow-x: clip;
}

.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid #e6e6e6;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
}

.header-inner,
.index-layout,
.article-layout {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}

.header-left {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 28px;
}

.home-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.home-logo:hover {
  text-decoration: none;
}

.home-logo img {
  display: block;
  width: 136px;
  height: auto;
  border-radius: 0;
}

.tool-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.tool-link {
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.tool-link:hover {
  color: var(--brand-deep);
  text-decoration: none;
}

.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 14px;
}

.utility-link {
  color: var(--text-soft);
  font-size: 14px;
  white-space: nowrap;
}

.utility-link-current {
  color: var(--text);
  font-weight: 600;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.header-cta:hover {
  border-color: var(--brand-deep);
  background: var(--brand-deep);
  color: #ffffff;
  text-decoration: none;
}

.index-layout,
.article-layout {
  margin-top: 24px;
}

.index-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
}

.article-layout > * {
  min-width: 0;
}

.hero-card,
.article-card,
.aside-card,
.insight-box,
.category-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 30px;
  background: linear-gradient(135deg, #ffffff 0%, #f7fbff 100%);
}

.hero-copy h1 {
  margin: 12px 0;
  font-size: clamp(30px, 6vw, 44px);
  line-height: 1.12;
  color: #0f172a;
}

.hero-copy p {
  margin: 0;
  max-width: 680px;
  font-size: 16px;
  color: var(--text-soft);
}

.hero-badge {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 13px;
  font-weight: 700;
}

.hero-metrics {
  min-width: 240px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.hero-metrics div {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #ffffff;
}

.hero-metrics strong {
  display: block;
  font-size: 28px;
  line-height: 1;
  color: var(--text);
}

.hero-metrics span {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-faint);
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section-heading h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.3;
}

.section-heading p {
  margin: 0;
  color: var(--text-faint);
  font-size: 14px;
}

.insight-box,
.category-card {
  padding: 24px;
}

.summary-list,
.guide-list,
.related-list {
  margin: 16px 0 0;
}

.summary-list {
  padding-left: 18px;
}

.summary-list li {
  margin: 10px 0;
  color: var(--text-soft);
}

.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 600;
}

.category-nav a:hover {
  background: var(--brand-soft);
  color: var(--brand-deep);
  text-decoration: none;
}

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

.guide-list {
  list-style: none;
  padding: 0;
}

.guide-list li + li {
  margin-top: 12px;
}

.guide-list a {
  display: block;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.guide-list a:hover {
  border-color: #cfe9f8;
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
  text-decoration: none;
}

.guide-list strong {
  display: block;
  color: var(--text);
  font-size: 17px;
}

.guide-list span {
  display: block;
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 14px;
}

.article-card {
  min-width: 0;
  padding: 30px;
  overflow: hidden;
}

.article-meta-top {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #f7f9fc;
  color: var(--text-faint);
  font-size: 13px;
}

.pill-primary {
  border-color: #d7edf9;
  background: var(--brand-soft);
  color: var(--brand-deep);
}

.article-card h1 {
  margin: 18px 0 14px;
  font-size: clamp(28px, 4.2vw, 46px);
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: #111827;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.article-dek {
  margin: 0 0 24px;
  color: var(--text-soft);
  font-size: 16px;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.article-body-wrap {
  margin-top: 8px;
}

.article-body {
  margin-top: 18px;
  color: var(--text);
  word-break: break-word;
  overflow-x: hidden;
}

.article-body > :first-child {
  margin-top: 0 !important;
}

.article-body p,
.article-body ul,
.article-body ol,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body blockquote,
.article-body table {
  max-width: 100%;
}

.article-body p,
.article-body li {
  font-size: 17px;
  color: var(--text);
}

.article-body p {
  margin: 1em 0;
}

.article-body h2,
.article-body h3,
.article-body h4 {
  margin: 1.4em 0 0.6em;
  line-height: 1.35;
  color: #111827;
}

.article-body a {
  word-break: break-all;
}

.article-body img {
  display: block;
  margin: 18px auto;
  border: 1px solid var(--line);
  background: #ffffff;
  max-width: 100% !important;
  height: auto !important;
}

.article-body blockquote {
  margin: 18px 0;
  padding: 14px 16px;
  border-left: 4px solid var(--brand);
  border-radius: 0 14px 14px 0;
  background: #f7fbff;
}

.article-body table {
  width: 100%;
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
}

.article-body iframe {
  max-width: 100%;
}

.article-aside {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.aside-card {
  padding: 22px;
}

.aside-card h2 {
  margin: 0 0 14px;
  font-size: 18px;
  color: var(--text);
}

.related-list {
  list-style: none;
  padding: 0;
}

.related-list li + li {
  margin-top: 12px;
}

.related-list a {
  display: inline-block;
  color: var(--text);
  font-weight: 600;
  transition: color 0.2s ease;
}

.related-list a:hover {
  color: var(--brand);
  text-decoration: none;
}

.related-list span {
  display: block;
  color: var(--text-faint);
  font-size: 13px;
}

.related-empty {
  color: var(--text-faint);
  font-size: 14px;
}

.app-footer {
  margin-top: 32px;
  background: #ffffff;
  border-top: 1px solid #e6e6e6;
  display: flex;
  justify-content: center;
}

.homeFooter {
  margin-top: 32px;
}

.footerContent {
  width: 100%;
  max-width: 1080px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  color: #999999;
  font-size: 12px;
  line-height: 1.7;
  flex-wrap: wrap;
}

.leftBox,
.rightBox {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.foot2 {
  margin-left: 25px;
}

.foot3 {
  margin-left: 12px;
}

.leftBox a,
.rightBox a {
  color: var(--brand);
}

@media (max-width: 960px) {
  .header-inner,
  .footerContent {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-left {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .header-right {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-card {
    flex-direction: column;
  }

  .hero-metrics,
  .category-grid,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-aside {
    position: static;
  }
}

@media (max-width: 640px) {
  .header-inner,
  .index-layout,
  .article-layout {
    width: min(1120px, calc(100% - 24px));
  }

  .footerContent {
    width: min(1080px, calc(100% - 24px));
  }

  .header-inner {
    padding: 12px 0;
  }

  .tool-nav {
    gap: 8px 14px;
  }

  .hero-card,
  .article-card,
  .aside-card,
  .insight-box,
  .category-card {
    padding: 22px;
    border-radius: 20px;
  }

  .article-card h1 {
    font-size: 26px;
  }

  .article-body p,
  .article-body li {
    font-size: 16px;
  }

  .leftBox,
  .rightBox {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .foot2,
  .foot3 {
    margin-left: 0;
  }
}
