/* =========================================================
   交付说明页 · /delivery.php
   仅使用 .dlv-* 前缀，不覆盖 grand-page.css 的 pg-* 规则
   ========================================================= */

.dlv-hero {
    padding-bottom: 1.6rem;
}

.dlv-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 2.2rem;
    margin: 1.4rem 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.86rem;
    color: var(--g-muted);
}

.dlv-meta li {
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
}

.dlv-meta li span {
    color: var(--g-muted);
}

.dlv-meta li strong {
    font-weight: 600;
    color: var(--g-text);
}

.dlv-meta-act {
    margin-left: auto;
}

.dlv-print {
    padding: 0.5rem 1rem;
    border: 1px solid var(--g-border-strong);
    border-radius: 999px;
    background: var(--g-surface);
    color: var(--g-text);
    font: inherit;
    font-size: 0.82rem;
    cursor: pointer;
    transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.dlv-print:hover {
    border-color: #0F766E;
    color: #0F766E;
    background: #ECFDF5;
}

/* ---------------- 正文 ---------------- */

.dlv-doc {
    max-width: 860px;
    margin: 0 auto;
    padding: 2.2rem 2.4rem 2.6rem;
    background: var(--g-surface);
    border: 1px solid var(--g-border);
    border-radius: var(--g-radius);
    box-shadow: var(--g-card-shadow);
}

.dlv-toc {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.5rem;
    margin: 0 0 2rem;
    padding: 0 0 1.4rem;
    border-bottom: 1px dashed var(--g-border);
}

.dlv-toc a {
    padding: 0.32rem 0.72rem;
    border-radius: 999px;
    background: var(--g-surface-2);
    color: var(--g-text-soft);
    font-size: 0.8rem;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease;
}

.dlv-toc a:hover {
    background: #ECFDF5;
    color: #0F766E;
}

.dlv-sec {
    padding: 0 0 1.7rem;
    margin: 0 0 1.7rem;
    border-bottom: 1px solid var(--g-border);
}

.dlv-sec:last-of-type {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

.dlv-sec h2 {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 0.7rem;
    font-size: 1.18rem;
    font-weight: 700;
    color: #115E59;
}

.dlv-no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    color: #0F766E;
    font-size: 0.82rem;
    font-weight: 700;
    flex: 0 0 auto;
}

.dlv-sec h3 {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--g-text);
}

.dlv-p {
    margin: 0 0 0.9rem;
    font-size: 0.92rem;
    line-height: 1.85;
    color: var(--g-text-soft);
}

.dlv-note {
    margin: 0.85rem 0 0;
    padding-left: 0.85rem;
    border-left: 3px solid #A7F3D0;
    font-size: 0.82rem;
    line-height: 1.75;
    color: var(--g-muted);
}

/* ---------------- 交付清单表 ---------------- */

.dlv-table-wrap {
    margin: 0.2rem 0 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.dlv-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.dlv-table th,
.dlv-table td {
    padding: 0.62rem 0.7rem;
    border-bottom: 1px solid var(--g-border);
    vertical-align: middle;
}

.dlv-table thead th {
    background: #ECFDF5;
    border-bottom: 1px solid #A7F3D0;
    color: #115E59;
    font-weight: 700;
    font-size: 0.84rem;
    text-align: left;
}

.dlv-table thead th em {
    font-style: normal;
    font-weight: 700;
    color: #0F766E;
}

.dlv-table tbody th {
    font-weight: 400;
    color: var(--g-text);
    text-align: left;
}

.dlv-table tbody tr:nth-child(even) {
    background: rgba(15, 118, 110, 0.022);
}

.dlv-col-price {
    width: 5.4rem;
    text-align: center;
}

.dlv-table td {
    text-align: center;
    width: 5.4rem;
}

.dlv-yes {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    background: #ECFDF5;
    color: #0F766E;
}

.dlv-yes svg {
    width: 0.95rem;
    height: 0.95rem;
}

.dlv-no-mark {
    color: #CBD5E1;
    font-weight: 700;
}

.dlv-text-mark {
    font-size: 0.78rem;
    color: var(--g-muted);
}

/* ---------------- 两栏（可/不可，含/不含） ---------------- */

.dlv-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    margin: 0.4rem 0 0;
}

.dlv-two-col {
    padding: 1rem 1.1rem;
    border: 1px solid var(--g-border);
    border-radius: 10px;
    background: var(--g-surface-2);
}

.dlv-two-col ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.dlv-two-col li {
    position: relative;
    padding-left: 1.05rem;
    margin: 0 0 0.42rem;
    font-size: 0.86rem;
    line-height: 1.7;
    color: var(--g-text-soft);
}

.dlv-two-col li:last-child {
    margin-bottom: 0;
}

.dlv-two-col li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 0.36rem;
    height: 0.36rem;
    border-radius: 50%;
    background: #CBD5E1;
}

