body.mode-software {
  overflow: auto;
  overflow-x: hidden;
  background: #f5f7fa;
  color: #1f2937;
}

body.mode-software .site-page {
  display: block;
}

#recipe-entry[hidden],
#software-page[hidden] {
  display: none !important;
}

.site-page {
  min-height: 100vh;
  min-height: 100dvh;
  background: #f5f7fa;
  color: #1f2937;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.site-page *,
.site-page *::before,
.site-page *::after {
  box-sizing: border-box;
}

.site-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 0 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #e5e7eb;
  backdrop-filter: blur(8px);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.site-brand__mark {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1d4ed8, #2563eb 55%, #38bdf8);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.04em;
}

.site-brand__text strong {
  display: block;
  font-size: 15px;
  color: #111827;
  line-height: 1.25;
}

.site-brand__text span {
  display: block;
  font-size: 11px;
  color: #6b7280;
  line-height: 1.3;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 18px;
}

.site-nav a {
  color: #374151;
  text-decoration: none;
  font-size: 13px;
  white-space: nowrap;
}

.site-nav a.is-active {
  color: #1d4ed8;
  font-weight: 600;
}

.site-hero {
  background: linear-gradient(135deg, #0f3d7a 0%, #1d4ed8 48%, #2563eb 100%);
  color: #fff;
  padding: 42px 0 48px;
}

.site-hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
}

.site-hero__tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 12px;
}

.site-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(24px, 5vw, 34px);
  line-height: 1.25;
  font-weight: 700;
}

.site-hero p {
  margin: 0;
  max-width: 640px;
  font-size: 14px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.9);
}

.site-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.site-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid transparent;
}

.site-btn--primary {
  background: #fff;
  color: #1d4ed8;
  font-weight: 600;
}

.site-btn--ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.site-hero__panel {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 18px;
}

.site-hero__panel h2 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
}

.site-hero__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-hero__list li {
  position: relative;
  padding: 8px 0 8px 14px;
  font-size: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.site-hero__list li:first-child {
  border-top: 0;
}

.site-hero__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #93c5fd;
}

.site-stats {
  margin-top: -22px;
  position: relative;
  z-index: 2;
  padding-bottom: 8px;
}

.site-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.site-stat {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.site-stat strong {
  display: block;
  font-size: 22px;
  color: #1d4ed8;
  line-height: 1.2;
}

.site-stat span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #6b7280;
}

.site-section {
  padding: 34px 0;
}

.site-section--white {
  background: #fff;
}

.site-section__head {
  margin-bottom: 20px;
}

.site-section__head h2 {
  margin: 0 0 8px;
  font-size: 22px;
  color: #111827;
}

.site-section__head p {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
}

.site-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.site-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 18px 16px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.site-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #1d4ed8;
  background: #eff6ff;
  margin-bottom: 12px;
}

.site-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: #111827;
}

.site-card p {
  margin: 0;
  font-size: 13px;
  color: #4b5563;
  line-height: 1.75;
}

.site-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.site-doc {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px 18px;
}

.site-doc h3 {
  margin: 0 0 12px;
  font-size: 17px;
  color: #111827;
}

.site-doc p {
  margin: 0 0 10px;
  font-size: 13px;
  color: #374151;
  line-height: 1.85;
  text-align: justify;
}

.site-doc p:last-child {
  margin-bottom: 0;
}

.site-sidebox {
  background: linear-gradient(180deg, #eff6ff, #fff);
  border: 1px solid #dbeafe;
  border-radius: 12px;
  padding: 18px;
}

.site-sidebox h3 {
  margin: 0 0 12px;
  font-size: 15px;
  color: #1e3a8a;
}

.site-sidebox ul {
  margin: 0;
  padding-left: 18px;
  color: #374151;
  font-size: 13px;
  line-height: 1.85;
}

.site-news {
  display: grid;
  gap: 10px;
}

.site-news__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px 16px;
}

.site-news__date {
  flex: 0 0 auto;
  min-width: 52px;
  text-align: center;
  padding: 6px 8px;
  border-radius: 8px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.site-news__body h3 {
  margin: 0 0 4px;
  font-size: 15px;
  color: #111827;
}

.site-news__body p {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
}

.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 28px 0 18px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 20px;
}

.site-footer h4 {
  margin: 0 0 10px;
  font-size: 14px;
  color: #fff;
}

.site-footer p,
.site-footer li {
  margin: 0;
  font-size: 12px;
  line-height: 1.8;
  color: #94a3b8;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__bottom {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  text-align: center;
  font-size: 12px;
  color: #64748b;
}

@media (max-width: 860px) {
  .site-hero__grid,
  .site-split,
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .site-stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-cards {
    grid-template-columns: 1fr;
  }

  .site-nav {
    display: none;
  }
}
