:root {
    --primary: #1b6b4a;
    --primary-dark: #145238;
    --primary-light: #2d8a63;
    --accent: #c8a24d;
    --text: #333;
    --text-light: #666;
    --bg: #f7f9f8;
    --white: #fff;
    --shadow: 0 8px 24px rgba(0,0,0,.08);
}

* { box-sizing: border-box; }
body.corporate-body {
    margin: 0;
    font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1200px, 92%); margin: 0 auto; }

/* Header */
.topbar { background: var(--primary-dark); color: var(--white); font-size: 12px; }
.topbar-inner { display: flex; align-items: center; padding: 9px 0; }
.topbar-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 28px; }
.topbar-contact span { white-space: nowrap; }
.topbar-contact i { margin-right: 6px; color: var(--accent); font-size: 13px; }

.navbar-wrap { background: var(--white); position: sticky; top: 0; z-index: 100; border-bottom: 1px solid #eef2ef; }
.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; flex-shrink: 0; }
.brand-logo { width: 54px; height: 54px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; gap: 2px; line-height: 1.35; min-width: 0; }
.brand-cn {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    white-space: nowrap;
}
.brand-en {
    font-size: 12px;
    font-weight: 400;
    color: #333;
    white-space: nowrap;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-left: auto;
}
.site-nav {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}
.site-nav a {
    font-size: 14px;
    color: #333;
    padding: 8px 0 10px;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    transition: color .2s, border-color .2s;
}
.site-nav a:hover,
.site-nav a.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 500;
}
.nav-toggle { display: none; background: none; border: none; font-size: 22px; color: var(--primary); flex-shrink: 0; }

/* Language pill (CN + EN navbar) */
.lang-switch { position: relative; flex-shrink: 0; }
.lang-switch-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid #ccc;
    border-radius: 999px;
    background: var(--white);
    color: #333;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    line-height: 1;
}
.lang-switch-btn .fa-globe { color: var(--primary); font-size: 14px; }
.lang-switch-btn .lang-arrow { font-size: 14px; color: #666; margin-left: 2px; }
.lang-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 130px;
    background: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: var(--shadow);
    z-index: 110;
    overflow: hidden;
}
.lang-switch.open .lang-dropdown { display: block; }
.lang-dropdown a {
    display: block;
    padding: 11px 18px;
    font-size: 13px;
    color: var(--text);
}
.lang-dropdown a:hover,
.lang-dropdown a.active { background: #f0f7f3; color: var(--primary); }

/* Hero */
.hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1b6b4a 0%, #2d8a63 50%, #4aa87a 100%);
    background-size: cover;
    background-position: center;
    color: var(--white);
}
.hero-overlay { position: absolute; inset: 0; background: rgba(20,82,56,.45); }
.hero-content { position: relative; z-index: 1; text-align: center; padding: 80px 0; }
.hero h1 { font-size: clamp(24px, 3.5vw, 38px); margin: 0 0 16px; font-weight: 700; max-width: 900px; margin-left: auto; margin-right: auto; }
.hero-sub { font-size: clamp(14px, 2vw, 17px); opacity: .95; max-width: 780px; margin: 0 auto 32px; line-height: 1.7; }
.hero-search {
    display: flex;
    align-items: center;
    max-width: 520px;
    margin: 0 auto;
    background: rgba(255,255,255,.95);
    border-radius: 999px;
    overflow: hidden;
    padding: 4px 4px 4px 18px;
    box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.hero-search-icon { color: #999; font-size: 16px; margin-right: 8px; flex-shrink: 0; }
.hero-search input {
    flex: 1;
    border: none;
    padding: 12px 8px;
    font-size: 14px;
    outline: none;
    background: transparent;
    min-width: 0;
}
.hero-search-btn {
    border: none;
    background: var(--accent);
    color: var(--white);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    flex-shrink: 0;
}

/* Sections */
.section { padding: 5px 0; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 {  font-size: 32px; color: var(--primary); font-weight: 600;margin: 55px 0px 0px; }
.section-head.light h2 { color: var(--white); }
.section-sub { display: block; color: var(--text-light); font-size: 14px; margin-top: 8px; text-transform: uppercase; letter-spacing: 1px; }
.section-head.light .section-sub { color: rgba(255,255,255,.75); }

/* Bilingual section titles (EN design) */
.section-head-bilingual h2 { font-size: 28px; font-weight: 600; }
.section-head-bilingual .title-cn { color: var(--primary); margin-right: 8px; }
.section-head-bilingual .title-en { color: var(--text-light); font-weight: 400; font-size: 22px; }
.section-head.light.section-head-bilingual .title-cn,
.section-head.light.section-head-bilingual .title-en { color: var(--white); }
.section-head.light.section-head-bilingual .title-en { opacity: .85; }

/* About section title (design: dark CN + gray EN on one line, decor line below) */
.section-head-about h2 {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin: 55px 0px 0px;
    color: inherit;
    font-size: inherit;
}
.section-head-about .title-main {
    color: #1a1a1a;
    font-size: 32px;
    font-weight: 600;
}
.section-head-about .title-sub {
    color: #999;
    font-size: 18px;
    font-weight: 400;
}
.section-head-decor {
    position: relative;
    width: min(320px, 40%);
    margin: 16px auto 0;
    border-bottom: 1px solid #d8e8df;
    padding-bottom: 12px;
}
.section-head-decor::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -6px;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: var(--white);
    box-sizing: border-box;
}

/* About */
.about { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.about-company {
    text-align: left;
    color: var(--primary);
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px;
}
.about-company::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin-top: 8px;
}
.about-text p { color: var(--text-light); margin-bottom: 16px; font-size: 14px; line-height: 1.8; }
.about-text .btn-primary.btn-more {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 14px;
}
.about-images {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    justify-content: center;
    min-height: 420px;
}
.about-images img {
    flex: 0 0 auto;
    width: 37%;
    max-width: 230px;
    object-fit: cover;
    border-radius: 0;
}
.about-images .about-img-1 {
    margin-top: 102px;
    height: 405px;
    aspect-ratio: 3 / 5;
}
.about-images .about-img-2 {
    margin-top: 20px;
    height: 400px;
    aspect-ratio: 3 / 5;
}

/* About tabs — square icon cards (icon top, label bottom) */
.about-text .about-tabs {
    display: grid;
    grid-template-columns: repeat(4, 92px);
    gap: 12px;
    margin-top: 75px;
    margin-bottom: 83px;
}
.about-text .about-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 92px;
    padding: 18px 6px 14px;
    border: 1px solid #d8e8df;
    background: var(--white);
    color: var(--primary);
    font-size: 12px;
    line-height: 1.35;
    border-radius: 4px;
    cursor: pointer;
    transition: background .2s, border-color .2s, color .2s;
    text-align: center;
}
.about-text .about-tab i {
    font-size: 26px;
    flex-shrink: 0;
    color: var(--primary);
    line-height: 1;
}
.about-text .about-tab .about-tab-label {
    display: block;
    white-space: normal;
    word-break: keep-all;
}
.about-text .about-tab:hover { border-color: var(--primary); color: var(--primary); }
.about-text .about-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}
.about-text .about-tab.active i { color: var(--white); }

