:root {
  --blue: #075aa2;
  --blue-dark: #063d71;
  --orange: #f27a17;
  --green: #1a8b5b;
  --ink: #17202a;
  --muted: #5f6f7f;
  --line: #d9e4ec;
  --paper: #ffffff;
  --soft: #f4f8fb;
  --warm: #fff6ed;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 14px clamp(20px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

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

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 10px;
}

.brand span {
  font-size: 20px;
  letter-spacing: 0;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 15px;
}

.site-nav a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: var(--blue);
  border-bottom-color: var(--orange);
}

.login-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 14px;
  color: #fff;
  background: var(--green);
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.login-action:hover {
  background: #14764d;
}

.login-action--wechat {
  background: var(--blue);
}

.login-action--wechat:hover {
  background: var(--blue-dark);
}

.wechat-mark {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: var(--green);
  background: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
}

body.auth-modal-open {
  overflow: hidden;
}

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

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
}

.auth-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 36, 56, 0.58);
}

.auth-modal__dialog {
  position: relative;
  width: min(100%, 460px);
  padding: 34px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(13, 36, 56, 0.3);
}

.auth-modal__close {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 32px;
  height: 32px;
  color: var(--muted);
  background: transparent;
  border: 0;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.auth-modal__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  color: #fff;
  background: var(--green);
  border-radius: 50%;
  font-size: 20px;
  font-weight: 800;
}

.auth-modal__dialog h2 {
  margin: 0;
  color: var(--ink);
  font-size: 30px;
  line-height: 1.2;
}

.auth-modal__intro {
  margin: 10px 0 24px;
  color: var(--muted);
}

.auth-config {
  display: grid;
  gap: 14px;
}

.auth-config label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.auth-config input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

.auth-config input:focus {
  outline: 2px solid rgba(7, 90, 162, 0.2);
  border-color: var(--blue);
}

.auth-config__hint {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.auth-submit,
.auth-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border-radius: 6px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.auth-submit {
  color: #fff;
  background: var(--green);
  border: 0;
}

.auth-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

.auth-logout {
  width: 100%;
  color: var(--blue-dark);
  background: #fff;
  border: 1px solid var(--line);
}

.auth-user {
  margin: 0 0 18px;
  padding: 12px 14px;
  color: var(--green);
  background: #eef8f3;
  border: 1px solid #c6e8d7;
  border-radius: 6px;
  font-weight: 700;
}

.auth-status {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.auth-status[data-type="error"] {
  color: #b42318;
}

.auth-status[data-type="success"] {
  color: var(--green);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 44px;
  align-items: center;
  min-height: 680px;
  padding: 88px clamp(20px, 5vw, 64px) 72px;
  background:
    radial-gradient(circle at 82% 20%, rgba(242, 122, 23, 0.12), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #f3f9ff 56%, #eef7f1 100%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.split-section h2,
.community-copy h2 {
  margin: 0;
  color: var(--ink);
  line-height: 1.16;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 780px;
  font-size: clamp(38px, 6vw, 72px);
}

.hero-text {
  max-width: 710px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
}

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

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 8px;
  font-weight: 700;
}

.primary-action {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 12px 26px rgba(7, 90, 162, 0.22);
}

.secondary-action {
  color: var(--blue-dark);
  background: #fff;
  border: 1px solid var(--line);
}

.hero-panel {
  padding: 28px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(7, 90, 162, 0.12);
}

.panel-logo {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 0.68;
  margin-bottom: 22px;
  background:
    linear-gradient(90deg, rgba(7, 90, 162, 0.08), rgba(242, 122, 23, 0.08)),
    #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.panel-logo img {
  width: min(72%, 280px);
  height: auto;
  object-fit: contain;
  border-radius: 6px;
}

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

.panel-grid div,
.quick-strip div,
.service-grid article,
.product-grid article,
.community-cards article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.panel-grid div {
  padding: 18px;
}

.panel-grid strong,
.quick-strip strong,
.community-cards strong {
  display: block;
  color: var(--blue-dark);
}

.panel-grid span,
.quick-strip span,
.community-cards span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.quick-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 24px clamp(20px, 5vw, 64px);
  background: var(--blue-dark);
}

.quick-strip div {
  padding: 20px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.quick-strip strong {
  color: #fff;
}

.quick-strip span {
  color: rgba(255, 255, 255, 0.74);
}

.section {
  padding: 78px clamp(20px, 5vw, 64px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading h2,
.split-section h2,
.community-copy h2 {
  font-size: clamp(28px, 4vw, 44px);
}

.section-heading p:not(.eyebrow),
.split-section p:not(.eyebrow),
.community-copy p:not(.eyebrow) {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.service-grid,
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.service-grid article,
.product-grid article {
  padding: 24px;
}

.service-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #fff;
  background: var(--blue);
  border-radius: 8px;
  font-weight: 800;
}

.service-grid h3,
.product-grid h3 {
  margin: 18px 0 10px;
  font-size: 21px;
}

.service-grid p,
.product-grid p {
  margin: 0;
  color: var(--muted);
}

.product-section {
  background: #fff;
}

.product-grid article {
  min-height: 230px;
  background:
    linear-gradient(180deg, rgba(242, 122, 23, 0.08), transparent 42%),
    var(--paper);
}

.product-badge {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 11px;
  color: var(--orange);
  background: var(--warm);
  border: 1px solid rgba(242, 122, 23, 0.22);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.product-grid span {
  display: block;
  margin-top: 18px;
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  gap: 46px;
  align-items: start;
  background:
    linear-gradient(135deg, rgba(7, 90, 162, 0.08), rgba(26, 139, 91, 0.08)),
    var(--soft);
}

.timeline {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.timeline li {
  position: relative;
  padding: 22px 22px 22px 68px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  counter-increment: step;
}

.timeline li::before {
  content: counter(step);
  position: absolute;
  left: 22px;
  top: 22px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #fff;
  background: var(--orange);
  border-radius: 50%;
  font-weight: 800;
}

.timeline strong {
  display: block;
  color: var(--blue-dark);
  font-size: 18px;
}

.timeline span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.community-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  gap: 32px;
  align-items: center;
  background: #fff;
}

.community-cards {
  display: grid;
  gap: 14px;
}

.community-cards article {
  padding: 22px;
  border-left: 5px solid var(--blue);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px clamp(20px, 5vw, 64px);
  color: rgba(255, 255, 255, 0.78);
  background: #0d2438;
}

.footer-brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 8px;
}

.footer-brand span {
  color: #fff;
  font-weight: 800;
}

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

.icp {
  color: rgba(255, 255, 255, 0.78);
  white-space: nowrap;
}

.icp:hover {
  color: #fff;
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero,
  .split-section,
  .community-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 56px;
  }

  .service-grid,
  .product-grid,
  .quick-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .brand span {
    font-size: 18px;
  }

  .site-nav {
    gap: 16px;
  }

  .login-action {
    flex: 0 0 auto;
  }

  .hero {
    padding-top: 42px;
  }

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

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .panel-grid,
  .service-grid,
  .product-grid,
  .quick-strip {
    grid-template-columns: 1fr;
  }

  .section {
    padding-top: 56px;
    padding-bottom: 56px;
  }

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

  .auth-modal__dialog {
    padding: 28px 22px;
  }
}

