:root {
  color-scheme: dark;
  --bg: #0d0d0b;
  --bg-soft: #121210;
  --panel: #171714;
  --panel-strong: #20201c;
  --paper: #eee9dc;
  --paper-muted: #d8d1c1;
  --ink: #10100e;
  --text: #f4f1e8;
  --text-soft: #d2cfc5;
  --muted: #9b978d;
  --line: rgba(244, 241, 232, 0.14);
  --line-strong: rgba(244, 241, 232, 0.28);
  --accent: #c7b98c;
  --accent-2: #8ba18d;
  --max-width: 1180px;
  --header-height: 72px;
  --font-sans:
    "Noto Sans SC",
    "Source Han Sans SC",
    "PingFang SC",
    "Microsoft YaHei",
    "Helvetica Neue",
    Arial,
    sans-serif;
  --font-serif:
    "Songti SC",
    STSong,
    "Noto Serif SC",
    "Source Han Serif SC",
    SimSun,
    Georgia,
    "Times New Roman",
    serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(rgba(244, 241, 232, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 241, 232, 0.045) 1px, transparent 1px),
    var(--bg);
  background-size: 56px 56px, 56px 56px, auto;
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  text-size-adjust: 100%;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(13, 13, 11, 0.2), rgba(13, 13, 11, 0.92) 72%),
    linear-gradient(90deg, rgba(13, 13, 11, 0.9), rgba(13, 13, 11, 0.24) 42%, rgba(13, 13, 11, 0.9));
}

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

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

