/* 文山索愿企业门户 · H5 优先 */
:root {
  --bg: #081018;
  --bg-2: #0e1a28;
  --card: #121c2c;
  --line: rgba(212, 181, 106, 0.22);
  --text: #f4efe4;
  --muted: #b7c0cc;
  --gold: #d4b56a;
  --gold-2: #f0d78c;
  --teal: #2a9d8f;
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --serif: "Noto Serif SC", "Songti SC", serif;
  --safe: env(safe-area-inset-bottom, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #f4f6f8;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: #f4f6f8;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--gold);
}

.page {
  max-width: 720px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 0 20px calc(32px + var(--safe));
  background:
    radial-gradient(ellipse 90% 50% at 50% -8%, rgba(212, 181, 106, 0.16), transparent 58%),
    linear-gradient(180deg, #0a1522 0%, var(--bg) 38%);
  box-shadow: 0 0 0 1px rgba(8, 16, 24, 0.08), 0 18px 50px rgba(8, 16, 24, 0.12);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 0 8px;
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(180deg, #081018 70%, transparent);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: block;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.brand-text {
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-action {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 4px;
  border: 0;
  border-radius: 0;
  color: #fff;
  text-decoration: none;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: none;
}

.topbar-action:hover {
  color: #fff;
  background: none;
}

.ai-split {
  position: relative;
  height: 8px;
  margin: 0;
}

.ai-split::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(56, 189, 248, 0.15) 12%,
    rgba(125, 211, 252, 0.7) 50%,
    rgba(56, 189, 248, 0.15) 88%,
    transparent 100%
  );
}

.ai-split i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  border: 1px solid #7dd3fc;
  background: #081018;
  transform: translate(-50%, -50%) rotate(45deg);
  box-shadow: 0 0 8px rgba(125, 211, 252, 0.55);
}

.ai-split::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  top: 50%;
  height: 5px;
  transform: translateY(-50%);
  background:
    radial-gradient(circle at 0 50%, #7dd3fc 1.2px, transparent 1.4px),
    radial-gradient(circle at 100% 50%, #7dd3fc 1.2px, transparent 1.4px);
  pointer-events: none;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 0;
  padding: 16px 0 8px;
  text-align: center;
}

.hero-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
}

.hero-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 5.2vw, 2.15rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--gold-2);
  white-space: nowrap;
}