/* Services */
.services {
    background: linear-gradient(180deg, rgba(20, 82, 56, .92), rgba(27, 107, 74, .88)),
        url('/assets/img/cms/hero.jpg') center / cover no-repeat;
    color: var(--white);
}
.section-head-services h2 {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin: 55px 0px 0px;
    gap: 8px;
    font-weight: 600;
}
.section-head-services .title-main { font-size: 32px; color: var(--white); }
.section-head-services .title-sub { font-size: 18px; font-weight: 400; color: rgba(255,255,255,.85); }
.section-head-decor-light {
    border-bottom-color: rgba(255,255,255,.35);
}
.section-head-decor-light::after {
    border-color: var(--white);
    background: var(--primary-dark);
}
.service-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 14px;
    flex-wrap: wrap;
}
.service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 160px;
    width: 160px;
    max-width: 160px;
    text-align: center;
    min-height: 440px;
    padding: 36px 16px 32px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--white);
    border-radius: 0;
    cursor: pointer;
    transition: background .25s, border-color .25s, color .25s, box-shadow .25s;
}
.service-card:not(.active):hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.22);
}
.service-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--white);
    flex-shrink: 0;
    transition: background .25s;
}
.service-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    transition: filter .25s;
}
.service-icon i { font-size: 28px; color: var(--primary); transition: color .25s; }
.service-card:not(.active) .service-icon {
    background: var(--white);
}
.service-card:not(.active) .service-icon img {
    filter: none;
}
.service-card:not(.active) .service-icon i {
    color: var(--primary);
}
.service-card h3 {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    transition: color .25s;
}
.service-card p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.7;
    flex: 1;
    transition: color .25s;
}
.service-more {
    display: none;
    margin-top: 20px;
    font-size: 13px;
    color: var(--white);
    padding: 8px 22px;
    background: var(--primary);
    border-radius: 999px;
    flex-shrink: 0;
}
.service-more:hover { background: var(--primary-dark); color: var(--white); }
/* Active / selected card */
.service-card.active {
    background: var(--white);
    border-color: var(--white);
    color: var(--text);
    z-index: 1;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.service-card.active .service-icon {
    background: var(--primary);
}
.service-card.active .service-icon img {
    filter: brightness(0) invert(1);
}
.service-card.active .service-icon i {
    color: var(--white);
}
.service-card.active h3 {
    color: var(--primary);
}
.service-card.active p {
    color: var(--text-light);
}
.service-card.active .service-more {
    display: inline-block;
}

/* Process */
.process { background: var(--bg); }
.process-image img { width: 100%; border-radius: 8px; box-shadow: var(--shadow); }
.process-desc { text-align: center; color: var(--text-light); margin-top: 24px; }

/* News */
.news { background: var(--white); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); background: var(--white); }
.news-card img { height: 180px; width: 100%; object-fit: cover; }
.news-body { padding: 20px; }
.news-body h3 { margin: 0 0 10px; font-size: 17px; color: var(--primary); }
.news-body p { font-size: 14px; color: var(--text-light); margin: 0 0 12px; }
.news-body time { font-size: 12px; color: #999; }

/* Footer */
.site-footer {
    color: var(--white);
    background: #0e3a2a;
}
.footer-main {
    position: relative;
    background-color: #283c33;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 56px 0 52px;
}
.footer-inner {
    position: relative;
    z-index: 1;
}
.footer-intro {
    margin: 0 0 22px;
    font-size: 15px;
    color: var(--white);
    line-height: 1.6;
}
.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.28);
    margin-bottom: 36px;
}
.footer-contact-row {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}
.footer-qrcode {
    flex-shrink: 0;
}
.footer-qrcode img {
    display: block;
    width: 118px;
    height: 118px;
    background: var(--white);
    padding: 6px;
    border-radius: 4px;
    object-fit: contain;
}
.footer-contact-info {
    flex: 1;
    min-width: 200px;
}
.footer-contact-info p {
    margin: 0 0 14px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
}
.footer-contact-info p:last-child {
    margin-bottom: 0;
}
.footer-contact-info .footer-phone {
    font-size: 15px;
    font-weight: 500;
}
.footer-contact-info i {
    width: 18px;
    margin-right: 8px;
    color: var(--white);
    text-align: center;
}
.btn-footer-more {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
    padding: 10px 22px 10px 26px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 999px;
    color: var(--white);
    background: transparent;
    font-size: 14px;
    flex-shrink: 0;
    transition: background .2s, border-color .2s;
}
.btn-footer-more:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    color: var(--white);
}
.footer-more-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 50%;
    font-size: 16px;
    line-height: 1;
}
.footer-bottom {
    background: rgba(12, 107, 50, 1);
    padding: 8px 0;
    text-align: center;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.6px;
    text-transform: uppercase;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: rgba(255, 255, 255, 0.75); }
