:root {
  --bg: #f6f8f7;
  --surface: #ffffff;
  --ink: #111816;
  --muted: #5d6a66;
  --line: #dfe7e3;
  --green: #10946f;
  --green-dark: #075b48;
  --cyan: #1e9fb8;
  --coral: #e9573f;
  --yellow: #f2bb3d;
  --charcoal: #16211e;
  --shadow: 0 18px 48px rgba(17, 24, 22, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.68;
  letter-spacing: 0;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  min-height: 74px;
  padding: 12px max(20px, calc((100vw - 1180px) / 2));
  background: rgba(246, 248, 247, 0.94);
  border-bottom: 1px solid rgba(223, 231, 227, 0.92);
  backdrop-filter: blur(14px);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.brand img,
.footer-brand img {
  border-radius: 8px;
}

.brand span {
  display: grid;
  line-height: 1.15;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.nav a {
  padding: 8px 10px;
  color: var(--muted);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--green-dark);
  background: #e6f5ef;
}

.top-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 900;
  white-space: nowrap;
}

.top-action,
.button.primary {
  color: #ffffff;
  background: var(--green);
  box-shadow: 0 12px 26px rgba(16, 148, 111, 0.24);
}

.top-action:hover,
.button.primary:hover {
  background: var(--green-dark);
}

.button.ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.38);
}

.button.light {
  color: var(--green-dark);
  background: #eef8f4;
  border: 1px solid #cce9de;
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: min(760px, 78svh);
  padding: 70px max(24px, calc((100vw - 1180px) / 2)) 78px;
  color: #ffffff;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("/assets/images/laowang-hero.png");
  background-position: center right;
  background-size: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 22, 18, 0.9) 0%, rgba(10, 22, 18, 0.68) 45%, rgba(10, 22, 18, 0.16) 100%),
    linear-gradient(0deg, rgba(10, 22, 18, 0.22), rgba(10, 22, 18, 0.08));
}

.hero-copy {
  width: min(660px, 100%);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--yellow);
  font-size: 14px;
  font-weight: 950;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.18;
}

h1 {
  max-width: 760px;
  font-size: clamp(38px, 7vw, 72px);
  letter-spacing: 0;
}

h2 {
  font-size: clamp(26px, 4vw, 42px);
}

h3 {
  font-size: 20px;
}

.lead {
  max-width: 660px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.hero-tags li {
  padding: 7px 10px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
}

.page-hero {
  padding: 72px max(24px, calc((100vw - 1040px) / 2)) 54px;
  color: #ffffff;
  background:
    linear-gradient(110deg, rgba(10, 22, 18, 0.95), rgba(7, 91, 72, 0.86)),
    url("/assets/images/laowang-hero.png") center right / cover;
}

.page-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.content-section {
  padding: 70px max(24px, calc((100vw - 1180px) / 2));
}

.content-section.compact {
  padding-top: 44px;
}

.muted-section {
  background: #edf3f0;
}

.section-title {
  display: grid;
  gap: 8px;
  max-width: 760px;
  margin-bottom: 28px;
}

.section-title .eyebrow,
.download-card .eyebrow,
.info-table .eyebrow {
  color: var(--coral);
}

.section-title p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.download-grid,
.feature-grid,
.link-grid,
.article-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.download-card,
.feature-card,
.link-card,
.article-card,
.notice-box,
.info-table,
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 32px rgba(17, 24, 22, 0.06);
}

.download-card {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.platform-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #ffffff;
  background: var(--charcoal);
  border-radius: 8px;
  font-size: 18px;
  font-weight: 950;
}

.download-card:nth-child(2) .platform-icon {
  background: var(--green);
}

.download-card:nth-child(3) .platform-icon {
  background: var(--cyan);
}

.download-card:nth-child(4) .platform-icon {
  background: var(--coral);
}

.download-card p,
.feature-card p,
.article-card p,
.notice-box p,
.contact-card p {
  margin: 0;
  color: var(--muted);
}

.meta-list {
  display: grid;
  gap: 6px;
  margin: 0;
}

.meta-list div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
}

.meta-list dt {
  color: #40504b;
  font-weight: 850;
}

.meta-list dd {
  margin: 0;
  text-align: right;
}

.download-card .button {
  width: 100%;
  margin-top: 2px;
}

.feature-card,
.article-card,
.contact-card {
  padding: 22px;
}

.feature-card {
  border-top: 4px solid var(--green);
}

.feature-card:nth-child(2) {
  border-top-color: var(--cyan);
}

.feature-card:nth-child(3) {
  border-top-color: var(--coral);
}

.feature-card:nth-child(4) {
  border-top-color: var(--yellow);
}

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

.article-card {
  display: grid;
  gap: 12px;
}

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

.link-card {
  display: grid;
  gap: 8px;
  min-height: 148px;
  padding: 20px;
}

.link-card strong {
  color: var(--green-dark);
  font-size: 18px;
}

.link-card span {
  color: var(--muted);
}

.info-table {
  overflow: hidden;
}

.info-table table {
  width: 100%;
  border-collapse: collapse;
}

.info-table th,
.info-table td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.info-table th {
  width: 28%;
  color: #40504b;
  background: #f4faf7;
  font-weight: 900;
}

.info-table tr:last-child th,
.info-table tr:last-child td {
  border-bottom: 0;
}

.notice-box {
  padding: 24px;
  border-left: 5px solid var(--coral);
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-list details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 32px rgba(17, 24, 22, 0.05);
}

.faq-list summary {
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 900;
}

.faq-list p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--muted);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 18px;
  padding: 0;
  color: rgba(255, 255, 255, 0.78);
  list-style: none;
  font-size: 14px;
  font-weight: 800;
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 7px;
  color: rgba(255, 255, 255, 0.44);
}

.site-footer {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 30px;
  padding: 42px max(24px, calc((100vw - 1180px) / 2));
  color: rgba(255, 255, 255, 0.78);
  background: var(--charcoal);
}

.site-footer p {
  margin: 12px 0 0;
}

.footer-brand {
  color: #ffffff;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.fine-print {
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, 0.54);
  font-size: 13px;
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    order: 3;
  }

  .hero,
  .page-hero {
    padding-left: 22px;
    padding-right: 22px;
  }

  .hero::after {
    background:
      linear-gradient(90deg, rgba(10, 22, 18, 0.92) 0%, rgba(10, 22, 18, 0.72) 100%),
      linear-gradient(0deg, rgba(10, 22, 18, 0.18), rgba(10, 22, 18, 0.18));
  }

  .download-grid,
  .feature-grid,
  .article-grid,
  .link-grid,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  body {
    font-size: 15px;
  }

  .site-header {
    gap: 12px;
    min-height: 68px;
    padding: 10px 16px;
  }

  .brand small,
  .top-action {
    display: none;
  }

  .hero {
    min-height: 72svh;
    padding-top: 46px;
    padding-bottom: 54px;
  }

  h1 {
    font-size: 38px;
  }

  .lead,
  .page-hero p {
    font-size: 16px;
  }

  .content-section {
    padding: 48px 18px;
  }

  .download-grid,
  .feature-grid,
  .article-grid,
  .link-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding: 34px 18px;
  }

  .footer-nav {
    justify-content: flex-start;
  }
}
