:root {
    --bg: #f5efe3;
    --bg-soft: #fbf7ef;
    --panel: rgba(255, 252, 246, 0.94);
    --panel-solid: #fffdf8;
    --line: rgba(83, 97, 114, 0.18);
    --primary: #3f668f;
    --primary-strong: #2f506f;
    --accent: #4c8b84;
    --text: #223247;
    --muted: #5e6f84;
    --gold: #b98a2f;
}

html {
    font-size: 15px;
    position: relative;
    min-height: 100%;
}

body {
    margin: 0;
    font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background:
    radial-gradient(circle at 15% 10%, rgba(59, 121, 199, 0.14), transparent 42%),
    radial-gradient(circle at 90% 80%, rgba(18, 138, 121, 0.12), transparent 33%),
    linear-gradient(180deg, #faf6ee 0%, #f5efe3 58%, #f2ecdf 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(35, 54, 78, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(35, 54, 78, 0.035) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.35;
    z-index: -1;
}

h1, h2, h3, h4, h5 {
    color: #203044;
    margin-bottom: 0.7rem;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-shell {
    margin-top: 0;
}

main[role="main"] {
    padding-bottom: 2.8rem !important;
}

.nav-shell,
.footer-shell,
.content-shell {
    width: min(1380px, calc(100vw - 6vw));
    margin: 0 auto;
}

.home-main-shell {
    padding-top: 1.8rem;
    padding-bottom: 1.2rem;
}

.flagship-hero {
    position: relative;
    width: 100%;
    min-height: min(88vh, 860px);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(22, 33, 48, 0.5) 8%, rgba(35, 55, 78, 0.38) 45%, rgba(53, 71, 96, 0.25) 100%);
}

.hero-noise {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.2;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1380px, calc(100vw - 6vw));
    margin: 0 auto;
    padding: 7rem 0 4.2rem;
}

.hero-content h1 {
    font-family: "Orbitron", "Noto Sans SC", sans-serif;
    font-weight: 500;
    font-size: clamp(2.2rem, 5vw, 4rem);
    margin-bottom: 1rem;
}

.hero-content .lead {
    max-width: 760px;
    font-size: 1.12rem;
}

.metrics-belt {
    width: min(1380px, calc(100vw - 6vw));
    margin: -1.2rem auto 1.4rem;
    position: relative;
    z-index: 3;
    padding: 1rem;
}