.footer-bottom a:hover { color: var(--white); }

.btn-primary { background: var(--primary); color: var(--white); border: none; padding: 12px 32px; border-radius: 999px; cursor: pointer; font-size: 14px; display: inline-block; }
.btn-primary:hover { opacity: .92; color: var(--white); }

/* About Page */
.page-hero {
    position: relative;
    min-height: 320px;
    background: linear-gradient(135deg, #1b6b4a 0%, #2d8a63 100%);
    background-size: cover;
    background-position: center;
}
.page-hero-caption {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    color: var(--white);
}
.page-hero-caption .page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 82, 56, .45), rgba(20, 82, 56, .65));
}
.page-hero-caption .page-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 48px 0;
}
.page-hero-caption h1 {
    margin: 0 0 8px;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.page-hero-caption .page-hero-sub {
    margin: 0;
    font-size: clamp(18px, 2.5vw, 24px);
    font-weight: 400;
    letter-spacing: 1px;
    opacity: .95;
}
.page-hero-cert .page-hero-overlay,
.page-hero-contact .page-hero-overlay {
    position: absolute;
    inset: 0;
}
.page-hero-cert .page-hero-overlay {
    background: linear-gradient(180deg, rgba(28, 58, 88, .42), rgba(18, 42, 68, .62));
}

.section-head-left {
    text-align: left;
    margin-bottom: 0;
}
.section-head-left h2 {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    font-size: 32px;
    font-weight: 600;
}
.section-head-left .title-main {
    color: #1a1a1a;
    font-size: 32px;
    font-weight: 600;
}
.section-head-left .title-sub {
    color: #999;
    font-size: 18px;
    font-weight: 400;
}
.section-head-decor-left {
    position: relative;
    width: min(280px, 70%);
    margin: 16px 0 0;
    border-bottom: 1px solid #d8e8df;
    padding-bottom: 12px;
}
.section-head-decor-left::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: var(--white);
    box-sizing: border-box;
}