.hero-en {
  margin: 10px 0 0;
  color: #8ec5e8;
  font-size: clamp(0.68rem, 2.4vw, 0.82rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1.5;
}

.hero-slogan {
  margin: 10px 0 0;
  font-size: 0.95rem;
  color: #e8dcc0;
}

.hero-slogan .dot {
  margin: 0 0.4em;
  color: var(--gold);
}

.hero-lead {
  margin: 16px auto 0;
  max-width: 34em;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary {
  color: #1a1408;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
}

.btn-ghost {
  color: var(--gold-2);
  border-color: var(--line);
  background: rgba(212, 181, 106, 0.08);
}

.btn-block {
  width: 100%;
  margin-top: 4px;
  color: #f4efe4;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.product--nongli .btn-block {
  background: rgba(212, 181, 106, 0.16);
  border-color: rgba(212, 181, 106, 0.35);
  color: var(--gold-2);
}

.product--changhu .btn-block,
.product--pinggu .btn-block {
  background: rgba(42, 157, 143, 0.2);
  border-color: rgba(42, 157, 143, 0.4);
  color: #9ee7dc;
}

.product-actions {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.product-actions .btn-block,
.product--nongli .product-actions .btn-block,
.product--changhu .product-actions .btn-block,
.product--pinggu .product-actions .btn-block,
.product--bangong .product-actions .btn-block,
.product--license .product-actions .btn-block {
  margin-top: 0;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.product-actions .btn-block:hover,
.product-actions .btn-block:focus-visible {
  border-color: rgba(125, 211, 252, 0.55);
  color: #7dd3fc;
  background: transparent;
  outline: none;
}

.btn-disabled {
  color: var(--muted);
  background: transparent;
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.16);
  cursor: default;
}

.pills {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin: 20px 0 0;
}

.pill {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 10px 6px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: none;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.pill:hover,
.pill:focus-visible {
  border-color: rgba(125, 211, 252, 0.55);
  box-shadow: none;
  outline: none;
}

.pill--soon {
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
}

.soon-mask {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(8, 16, 24, 0.62);
}

.soon-mask[hidden] {
  display: none;
}

.soon-dialog {
  width: min(92vw, 360px);
  padding: 24px 22px 20px;
  border-radius: 16px;
  background: #121c2c;
  border: 1px solid rgba(125, 211, 252, 0.28);
  text-align: center;
}

.soon-dialog p {
  margin: 0 0 18px;
  color: #f4efe4;
  font-size: 0.95rem;
  line-height: 1.6;
}

.soon-ok {
  min-height: 40px;
  padding: 0 22px;
  border-radius: 10px;
  border: 1px solid rgba(125, 211, 252, 0.4);
  background: rgba(125, 211, 252, 0.12);
  color: #7dd3fc;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.pill strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 5px 7px;
  border-radius: 8px;
  font-size: clamp(0.62rem, 0.95vw, 0.78rem);
  line-height: 1.35;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  color: #fff;
  background: transparent;
}

.pill:hover strong,
.pill:focus-visible strong {
  color: #7dd3fc;
  background: transparent;
}

.block {
  margin-top: 36px;
}

.block-head h2 {
  margin: 0;
  font-size: 1.35rem;
}

.block-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.eyebrow {
  margin: 6px 0 0 !important;
  color: var(--gold) !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.product-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.product {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  padding: 18px 16px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.07);
  scroll-margin-top: 56px;
}

.product--nongli,
.product--changhu,
.product--pinggu,
.product--bangong,
.product--license {
  grid-template-columns: 40px 1fr;
}

.product-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
}

.product--nongli .product-icon,
.product--changhu .product-icon,
.product--pinggu .product-icon,
.product--bangong .product-icon,
.product--license .product-icon {
  align-self: stretch;
  width: 40px;
  height: auto;
  min-height: 128px;
  padding: 10px 0;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  writing-mode: vertical-rl;
  text-orientation: upright;
}

.product--nongli .product-icon {
  color: #1a1408;
  background: linear-gradient(180deg, #f0d78c, #c9a24c);
}

.product--changhu .product-icon {
  color: #06241f;
  background: linear-gradient(180deg, #7dcdc2, var(--teal));
}

.product--pinggu .product-icon {
  color: #fff;
  background: #3d4f6a;
}

.product--bangong .product-icon {
  color: #082018;
  background: linear-gradient(180deg, #9ae6b4, #38a169);
}

.product--license .product-icon {
  color: #1a1408;
  background: linear-gradient(180deg, #f0d78c, #c9a24c);
}

.product--mingxiang .product-icon {
  color: #fff;
  background: #4c5d8a;
}

.product-tag {
  margin: 0 0 4px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.product h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  text-align: center;
}

.product-body > p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.86rem;
}

.product-body h3 + p {
  text-indent: 2em;
}

.product-price {
  margin: 0 0 12px;
  color: var(--gold-2);
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
  text-indent: 0;
}

.product-price span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 400;
  font-size: 0.78rem;
}

.about {
  margin-top: 12px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(7.2em, 22%) 22px 1fr;
  gap: 0;
  align-items: stretch;
}

.about-rail {
  position: relative;
}

.about-rail::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 22%;
  bottom: 22%;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(
    180deg,
    transparent,
    rgba(125, 211, 252, 0.75) 50%,
    transparent
  );
}

.about-rail i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border: 1px solid #7dd3fc;
  background: #081018;
  transform: translate(-50%, -50%) rotate(45deg);
  box-shadow: 0 0 10px rgba(125, 211, 252, 0.5);
}

.about-box {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 16px;
}

.about-box::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.06) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 85%);
  pointer-events: none;
}

.about-box::after {
  content: "";
  position: absolute;
  inset: 8px;
  z-index: 0;
  pointer-events: none;
  border: 1px solid rgba(56, 189, 248, 0.12);
  border-radius: 10px;
}

