/* ===== Brand tokens ===== */
:root {
    --brand: #22a85a;
    --brand-dark: #1c7a45;
    --brand-light: #eaf6ee;
    --blue: #2b8fd6;
    --ink: #2a3b33;
    --muted: #5c6b63;
    --soft-bg: #f1f8f4;
    --max-w: 1300px;
    --nav-h: 72px; /* fixed navbar height */
}

* {
    scroll-behavior: smooth;
}

html {
    scroll-padding-top: var(--nav-h);
}

body {
    font-family:
        "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue",
        Arial, sans-serif;
    color: var(--ink);
    padding-top: var(--nav-h); /* fixed navbar offset */
}

/* Constrain page content to a max width of 1400px */
.container-xl {
    max-width: var(--max-w);
}

/* ===== Helpers ===== */
.text-brand {
    color: var(--brand) !important;
}
.text-brand-dark {
    color: var(--brand-dark) !important;
}
.text-muted-2 {
    color: var(--muted);
    line-height: 1.9;
}
.bg-soft {
    background-color: var(--soft-bg);
}

.btn-brand {
    background-color: var(--brand);
    border-color: var(--brand);
    color: #fff;
    font-weight: 600;
    transition: all 0.2s ease;
}
.btn-brand:hover,
.btn-brand:focus {
    background-color: var(--brand-dark);
    border-color: var(--brand-dark);
    color: #fff;
}

/* ===== Brand lockup (separate icon + wordmark images, landscape) ===== */
.brand-icon {
    height: 46px;
    width: auto;
    flex-shrink: 0;
}
.brand-wordmark {
    height: 35px;
    width: auto;
    margin-top: 8px;
}
/* footer variants: keep icon colored on dark, render wordmark white for contrast */
.brand-icon-footer {
    height: 42px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}
.brand-wordmark-footer {
    height: 27px;
    filter: brightness(0) invert(1);
    opacity: 0.92;
}

/* ===== Navbar ===== */
#mainNav {
    transition: box-shadow 0.2s ease;
    min-height: var(--nav-h);
}
.navbar-nav .nav-link {
    font-weight: 600;
    color: var(--ink);
    padding: 0.5rem 1rem;
    position: relative;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--brand);
}
.navbar-nav .nav-link.active::after {
    content: "";
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 2px;
    height: 2px;
    background: var(--brand);
    border-radius: 2px;
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: calc(100vh - var(--nav-h));
    min-height: calc(
        100dvh - var(--nav-h)
    ); /* better mobile behavior where supported */
    padding: 40px 0;
    background: url("../assets/bg_banner.jpg");
    background-size: cover;
    background-position: center;
}
.hero-content {
    position: relative;
    max-width: 640px;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 18px;
    margin-bottom: 22px;
    border: 1px solid rgba(34, 168, 90, 0.55);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    color: var(--brand-dark);
    font-weight: 600;
    font-size: 0.92rem;
    backdrop-filter: blur(2px);
}
.hero-title {
    font-size: clamp(2.3rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: 0.03em;
    margin-bottom: 22px;
}
.hero-title-dark {
    color: #234b66;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.75);
    paint-order: stroke fill;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.5);
}
.hero-title-green {
    color: var(--brand);
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.75);
    paint-order: stroke fill;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.5);
}
.hero-sub {
    max-width: 560px;
    font-size: clamp(1rem, 2.2vw, 1.18rem);
    line-height: 1.85;
    color: #3f4a44;
    margin-bottom: 0;
    -webkit-text-stroke: 0.6px rgba(255, 255, 255, 0.7);
    paint-order: stroke fill;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.4);
}
.hero-btn-light {
    background: #fff;
    color: #2c3a33;
    font-weight: 600;
    border: 1px solid #e3ece6;
    box-shadow: 0 8px 20px rgba(20, 60, 40, 0.1);
}
.hero-btn-light:hover {
    background: #f3f8f5;
    color: #2c3a33;
}

/* ===== Sections ===== */
.section {
    padding: 84px 0;
}
.section-title {
    font-size: clamp(1.7rem, 4vw, 2.4rem);
    font-weight: 800;
    color: var(--ink);
}
.section-lead {
    color: var(--muted);
    font-size: 1.05rem;
    margin-top: 0.5rem;
}
.title-divider {
    display: inline-block;
    width: 64px;
    height: 4px;
    background: var(--brand);
    border-radius: 4px;
    margin-top: 14px;
}

/* ===== About ===== */
.about-img {
    border-radius: 18px;
    min-height: 380px;
    background: url("../assets/about.jpg");
    background-size: cover;
    background-position: center;
    box-shadow: 0 18px 40px rgba(28, 122, 69, 0.18);
}
.about-text {
    max-width: 580px;
}
.about-heading {
    display: flex;
    align-items: center;
    font-size: clamp(1.4rem, 3vw, 1.7rem);
    font-weight: 700;
    color: var(--brand-dark);
    letter-spacing: 0.02em;
    margin-bottom: 22px;
}
.about-para {
    color: var(--muted);
    font-size: clamp(1rem, 2vw, 1.08rem);
    line-height: 2;
    letter-spacing: 0.01em;
    margin-bottom: 18px;
}
.about-slogan {
    margin: 28px 0 0;
    padding-left: 18px;
    border-left: 4px solid var(--brand);
    color: var(--brand-dark);
    font-size: clamp(1.12rem, 2.2vw, 1.32rem);
    font-weight: 700;
    line-height: 1.6;
    letter-spacing: 0.04em;
}

