/* ==========================================================================
   GMPQMS · 质量管理系统 产品页
   list_61.css
   ========================================================================== */

* {
    box-sizing: border-box;
}

.qms-page {
    --ink: #0c1b2a;
    --ink-2: #1c3042;
    --navy: #091e33;
    --navy-2: #0d2a45;
    --blue: #2251d1;
    --blue-deep: #1a40a8;
    --blue-soft: #eef2fd;
    --paper: #f6f3ec;
    --paper-2: #fbf9f4;
    --white: #fffdf8;
    --line: #e2ddd2;
    --line-strong: #d6d0c2;
    --muted: #5b6a75;
    --faint: #989183;
    --serif: Georgia, "Times New Roman", "Songti SC", "STSong", serif;
    position: relative;
    overflow: clip;
    color: var(--ink);
    background: var(--paper);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.qms-page :where(h1, h2, h3, h4, p, ul, ol, li, dl, dd, dt) {
    margin: 0;
    padding: 0;
    list-style: none;
}

.qms-page :where(a) {
    color: inherit;
    text-decoration: none;
}

.qms-page a:focus-visible,
.qms-page button:focus-visible,
.qms-page summary:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
}

.qms-wrap {
    position: relative;
    width: min(1200px, calc(100% - 56px));
    margin: 0 auto;
}

/* ================================ HERO ================================ */

.qms-hero {
    position: relative;
    padding: 112px 0 0;
    background:
        radial-gradient(80% 60% at 88% 0%, rgba(34, 81, 209, 0.055), transparent 62%),
        var(--paper);
    isolation: isolate;
}

.qms-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: repeating-linear-gradient(180deg, rgba(12, 27, 42, 0.028) 0 1px, transparent 1px 72px);
    -webkit-mask-image: linear-gradient(180deg, #000, transparent 72%);
    mask-image: linear-gradient(180deg, #000, transparent 72%);
    pointer-events: none;
}

.qms-hero::after {
    content: "QMS";
    position: absolute;
    top: 64px;
    right: -14px;
    z-index: -1;
    color: rgba(12, 27, 42, 0.032);
    font-family: var(--serif);
    font-size: 220px;
    font-style: italic;
    line-height: 1;
    pointer-events: none;
}

.qms-crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 58px;
    color: var(--faint);
    font-size: 12px;
    letter-spacing: 0.04em;
}

.qms-crumbs a {
    color: #6d7a84;
    transition: color 0.2s ease;
}

.qms-crumbs a:hover {
    color: var(--blue);
}

.qms-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 352px;
    gap: 64px;
    align-items: start;
}

.qms-hero-copy {
    max-width: 760px;
}

.qms-eyebrow {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    color: #56646e;
    font-size: 11px;
    letter-spacing: 0.08em;
}