.about-box--title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 22px 14px;
  text-align: center;
  color: #eaf6ff;
  background:
    radial-gradient(ellipse 80% 70% at 50% 0%, rgba(56, 189, 248, 0.22), transparent 62%),
    linear-gradient(180deg, #10263a 0%, #0b1522 100%);
  border: 1px solid rgba(56, 189, 248, 0.38);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.12);
}

.about-box--title > * {
  position: relative;
  z-index: 1;
}

.about-chip {
  margin: 0 0 6px;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: #7dd3fc;
}

.about-rule {
  width: 2px;
  height: 2.4em;
  border-radius: 2px;
  background: linear-gradient(180deg, #7dd3fc, var(--gold));
  box-shadow: 0 0 10px rgba(125, 211, 252, 0.55);
  flex-shrink: 0;
}

.about-box--title h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.4;
  color: #f3fbff;
}

.about-box--copy {
  padding: 20px 18px;
  display: flex;
  align-items: center;
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, rgba(45, 212, 191, 0.1), transparent 55%),
    linear-gradient(165deg, #0d1c2c 0%, #0a141f 100%);
  border: 1px solid rgba(45, 212, 191, 0.28);
  box-shadow: 0 0 20px rgba(45, 212, 191, 0.08);
}

.about-box--copy p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #d7e8f2;
  font-size: 0.92rem;
  line-height: 1.9;
  letter-spacing: 0.02em;
  text-indent: 2em;
}

.about-note {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(212, 181, 106, 0.08);
  border: 1px solid var(--line);
  font-size: 0.82rem;
  color: #d7cbae !important;
}

.site-footer {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  scroll-margin-top: 56px;
}

.footer-top h2 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 600;
}

.footer-contact {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 36em;
}

.footer-contact li {
  display: grid;
  grid-template-columns: 2.5em 1fr;
  gap: 10px;
  margin: 0;
  color: #d7e8f2;
  font-size: 0.86rem;
  line-height: 1.55;
  align-items: baseline;
}

.footer-contact span {
  color: #8b97a8;
  font-size: 0.78rem;
}

.footer-contact a {
  color: #d7e8f2;
  text-decoration: none;
}

.footer-contact a:hover {
  color: #7dd3fc;
}

.footer-legal {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 0.78rem;
  color: #8b97a8;
}

.footer-legal p {
  margin: 0 0 4px;
}

.footer-legal a {
  color: #8b97a8;
  text-decoration: none;
}

.footer-legal a:hover {
  color: #c5d0dc;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.legal-doc {
  padding: 8px 0 28px;
}

.legal-doc h1 {
  margin: 0 0 8px;
  font-size: 1.32rem;
  font-weight: 700;
  text-align: center;
  color: var(--text);
}

.legal-updated {
  margin: 0 0 24px;
  text-align: center;
  text-indent: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.legal-doc h2 {
  margin: 22px 0 10px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
}

.legal-doc p {
  margin: 0 0 12px;
  color: var(--muted);
  text-indent: 2em;
  font-size: 0.92rem;
}

.legal-doc ul {
  margin: 0 0 12px;
  padding: 0 0 0 2.2em;
  color: var(--muted);
  font-size: 0.92rem;
}

.legal-doc li {
  margin: 0 0 6px;
}

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
    justify-content: center;
  }

  .hero-actions .btn {
    min-width: 168px;
  }
}

@media (max-width: 760px) {
  html,
  body {
    background: var(--bg);
  }

  .page {
    box-shadow: none;
  }
}

@media (min-width: 960px) {
  .page {
    max-width: 1080px;
    padding: 0 40px calc(48px + var(--safe));
  }

  .hero {
    padding: 20px 0 8px;
  }

  .hero-title {
    font-size: 2.15rem;
  }

  .product-list {
    grid-template-columns: 1fr 1fr;
  }

  .product--mingxiang {
    grid-column: 1 / -1;
  }

  .about-grid {
    grid-template-columns: 200px 28px 1fr;
    gap: 0;
  }

  .about-box--title {
    padding: 28px 18px;
  }

  .about-box--title h2 {
    font-size: 1.28rem;
  }

  .about-box--copy {
    padding: 28px 32px;
  }

  .about-box--copy p {
    font-size: 1rem;
  }
}