/* ===== Values ===== */
.values-quote {
    max-width: 760px;
    font-size: clamp(1.05rem, 2.4vw, 1.4rem);
    color: var(--brand-dark);
    font-weight: 600;
}
.value-card {
    background: #fff;
    border: 1px solid #ebf1ee;
    border-radius: 18px;
    padding: 38px 30px;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}
.value-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(28, 122, 69, 0.14);
}
.value-icon {
    width: 68px;
    height: 68px;
    border-radius: 16px;
    background: var(--brand-light);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    margin-bottom: 22px;
}
.value-card:nth-child(1) .value-icon,
.col-md-4:nth-child(2) .value-icon {
    /* heart card accent */
}
.value-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 10px;
}
.value-text {
    color: var(--muted);
    margin-bottom: 0;
}

/* ===== Join / Job ===== */
.job-card {
    background: #fff;
    border: 1px solid #e6efe9;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 18px 44px rgba(28, 122, 69, 0.08);
    border-top: 5px solid var(--brand);
}
.job-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 22px;
    margin-bottom: 24px;
    border-bottom: 1px dashed #d9e7df;
}
.job-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--brand-dark);
    margin: 0;
}
.job-badge {
    background: var(--brand-light);
    color: var(--brand-dark);
    font-weight: 600;
    font-size: 0.82rem;
    padding: 0.5em 0.8em;
    margin-right: 6px;
}
.job-subtitle {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 18px;
}
.job-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.job-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    color: var(--muted);
    line-height: 1.8;
    border-bottom: 1px solid #f1f5f2;
}
.job-list li:last-child {
    border-bottom: 0;
}
.job-list i {
    color: var(--brand);
    margin-top: 5px;
    flex-shrink: 0;
}

/* ===== Contact ===== */
.contact-card {
    background: #fff;
    border: 1px solid #ebf1ee;
    border-radius: 18px;
    padding: 36px 24px;
    text-align: center;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}
.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 38px rgba(28, 122, 69, 0.12);
}
.contact-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--brand-light);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}
.contact-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.contact-text {
    color: var(--muted);
    margin: 0;
}
.contact-link {
    color: var(--brand-dark);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}
.contact-link:hover {
    color: var(--brand);
}

/* ===== QR Modal ===== */
.qr-modal .modal-dialog {
    max-width: 380px;
}
.qr-modal-content {
    position: relative;
    border: 0;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(20, 60, 40, 0.3);
}
.qr-modal-band {
    height: 8px;
    background: linear-gradient(90deg, var(--brand), var(--blue));
}
.qr-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 3;
    padding: 8px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    opacity: 0.65;
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}
.qr-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}
.qr-modal-body {
    padding: 30px 28px 34px;
}
.qr-modal-icon {
    width: 64px;
    height: 64px;
    margin: 4px auto 16px;
    border-radius: 18px;
    background: var(--brand-light);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}
.qr-modal-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 6px;
}
.qr-modal-sub {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 22px;
}
.qr-img-wrap {
    position: relative;
    width: 230px;
    max-width: 72vw;
    margin: 0 auto 18px;
    padding: 14px;
    background: #fff;
    border: 1px solid #e4efe8;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(28, 122, 69, 0.12);
}
.qr-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}
.qr-modal-hint {
    color: var(--brand-dark);
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
}
@media (max-width: 575.98px) {
    .qr-modal .modal-dialog {
        max-width: none;
        margin: 1rem;
    }
    .qr-modal-body {
        padding: 26px 20px 30px;
    }
}

/* ===== Footer ===== */
.footer {
    background: #1f2a25;
    color: #c9d3ce;
    padding: 56px 0 28px;
}
.footer-text {
    color: #9fb0a8;
    max-width: 360px;
    line-height: 1.8;
}
.footer-heading {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 18px;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 12px;
    color: #9fb0a8;
}
.footer-links a {
    color: #c9d3ce;
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer-links a:hover {
    color: var(--brand);
}
.footer-divider {
    border-color: rgba(255, 255, 255, 0.12);
    margin: 34px 0 20px;
}
.footer-copy {
    color: #8a9a92;
    font-size: 0.9rem;
}
.footer-beian {
    font-size: 0.82rem;
    line-height: 1.9;
}
.footer-beian-link {
    color: #8a9a92;
    text-decoration: none;
    margin: 0 10px;
    white-space: nowrap;
    transition: color 0.2s ease;
}
.footer-beian-link:hover {
    color: var(--brand);
}

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
    .navbar-nav {
        padding: 12px 0;
    }
    .navbar-nav .nav-link.active::after {
        display: none;
    }
    .job-card {
        padding: 28px 22px;
    }
}
@media (max-width: 575.98px) {
    .hero-content {
        padding-top: 70px;
    }
    .section {
        padding: 60px 0;
    }
    .value-card,
    .contact-card {
        padding: 30px 22px;
    }
}
