:root {
    --ink: #18211d;
    --muted-ink: #5f6862;
    --paper: #f7f4ed;
    --white: #ffffff;
    --line: #ded8ca;
    --cinnabar: #a73529;
    --cinnabar-dark: #7f251d;
    --pine: #263f35;
    --stone: #ebe6db;
    --shadow: 0 18px 50px rgba(38, 63, 53, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.75;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(222, 216, 202, 0.8);
    background: rgba(247, 244, 237, 0.94);
    backdrop-filter: blur(18px);
}

.nav {
    width: min(1220px, calc(100% - 40px));
    height: 78px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 260px;
}

.brand-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: var(--white);
    background: var(--cinnabar);
    font-weight: 800;
    border-radius: 50%;
    box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.08);
}

.brand strong,
.brand em {
    display: block;
}

.brand strong {
    font-size: 17px;
    line-height: 1.2;
}

.brand em {
    margin-top: 2px;
    font-size: 11px;
    color: var(--muted-ink);
    font-style: normal;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
    color: var(--muted-ink);
    font-size: 15px;
}

.nav-links a {
    position: relative;
    padding: 27px 0 24px;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 18px;
    height: 2px;
    transform: scaleX(0);
    transform-origin: center;
    background: var(--cinnabar);
    transition: transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--ink);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
}

.hero {
    min-height: calc(100vh - 78px);
    display: grid;
    align-items: center;
    padding: 88px 0;
    background:
        linear-gradient(90deg, rgba(247, 244, 237, 0.96) 0%, rgba(247, 244, 237, 0.88) 34%, rgba(247, 244, 237, 0.2) 62%),
        url("assets/hero-ancient-architecture.png") center / cover no-repeat;
}

.hero-panel {
    width: min(620px, calc(100% - 40px));
    margin-left: max(20px, calc((100vw - 1160px) / 2));
}

.eyebrow,
.section-kicker {
    margin: 0 0 14px;
    color: var(--cinnabar);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 24px;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 1.08;
    font-weight: 800;
}

h2 {
    margin-bottom: 18px;
    font-size: clamp(28px, 3.5vw, 46px);
    line-height: 1.18;
}

h3 {
    margin-bottom: 10px;
    font-size: 21px;
    line-height: 1.35;
}

.hero-text {
    max-width: 560px;
    margin-bottom: 34px;
    color: var(--muted-ink);
    font-size: 18px;
}

.hero-actions,
.center-action {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.center-action {
    justify-content: center;
    margin-top: 34px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.btn.primary {
    color: var(--white);
    background: var(--cinnabar);
}

.btn.primary:hover {
    background: var(--cinnabar-dark);
}

.btn.secondary {
    color: var(--pine);
    border-color: var(--pine);
    background: rgba(255, 255, 255, 0.35);
}

.btn.secondary:hover {
    background: var(--white);
}

.section {
    padding: 92px 0;
}

.muted {
    background: var(--stone);
}

.split,
.two-column,
.contact-layout,
.certificate-layout,
.evidence {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 64px;
    align-items: start;
}

.split p:last-child,
.rich-text p,
.certificate-layout p,
.evidence p {
    color: var(--muted-ink);
    font-size: 17px;
}

.section-heading {
    max-width: 720px;
    margin-bottom: 34px;
}

.feature-grid,
.project-list,
.qualification-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.feature,
.project-list article,
.qualification-grid span,
.contact-card,
.contact-form {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.68);
    box-shadow: var(--shadow);
}

.feature {
    min-height: 220px;
    padding: 28px;
}

.feature span {
    display: block;
    margin-bottom: 38px;
    color: var(--cinnabar);
    font-size: 13px;
    font-weight: 800;
}

.feature p,
.project-list p {
    margin: 0;
    color: var(--muted-ink);
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--line);
}

.stats div {
    padding: 34px 24px;
    text-align: center;
    background: var(--paper);
}

.stats strong,
.stats span {
    display: block;
}

.stats strong {
    color: var(--cinnabar);
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.1;
}

.stats span {
    margin-top: 8px;
    color: var(--muted-ink);
}

.project-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-list article {
    min-height: 150px;
    padding: 26px;
}

.project-list.compact article {
    min-height: 135px;
}

.page-hero {
    padding: 112px 0 76px;
    color: var(--white);
    background:
        linear-gradient(90deg, rgba(24, 33, 29, 0.88), rgba(24, 33, 29, 0.56)),
        url("assets/hero-ancient-architecture.png") center / cover no-repeat;
}

.page-hero .container {
    max-width: 900px;
}

.page-hero p {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
}

.page-hero .eyebrow {
    color: #f0b3a9;
}

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

.qualification-grid span {
    padding: 20px 22px;
    color: var(--pine);
    font-weight: 700;
}

.certificate-grid,
.evidence-images {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.certificate-grid img,
.evidence-images img {
    width: 100%;
    aspect-ratio: 3 / 4.2;
    object-fit: cover;
    object-position: top center;
    border: 1px solid var(--line);
    background: var(--white);
    box-shadow: var(--shadow);
}

.evidence {
    grid-template-columns: 0.55fr 1.45fr;
}

.contact-card,
.contact-form {
    padding: 34px;
}

.contact-card h2 {
    font-size: 30px;
}

dl,
dd {
    margin: 0;
}

.contact-card dl {
    display: grid;
    gap: 18px;
}

.contact-card dt {
    color: var(--cinnabar);
    font-size: 13px;
    font-weight: 800;
}

.contact-card dd {
    color: var(--ink);
    font-size: 17px;
}

.contact-form {
    display: grid;
    gap: 18px;
}

.contact-form label {
    display: grid;
    gap: 8px;
    color: var(--muted-ink);
    font-size: 14px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 13px 14px;
    color: var(--ink);
    background: var(--white);
    font: inherit;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form button {
    justify-self: start;
}

.footer {
    color: rgba(255, 255, 255, 0.78);
    background: var(--ink);
}

.footer-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    font-size: 14px;
}

@media (max-width: 920px) {
    .nav {
        height: auto;
        padding: 16px 0;
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .nav-links {
        width: 100%;
        justify-content: space-between;
        gap: 12px;
        font-size: 14px;
    }

    .nav-links a {
        padding: 4px 0 10px;
    }

    .nav-links a::after {
        bottom: 4px;
    }

    .hero {
        min-height: 680px;
        padding: 76px 0;
        background:
            linear-gradient(180deg, rgba(247, 244, 237, 0.97) 0%, rgba(247, 244, 237, 0.88) 42%, rgba(247, 244, 237, 0.28) 100%),
            url("assets/hero-ancient-architecture.png") center / cover no-repeat;
    }

    .split,
    .two-column,
    .contact-layout,
    .certificate-layout,
    .evidence {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .feature-grid,
    .project-list,
    .stats,
    .certificate-grid,
    .evidence-images {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .container,
    .nav,
    .hero-panel {
        width: min(100% - 28px, 1160px);
    }

    .brand {
        min-width: 0;
    }

    .brand strong {
        font-size: 15px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    h1 {
        font-size: 40px;
    }

    .section {
        padding: 64px 0;
    }

    .feature-grid,
    .project-list,
    .qualification-grid,
    .stats,
    .certificate-grid,
    .evidence-images {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        align-items: flex-start;
        padding: 20px 0;
        flex-direction: column;
    }
}
