/*! Secondary-site presentation layer (shanghai.chuanglvjia.cn and future sites).
 *  The main-site design system is reused unchanged via /_pc/static/style.css,
 *  live.css, contact-navigation.css and production.css. This file adds only the
 *  secondary-site identity pieces and the few layouts those sheets do not cover.
 *  Scope: body.multisite-site — the primary site never loads this file. */

.multisite-site header .header-inner {
    height: 112px;
}

.multisite-site header .header-inner .brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.multisite-site header .header-inner .brand-link .logo {
    width: 214px;
    height: auto;
    max-height: none;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

.multisite-site .logo-wordmark {
    font-size: 24px;
    font-weight: 700;
    color: var(--blue);
    letter-spacing: 1px;
    white-space: nowrap;
}

.multisite-site .site-badge {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 11px;
    border: 1px solid #cfe2f5;
    border-radius: 5px;
    background: var(--pale);
    color: #1c5f9e;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .5px;
    white-space: nowrap;
}

/* ---- Homepage hero ---- */
.multisite-site .home-hero .hero-grid {
    min-height: 520px;
}

.multisite-site .hero-image {
    height: auto;
    max-height: 520px;
    object-fit: contain;
    background: #fff;
}

.ms-hero-panel {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    padding: 34px 34px 30px;
    box-shadow: 0 25px 50px #10366118;
}

.ms-hero-panel .ms-hero-name {
    display: block;
    margin: 10px 0 8px;
    font-size: 26px;
    line-height: 1.4;
    color: var(--navy);
    letter-spacing: -.5px;
}

.ms-hero-panel > p {
    margin: 0 0 22px;
    font-size: 12px;
    line-height: 1.9;
    color: var(--muted);
}

.ms-hero-list {
    display: grid;
    gap: 13px;
    margin: 0 0 24px;
}

.ms-hero-list > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #dce9f6;
}

.ms-hero-list > div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.ms-hero-list dt {
    margin: 0;
    font-size: 11px;
    letter-spacing: .6px;
    color: #8ba3b8;
}

.ms-hero-list dd {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #2c4f72;
    text-align: right;
}

.ms-hero-panel .btn {
    width: 100%;
}

/* ---- Identity facts strip (main .stats layout) ---- */
.multisite-site .stat span {
    max-width: 120px;
}

.multisite-site .stat.stat-phone strong {
    font-size: 20px;
    letter-spacing: 0;
}

/* ---- Section background variants ---- */
.ms-notes {
    background: #f7f9fc;
}

.ms-pending {
    background: #f7f9fc;
}

.ms-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.ms-feature {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    padding: 26px;
}

.ms-feature .no {
    font-size: 11px;
    letter-spacing: 1px;
    color: #7b98b8;
}

.ms-feature h3 {
    margin: 8px 0 10px;
    font-size: 18px;
    color: var(--navy);
}

.ms-feature p {
    margin: 0;
    font-size: 12px;
    line-height: 1.9;
    color: var(--muted);
}

.ms-pending-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.ms-pending-card {
    display: block;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    padding: 26px;
    transition: .2s;
}

.ms-pending-card:hover {
    box-shadow: 0 12px 30px #17395b12;
    transform: translateY(-3px);
}

.ms-pending-card strong {
    display: block;
    font-size: 17px;
    color: var(--navy);
}

.ms-pending-card span {
    display: block;
    margin: 8px 0 14px;
    font-size: 12px;
    line-height: 1.9;
    color: var(--muted);
}

.ms-pending-card em {
    font-style: normal;
    font-size: 12px;
    color: var(--blue);
}

/* ---- Shared-content provenance note ---- */
.ms-source-note {
    margin: 0 0 22px;
    padding: 15px 18px;
    border-left: 4px solid var(--blue);
    border-radius: 8px;
    background: #f2f7fd;
    font-size: 12.5px;
    line-height: 1.95;
    color: #37536e;
}

.ms-source-note a {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ms-inherit {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    border-radius: 3px;
    background: #f1f6fb;
    color: #7d94a9;
    font-size: 10px;
    font-weight: 400;
    white-space: nowrap;
    vertical-align: middle;
}

.ms-footer-inherit {
    color: #93a9bd;
    font-size: 10px;
}

/* ---- Inline link lists (about / 404) ---- */
.ms-link-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

.ms-link-list a {
    border: 1px solid #cfdfef;
    border-radius: 30px;
    padding: 7px 18px;
    font-size: 12px;
    color: #3c6995;
    background: #fff;
}

.ms-link-list a:hover {
    border-color: var(--blue);
    color: var(--blue);
}

/* ---- Empty state polish (shared main-site component) ---- */
.multisite-site .empty-state {
    text-align: center;
    padding: 55px 24px;
    margin-bottom: 10px;
}

.multisite-site .empty-state h2 {
    font-size: 22px;
    color: var(--navy);
    margin: 0 0 10px;
}

.multisite-site .empty-state p {
    font-size: 13px;
    line-height: 1.95;
    color: var(--muted);
    margin: 0 auto 16px;
    max-width: 560px;
}

.multisite-site .empty-state .text-link {
    display: inline-block;
}

/* ---- Contact form (main production form classes) ---- */
.multisite-site .pc-native-contact .contact-fields input,
.multisite-site .pc-native-contact .contact-fields select,
.multisite-site .pc-native-contact .contact-fields textarea {
    background: #fff;
    color: #244a70;
    -webkit-text-fill-color: #244a70;
}

.multisite-site .pc-native-contact .contact-fields input::placeholder,
.multisite-site .pc-native-contact .contact-fields textarea::placeholder {
    color: #a2b2c2;
    -webkit-text-fill-color: #a2b2c2;
}

.multisite-site .contact-channel-card .contact-qr-grid {
    grid-template-columns: 1fr;
}

/* ---- Responsive ---- */
@media (min-width: 951px) and (max-width: 1200px) {
    .multisite-site header .header-inner {
        height: 104px;
        gap: 12px;
    }

    .multisite-site header .header-inner .brand-link .logo {
        width: 184px;
    }
}

@media (max-width: 950px) {
    .multisite-site header .header-inner {
        height: 96px;
    }

    .multisite-site header .header-inner .brand-link .logo {
        width: 176px;
    }

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

    .multisite-site .home-hero .hero-grid {
        min-height: 0;
    }
}

@media (max-width: 650px) {
    .multisite-site header .header-inner {
        height: auto;
        min-height: 84px;
        padding: 9px 0;
    }

    .multisite-site header .header-inner .brand-link .logo {
        width: 142px;
    }

    .multisite-site .site-badge {
        display: none;
    }

    .multisite-site .logo-wordmark {
        font-size: 19px;
    }

    .ms-hero-panel {
        padding: 24px 22px;
        border-radius: 12px;
    }

    .ms-hero-panel .ms-hero-name {
        font-size: 21px;
    }

    .ms-hero-list dd {
        font-size: 12px;
    }

    .ms-feature-grid,
    .ms-pending-grid {
        grid-template-columns: 1fr;
    }

    .ms-feature,
    .ms-pending-card {
        padding: 20px;
    }

    .multisite-site .stat.stat-phone strong {
        font-size: 15px;
    }

    .multisite-site .stat span {
        max-width: 90px;
    }

    .multisite-site .empty-state {
        padding: 35px 20px;
    }

    .multisite-site .empty-state h2 {
        font-size: 19px;
    }

    .multisite-site .empty-state p {
        font-size: 12px;
    }

    .ms-link-list a {
        font-size: 11px;
        padding: 6px 13px;
    }
}