.dlv-two-col--ok,
.dlv-two-col--in {
    background: #F2FDF9;
    border-color: #CCEFE3;
}

.dlv-two-col--ok h3,
.dlv-two-col--in h3 {
    color: #0F766E;
}

.dlv-two-col--ok li::before,
.dlv-two-col--in li::before {
    background: #34A98F;
}

.dlv-two-col--no,
.dlv-two-col--out {
    background: #FFFBF5;
    border-color: #F3E3C8;
}

.dlv-two-col--no h3,
.dlv-two-col--out h3 {
    color: #9A6B1F;
}

.dlv-two-col--no li::before,
.dlv-two-col--out li::before {
    background: #D9A441;
}

/* ---------------- 列表与验收项 ---------------- */

.dlv-list {
    margin: 0.3rem 0 0;
    padding: 0;
    list-style: none;
}

.dlv-list li {
    position: relative;
    padding-left: 1.1rem;
    margin: 0 0 0.6rem;
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--g-text-soft);
}

.dlv-list li::before {
    content: "";
    position: absolute;
    left: 0.1rem;
    top: 0.72em;
    width: 0.36rem;
    height: 0.36rem;
    border-radius: 50%;
    background: #34A98F;
}

.dlv-list strong {
    color: var(--g-text);
    font-weight: 600;
}

.dlv-check {
    margin: 0.3rem 0 0;
    padding: 0;
    list-style: none;
    counter-reset: dlvck;
}

.dlv-check li {
    counter-increment: dlvck;
    position: relative;
    padding: 0.45rem 0 0.45rem 2.1rem;
    font-size: 0.9rem;
    line-height: 1.75;
    color: var(--g-text-soft);
    border-bottom: 1px dashed var(--g-border);
}

.dlv-check li:last-child {
    border-bottom: 0;
}

.dlv-check li::before {
    content: counter(dlvck);
    position: absolute;
    left: 0;
    top: 0.48rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 6px;
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    color: #0F766E;
    font-size: 0.74rem;
    font-weight: 700;
}

/* ---------------- 签署栏 ---------------- */

.dlv-sign {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    margin: 1.1rem 0 0;
}

.dlv-sign-col {
    padding: 1rem 0 0;
}

.dlv-sign-label {
    margin: 0 0 0.9rem;
    font-size: 0.86rem;
    font-weight: 700;
    color: #115E59;
}

.dlv-sign-line {
    margin: 0 0 1.5rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid var(--g-border-strong);
    font-size: 0.82rem;
    color: var(--g-muted);
}

/* ---------------- 底部引导 ---------------- */

.dlv-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 860px;
    margin: 1.4rem auto 0;
    padding: 1.2rem 1.6rem;
    border-radius: var(--g-radius);
    background: linear-gradient(120deg, #115E59, #0F766E);
    color: #EAF6F4;
}

.dlv-cta strong {
    display: block;
    font-size: 1rem;
    font-weight: 700;
}

.dlv-cta span {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.84rem;
    color: rgba(234, 246, 244, 0.76);
}

.dlv-cta-btn {
    flex: 0 0 auto;
    padding: 0.55rem 1.25rem;
    border-radius: 999px;
    background: #FFFFFF;
    color: #115E59;
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.18s ease;
}

.dlv-cta-btn:hover {
    transform: translateY(-1px);
}

/* ---------------- 响应式 ---------------- */

@media (max-width: 900px) {
    .dlv-doc {
        padding: 1.6rem 1.4rem 2rem;
    }

    .dlv-meta-act {
        margin-left: 0;
        width: 100%;
    }

    .dlv-two,
    .dlv-sign {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.8rem;
    }

    .dlv-sign {
        gap: 0.4rem;
    }
}

@media (max-width: 640px) {
    .dlv-doc {
        padding: 1.2rem 1rem 1.6rem;
        border-radius: 12px;
    }

    .dlv-sec h2 {
        font-size: 1.06rem;
    }

    .dlv-table {
        font-size: 0.82rem;
    }

    .dlv-table th,
    .dlv-table td {
        padding: 0.5rem 0.45rem;
    }

    .dlv-table tbody th {
        min-width: 9rem;
    }

    .dlv-cta {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 1.2rem;
    }

    .dlv-cta-btn {
        width: 100%;
        text-align: center;
    }
}

/* ---------------- 打印：A4 一页纸 ---------------- */

