body {
    margin: 0;
    background: #f5f7fb;
    color: #172033;
    font-family: Arial, "Microsoft YaHei", sans-serif;
}

.bid-entry {
    --bid-primary: #1f5fbf;
    --bid-primary-dark: #174f9f;
    --bid-primary-soft: #e8f0ff;
    --bid-primary-chip: #edf3ff;
    --bid-primary-shadow: rgba(31, 95, 191, 0.22);
    --bid-accent: #10847a;
    --bid-accent-dark: #0d7169;
    --bid-accent-soft: #e4f7f3;
    --bid-accent-shadow: rgba(16, 132, 122, 0.22);
    --bid-feature-border: rgba(16, 132, 122, 0.38);
    --bid-feature-shadow: rgba(16, 132, 122, 0.16);
    --bid-warning: #f4b340;
    --bid-hero-start: 28, 96, 191;
    --bid-hero-end: 16, 132, 122;
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 42px 0 64px;
}

.bid-entry--xinxunai {
    --bid-primary: #1b4ed8;
    --bid-primary-dark: #153faa;
    --bid-primary-soft: #e8efff;
    --bid-primary-chip: #eef3ff;
    --bid-primary-shadow: rgba(27, 78, 216, 0.22);
    --bid-accent: #0f9f9a;
    --bid-accent-dark: #0c7f7b;
    --bid-accent-soft: #e3f8f6;
    --bid-accent-shadow: rgba(15, 159, 154, 0.22);
    --bid-feature-border: rgba(15, 159, 154, 0.38);
    --bid-feature-shadow: rgba(15, 159, 154, 0.16);
    --bid-warning: #f59e0b;
    --bid-hero-start: 27, 78, 216;
    --bid-hero-end: 15, 159, 154;
}

.bid-entry--kuaibiaobao {
    --bid-primary: #0f766e;
    --bid-primary-dark: #0b5f59;
    --bid-primary-soft: #e3f4f2;
    --bid-primary-chip: #e8f6f4;
    --bid-primary-shadow: rgba(15, 118, 110, 0.22);
    --bid-accent: #d97706;
    --bid-accent-dark: #b45f04;
    --bid-accent-soft: #fff2dc;
    --bid-accent-shadow: rgba(217, 119, 6, 0.22);
    --bid-feature-border: rgba(217, 119, 6, 0.34);
    --bid-feature-shadow: rgba(217, 119, 6, 0.15);
    --bid-warning: #f6b73c;
    --bid-hero-start: 15, 118, 110;
    --bid-hero-end: 217, 119, 6;
}

.bid-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    gap: 28px;
    align-items: stretch;
    padding: 42px;
    border: 1px solid #dfe7f3;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(var(--bid-hero-start), 0.95), rgba(var(--bid-hero-end), 0.9)),
        var(--bid-primary);
    box-shadow: 0 24px 60px rgba(23, 32, 51, 0.14);
}

.bid-hero__copy {
    color: #fff;
}

.bid-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 14px;
    line-height: 1;
}

.bid-hero h1 {
    max-width: 720px;
    margin: 18px 0 14px;
    font-size: 42px;
    line-height: 1.18;
    font-weight: 700;
    letter-spacing: 0;
}

.bid-hero p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 17px;
    line-height: 1.8;
}

.bid-hero__panel {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: center;
    min-height: 160px;
    padding: 24px 20px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
}

.process-step {
    display: grid;
    justify-items: center;
    gap: 10px;
    text-align: center;
    color: #fff;
}

.process-step span {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    color: var(--bid-primary);
    font-size: 14px;
    font-weight: 700;
}

.process-step strong {
    font-size: 15px;
    line-height: 1.35;
    font-weight: 700;
}

.process-line {
    width: 20px;
    height: 1px;
    background: rgba(255, 255, 255, 0.52);
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin: 34px 0 16px;
}

.section-heading span {
    color: #172033;
    font-size: 22px;
    line-height: 1.35;
    font-weight: 700;
}

.section-heading p {
    max-width: 520px;
    margin: 0;
    color: #677489;
    font-size: 14px;
    line-height: 1.7;
    text-align: right;
}

.section-heading--compact {
    margin-top: 0;
}

.templates {
    display: grid;
    gap: 20px;
}

.primary-templates {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.template {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 300px;
    padding: 28px;
    border: 1px solid #dfe7f3;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(23, 32, 51, 0.08);
}

.template--featured {
    border-color: var(--bid-feature-border);
    box-shadow: 0 20px 48px var(--bid-feature-shadow);
}

.template-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.template-icon,
.support-tool__icon {
    position: relative;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: var(--bid-primary-soft);
}

.template-icon--document::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 12px;
    width: 18px;
    height: 24px;
    border: 2px solid var(--bid-primary);
    border-radius: 3px;
    background: #fff;
}

.template-icon--document::after {
    content: "";
    position: absolute;
    top: 19px;
    left: 17px;
    width: 12px;
    height: 2px;
    background: var(--bid-primary);
    box-shadow: 0 6px 0 var(--bid-primary);
}

.template-icon--spark {
    background: var(--bid-accent-soft);
}

.template-icon--spark::before,
.template-icon--spark::after {
    content: "";
    position: absolute;
    inset: 11px;
    border-radius: 2px;
    background: var(--bid-accent);
    transform: rotate(45deg);
}

.template-icon--spark::after {
    inset: 18px;
    background: var(--bid-warning);
}