.section-head-decor-right {
    position: relative;
    width: min(320px, 55%);
    margin: 16px 0 0 auto;
    border-bottom: 1px solid #d8e8df;
    padding-bottom: 12px;
}
.section-head-decor-right::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: var(--white);
    box-sizing: border-box;
}
.section-head-right {
    text-align: right;
    margin-bottom: 40px;
}
.section-head-right h2 {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    font-weight: 600;
}
.section-head-right .title-main {
    color: #1a1a1a;
    font-size: 32px;
    font-weight: 600;
}
.section-head-right .title-sub {
    color: #999;
    font-size: 18px;
    font-weight: 400;
}

.about-page-intro {
    background: var(--white);
    padding: 56px 0 48px;
}
.about-page-intro-grid {
    display: grid;
    grid-template-columns: minmax(200px, 340px) 1fr;
    gap: 40px 56px;
    align-items: start;
    margin-bottom: 40px;
}
.about-page-intro-text {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.9;
}
.about-page-intro-text p {
    margin: 0 0 16px;
}
.about-page-panorama img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 4px;
}

.advantages-section {
    background-color: #fff;
    background-image: url('/assets/img/cms/world-map-dots.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding-top: 48px;
}
.advantages-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, .55);
    pointer-events: none;
}
.advantages-section .container {
    position: relative;
    z-index: 1;
}
.advantage-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding-bottom: 48px;
}
.advantage-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
}
.advantage-card-image {
    flex: none;
    height: 300px;
    overflow: hidden;
}
.advantage-card-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}
.advantage-card-body {
    flex: 1;
    padding: 0;
    background: #f0f2f1;
}
.advantage-card-body h3 {
    margin: 0;
    padding: 14px 14px 8px;
    font-size: 15px;
    font-weight: 700;
    text-align: left;
    background: transparent;
    color: #1a1a1a;
    border-top: none;
}
.advantage-card-body p {
    margin: 0;
    padding: 0 14px 16px;
    font-size: 12px;
    line-height: 1.75;
    color: #666;
    text-align: left;
}
.about-qualifications {
    background: var(--white);
    padding: 48px 0 64px;
}
.section-head-qual {
    margin-bottom: 40px;
}
.section-head-qual-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.section-head-qual-line {
    position: relative;
    flex: 0 0 min(96px, 14vw);
    height: 1px;
    background: #d8e8df;
}
.section-head-qual-line::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: var(--white);
    box-sizing: border-box;
}
.section-head-qual h2 {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    font-weight: 600;
}
.section-head-qual .title-main {
    color: #1a1a1a;
    font-size: 32px;
    font-weight: 600;
}
.section-head-qual .title-sub {
    color: #999;
    font-size: 18px;
    font-weight: 400;
}
.qualification-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 48px;
    width: 100%;
}
.qualification-item {
    display: flex;
    justify-content: center;
}
.qualification-frame {
    position: relative;
    display: inline-block;
    max-width: 100%;
    padding: 10px 14px;
    background: var(--white);
    box-shadow: 0 2px 16px rgba(0, 0, 0, .08);
}
.qualification-frame img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 340px;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
}
.qualification-corner {
    position: absolute;
    width: 22px;
    height: 22px;
    border-color: #c9a227;
    border-style: solid;
    pointer-events: none;
}
.qualification-corner-tl {
    top: 0;
    left: 0;
    border-width: 2px 0 0 2px;
}
.qualification-corner-tr {
    top: 0;
    right: 0;
    border-width: 2px 2px 0 0;
}
.qualification-corner-bl {
    bottom: 0;
    left: 0;
    border-width: 0 0 2px 2px;
}
.qualification-corner-br {
    bottom: 0;
    right: 0;
    border-width: 0 2px 2px 0;
}