p,
h1,
h2,
h3,
h4 {
  margin: 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-height);
  padding: 0 max(20px, calc((100% - var(--max-width)) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(13, 13, 11, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  flex: 0 0 auto;
  font-size: 1.06rem;
  font-weight: 700;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

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

.nav-link {
  flex: 0 0 auto;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.88rem;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
  border-color: var(--line);
  background: rgba(244, 241, 232, 0.06);
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.78fr);
  align-items: end;
  gap: 52px;
  padding-top: 128px;
  padding-bottom: 72px;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.8rem;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero h1 {
  margin-top: 26px;
  font-family: var(--font-serif);
  font-size: 10.75rem;
  font-weight: 500;
  line-height: 0.86;
}

.hero-kicker {
  margin-top: 22px;
  color: var(--text-soft);
  font-size: 1.6rem;
  line-height: 1.35;
}

.hero-copy {
  max-width: 690px;
  margin-top: 24px;
  color: var(--text-soft);
  font-size: 1.08rem;
  line-height: 1.95;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-soft);
  background: rgba(244, 241, 232, 0.04);
  font-size: 0.9rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  background: var(--paper);
  font-size: 0.95rem;
  font-weight: 600;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.text-button:hover {
  transform: translateY(-2px);
}

.text-button.muted {
  color: var(--text);
  background: transparent;
}

.hero-visual {
  position: relative;
  overflow: hidden;
  width: min(100%, 440px);
  justify-self: end;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  aspect-ratio: 4 / 5;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-visual figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(244, 241, 232, 0.2);
  color: rgba(244, 241, 232, 0.72);
  font-size: 0.74rem;
}

.intro-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.intro-strip p {
  padding: 22px 18px;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.intro-strip p:last-child {
  border-right: 0;
}

.history-section,
.articles-section,
.books-section,
.partners-section,
.products-section,
.contact-section {
  padding-top: 112px;
}

.section-heading {
  max-width: 780px;
}

.section-heading h2 {
  margin-top: 18px;
  font-family: var(--font-serif);
  font-size: 4.6rem;
  font-weight: 500;
  line-height: 1;
}

.section-heading p:last-child {
  margin-top: 22px;
  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 1.9;
}

.timeline {
  position: relative;
  display: grid;
  gap: 0;
  max-width: 980px;
  margin-top: 56px;
  padding-left: 34px;
}

.timeline::before {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 10px;
  width: 1px;
  content: "";
  background: var(--line-strong);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 38px;
  padding: 0 0 44px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  position: absolute;
  top: 6px;
  left: -29px;
  width: 11px;
  height: 11px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  content: "";
  background: var(--bg);
  box-shadow: 0 0 0 8px rgba(199, 185, 140, 0.08);
}

.timeline time {
  color: var(--accent);
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-size: 1.1rem;
}

.timeline h3 {
  color: var(--text);
  font-size: 1.34rem;
  line-height: 1.35;
}

.timeline p {
  max-width: 620px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.8;
}

.article-list {
  margin-top: 50px;
  border-top: 1px solid var(--line-strong);
}

.article-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.item-number {
  color: var(--accent);
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-size: 1.3rem;
}

.article-card h3 {
  font-size: 1.48rem;
  line-height: 1.42;
}

.article-card p {
  max-width: 720px;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.8;
}

.article-card a,
.feature-card a,
.product-card a,
.site-footer a {
  color: var(--text);
  font-size: 0.96rem;
  white-space: nowrap;
}

.article-card a:hover,
.feature-card a:hover,
.product-card a:hover,
.site-footer a:hover {
  color: var(--accent);
}

.card-grid {
  display: grid;
  gap: 18px;
  margin-top: 48px;
}

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

.feature-card {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(23, 23, 20, 0.88);
}

.feature-card.light-card {
  color: var(--ink);
  border-color: rgba(238, 233, 220, 0.62);
  background: var(--paper);
}

.card-label {
  color: var(--accent);
  font-size: 0.78rem;
}

.light-card .card-label {
  color: #6f6444;
}

.feature-card h3 {
  font-size: 1.45rem;
  line-height: 1.42;
}

.feature-card p:not(.card-label) {
  color: var(--muted);
  line-height: 1.78;
}

.feature-card.light-card p:not(.card-label) {
  color: #4d493f;
}

.feature-card.light-card a {
  color: var(--ink);
}

.product-layout {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 52px;
}

.product-group {
  display: flex;
  min-height: 430px;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(244, 241, 232, 0.18);
  border-radius: 8px;
  background: rgba(17, 17, 15, 0.9);
}

.product-group.featured {
  border-color: rgba(244, 241, 232, 0.22);
  background: rgba(17, 17, 15, 0.9);
}

.product-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.product-head span {
  color: var(--accent);
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-size: 1.25rem;
}

.product-head h3 {
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: right;
}

.product-card {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 18px;
  padding: 18px 0 0;
}

.product-card + .product-card {
  flex: 1;
  border-top: 1px solid var(--line);
}

.product-card h4 {
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.45;
}

.product-card p {
  color: rgba(210, 207, 197, 0.78);
  font-size: 0.9rem;
  line-height: 1.78;
}

.product-position {
  color: rgba(244, 241, 232, 0.84) !important;
  font-weight: 500;
}

.product-description {
  min-height: 132px;
}

.product-group:last-child .product-description {
  padding-top: 42px;
}

.product-card a {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--text-soft);
}

.contact-section {
  padding-bottom: 78px;
}

.contact-panel {
  width: 100%;
  margin-left: 0;
  padding: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(18, 18, 16, 0.94);
}

.contact-panel .section-heading {
  max-width: 100%;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.contact-panel .section-heading h2 {
  margin-top: 14px;
  font-size: clamp(2.6rem, 6vw, 5rem);
}

.contact-panel .section-heading p:last-child {
  max-width: 760px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
}

.contact-grid p {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 86px;
  padding: 20px 12px;
  border-right: 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.contact-grid p:last-child {
  border-bottom: 0;
}

.contact-grid span {
  color: var(--muted);
  font-size: 0.85rem;
}

.contact-grid strong {
  color: var(--text);
  font-family: var(--font-sans);
  font-size: clamp(1.18rem, 2.2vw, 1.55rem);
  font-weight: 500;
  line-height: 1.35;
}

.contact-clickable,
.contact-value-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  cursor: pointer;
}

.contact-clickable::after,
.contact-value-link::after {
  margin-left: 12px;
  padding: 3px 8px;
  border: 1px solid rgba(244, 241, 232, 0.16);
  border-radius: 999px;
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
}

.contact-clickable::after {
  content: "点击关注";
}

.contact-value-link::after {
  content: "点击跳转";
}

.contact-clickable small,
.contact-value-link small {
  display: none;
}

.contact-value-link strong {
  transition: color 0.2s ease;
}

.contact-value-link:hover strong,
[data-qr-open]:hover .contact-clickable {
  color: var(--paper-muted);
}

.wechat-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.wechat-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 8px 0 0;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.wechat-item > span {
  padding-left: 14px;
}

.wechat-item button {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-soft);
  background: rgba(244, 241, 232, 0.06);
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}

.wechat-item button:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.wechat-item button.is-copied {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--paper);
}

.copy-toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 200;
  max-width: calc(100vw - 32px);
  padding: 10px 16px;
  border: 1px solid rgba(244, 241, 232, 0.42);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(238, 233, 220, 0.96);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.copy-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.copy-toast.is-error {
  color: var(--text);
  background: rgba(23, 23, 20, 0.96);
  border-color: rgba(199, 185, 140, 0.48);
}

.qr-modal {
  position: fixed;
  inset: 0;
  z-index: 240;
  display: grid;
  place-items: center;
  padding: 22px;
}

.qr-modal[hidden] {
  display: none;
}

.qr-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.72);
  cursor: pointer;
}