.template-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--bid-primary-chip);
    color: var(--bid-primary);
    font-size: 13px;
    line-height: 1;
    font-weight: 700;
    white-space: nowrap;
}

.template-badge--featured {
    background: var(--bid-accent-soft);
    color: var(--bid-accent-dark);
}

.template h2 {
    margin: 0 0 12px;
    color: #172033;
    font-size: 24px;
    line-height: 1.35;
    font-weight: 700;
}

.template p {
    margin: 0;
    color: #566276;
    font-size: 15px;
    line-height: 1.8;
}

.template ul {
    display: grid;
    gap: 9px;
    margin: 20px 0 26px;
    padding: 0;
    list-style: none;
}

.template li {
    position: relative;
    padding-left: 20px;
    color: #354256;
    font-size: 14px;
    line-height: 1.55;
}

.template li::before {
    content: "";
    position: absolute;
    top: 0.7em;
    left: 2px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--bid-primary);
}

.template--featured li::before {
    background: var(--bid-accent);
}

.template a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-width: 132px;
    min-height: 44px;
    margin-top: 26px;
    padding: 0 20px;
    border-radius: 6px;
    background: var(--bid-primary);
    color: #fff;
    font-size: 15px;
    line-height: 1;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.template a:hover {
    background: var(--bid-primary-dark);
    box-shadow: 0 10px 20px var(--bid-primary-shadow);
    transform: translateY(-1px);
}

.template--featured a {
    background: var(--bid-accent);
}

.template--featured a:hover {
    background: var(--bid-accent-dark);
    box-shadow: 0 10px 20px var(--bid-accent-shadow);
}

.support-tools {
    margin-top: 24px;
    padding: 24px;
    border: 1px solid #dfe7f3;
    border-radius: 8px;
    background: #fff;
}

.support-tool-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.support-tool {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 92px;
    padding: 16px;
    border: 1px solid #e3e9f2;
    border-radius: 8px;
    background: #fbfcff;
    color: #172033;
    text-decoration: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.support-tool:hover {
    border-color: #b9c8dd;
    box-shadow: 0 10px 24px rgba(23, 32, 51, 0.08);
    transform: translateY(-1px);
}

.support-tool__icon {
    width: 40px;
    height: 40px;
    background: #f2f5f9;
}

.support-tool__icon--gantt::before,
.support-tool__icon--gantt::after,
.support-tool__icon--appendix::before,
.support-tool__icon--appendix::after,
.support-tool__icon--analysis::before,
.support-tool__icon--analysis::after {
    content: "";
    position: absolute;
}

.support-tool__icon--gantt::before {
    top: 12px;
    left: 9px;
    width: 22px;
    height: 4px;
    border-radius: 2px;
    background: var(--bid-primary);
    box-shadow: 0 8px 0 var(--bid-accent), 0 16px 0 var(--bid-warning);
}

.support-tool__icon--gantt::after {
    top: 8px;
    left: 8px;
    width: 1px;
    height: 26px;
    background: #c7d1df;
}

.support-tool__icon--appendix::before {
    top: 10px;
    left: 10px;
    width: 20px;
    height: 20px;
    border: 2px solid var(--bid-accent);
    border-radius: 3px;
    background:
        linear-gradient(#dbe7f3 0 0) 0 6px / 100% 1px no-repeat,
        linear-gradient(#dbe7f3 0 0) 0 13px / 100% 1px no-repeat,
        linear-gradient(#dbe7f3 0 0) 8px 0 / 1px 100% no-repeat,
        #fff;
}

.support-tool__icon--analysis::before {
    top: 10px;
    left: 11px;
    width: 15px;
    height: 20px;
    border: 2px solid var(--bid-primary);
    border-radius: 3px;
    background: #fff;
    box-shadow: 6px 6px 0 var(--bid-feature-shadow);
}

.support-tool__icon--analysis::after {
    top: 18px;
    left: 16px;
    width: 13px;
    height: 2px;
    border-radius: 2px;
    background: var(--bid-warning);
    box-shadow: 0 6px 0 var(--bid-primary);
}

.support-tool strong {
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
    line-height: 1.35;
}

.support-tool small {
    display: block;
    color: #677489;
    font-size: 13px;
    line-height: 1.55;
}

@media (max-width: 900px) {
    .bid-entry {
        width: min(100% - 28px, 680px);
        padding: 24px 0 44px;
    }

    .bid-hero {
        grid-template-columns: 1fr;
        padding: 28px;
    }

    .bid-hero h1 {
        font-size: 32px;
    }

    .bid-hero__panel {
        min-height: 130px;
    }

    .section-heading {
        display: block;
    }

    .section-heading p {
        margin-top: 6px;
        text-align: left;
    }

    .primary-templates {
        grid-template-columns: 1fr;
    }

    .support-tool-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .bid-entry {
        width: calc(100% - 24px);
    }

    .bid-hero {
        padding: 22px;
    }

    .bid-hero h1 {
        font-size: 28px;
    }

    .bid-hero p,
    .template p {
        font-size: 14px;
    }

    .bid-hero__panel {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 18px;
    }

    .process-line {
        width: 1px;
        height: 18px;
    }

    .template {
        min-height: auto;
        padding: 22px;
    }

    .template h2 {
        font-size: 21px;
    }

    .support-tools {
        padding: 18px;
    }

    .support-tool {
        align-items: flex-start;
        min-height: auto;
    }

    .support-tool-grid {
        grid-template-columns: 1fr;
    }
}
