:root {
  --ink: #251b47;
  --muted: #70698d;
  --line: #e0daf2;
  --paper: #ffffff;
  --soft: #f5f2ff;
  --purple: #6f4ddb;
  --purple-dark: #45258f;
  --deep: #2b1958;
  --shadow: 0 18px 46px rgba(67, 41, 143, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; color: var(--ink); background: #f8f7ff; font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif; }
.guide-shell { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }

.guide-header { position: sticky; top: 0; z-index: 5; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px); }
.guide-header-content { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.guide-brand { color: var(--ink); font-size: 20px; font-weight: 850; letter-spacing: -.04em; text-decoration: none; }
.guide-brand::before { display: inline-grid; width: 31px; height: 31px; margin-right: 9px; place-items: center; border-radius: 9px; color: #fff; background: linear-gradient(135deg, #8769e8, #5230bb); box-shadow: 0 7px 16px rgba(86, 51, 191, .22); content: "A"; font-size: 15px; font-weight: 900; letter-spacing: 0; vertical-align: -2px; }
.guide-nav { display: flex; align-items: center; gap: 28px; }
.guide-nav a { color: #5e5780; font-size: 14px; font-weight: 750; text-decoration: none; transition: color .16s ease; }
.guide-nav a:hover, .guide-nav a:focus-visible { outline: none; color: var(--purple-dark); }

main { padding: 46px 0 64px; }
.guide-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .44fr); gap: 28px; align-items: end; padding: 42px; border: 1px solid #dcd4f1; border-radius: 22px; background: linear-gradient(135deg, #f0edff 0%, #fbfaff 64%, #eee9ff 100%); box-shadow: var(--shadow); }
.guide-eyebrow { margin: 0; color: var(--purple); font-size: 12px; font-weight: 850; letter-spacing: .09em; }
.intro-copy h1, .section-title h2, .contact-panel h2 { margin: 8px 0 0; color: #2e2058; letter-spacing: -.045em; }
.intro-copy h1 { font-size: clamp(30px, 4vw, 42px); }
.intro-copy > p:last-child { max-width: 650px; margin: 16px 0 0; color: #5f587d; font-size: 16px; line-height: 1.8; }
.intro-note { display: grid; gap: 8px; padding: 22px; border: 1px solid rgba(211, 201, 239, .95); border-radius: 15px; background: rgba(255, 255, 255, .78); color: #696184; line-height: 1.7; }
.intro-note strong { color: #493487; font-size: 14px; }
.intro-note span { font-size: 14px; }

.services-panel, .tutorial-panel { margin-top: 22px; padding: 32px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); box-shadow: var(--shadow); }
.section-title h2 { font-size: 25px; line-height: 1.3; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 25px; }
.service-grid article { position: relative; min-height: 172px; padding: 21px; overflow: hidden; border: 1px solid #e1daf3; border-radius: 15px; background: #fcfbff; }
.service-grid article::after { position: absolute; right: -26px; bottom: -35px; width: 96px; height: 96px; border: 1px solid rgba(104, 72, 194, .13); border-radius: 50%; content: ""; }
.service-grid b { display: inline-grid; position: relative; z-index: 1; width: 30px; height: 30px; place-items: center; border-radius: 50%; color: #5c3daa; background: #eeeaff; font-size: 11px; }
.service-grid h3 { position: relative; z-index: 1; margin: 17px 0 8px; color: #392864; font-size: 17px; letter-spacing: -.02em; }
.service-grid p { position: relative; z-index: 1; margin: 0; color: #70688b; font-size: 14px; line-height: 1.7; }

.tutorial-panel { background: #fbfaff; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 27px 0 0; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: auto 1fr; gap: 13px; align-items: start; padding: 18px 0; border-top: 1px solid #e4def3; }
.steps span { display: inline-grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; color: #fff; background: var(--purple); font-size: 12px; font-weight: 850; }
.steps h3 { margin: 2px 0 7px; color: #3a2a65; font-size: 16px; }
.steps p { margin: 0; color: #716a8d; font-size: 14px; line-height: 1.7; }

.contact-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 36px; align-items: center; margin-top: 22px; padding: 32px 36px; border-radius: 20px; color: #eeeaff; background: var(--deep); box-shadow: 0 18px 42px rgba(43, 25, 88, .18); }
.contact-panel h2 { color: #fff; font-size: 26px; }
.contact-panel p:last-child { max-width: 620px; margin: 12px 0 0; color: #ded5fa; font-size: 15px; line-height: 1.75; }
.contact-qrs { display: flex; gap: 18px; align-items: flex-start; }
.contact-qrs figure { margin: 0; text-align: center; }
.contact-panel img { display: block; width: 128px; height: 128px; padding: 4px; border-radius: 10px; background: #fff; object-fit: cover; }
.contact-panel figcaption { margin-top: 9px; color: #e7e0fc; font-size: 13px; }

.guide-footer { padding: 17px 0; color: #e4ddf8; background: #20143f; font-size: 13px; text-align: center; }
.guide-record { display: flex; flex-wrap: wrap; gap: 6px 13px; align-items: center; justify-content: center; }
.guide-record a { color: inherit; text-decoration: none; }
.guide-record a:hover, .guide-record a:focus-visible { color: #fff; outline: none; text-decoration: underline; text-underline-offset: 4px; }
.public-security-record { display: inline-flex; align-items: center; gap: 5px; }
.public-security-record img { width: 18px; height: 20px; object-fit: contain; }

@media (max-width: 860px) {
  .guide-intro { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 620px) {
  .guide-shell { width: min(100% - 28px, 1160px); }
  .guide-header-content { min-height: 64px; gap: 18px; }
  .guide-brand { flex: 0 0 auto; font-size: 17px; }
  .guide-brand::before { width: 28px; height: 28px; margin-right: 6px; font-size: 13px; }
  .guide-nav { min-width: 0; gap: 17px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
  .guide-nav::-webkit-scrollbar { display: none; }
  .guide-nav a { font-size: 13px; }
  main { padding: 26px 0 38px; }
  .guide-intro, .services-panel, .tutorial-panel, .contact-panel { padding: 23px; border-radius: 16px; }
  .intro-copy > p:last-child, .intro-note span, .service-grid p, .steps p, .contact-panel p:last-child { font-size: 14px; }
  .section-title h2 { font-size: 21px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-grid article { min-height: 0; }
  .contact-panel { grid-template-columns: 1fr; gap: 22px; }
  .contact-panel h2 { font-size: 22px; }
  .contact-qrs { flex-wrap: wrap; justify-content: flex-start; }
}