.qr-card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  padding: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--text);
  background: rgba(23, 23, 20, 0.98);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}

.qr-card p {
  margin: 0;
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.qr-card h3 {
  margin: 8px 0 18px;
  font-size: 1.55rem;
  font-weight: 520;
}

.qr-card img {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  border: 12px solid var(--paper);
  background: var(--paper);
}

.qr-card span {
  display: block;
  margin-top: 16px;
  color: var(--text-soft);
  font-size: 0.95rem;
  text-align: center;
}

.qr-close {
  position: absolute;
  top: 14px;
  right: 14px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-soft);
  background: rgba(244, 241, 232, 0.04);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

.qr-close:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

[data-contact-row="wechat"].is-highlighted {
  background: rgba(199, 185, 140, 0.08);
}

[data-contact-row="wechat"].is-highlighted .wechat-item {
  border-color: rgba(199, 185, 140, 0.7);
}

.contact-panel .contact-actions {
  margin-top: 28px;
  padding-left: 162px;
}

.site-footer {
  display: flex;
  width: min(100% - 40px, var(--max-width));
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto;
  padding: 30px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.edit-dock {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(520px, calc(100vw - 28px));
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(13, 13, 11, 0.9);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(18px);
}

.edit-dock p {
  color: var(--text-soft);
  font-size: 0.78rem;
  line-height: 1.5;
}

.edit-dock button,
.recovery-panel button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(244, 241, 232, 0.08);
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  white-space: nowrap;
}

.edit-dock button:hover,
.recovery-panel button:hover {
  border-color: var(--line-strong);
  background: rgba(244, 241, 232, 0.14);
}

.recovery-panel {
  position: fixed;
  top: 88px;
  right: 18px;
  bottom: 78px;
  z-index: 42;
  display: flex;
  width: min(420px, calc(100vw - 28px));
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(13, 13, 11, 0.95);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(18px);
}

.recovery-panel[hidden] {
  display: none;
}

.recovery-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.recovery-panel-head p {
  color: var(--accent);
  font-size: 0.72rem;
}

.recovery-panel-head h2 {
  margin-top: 6px;
  font-size: 1.25rem;
}

.recovery-help,
.recovery-selected {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.6;
}

.recovery-selected {
  padding: 10px 12px;
  border: 1px dashed rgba(199, 185, 140, 0.5);
  border-radius: 8px;
}

.recovery-list {
  display: grid;
  gap: 8px;
  overflow-y: auto;
  padding-right: 4px;
}

.recovery-version {
  margin: 12px 0 2px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--accent);
  font-size: 0.86rem;
}

.recovery-version:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.recovery-item {
  width: 100%;
  min-height: auto;
  padding: 10px 12px !important;
  border-radius: 8px !important;
  color: var(--text-soft) !important;
  line-height: 1.6;
  text-align: left;
  white-space: normal !important;
}

.recovery-item small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.72rem;
}

.click-editable.is-selected-restore {
  outline: 2px dashed var(--accent);
  outline-offset: 4px;
}

.click-editable {
  border-radius: 4px;
  cursor: pointer;
}

.click-editable::selection {
  color: var(--ink);
  background: var(--accent);
}

.click-editable:hover {
  outline: 1px dashed rgba(199, 185, 140, 0.7);
  outline-offset: 3px;
}

.click-editable:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.click-editable.is-editing {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  cursor: text;
}

.hero-visual {
  cursor: pointer;
}

.hero-visual:hover {
  border-color: rgba(199, 185, 140, 0.68);
}