@media print {
    @page {
        size: A4;
        margin: 12mm 12mm;
    }

    .grand-header,
    .grand-footer,
    .dlv-toc,
    .dlv-cta,
    .dlv-meta-act,
    .pg-crumb {
        display: none !important;
    }

    html,
    body {
        background: #FFFFFF !important;
    }

    .pg-hero {
        padding: 0 0 0.25cm !important;
        background: none !important;
    }

    .pg-hero-inner {
        padding: 0 !important;
        max-width: none !important;
    }

    .pg-eyebrow {
        font-size: 7.5pt;
        letter-spacing: 0.04em;
        color: #777 !important;
    }

    .dlv-hero {
        padding-bottom: 0.25cm !important;
    }

    .dlv-hero h1 {
        margin: 0.05cm 0 0.1cm;
        font-size: 15pt;
        line-height: 1.2;
        color: #000 !important;
    }

    .pg-lead {
        margin: 0 !important;
        font-size: 8pt;
        line-height: 1.5;
        color: #333 !important;
        max-width: none !important;
    }

    .dlv-meta {
        margin-top: 0.12cm;
        gap: 0.15cm 0.7cm;
        font-size: 7.5pt;
        color: #555 !important;
    }

    .pg-body {
        padding: 0 !important;
        max-width: none !important;
    }

    .dlv-doc {
        max-width: none;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none !important;
        background: #FFF !important;
    }

    .dlv-sec {
        padding-bottom: 0.1cm;
        margin-bottom: 0.1cm;
        border-bottom: 1px solid #E5E5E5;
    }

    .dlv-table-wrap,
    .dlv-sign {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .dlv-sec h2 {
        font-size: 10pt;
        margin-bottom: 0.08cm;
        color: #000 !important;
    }

    .dlv-sec h3 {
        font-size: 8.6pt;
        margin-bottom: 0.06cm;
        color: #000 !important;
    }

    .dlv-no {
        width: auto;
        height: auto;
        padding: 0 0.06cm;
        border: 0;
        background: none !important;
        color: #000 !important;
        font-size: 9.5pt;
    }

    .dlv-p,
    .dlv-list li,
    .dlv-check li,
    .dlv-two-col li {
        font-size: 7.5pt;
        line-height: 1.38;
        color: #222 !important;
    }

    .dlv-p {
        margin-bottom: 0.1cm;
    }

    .dlv-note {
        margin-top: 0.08cm;
        padding-left: 0.15cm;
        font-size: 6.8pt;
        line-height: 1.4;
        color: #444 !important;
        border-left-width: 1px;
        border-left-color: #CCC;
    }

    .dlv-table {
        font-size: 7.2pt;
    }

    .dlv-table th,
    .dlv-table td {
        padding: 0.035cm 0.07cm;
        border-bottom: 1px solid #DDD;
        color: #000 !important;
    }

    .dlv-table thead th {
        background: #F2F2F2 !important;
        border-bottom: 1px solid #999;
        color: #000 !important;
        font-size: 7.5pt;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .dlv-yes {
        background: none !important;
        color: #000 !important;
        width: 0.4cm;
        height: 0.4cm;
    }

    .dlv-yes svg {
        width: 0.34cm;
        height: 0.34cm;
    }

    .dlv-text-mark {
        font-size: 7pt;
        color: #444 !important;
    }

    .dlv-two {
        gap: 0.18cm;
        margin-top: 0.08cm;
    }

    .dlv-two-col {
        padding: 0.12cm 0.16cm;
        border: 1px solid #DDD !important;
        border-radius: 3px;
        background: #FFF !important;
    }

    .dlv-two-col--ok h3,
    .dlv-two-col--in h3,
    .dlv-two-col--no h3,
    .dlv-two-col--out h3 {
        color: #000 !important;
    }

    .dlv-two-col li {
        padding-left: 0.28cm;
        margin-bottom: 0.04cm;
    }

    .dlv-two-col li::before {
        top: 0.5em;
        width: 0.08cm;
        height: 0.08cm;
        background: #666 !important;
    }

    .dlv-list {
        margin-top: 0.06cm;
    }

    .dlv-list li {
        padding-left: 0.3cm;
        margin-bottom: 0.05cm;
    }

    .dlv-list li::before {
        top: 0.55em;
        width: 0.08cm;
        height: 0.08cm;
        background: #666 !important;
    }

    .dlv-check {
        margin-top: 0.06cm;
    }

    .dlv-check li {
        padding: 0.04cm 0 0.04cm 0.55cm;
        border-bottom: 0;
    }

    .dlv-check li::before {
        top: 0.36em;
        width: 0.32cm;
        height: 0.32cm;
        border: 1px solid #999;
        border-radius: 2px;
        background: none !important;
        color: #000 !important;
        font-size: 6.8pt;
    }

    .dlv-sign {
        gap: 1cm;
        margin-top: 0.1cm;
    }

    .dlv-sign-label {
        margin-bottom: 0.15cm;
        font-size: 8pt;
        color: #000 !important;
    }

    .dlv-sign-line {
        margin-bottom: 0.36cm;
        padding-bottom: 0.05cm;
        border-bottom: 1px solid #BBB;
        font-size: 7.5pt;
        color: #555 !important;
    }

    a {
        color: inherit !important;
        text-decoration: none !important;
    }
}