/* Services Page */
.services-page {
    background: var(--white);
    padding: 48px 0 72px;
}
.services-page .section-head-qual {
    margin-bottom: 36px;
}
.scope-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px 20px;
}
.scope-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--primary);
    background: var(--white);
    cursor: pointer;
    transition: background .25s, color .25s, border-color .25s;
}
.scope-card:hover,
.scope-card.is-active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}
.scope-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px 12px;
}
.scope-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.scope-card-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.scope-card-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}
.scope-card:hover .scope-card-icon img,
.scope-card.is-active .scope-card-icon img {
    filter: brightness(0) invert(1);
}
.scope-card-head h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    transition: color .25s;
}
.scope-card:hover .scope-card-head h3,
.scope-card.is-active .scope-card-head h3 {
    color: var(--white);
}
.scope-apply {
    flex-shrink: 0;
    font-size: 13px;
    color: var(--primary);
    white-space: nowrap;
    transition: color .25s, opacity .25s;
    border: 0;
    background: transparent;
    padding: 4px 0 4px 8px;
    cursor: pointer;
    font-family: inherit;
    text-align: right;
    position: relative;
    z-index: 2;
}
.scope-apply:hover {
    color: var(--primary-dark);
}
.scope-card:hover .scope-apply,
.scope-card.is-active .scope-apply {
    color: var(--white);
}
.scope-card:hover .scope-apply:hover,
.scope-card.is-active .scope-apply:hover {
    opacity: .85;
    color: var(--white);
}
.scope-card-body {
    padding: 4px 18px 20px;
    flex: 1;
}
.scope-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    transition: color .25s;
}
.scope-label i {
    font-size: 14px;
    color: var(--primary);
    transition: color .25s;
}
.scope-card:hover .scope-label,
.scope-card.is-active .scope-label,
.scope-card:hover .scope-label i,
.scope-card.is-active .scope-label i {
    color: var(--white);
}
.scope-card-body .scope-label + .scope-summary {
    margin-bottom: 16px;
}
.scope-summary {
    margin: 0 0 16px;
    font-size: 13px;
    line-height: 1.75;
    color: var(--text-light);
    transition: color .25s;
}
.scope-card:hover .scope-summary,
.scope-card.is-active .scope-summary {
    color: rgba(255, 255, 255, .92);
}
.scope-examples {
    font-size: 13px;
    line-height: 1.75;
    color: var(--text-light);
    transition: color .25s;
}
.scope-card:hover .scope-examples,
.scope-card.is-active .scope-examples {
    color: rgba(255, 255, 255, .92);
}
.scope-examples ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.scope-examples li {
    position: relative;
    margin-bottom: 4px;
    padding-left: 14px;
}
.scope-examples li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--primary);
    transition: background .25s;
}
.scope-card:hover .scope-examples li::before,
.scope-card.is-active .scope-examples li::before {
    background: var(--white);
}
.scope-examples li:last-child {
    margin-bottom: 0;
}

/* Certificate Query Page */
.cert-inquiry {
    background: var(--white);
    padding: 40px 0 56px;
}
.cert-inquiry .section-head-about h2 {
    margin-top: 0;
}
.cert-inquiry-panel {
    background: #f3f5f4;
    padding: 32px 36px;
}
.cert-query-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 34%);
    gap: 28px 36px;
    align-items: stretch;
}
.cert-form-fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.cert-field-label {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}
.cert-field-input {
    width: 100%;
    max-width: 420px;
    height: 42px;
    padding: 0 14px;
    border: 1px solid #d8e8df;
    border-radius: 2px;
    background: var(--white);
    font-size: 14px;
    color: var(--text);
    outline: none;
    transition: border-color .2s;
}
.cert-field-input::placeholder {
    color: #aaa;
}
.cert-field-input:focus {
    border-color: var(--primary);
}
.btn-cert-query {
    align-self: flex-start;
    margin-top: 8px;
    padding: 11px 28px;
    border: none;
    border-radius: 2px;
    background: var(--primary);
    color: var(--white);
    font-size: 14px;
    cursor: pointer;
    transition: opacity .2s;
}
.btn-cert-query:hover {
    opacity: .92;
}
.btn-cert-query:disabled {
    opacity: .65;
    cursor: not-allowed;
}
.cert-sample {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    padding: 20px;
    background: var(--primary);
}
.cert-sample img {
    width: 100%;
    max-width: 280px;
    max-height: 260px;
    object-fit: contain;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}
.cert-sample.is-empty img,
.cert-sample img[hidden] {
    display: none;
}