.qms-eyebrow b {
    color: var(--blue);
    font-family: var(--serif);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.qms-eyebrow i {
    width: 28px;
    height: 1px;
    background: var(--line-strong);
}

.qms-eyebrow span {
    font-weight: 600;
}

.qms-eyebrow em {
    color: #9a9385;
    font-size: 9.5px;
    font-style: normal;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.qms-hero h1 {
    margin: 26px 0 24px;
    color: var(--ink);
    font-size: clamp(46px, 5.2vw, 70px);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.035em;
}

.qms-hero h1 em {
    display: inline-block;
    color: var(--blue);
    font-style: normal;
}

.qms-lead {
    max-width: 580px;
    color: #53626d;
    font-size: 16px;
    line-height: 1.95;
}

.qms-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    align-items: center;
    margin-top: 36px;
}

.qms-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 52px;
    padding: 0 24px;
    border: 1px solid transparent;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.qms-btn span {
    font-family: var(--serif);
    font-size: 16px;
    transition: transform 0.2s ease;
}

.qms-btn:hover span {
    transform: translateX(4px);
}

.qms-btn-primary {
    color: #fff;
    background: var(--blue);
    box-shadow: 0 14px 28px rgba(34, 81, 209, 0.2);
}

.qms-btn-primary:hover {
    background: var(--blue-deep);
    box-shadow: 0 18px 34px rgba(34, 81, 209, 0.28);
    transform: translateY(-1px);
}

.qms-btn-quiet {
    min-height: auto;
    padding: 0 0 6px;
    border-bottom: 1px solid #b8b1a2;
    border-radius: 0;
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
}

.qms-btn-quiet:hover {
    color: var(--blue);
    border-color: var(--blue);
}

.qms-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    margin-top: 42px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.qms-hero-meta li {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    color: #6b7882;
    font-size: 11.5px;
}

.qms-hero-meta li::before {
    content: "";
    width: 4px;
    height: 4px;
    background: var(--blue);
}

/* ------------------------------ 流程索引 ------------------------------ */

.qms-index {
    position: relative;
    z-index: 1;
    border: 1px solid var(--line);
    border-top: 3px solid var(--blue);
    background: #fff;
    box-shadow: 0 26px 50px rgba(20, 30, 40, 0.06);
}

.qms-index header {
    display: flex;
    gap: 12px;
    align-items: baseline;
    justify-content: space-between;
    padding: 16px 20px 14px;
    border-bottom: 1px solid var(--line);
}

.qms-index header span {
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.qms-index header b {
    color: var(--blue);
    font-family: var(--serif);
    font-size: 28px;
    font-weight: 400;
    line-height: 1;
}

.qms-index ol {
    padding: 4px 20px;
}

.qms-index li {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px dashed #ece7dc;
    font-size: 12px;
    transition: background 0.15s ease;
}

.qms-index li:last-child {
    border-bottom: 0;
}

.qms-index li > i {
    color: #a49c8c;
    font-family: var(--serif);
    font-size: 10px;
    font-style: normal;
}

.qms-index li > span {
    color: #34434e;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qms-index li > em {
    padding: 1px 6px;
    border: 1px solid #ccd8f3;
    border-radius: 2px;
    color: var(--blue);
    background: #f1f5fe;
    font-size: 8.5px;
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.qms-index li > em.is-start {
    border-color: #e2ddd2;
    color: #7e776a;
    background: #faf8f2;
}

.qms-index li:hover {
    background: #faf8f2;
}

.qms-index footer {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-top: 1px solid var(--line);
    color: #8f8779;
    font-family: var(--serif);
    font-size: 8.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ------------------------------ 流程标签 ------------------------------ */

.qms-badge {
    margin-left: auto;
    flex: none;
    padding: 1px 6px;
    border: 1px solid #ccd8f3;
    border-radius: 2px;
    color: var(--blue);
    background: #f1f5fe;
    font-size: 8.5px;
    font-style: normal;
    font-weight: 600;
    white-space: nowrap;
}

.qms-badge.is-start {
    border-color: #e2ddd2;
    color: #7e776a;
    background: #faf8f2;
}

/* ------------------------------- 数据条 ------------------------------- */

.qms-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 54px;
    padding: 28px 0 38px;
    border-top: 1px solid var(--line);
}

.qms-facts li {
    padding: 2px 24px;
    border-left: 1px solid var(--line);
}

.qms-facts li:first-child {
    padding-left: 0;
    border-left: 0;
}

.qms-facts b {
    display: block;
    color: var(--ink);
    font-family: var(--serif);
    font-size: 44px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.02em;
}

.qms-facts b small {
    color: var(--blue);
    font-size: 18px;
}

.qms-facts span {
    display: block;
    margin-top: 10px;
    color: #2c3e4c;
    font-size: 12.5px;
    font-weight: 600;
}

.qms-facts em {
    display: block;
    margin-top: 5px;
    color: #7f786a;
    font-size: 10px;
    font-style: normal;
    line-height: 1.6;
}

/* ================================ BODY ================================ */

.qms-body {
    display: grid;
    grid-template-columns: 172px minmax(0, 1fr);
    align-items: stretch;
}

.qms-rail {
    border-right: 1px solid var(--line);
}

.qms-rail-sticky {
    position: sticky;
    top: 118px;
    padding: 64px 30px 60px 0;
}

.qms-rail-label {
    margin-bottom: 20px;
    color: #a49c8e;
    font-family: var(--serif);
    font-size: 9px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.qms-rail-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.qms-rail-nav a {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 6px;
    align-items: center;
    padding: 9px 0 9px 12px;
    border-left: 2px solid transparent;
    color: #7a838b;
    font-size: 12px;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.qms-rail-nav a i {
    color: #aaa294;
    font-family: var(--serif);
    font-size: 9px;
    font-style: normal;
    transition: color 0.2s ease;
}

.qms-rail-nav a:hover {
    color: var(--ink);
    background: rgba(34, 81, 209, 0.035);
}

.qms-rail-nav a.is-current {
    border-left-color: var(--blue);
    color: var(--ink);
    font-weight: 600;
}

.qms-rail-nav a.is-current i {
    color: var(--blue);
}

.qms-rail-foot {
    margin-top: 34px;
    color: #b3ac9f;
    font-family: var(--serif);
    font-size: 8.5px;
    letter-spacing: 0.08em;
    line-height: 1.9;
    text-transform: uppercase;
}

.qms-chapters {
    min-width: 0;
    padding-left: 56px;
}

.qms-chapter {
    padding: 66px 0 74px;
    border-bottom: 1px solid var(--line);
}

.qms-chapter:last-child {
    border-bottom: 0;
    padding-bottom: 60px;
}

.qms-num {
    margin-bottom: 16px;
    color: var(--blue);
    font-family: var(--serif);
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.qms-chapter-row {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    gap: 44px;
    align-items: end;
    margin-bottom: 36px;
}

.qms-chapter-row h2 {
    color: var(--ink);
    font-size: clamp(27px, 2.8vw, 35px);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.028em;
}

.qms-chapter-row p {
    max-width: 460px;
    justify-self: end;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.9;
}

/* ------------------------------ 流程卡片 ------------------------------ */

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

.qms-flow-item {
    position: relative;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: var(--white);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.qms-flow-item::before {
    content: "";
    position: absolute;
    top: -1px;
    right: 22px;
    left: 22px;
    height: 2px;
    background: var(--blue);
    opacity: 0;
    transform: scaleX(0.4);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.qms-flow-item:hover {
    border-color: #cfc8b8;
    background: #fff;
}

.qms-flow-item:hover::before {
    opacity: 1;
    transform: scaleX(1);
}

.qms-flow-item header {
    display: flex;
    gap: 10px;
    align-items: center;
}

.qms-flow-item header > span {
    color: #a49c8c;
    font-family: var(--serif);
    font-size: 10px;
}

.qms-flow-item h3 {
    color: #101f2d;
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.qms-flow-item .qms-badge {
    margin-left: auto;
}

.qms-flow-item p {
    margin-top: 10px;
    color: #5d6973;
    font-size: 12px;
    line-height: 1.82;
}

.qms-flow-rel {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 15px;
}

.qms-flow-rel span {
    padding: 2px 7px;
    border: 1px solid #e4dfd4;
    border-radius: 2px;
    color: #667079;
    background: #faf8f2;
    font-size: 9.5px;
    line-height: 1.6;
}

.qms-note {
    position: relative;
    margin-top: 20px;
    padding-left: 14px;
    color: #7d7669;
    font-size: 10.5px;
    line-height: 1.7;
}

.qms-note::before {
    content: "";
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: 0;
    width: 2px;
    background: var(--blue);
    opacity: 0.5;
}

/* ------------------------------ 合规审计 ------------------------------ */

.qms-audit-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 50px;
    align-items: start;
}

.qms-audit-lead {
    color: #4a5a66;
    font-size: 13.5px;
    line-height: 1.95;
}

.qms-audit-points {
    margin-top: 22px;
}

.qms-audit-points li {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 12px 0;
    border-top: 1px solid var(--line);
}

.qms-audit-points li:last-child {
    border-bottom: 1px solid var(--line);
}

.qms-audit-points i {
    width: 6px;
    height: 6px;
    margin-top: 7px;
    background: var(--blue);
}

.qms-audit-points span {
    color: #33424e;
    font-size: 12px;
    line-height: 1.75;
}

.qms-audit-legal {
    margin-top: 20px;
    color: #7f786a;
    font-size: 10px;
    line-height: 1.8;
}

.qms-audit {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: #fff;
    box-shadow: 0 24px 48px rgba(20, 30, 40, 0.07);
}

.qms-audit header {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    color: #f0f5fa;
    background: var(--navy);
}

.qms-audit header b {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.qms-audit header span {
    color: #8fb0d4;
    font-family: var(--serif);
    font-size: 8.5px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

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

.qms-audit th {
    padding: 8px 14px;
    border-bottom: 1px solid var(--line);
    color: #9a9385;
    background: #faf8f2;
    font-size: 8.5px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-align: left;
    text-transform: uppercase;
}

.qms-audit th:nth-child(1) { width: 31%; }
.qms-audit th:nth-child(2) { width: 40%; }
.qms-audit th:nth-child(3) { width: 29%; }

.qms-audit td {
    padding: 10px 14px;
    border-bottom: 1px solid #f0ece2;
    color: #52606b;
    font-size: 10.5px;
    line-height: 1.7;
    vertical-align: top;
}

.qms-audit tr:last-child td {
    border-bottom: 0;
}

.qms-audit td:first-child {
    color: #1d2e3c;
    font-weight: 600;
}

.qms-audit tbody tr:hover td {
    background: #fcfaf5;
}

.qms-audit footer {
    padding: 11px 18px;
    border-top: 1px solid var(--line);
    color: #948d7f;
    background: #faf8f2;
    font-size: 9px;
}

/* ------------------------------ 实施路径 ------------------------------ */

.qms-timeline {
    position: relative;
    padding: 10px 0;
}

.qms-timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: var(--line);
}

.qms-timeline li {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 88px minmax(0, 1fr);
    align-items: start;
    margin-bottom: 26px;
}

.qms-timeline li:last-child {
    margin-bottom: 0;
}

.qms-phase-meta {
    grid-row: 1;
    grid-column: 1;
    padding: 14px 8px 0 0;
    text-align: right;
}

.qms-phase-meta span {
    color: #a49c8e;
    font-family: var(--serif);
    font-size: 9px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.qms-phase-meta b {
    display: block;
    margin-top: 4px;
    color: var(--ink);
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 400;
}

.qms-phase-dot {
    position: relative;
    grid-row: 1;
    grid-column: 2;
    justify-self: center;
    display: grid;
    place-items: center;
    width: 14px;
    height: 14px;
    margin-top: 18px;
    border: 2px solid var(--blue);
    border-radius: 50%;
    background: var(--paper);
    box-shadow: 0 0 0 5px var(--paper);
}

.qms-phase-dot i {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--blue);
}

.qms-phase-card {
    grid-row: 1;
    grid-column: 3;
    padding: 20px 22px;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: var(--white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.qms-phase-card:hover {
    border-color: #cfc8b8;
    box-shadow: 0 14px 30px rgba(20, 30, 40, 0.06);
}

.qms-phase-card h3 {
    color: #10202e;
    font-size: 16px;
    font-weight: 700;
}

.qms-phase-card p {
    margin-top: 7px;
    color: #5d6973;
    font-size: 12px;
    line-height: 1.8;
}

.qms-timeline li:nth-child(even) .qms-phase-meta {
    grid-column: 3;
    padding: 14px 0 0 8px;
    text-align: left;
}

.qms-timeline li:nth-child(even) .qms-phase-card {
    grid-column: 1;
}

.qms-timeline-note {
    margin-top: 26px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    color: #7d7669;
    font-size: 10.5px;
    letter-spacing: 0.02em;
    text-align: center;
}

/* ================================ FAQ ================================ */

.qms-faq {
    padding: 82px 0;
    border-top: 1px solid var(--line);
    background: #fffdf8;
}

.qms-faq-grid {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 78px;
    align-items: start;
}

.qms-faq-aside h2 {
    margin: 12px 0 14px;
    color: var(--ink);
    font-size: clamp(27px, 2.8vw, 33px);
    font-weight: 800;
    line-height: 1.32;
    letter-spacing: -0.028em;
}

.qms-faq-aside > p:not(.qms-num) {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.85;
}

.qms-faq-aside .qms-btn {
    margin-top: 26px;
}

.qms-faq-list details {
    border-top: 1px solid var(--line);
}

.qms-faq-list details:last-child {
    border-bottom: 1px solid var(--line);
}

.qms-faq-list summary {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    color: #1b2c3a;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.6;
    cursor: pointer;
    list-style: none;
}

.qms-faq-list summary::-webkit-details-marker {
    display: none;
}

.qms-faq-list summary i {
    position: relative;
    flex: none;
    width: 18px;
    height: 18px;
    border: 1px solid #d7d1c3;
    border-radius: 2px;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.25s ease;
}

.qms-faq-list summary i::before,
.qms-faq-list summary i::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 1px;
    background: var(--blue);
    transform: translate(-50%, -50%);
    transition: opacity 0.2s ease;
}

.qms-faq-list summary i::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.qms-faq-list details[open] summary {
    color: var(--blue);
}

.qms-faq-list details[open] summary i {
    border-color: var(--blue);
    background: var(--blue-soft);
}

.qms-faq-list details[open] summary i::after {
    opacity: 0;
}

.qms-faq-list details > p {
    max-width: 720px;
    padding: 0 40px 20px 0;
    color: #5b6a75;
    font-size: 12.5px;
    line-height: 1.95;
}

/* 锚点避开固定导航 */
#flows,
#capabilities,
#compliance,
#implement {
    scroll-margin-top: 100px;
}

/* ============================ 动效 ============================ */

html.qms-js [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1),
        transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}

html.qms-js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

/* ========================== 弹窗 / 返回顶部 ========================== */

.modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(6, 18, 30, 0.68);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.modal.is-active {
    display: flex;
}

.modal-dialog {
    position: relative;
    width: min(400px, 100%);
    padding: 30px;
    border-radius: 6px;
    background: #fff;
    text-align: center;
    box-shadow: 0 34px 80px rgba(4, 22, 28, 0.34);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    color: #5d7179;
    background: #eef5f6;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.modal-header h3 {
    margin: 6px 0 20px;
    color: #10202e;
    font-size: 20px;
}

.modal-qr img {
    width: min(250px, 86%);
    height: auto;
}

.modal-qr p {
    margin: 18px 0 0;
    color: #61757e;
    font-size: 13px;
}

.back-to-top {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 900;
    display: flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    color: #fff;
    background: #2251d1;
    box-shadow: 0 14px 30px rgba(10, 30, 60, 0.24);
    cursor: pointer;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-to-top.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* ============================== 响应式 ============================== */

@media (max-width: 1180px) {
    .qms-wrap {
        width: calc(100% - 48px);
    }

    .qms-hero-grid {
        grid-template-columns: minmax(0, 1fr) 330px;
        gap: 40px;
    }

    .qms-hero h1 {
        font-size: clamp(42px, 4.9vw, 60px);
    }
}

@media (max-width: 1080px) {
    .qms-hero {
        padding-top: 100px;
    }

    .qms-hero::after {
        display: none;
    }

    .qms-hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
    }

    .qms-hero-copy {
        max-width: 780px;
    }

    .qms-index {
        max-width: 100%;
    }

    .qms-index ol {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 28px;
    }

    .qms-body {
        display: block;
    }

    .qms-rail {
        display: none;
    }

    .qms-chapters {
        padding-left: 0;
    }

    .qms-chapter-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
        align-items: start;
    }

    .qms-chapter-row p {
        justify-self: start;
        max-width: 640px;
    }

    .qms-audit-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 34px;
    }

    .qms-faq-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
    }

    .qms-faq-aside {
        max-width: 640px;
    }

    .qms-faq-aside .qms-btn {
        margin-top: 20px;
    }
}

@media (max-width: 900px) {
    .qms-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 26px 0;
    }

    .qms-facts li:nth-child(3) {
        padding-left: 0;
        border-left: 0;
    }

    .qms-timeline::before {
        left: 6px;
    }

    .qms-timeline li {
        grid-template-columns: minmax(0, 1fr);
        padding-left: 32px;
        margin-bottom: 22px;
    }

    .qms-phase-meta,
    .qms-phase-card {
        grid-column: 1;
        grid-row: auto;
        text-align: left;
        padding: 0;
    }

    .qms-phase-meta {
        margin-bottom: 8px;
    }

    .qms-phase-meta b {
        display: inline-block;
        margin: 0 0 0 8px;
        font-size: 16px;
    }

    .qms-phase-dot {
        position: absolute;
        top: 2px;
        left: -32px;
        grid-column: 1;
        grid-row: 1;
        margin: 0;
        box-shadow: 0 0 0 4px var(--paper);
    }

    .qms-phase-card {
        padding: 18px 20px;
    }

    .qms-timeline li:nth-child(even) .qms-phase-meta {
        grid-column: 1;
        padding: 0;
    }

    .qms-timeline li:nth-child(even) .qms-phase-card {
        grid-column: 1;
    }
}

@media (max-width: 720px) {
    .qms-wrap {
        width: calc(100% - 32px);
    }

    .qms-hero {
        padding-top: 92px;
    }

    .qms-crumbs {
        margin-bottom: 34px;
    }

    .qms-hero h1 {
        font-size: clamp(38px, 9.6vw, 48px);
    }

    .qms-lead {
        font-size: 14.5px;
    }

    .qms-hero-actions {
        gap: 16px;
        margin-top: 28px;
    }

    .qms-hero-meta {
        gap: 8px 18px;
        margin-top: 30px;
    }

    .qms-index header {
        padding: 13px 16px 11px;
    }

    .qms-index ol {
        padding: 2px 16px;
    }

    .qms-index footer {
        padding: 10px 16px;
    }

    .qms-facts {
        margin-top: 40px;
        padding: 24px 0 30px;
    }

    .qms-facts b {
        font-size: 36px;
    }

    .qms-chapter {
        padding: 52px 0 56px;
    }

    .qms-num {
        margin-bottom: 12px;
    }

    .qms-chapter-row {
        margin-bottom: 26px;
    }

    .qms-chapter-row h2 {
        font-size: 26px;
    }

    .qms-flow-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .qms-flow-item {
        padding: 18px;
    }

    .qms-audit thead {
        display: none;
    }

    .qms-audit table,
    .qms-audit tbody,
    .qms-audit tr,
    .qms-audit td {
        display: block;
        width: 100%;
    }

    .qms-audit tr {
        padding: 12px 16px;
        border-bottom: 1px solid #f0ece2;
    }

    .qms-audit tr:last-child {
        border-bottom: 0;
    }

    .qms-audit td {
        padding: 2px 0;
        border: 0;
        font-size: 11px;
    }

    .qms-audit td::before {
        content: attr(data-label) " / ";
        color: #9a9385;
        font-size: 8.5px;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .qms-audit td:first-child {
        padding-bottom: 4px;
    }

    .qms-audit td:first-child::before {
        display: none;
    }

    .qms-faq {
        padding: 58px 0;
    }

    .qms-faq-grid {
        gap: 28px;
    }

    .qms-faq-aside h2 {
        font-size: 27px;
    }

    .qms-faq-list summary {
        font-size: 13.5px;
    }

    .qms-faq-list details > p {
        padding-right: 20px;
        font-size: 12px;
    }
}

@media (max-width: 560px) {
    .qms-eyebrow em {
        display: none;
    }

    .qms-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .qms-btn {
        justify-content: space-between;
        width: 100%;
    }

    .qms-btn-quiet {
        justify-content: flex-start;
        border-bottom: 0;
        text-decoration: underline;
        text-underline-offset: 5px;
    }

    .qms-index ol {
        grid-template-columns: minmax(0, 1fr);
    }

    .qms-facts {
        grid-template-columns: minmax(0, 1fr);
    }

    .qms-facts li {
        padding: 14px 0;
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .qms-facts li:first-child {
        border-top: 0;
        padding-top: 0;
    }

    .qms-facts b {
        font-size: 34px;
    }

    .qms-chapter-row h2 br {
        display: none;
    }

    .qms-faq-aside .qms-btn {
        width: 100%;
    }

    .qms-audit-points li {
        padding: 10px 0;
    }

    .qms-flow-item header {
        flex-wrap: wrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    .qms-page *,
    .qms-page *::before,
    .qms-page *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    html.qms-js [data-reveal] {
        opacity: 1;
        transform: none;
    }
}