.belt-shell {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.metric-card {
    padding: 0.95rem;
    border-radius: 12px;
    border: 1px solid rgba(88, 103, 121, 0.22);
    background: rgba(255, 250, 242, 0.9);
}

.metric-label {
    margin: 0;
    color: #5f7288;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.metric-card h3 {
    margin: 0.35rem 0;
    font-family: "Orbitron", "Noto Sans SC", sans-serif;
    font-weight: 500;
    font-size: 1.3rem;
}

.metric-card span {
    color: #586a80;
    font-size: 0.82rem;
}

.spark-card .sparkline {
    width: 100%;
    height: 56px;
    margin: 0.3rem 0;
}

.spark-card .sparkline polyline {
    fill: none;
    stroke: #31d0bd;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.future-nav {
    background: rgba(248, 241, 229, 0.9);
    border-bottom: 1px solid rgba(106, 118, 131, 0.24);
    box-shadow: 0 6px 18px rgba(79, 88, 95, 0.08);
    backdrop-filter: blur(12px);
}

.brand-mark {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-main {
    font-family: "Orbitron", "Noto Sans SC", sans-serif;
    font-size: 1.25rem;
    letter-spacing: 0.08em;
    font-weight: 500;
    color: #2e4157;
}

.brand-sub {
    color: #7288a2;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
}

.nav-link {
    color: #405366 !important;
    font-weight: 500;
    margin-right: 0.35rem;
    position: relative;
    padding-inline: 0.95rem !important;
}

.nav-link:hover {
    color: #526a83 !important;
}

.navbar-nav.me-auto .nav-item + .nav-item .nav-link::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 16px;
    background: rgba(124, 136, 150, 0.35);
}

.nav-cta {
    border-radius: 999px;
    padding: 0.45rem 1.1rem !important;
    margin-left: 0.25rem;
    background: linear-gradient(120deg, #4f6f94 0%, #5f83aa 55%, #6e9b94 100%);
    border: none;
}

.hero-shell {
    padding: 0.5rem 0 2rem;
}

.hero-card {
    border-radius: 30px;
    overflow: hidden;
    background: linear-gradient(130deg, rgba(16, 35, 71, 0.95) 0%, rgba(10, 27, 54, 0.9) 45%, rgba(10, 39, 75, 0.85) 100%);
    border: 1px solid rgba(111, 174, 255, 0.24);
    box-shadow: 0 30px 70px rgba(5, 12, 26, 0.62);
}

.hero-copy {
    padding: 3rem;
}

.eyebrow,
.section-kicker {
    display: inline-block;
    padding: 0.33rem 0.8rem;
    border-radius: 999px;
    font-size: 0.76rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #eef3fa;
    border: 1px solid rgba(157, 171, 188, 0.45);
    background: rgba(92, 110, 135, 0.28);
    margin-bottom: 1rem;
}

.hero-copy h1 {
    font-family: "Orbitron", "Noto Sans SC", sans-serif;
    font-weight: 500;
    font-size: clamp(2rem, 3.4vw, 3.1rem);
    line-height: 1.26;
    margin-bottom: 1rem;
}

.hero-copy .lead {
    color: #cae0ff;
    line-height: 1.9;
    max-width: 800px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.2rem;
}

.btn {
    border-radius: 12px;
}

.btn-primary {
    background: linear-gradient(120deg, #4b6687 0%, #5f7e9f 60%, #6d928d 100%);
    border: none;
    color: #fff;
}

.btn-outline-light {
    border-color: rgba(204, 215, 227, 0.85);
    color: #dcecff;
}

.btn-outline-light:hover {
    background: rgba(123, 141, 166, 0.32);
    color: #ffffff;
}

.btn-outline-dark {
    border-color: rgba(168, 190, 223, 0.55);
    color: #d7e8ff;
}

.btn-outline-dark:hover {
    background: rgba(81, 143, 233, 0.2);
    color: #ffffff;
}

.hero-badges {
    margin-top: 1.3rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.stat-pill {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(111, 174, 255, 0.28);
    border-radius: 999px;
    padding: 0.42rem 0.82rem;
    color: #d9eaff;
    font-size: 0.86rem;
}

.hero-side {
    padding: 2.6rem;
    background: linear-gradient(180deg, rgba(14, 38, 74, 0.4) 0%, rgba(8, 20, 40, 0.65) 100%);
}

.hero-carousel {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(111, 174, 255, 0.25);
    box-shadow: 0 16px 42px rgba(5, 12, 26, 0.55);
}

.hero-carousel-image {
    height: 390px;
    object-fit: cover;
}

.carousel-caption {
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1rem 1.15rem;
    background: linear-gradient(180deg, rgba(5, 13, 28, 0) 0%, rgba(5, 13, 28, 0.88) 100%);
}

.section {
    padding: 2.4rem 0;
}

.projects-list-section {
    padding-bottom: 4.5rem;
}

.projects-kicker {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.projects-hero-text {
    max-width: 1040px;
    font-size: clamp(1.02rem, 1.15vw, 1.22rem);
    line-height: 1.85;
    color: #556982;
    margin-bottom: 0.65rem;
}

.section-light {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 2rem;
    backdrop-filter: blur(6px);
    box-shadow: 0 12px 24px rgba(66, 74, 84, 0.07);
}

.metrics-panel {
    margin-top: -0.6rem;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}

.metrics-grid article {
    padding: 1rem;
    border-radius: 13px;
    background: rgba(17, 35, 69, 0.68);
    border: 1px solid rgba(111, 174, 255, 0.2);
}

.metrics-grid p {
    margin: 0;
    color: #9ec3f8;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.metrics-grid h3 {
    margin: 0.35rem 0;
    color: #f4f8ff;
    font-family: "Orbitron", "Noto Sans SC", sans-serif;
    font-weight: 500;
}

.metrics-grid span {
    color: var(--muted);
    font-size: 0.86rem;
}

.section-title {
    font-size: clamp(1.45rem, 2.2vw, 2rem);
    line-height: 1.35;
}

.section-text {
    color: var(--muted);
    line-height: 1.9;
    margin-bottom: 0.9rem;
}

.card-grid,
.project-grid {
    display: grid;
    gap: 1.1rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    align-items: stretch;
}

.service-card,
.project-card,
.info-card,
.timeline-card,
.contact-card {
    background: rgba(255, 252, 246, 0.94);
    border: 1px solid rgba(96, 110, 126, 0.2);
    border-radius: 13px;
    padding: 1.2rem;
    box-shadow: 0 10px 20px rgba(72, 78, 84, 0.08);
}

.project-card {
    display: flex;
    flex-direction: column;
}

.project-card-hover {
    overflow: visible;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.project-card-hover:hover {
    transform: translateY(-5px);
    border-color: rgba(120, 140, 164, 0.55);
    box-shadow: 0 16px 26px rgba(50, 56, 62, 0.18);
}

.project-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 0.9rem;
}

.project-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.45rem;
}

.project-body-stretch {
    min-height: 0;
}

.project-body .btn,
.project-body-stretch .btn {
    position: static;
    margin-top: auto;
}

@media (min-width: 992px) {
    .projects-list-section .project-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.project-body h3 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
    min-height: calc(1.35em * 2);
}

.project-summary {
    margin-bottom: 0;
    color: var(--text);
    line-height: 1.72;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.72em * 3);
}

.project-category {
    color: #4f6e90;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
    margin: 0;
}

.detail-image {
    width: 100%;
    border-radius: 14px;
    object-fit: cover;
    min-height: 360px;
    box-shadow: 0 18px 38px rgba(6, 14, 30, 0.45);
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
}

.gallery-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(111, 174, 255, 0.2);
}

.feature-list {
    padding-left: 1rem;
    margin: 0;
    line-height: 1.8;
    color: var(--muted);
}

.cta-panel {
    margin-top: 1rem;
    padding: 2rem;
    border-radius: 14px;
    border: 1px solid rgba(112, 128, 146, 0.26);
    background: linear-gradient(100deg, rgba(246, 240, 229, 0.96) 0%, rgba(243, 246, 248, 0.95) 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.cta-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.pdf-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.pdf-preview-shell {
    background: rgba(12, 22, 42, 0.9);
    border: 1px solid rgba(111, 174, 255, 0.28);
    border-radius: 14px;
    overflow: hidden;
}

.pdf-preview {
    display: block;
    width: 100%;
    height: min(82vh, 960px);
    border: 0;
}

.contact-card form .form-control {
    border-radius: 10px;
    border-color: #2a3f63;
    background: rgba(13, 31, 61, 0.85);
    color: #e4efff;
}

.contact-card form .form-control::placeholder {
    color: #7f9fc8;
}

.footer {
    margin-top: 1.2rem;
    padding: 1rem 0 0.9rem;
}

.future-footer {
    background: #f3ede1;
    border-top: 1px solid rgba(100, 114, 128, 0.24);
    position: relative;
    z-index: 5;
}

.footer-bottom {
    margin-top: 0;
    padding-top: 0.2rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    color: #5d6f83;
}

.future-footer a {
    color: #4c6582;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem rgba(5, 10, 21, 0.7), 0 0 0 0.22rem rgba(78, 161, 255, 0.45);
}

@media (max-width: 991px) {
    main[role="main"] {
        padding-bottom: 2.2rem !important;
    }

    .nav-shell,
    .footer-shell,
    .content-shell,
    .hero-content,
    .metrics-belt {
        width: min(1380px, calc(100vw - 8vw));
    }

    .card-grid,
    .project-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }

    .projects-list-section .project-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .flagship-hero {
        min-height: min(70vh, 620px);
    }

    .hero-content {
        padding: 5.2rem 0 2.8rem;
    }

    .belt-shell {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .metrics-belt {
        margin-top: -0.6rem;
    }

    .hero-copy,
    .hero-side,
    .section-light,
    .cta-panel {
        padding: 1.3rem;
    }

    .hero-carousel-image {
        height: 290px;
    }

    .projects-list-section {
        padding-bottom: 3rem;
    }

    .projects-hero-text {
        font-size: 1rem;
        line-height: 1.72;
    }

    .cta-panel {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 767px) {
    .projects-list-section .project-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 992px) {
    html {
        font-size: 16px;
    }
}