.cert-results {
    background: var(--white);
    padding: 8px 0 72px;
}
.cert-results .section-head-about h2 {
    margin-top: 0;
}
.cert-result-panel {
    border-top: 2px solid var(--primary);
    background: var(--white);
}
.cert-result-row {
    display: grid;
    grid-template-columns: minmax(140px, 220px) 1fr;
    gap: 16px 24px;
    align-items: center;
    padding: 18px 8px;
    border-bottom: 1px solid #e8eeea;
    font-size: 14px;
}
.cert-result-label {
    color: #1a1a1a;
    font-weight: 600;
}
.cert-result-value {
    color: var(--text-light);
    word-break: break-word;
}
.cert-result-panel:not(.is-empty) .cert-result-value {
    color: var(--text);
}
.cert-result-download .cert-download-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.cert-download-thumb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #d8e8df;
    background: #f7f9f8;
    overflow: hidden;
}
.cert-download-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cert-download-thumb.is-empty img,
.cert-download-thumb img[hidden] {
    display: none;
}
.cert-download-thumb .cert-download-icon {
    color: var(--primary);
    font-size: 18px;
}
.cert-download-name {
    color: var(--text);
    flex: 1;
    min-width: 0;
}
.cert-download-link {
    margin-left: auto;
    color: var(--primary);
    font-weight: 500;
    white-space: nowrap;
}
.cert-download-link:hover {
    color: var(--primary-dark);
}
.cert-download-link i {
    margin-left: 4px;
}
.cert-result-hint {
    margin: 16px 0 0;
    font-size: 13px;
    color: #999;
    text-align: center;
}
.cert-result-panel:not(.is-empty) + .cert-result-hint {
    display: none;
}

/* Contact Page */
.page-hero-contact .page-hero-overlay {
    background: linear-gradient(180deg, rgba(24, 52, 78, .4), rgba(16, 38, 58, .58));
}
.contact-info-section {
    background: var(--white);
    padding: 40px 0 48px;
}
.contact-info-section .section-head-about h2 {
    margin-top: 0;
}
.contact-info-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 32px 48px;
    align-items: start;
    margin-bottom: 32px;
}
.contact-hq h3 {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}
.contact-hq p {
    margin: 0;
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-light);
}
.contact-channels {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px 24px;
}
.contact-channel {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.contact-channel-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(27, 107, 74, .1);
    color: var(--primary);
    font-size: 16px;
}
.contact-channel strong {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}
.contact-channel p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-light);
    word-break: break-all;
}
.contact-map-wrap {
    position: relative;
    overflow: hidden;
    background: #eef2ef;
}
.contact-baidu-map {
    width: 100%;
    height: 380px;
    min-height: 280px;
}
.contact-map-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 280px;
    padding: 24px;
    text-align: center;
    font-size: 14px;
    line-height: 1.7;
    color: #999;
    background: #eef2ef;
}

