:root {
    --shenghui-navy: #0b2a4a;
    --shenghui-navy-deep: #071d33;
    --shenghui-gold: #b08a4a;
    --shenghui-gold-soft: #eee5d4;
    --shenghui-surface: #f5f6f4;
    --shenghui-card: #ffffff;
    --shenghui-ink: #173453;
    --shenghui-muted: #56697d;
    --shenghui-line: #d9e0e6;
    --shenghui-shadow: 0 18px 44px rgb(11 42 74 / 0.08);
    --shenghui-shadow-hover: 0 22px 50px rgb(11 42 74 / 0.14);
}

html { background: var(--shenghui-surface); }
body { overflow-x: clip; color: var(--shenghui-ink); background: var(--shenghui-surface); }

.site-header {
    position: sticky;
    z-index: 20;
    top: 0;
    border-bottom: 1px solid rgb(255 255 255 / 0.12);
    background: var(--shenghui-navy);
    box-shadow: 0 8px 24px rgb(7 29 51 / 0.12);
}

.site-header::after {
    display: none;
}

.site-header__inner { min-height: 4.7rem; }
.site-brand { color: #fff; }
.site-brand__name { font-size: clamp(1rem, 1.45vw, 1.25rem); letter-spacing: 0.01em; }
.site-brand__tagline { color: #c9d8e5; }
.primary-nav__list { gap: clamp(0.8rem, 2.1vw, 2rem); }
.primary-nav__list a { position: relative; color: rgb(255 255 255 / 0.84); text-decoration: none; transition: color 180ms ease; }
.primary-nav__list a::after { position: absolute; right: 0; bottom: -0.95rem; left: 0; height: 3px; background: var(--shenghui-gold); content: ""; transform: scaleX(0); transform-origin: right; transition: transform 180ms ease; }
.primary-nav__list a:hover, .primary-nav__list a:focus-visible, .primary-nav__list .current-menu-item > a, .primary-nav__list .site-upgrade-current > a, .primary-nav__list a[aria-current="page"], .site-navigation .menu-item > a[aria-current="page"], .site-navigation .site-upgrade-current > a { color: #fff; }
.primary-nav__list .current-menu-item > a, .primary-nav__list .site-upgrade-current > a, .primary-nav__list a[aria-current="page"] { box-shadow: none; }
.primary-nav__list a:hover::after, .primary-nav__list a:focus-visible::after, .primary-nav__list .current-menu-item > a::after, .primary-nav__list .site-upgrade-current > a::after, .primary-nav__list a[aria-current="page"]::after, .site-navigation .menu-item > a[aria-current="page"]::after, .site-navigation .site-upgrade-current > a::after { transform: scaleX(1); transform-origin: left; }
.nav-toggle { border-color: rgb(255 255 255 / 0.3); color: #fff; background: transparent; }
.nav-toggle__bar { background: currentColor; }

.site-content { min-height: 60vh; background: var(--shenghui-surface); }
.site-content a { color: var(--shenghui-navy); }
.site-content a:hover, .site-content a:focus-visible { color: var(--shenghui-gold); }

.business-hero,
.archive-page,
.team-page,
.site-page,
.contact-page {
    width: min(calc(100% - 3rem), 78rem);
    margin-inline: auto;
}

.business-hero {
    position: relative;
    padding-block: clamp(5rem, 10vw, 8rem) clamp(3rem, 6vw, 5rem);
    background: linear-gradient(135deg, rgb(255 255 255 / 0.78), transparent 72%);
}

.business-hero::before,
.archive-page::before,
.team-page::before,
.site-page::before,
.contact-page::before {
    display: none;
}

.business-hero__inner { max-width: 52rem; }
.business-hero h1,
.archive-page > h1,
.team-page__intro h1,
.site-page > h1,
.contact-page__info h1 {
    margin: 0;
    color: var(--shenghui-navy);
    font-size: clamp(2.7rem, 6vw, 5.6rem);
    font-weight: 760;
    letter-spacing: -0.055em;
    line-height: 1.08;
}

.business-hero p,
.archive-page > p,
.team-page__intro p,
.site-page > p,
.contact-page__info > p {
    max-width: 48rem;
    margin-top: 1.25rem;
    color: var(--shenghui-muted);
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    line-height: 1.9;
}

.site-section { padding-block: clamp(4.5rem, 8vw, 7rem); }
.archive-page { padding-block: clamp(4rem, 8vw, 7rem); }
.archive-page > h1 { margin-bottom: 1rem; }
.archive-page > p { margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.service-grid,
.archive-page__grid,
.team-grid,
.social-qr-grid {
    display: grid;
    gap: clamp(1rem, 2vw, 1.5rem);
}

.service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.archive-page__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card,
.service-card,
.case-card,
.team-card,
.contact-card,
.social-qr-card {
    border: 1px solid var(--shenghui-line);
    border-radius: 14px;
    background: var(--shenghui-card);
    box-shadow: var(--shenghui-shadow);
}

.service-card,
.case-card,
.team-card,
.social-qr-card { transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease; }
.service-card:hover, .service-card:focus-within,
.case-card:hover, .case-card:focus-within,
.team-card:hover, .team-card:focus-within,
.social-qr-card:hover, .social-qr-card:focus-within {
    border-color: rgb(176 138 74 / 0.62);
    box-shadow: var(--shenghui-shadow-hover);
    transform: translateY(-3px);
}

.service-card {
    min-height: 20rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border-top: 3px solid var(--shenghui-navy);
    text-decoration: none;
}

.service-card:nth-child(2n) { border-top-color: var(--shenghui-gold); }
.service-card__index { color: var(--shenghui-gold); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; }
.service-card h3, .case-card h2 { margin: 0; color: var(--shenghui-navy); font-size: clamp(1.35rem, 2vw, 1.8rem); line-height: 1.3; }
.service-card p, .case-card p { color: var(--shenghui-muted); line-height: 1.8; }
.service-card__link { margin-top: auto; color: var(--shenghui-navy); font-weight: 760; }

.case-card { min-height: 16rem; padding: clamp(1.5rem, 3vw, 2.5rem); }
.case-card h2 a { color: inherit; text-decoration: none; }
.case-card h2 a::after { display: inline-block; margin-left: 0.45rem; color: var(--shenghui-gold); content: "↗"; font-size: 0.85em; }
.case-card p { margin-top: 1rem; }

.team-page { padding-block: clamp(4rem, 8vw, 7rem); }
.team-page__intro { max-width: 56rem; margin-bottom: clamp(3rem, 6vw, 5rem); }
.team-page__intro p { max-width: 48rem; }
.team-page .shenghui-b-team-gallery { margin-bottom: clamp(3.5rem, 7vw, 5.5rem); }
.team-page .team-grid { align-items: start; }
.team-page .team-card { padding: clamp(1rem, 2vw, 1.5rem); text-align: left; }
.team-page .team-card__portrait { width: 100%; aspect-ratio: 2 / 3; margin: 0 0 1.5rem; overflow: hidden; border: 1px solid var(--shenghui-line); border-radius: 10px; background: #edf2f4; }
.team-page .team-card__portrait img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.team-page .team-card__name { margin: 0; color: var(--shenghui-navy); font-size: clamp(1.55rem, 2.4vw, 2rem); line-height: 1.2; }
.team-page .team-card__role { display: inline-flex; margin-top: 0.85rem; padding: 0.42rem 0.8rem; border-radius: 999px; color: #805f2c; background: var(--shenghui-gold-soft); font-size: 0.82rem; font-weight: 760; }
.team-page .team-card > ul { margin: 1.25rem 0 0; padding: 0; list-style: none; color: var(--shenghui-muted); }
.team-page .team-card > ul li { padding: 0.75rem 0; border-top: 1px solid var(--shenghui-line); line-height: 1.65; }
.team-page .team-card > ul li:first-child { border-top: 0; }

.faq-list { display: grid; gap: 0; }
.faq-item { padding: clamp(1.25rem, 2.5vw, 1.75rem) 0; border-top: 1px solid var(--shenghui-line); }
.faq-item:last-child { border-bottom: 1px solid var(--shenghui-line); }
.faq-item h2 { color: var(--shenghui-navy); font-size: clamp(1.1rem, 1.8vw, 1.4rem); line-height: 1.45; }
.faq-item h2::after { float: right; color: var(--shenghui-gold); content: "+"; font-weight: 450; }
.faq-item__answer { max-width: 55rem; margin-top: 0.8rem; color: var(--shenghui-muted); line-height: 1.85; }

.site-page { max-width: 58rem; padding-block: clamp(4rem, 8vw, 7rem); }
.site-page > h1 { margin-bottom: 2rem; }
.site-page > p { max-width: 54rem; margin-top: 1rem; }
.site-page > p + p { margin-top: 1.35rem; }

.contact-page { padding-block: clamp(4rem, 8vw, 7rem); }
.contact-page__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.85fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.contact-page__info > h1 { margin-bottom: 1rem; }
.contact-page__info dl { display: grid; grid-template-columns: minmax(7rem, 0.45fr) minmax(0, 1fr); margin: 2.2rem 0 0; border-top: 1px solid var(--shenghui-line); }
.contact-page__info dt, .contact-page__info dd { margin: 0; padding: 0.85rem 0; border-bottom: 1px solid var(--shenghui-line); }
.contact-page__info dt { color: var(--shenghui-muted); font-size: 0.82rem; }
.contact-page__info dd { color: var(--shenghui-ink); font-weight: 650; }
.contact-page__info dd a { color: var(--shenghui-navy); }
.contact-card { padding: clamp(1.5rem, 3vw, 2.25rem); }
.contact-card h2, .social-qr-panel h2 { margin: 0; color: var(--shenghui-navy); font-size: clamp(1.55rem, 2.5vw, 2.2rem); }
.field-hint { color: var(--shenghui-muted); line-height: 1.75; }
.consultation-form { display: grid; gap: 1rem; margin-top: 1.5rem; }
.form-field { display: grid; gap: 0.45rem; }
.form-field label, .form-consent label { color: var(--shenghui-ink); font-size: 0.88rem; font-weight: 700; }
.form-field input, .form-field select, .form-field textarea { width: 100%; min-height: 2.9rem; border: 1px solid var(--shenghui-line); border-radius: 7px; padding: 0.7rem 0.8rem; color: var(--shenghui-ink); background: #fbfcfb; }
.form-field textarea { min-height: 8rem; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--shenghui-gold); outline: 3px solid rgb(176 138 74 / 0.2); outline-offset: 1px; }
.form-consent { display: flex; gap: 0.6rem; align-items: flex-start; }
.form-consent input { width: 1.1rem; height: 1.1rem; margin-top: 0.15rem; accent-color: var(--shenghui-navy); }
.button--primary { border-color: var(--shenghui-navy); color: #fff !important; background: var(--shenghui-navy); }
.button--primary:hover, .button--primary:focus-visible { border-color: var(--shenghui-gold); color: #fff !important; background: var(--shenghui-navy-deep); }
.site-content a.button--gold, .site-content a.button--navy-outline { color: #fff !important; }
.social-qr-panel { margin-top: clamp(4rem, 8vw, 7rem); padding-top: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--shenghui-line); }
.social-qr-panel__heading { display: flex; justify-content: space-between; gap: 2rem; align-items: end; margin-bottom: 2rem; }
.social-qr-panel__heading p { color: var(--shenghui-muted); }
.social-qr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.social-qr-card { margin: 0; padding: 1rem; }
.social-qr-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: #fff; }
.social-qr-card figcaption { display: grid; gap: 0.2rem; padding: 0.9rem 0.25rem 0.15rem; }
.social-qr-card strong { color: var(--shenghui-navy); }
.social-qr-card span { color: var(--shenghui-muted); font-size: 0.85rem; }

.site-footer { color: rgb(255 255 255 / 0.72); background: var(--shenghui-navy-deep); }
.site-footer h2 { color: #fff; font-size: 1rem; }
.site-footer a { color: #fff; }
.site-footer__bottom { border-color: rgb(255 255 255 / 0.16); }

@media (max-width: 64rem) {
    .service-grid, .archive-page__grid, .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .contact-page__grid { gap: 2.5rem; }
}

@media (max-width: 48rem) {
    .business-hero, .archive-page, .team-page, .site-page, .contact-page { width: min(calc(100% - 1.5rem), 42rem); }
    .site-header__inner { min-height: 4.4rem; }
    .primary-nav { background: var(--shenghui-navy-deep); }
    .primary-nav__list { gap: 0.15rem; }
    .primary-nav__list a { min-height: 2.8rem; display: flex; align-items: center; padding-inline: 0.75rem; }
    .primary-nav__list a::after { right: 0.75rem; bottom: 0.25rem; left: 0.75rem; }
    .business-hero { padding-block: 3.5rem 2.5rem; }
    .archive-page, .team-page, .site-page, .contact-page { padding-block: 3.5rem 4.5rem; }
    .shenghui-b-team-gallery__stage { height: min(88vw, 30rem); min-height: 18rem; }
    .shenghui-b-team-gallery__slide img { max-width: 100%; max-height: 100%; }
    .service-grid, .archive-page__grid, .team-grid, .social-qr-grid, .contact-page__grid { grid-template-columns: 1fr; }
    .service-card { min-height: auto; }
    .team-page .team-card { padding: 1rem; }
    .social-qr-panel__heading { display: grid; gap: 0.7rem; align-items: start; }
    .contact-page__info dl { grid-template-columns: 6rem minmax(0, 1fr); }
    .site-footer__inner { gap: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
    .service-card, .case-card, .team-card, .social-qr-card { transition-duration: 0.01ms; }
}

.site-content a.hero__phone-link,
.site-content a.hero__phone-link:hover,
.site-content a.hero__phone-link:focus-visible {
	color: #ffffff !important;
	text-decoration: none;
}