.hero-visual::after {
  position: absolute;
  inset: auto 16px 62px 16px;
  padding: 10px 12px;
  border: 1px solid rgba(238, 233, 220, 0.22);
  border-radius: 999px;
  color: var(--text);
  content: "点主图换图片";
  background: rgba(13, 13, 11, 0.72);
  font-size: 0.82rem;
  text-align: center;
  opacity: 0;
  transition: opacity 180ms ease;
}

.hero-visual:hover::after {
  opacity: 1;
}

.edit-disabled .edit-dock,
.edit-disabled .hero-visual::after {
  display: none;
}

.edit-disabled .click-editable {
  cursor: inherit;
}

.edit-disabled .click-editable:hover {
  outline: 0;
}

@media (max-width: 1040px) {
  .hero {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 44px;
  }

  .hero h1 {
    font-size: 8rem;
  }

  .hero-visual {
    width: min(100%, 480px);
    justify-self: start;
  }

  .card-grid.three,
  .product-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-group {
    min-height: 360px;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 64px;
  }

  body {
    background-size: 42px 42px, 42px 42px, auto;
  }

  .site-header {
    align-items: center;
    gap: 14px;
    padding: 0 14px;
  }

  .brand {
    font-size: 1rem;
  }

  .site-nav {
    min-width: 0;
    flex: 1;
    justify-content: flex-start;
  }

  .nav-link {
    padding: 9px 10px;
    font-size: 0.84rem;
  }

  .section {
    width: min(100% - 28px, var(--max-width));
  }

  .hero {
    gap: 28px;
    padding-top: 104px;
    padding-bottom: 24px;
  }

  .hero h1 {
    margin-top: 20px;
    font-size: 6.1rem;
  }

  .hero-kicker {
    font-size: 1.28rem;
  }

  .hero-copy {
    font-size: 1rem;
    line-height: 1.85;
  }

  .tag-list {
    gap: 8px;
  }

  .tag-list span {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 0.84rem;
  }

  .hero-actions,
  .contact-actions {
    gap: 10px;
  }

  .text-button {
    min-height: 42px;
    padding: 0 15px;
    font-size: 0.9rem;
  }

  .hero-visual figcaption {
    left: 14px;
    right: 14px;
    bottom: 14px;
    font-size: 0.7rem;
  }

  .hero-visual {
    width: min(100%, 390px);
  }

  .intro-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .intro-strip p:nth-child(2) {
    border-right: 0;
  }

  .intro-strip p:nth-child(-n + 2) {
    border-bottom: 0;
  }

  .history-section,
  .articles-section,
  .books-section,
  .partners-section,
  .products-section,
  .contact-section {
    padding-top: 82px;
  }

  .history-section {
    padding-top: 46px;
  }

  .section-heading h2 {
    font-size: 3.25rem;
  }

  .section-heading p:last-child {
    font-size: 0.98rem;
    line-height: 1.85;
  }

  .timeline {
    margin-top: 42px;
    padding-left: 30px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-bottom: 38px;
  }

  .timeline-item::before {
    left: -25px;
  }

  .timeline h3 {
    font-size: 1.18rem;
  }

  .article-card {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 28px 0;
  }

  .article-card h3 {
    font-size: 1.22rem;
  }

  .article-card a {
    width: max-content;
  }

  .card-grid.three,
  .product-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .product-group {
    min-height: auto;
  }

  .feature-card {
    padding: 24px;
  }

  .contact-panel {
    padding: 28px 20px;
  }

  .contact-grid p {
    grid-template-columns: 1fr;
    gap: 10px;
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .contact-grid p:last-child {
    border-bottom: 0;
  }

  .contact-panel .contact-actions {
    padding-left: 0;
  }
}

@media (max-width: 420px) {
  .hero {
    padding-bottom: 18px;
  }

  .hero h1 {
    font-size: 4.8rem;
  }

  .history-section {
    padding-top: 38px;
  }

  .section-heading h2 {
    font-size: 2.6rem;
  }

  .hero-visual {
    width: min(100%, 330px);
    aspect-ratio: 3 / 4;
  }

  .intro-strip p {
    padding: 18px 14px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .edit-dock {
    right: 14px;
    bottom: 14px;
    left: 14px;
    flex-wrap: wrap;
    border-radius: 8px;
  }

  .recovery-panel {
    top: 76px;
    right: 14px;
    bottom: 92px;
    left: 14px;
    width: auto;
  }
}