.contact-global-section {
    background: var(--white);
    padding: 56px 0 72px;
}
.contact-global-head {
    text-align: center;
    margin-bottom: 40px;
}
.contact-global-head h2 {
    margin: 0 0 14px;
    font-size: 30px;
    font-weight: 600;
    color: #1a1a1a;
}
.contact-global-head p {
    margin: 0 auto;
    max-width: 760px;
    font-size: 14px;
    line-height: 1.85;
    color: #888;
}
.contact-global-visual {
    margin-bottom: 44px;
}
.contact-global-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: min(100%, 1040px);
    margin: 0 auto;
    min-height: 280px;
}
.contact-feature-image {
    position: relative;
    z-index: 2;
    flex: 0 0 min(38%, 400px);
    width: min(38%, 400px);
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .12);
}
.contact-feature-image img {
    width: 100%;
    height: 252px;
    object-fit: cover;
    display: block;
}
.contact-feature-image--placeholder {
    height: 252px;
    background: linear-gradient(145deg, #8f6b4a 0%, #c49a6c 38%, #5d7f96 100%);
}
.contact-global-connector {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    flex: 0 0 132px;
    width: 132px;
    padding: 0 4px;
}
.contact-world-line {
    flex: 1;
    height: 1px;
    background: #c5d5cc;
}
.contact-world-dot {
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(27, 107, 74, .12);
}
.contact-world-map {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    min-width: 0;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.contact-world-map > img {
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: right center;
    opacity: .36;
}
.contact-office-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}
.contact-office-card {
    padding: 20px 18px 18px;
    border: 1px solid #e6ece8;
    background: var(--white);
    box-shadow: 0 2px 14px rgba(0, 0, 0, .05);
    cursor: pointer;
    transition: background .25s, color .25s, border-color .25s, box-shadow .25s;
}
.contact-office-card.active,
.contact-office-card:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    box-shadow: 0 8px 24px rgba(27, 107, 74, .18);
}
.contact-office-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}
.contact-office-card-head h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    transition: color .25s;
}
.contact-office-card.active .contact-office-card-head h3,
.contact-office-card:hover .contact-office-card-head h3 {
    color: var(--white);
}
.contact-office-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
    color: rgba(27, 107, 74, .38);
    transition: color .25s;
}
.contact-office-card.active .contact-office-icon,
.contact-office-card:hover .contact-office-icon {
    color: var(--white);
}
.contact-office-card-body p {
    margin: 0 0 8px;
    font-size: 13px;
    line-height: 1.65;
    color: var(--text-light);
    transition: color .25s;
}
.contact-office-card.active .contact-office-card-body p,
.contact-office-card:hover .contact-office-card-body p {
    color: rgba(255, 255, 255, .92);
}
.contact-office-card-body p:last-child {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 1100px) {
    .site-nav { gap: 20px; }
    .navbar-right { gap: 16px; }
    .brand-cn { font-size: 14px; }
    .brand-en { font-size: 11px; }
}
@media (max-width: 992px) {
    .advantage-grid { grid-template-columns: repeat(2, 1fr); }
    .about-page-intro-grid { grid-template-columns: 1fr; }
    .scope-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .service-grid { justify-content: center; gap: 12px; }
    .service-card {
        flex: 0 0 calc(50% - 12px);
        width: calc(50% - 12px);
        max-width: 200px;
        min-height: 340px;
    }
    .about-text .about-tabs { grid-template-columns: repeat(2, 92px); gap: 10px; }
    .about-text .about-tab { width: 92px; min-height: 100px; }
    .about-grid, .news-grid { grid-template-columns: 1fr; }
    .about-images {
        min-height: auto;
        margin-top: 8px;
    }
    .about-images .about-img-1 {
        margin-top: 32px;
        height: 300px;
    }
    .about-images .about-img-2 {
        height: 360px;
    }
    .footer-contact-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 28px;
    }
    .btn-footer-more { margin-left: 0; }
}
@media (max-width: 768px) {
    .advantage-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
    .scope-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
    .cert-query-form { grid-template-columns: 1fr; }
    .cert-inquiry-panel { padding: 24px 20px; }
    .cert-field-input { max-width: none; }
    .cert-result-row { grid-template-columns: 1fr; gap: 6px; padding: 16px 4px; }
    .cert-download-link { margin-left: 0; }
    .contact-info-grid { grid-template-columns: 1fr; }
    .contact-channels { grid-template-columns: 1fr; }
    .contact-global-stage {
        flex-direction: column;
        align-items: stretch;
        min-height: 0;
    }
    .contact-feature-image {
        flex: none;
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
    }
    .contact-global-connector { display: none; }
    .contact-world-map {
        height: 200px;
        margin-top: 20px;
    }
    .contact-world-map > img {
        object-position: center;
    }
    .contact-office-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .qualification-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
    .qualification-frame img { max-height: 300px; }
    .page-hero { min-height: 260px; }
    .navbar-inner { position: relative; flex-wrap: wrap; }
    .nav-toggle { display: block; margin-left: auto; }
    .navbar-right { display: none; }
    .navbar-right.mobile-open {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 16px 24px;
        box-shadow: var(--shadow);
        z-index: 105;
    }
    .navbar-right.mobile-open .site-nav {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        width: 100%;
    }
    .navbar-right.mobile-open .lang-switch { align-self: flex-start; }
    .service-grid { flex-direction: column; align-items: center; }
    .service-card {
        flex: 0 0 auto;
        width: 100%;
        max-width: 280px;
        min-height: auto;
    }
    .about-text .about-tabs { grid-template-columns: repeat(4, 1fr); max-width: 100%; }
    .about-text .about-tab { width: 100%; max-width: 92px; min-height: 96px; font-size: 11px; padding: 14px 4px 12px; }
    .about-text .about-tab i { font-size: 22px; }
    .about-images img {
        width: 44%;
        max-width: 150px;
    }
    .about-images .about-img-1 {
        margin-top: 24px;
        height: 240px;
    }
    .about-images .about-img-2 {
        height: 280px;
    }
    .hero { min-height: 420px; }
    .brand-cn,
    .brand-en { white-space: normal; }
    .topbar-contact { flex-direction: column; align-items: flex-start; gap: 4px; }
    .contact-office-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
}

/* Halal certification application modal */
.halal-modal {
    border: 0;
    padding: 0;
    margin: auto;
    background: transparent;
    max-width: none;
    max-height: none;
    width: auto;
    overflow: visible;
}
.halal-modal::backdrop {
    background: rgba(0, 0, 0, 0.45);
}
.halal-modal:not([open]).is-open {
    display: flex !important;
    position: fixed;
    inset: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: rgba(0, 0, 0, 0.45);
}
.halal-modal-backdrop {
    display: none;
}
dialog.halal-modal[open] {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    width: min(960px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    overflow: hidden;
    box-sizing: border-box;
}
.halal-modal-dialog {
    position: relative;
    width: 100%;
    max-width: 100%;
    max-height: calc(100vh - 48px);
    overflow-x: hidden;
    overflow-y: auto;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    padding: 28px 32px 24px;
    z-index: 1;
    box-sizing: border-box;
}
.halal-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    color: #666;
    cursor: pointer;
}
.halal-modal-title {
    margin: 0 0 24px;
    font-size: 22px;
    font-weight: 600;
    color: #222;
    text-align: center;
}
.halal-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0 24px;
    max-width: 100%;
}
.halal-form-col {
    min-width: 0;
}
.halal-apply-form {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}
.halal-field {
    display: grid;
    grid-template-columns: minmax(72px, 110px) minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    min-width: 0;
}
.halal-field label,
.halal-field-label {
    margin: 0;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}
.halal-field .req { color: #e74c3c; margin-right: 2px; }
.halal-field input[type="text"],
.halal-field input[type="email"],
.halal-field select {
    width: 100%;
    height: 36px;
    border: 1px solid #dcdcdc;
    border-radius: 2px;
    padding: 0 10px;
    font-size: 14px;
    color: #333;
    background: #fff;
}
.halal-field-radio { align-items: flex-start; }
.halal-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    min-height: 36px;
    align-items: center;
}
.halal-radio {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 400;
    cursor: pointer;
}
.halal-radio input { accent-color: var(--corp-green, #1f5c3a); }
.halal-appendix-list { margin-top: 8px; max-width: 100%; }
.halal-field-upload { grid-template-columns: minmax(72px, 110px) minmax(0, 1fr); }
.halal-upload-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    min-width: 0;
    width: 100%;
    position: relative;
}
.halal-upload-input {
    display: flex;
    align-items: center;
    position: relative;
    flex: 1 1 180px;
    min-width: 0;
    height: 36px;
    border: 1px solid #dcdcdc;
    border-radius: 2px;
    background: #fff;
    cursor: pointer;
    box-sizing: border-box;
    margin: 0;
}
.halal-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.halal-file-display {
    flex: 1;
    min-width: 0;
    padding: 0 42px 0 10px;
    font-size: 14px;
    color: #666;
    line-height: 36px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}
.halal-file-display.is-selected {
    color: #333;
}
.halal-upload-btn {
    position: absolute;
    right: 0;
    top: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--corp-green, #1f5c3a);
    font-size: 18px;
    pointer-events: none;
}
.halal-template-link {
    flex-shrink: 0;
    color: var(--corp-green, #1f5c3a);
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    max-width: 100%;
}
.halal-template-link:hover { text-decoration: underline; }
.halal-form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 8px;
}
.btn-halal-submit {
    min-width: 140px;
    height: 40px;
    border: 0;
    border-radius: 2px;
    background: var(--corp-green, #1f5c3a);
    color: #fff;
    font-size: 15px;
    cursor: pointer;
}
.btn-halal-submit:hover { background: #174a2f; }
.btn-halal-submit:disabled { opacity: 0.65; cursor: not-allowed; }
body.halal-modal-open { overflow: hidden; }
@media (max-width: 768px) {
    .halal-modal-dialog { padding: 24px 16px 20px; }
    .halal-form-grid { grid-template-columns: 1fr; gap: 0; }
    .halal-field { grid-template-columns: 1fr; gap: 6px; }
    .halal-field-upload { grid-template-columns: 1fr; }
    .halal-upload-row { flex-direction: column; align-items: stretch; }
    .halal-template-link { align-self: flex-start; }
}
