/* ================================================================
   页面级版式 · 首页 Hero（宣传型）
   ================================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 132px 0 96px;
    background: linear-gradient(140deg, var(--green-900) 0%, var(--green-800) 45%, var(--green-700) 100%);
    color: #fff;
    overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 78% 18%, rgba(227, 199, 106, .18), transparent 46%),
        linear-gradient(100deg, rgba(8, 34, 12, .95) 12%, rgba(8, 34, 12, .72) 46%, rgba(8, 34, 12, .52) 100%);
}
.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: url('../images/pattern-geometric.svg');
    background-size: 210px;
    opacity: .07;
}
.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.12fr .88fr;
    gap: 56px;
    align-items: center;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    border: 1px solid rgba(227, 199, 106, .45);
    border-radius: 30px;
    background: rgba(255, 255, 255, .06);
    color: var(--gold-300);
    font-size: 13px;
    letter-spacing: 2px;
    margin-bottom: 26px;
}
.hero-eyebrow::before {
    content: '';
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--gold-300);
    box-shadow: 0 0 0 4px rgba(227, 199, 106, .18);
}
.hero-title-xl {
    font-size: 46px;
    font-weight: 700;
    line-height: 1.32;
    letter-spacing: 1px;
    text-shadow: 0 4px 24px rgba(0, 0, 0, .25);
}
.hero-title-xl em {
    font-style: normal;
    color: var(--gold-300);
}
.hero-lead {
    margin-top: 22px;
    font-size: 16.5px;
    line-height: 2;
    color: rgba(255, 255, 255, .84);
    max-width: 620px;
}
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 16px; }
.btn-ghost-light {
    color: #fff;
    border-color: rgba(255, 255, 255, .38);
    background: rgba(255, 255, 255, .06);
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, .16); border-color: #fff; color: #fff; }
.hero-points {
    margin-top: 42px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 26px;
    max-width: 620px;
}
.hero-points li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, .86);
    line-height: 1.7;
}
.hero-points li::before {
    content: '';
    flex: 0 0 18px;
    height: 18px;
    margin-top: 3px;
    border-radius: 50%;
    background: rgba(227, 199, 106, .18) url('../images/check.svg') center / 12px no-repeat;
}

/* 右侧信息面板 */
.hero-panel {
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: var(--r-xl);
    padding: 30px 28px;
    backdrop-filter: blur(10px);
    box-shadow: 0 26px 70px rgba(0, 0, 0, .28);
}
.hero-panel-title {
    font-size: 15px;
    letter-spacing: 2px;
    color: var(--gold-300);
    text-transform: uppercase;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .16);
    margin-bottom: 6px;
}
.hero-panel-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, .14);
}
.hero-panel-item:last-child { border-bottom: none; padding-bottom: 4px; }
.hero-panel-flag {
    width: 42px; height: 42px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, .1);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
    color: #fff;
}
.hero-panel-name { font-size: 15px; font-weight: 600; color: #fff; }
.hero-panel-desc { font-size: 12.5px; color: rgba(255, 255, 255, .66); margin-top: 3px; line-height: 1.6; }
.hero-panel-link {
    margin-top: 18px;
    display: inline-block;
    font-size: 13.5px;
    color: var(--gold-300);
    text-decoration: none;
    font-weight: 500;
}
.hero-panel-link:hover { text-decoration: underline; }

/* 底部数据条 */
.hero-stats {
    position: relative;
    z-index: 2;
    margin-top: 56px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, .14);
}
.hero-stat { text-align: center; }
.hero-stat-num {
    font-size: 26px;
    font-weight: 700;
    color: var(--gold-300);
    letter-spacing: 1px;
}
.hero-stat-label { font-size: 13px; color: rgba(255, 255, 255, .7); margin-top: 4px; }

/* 轮播指示 */
.hero-indicators {
    position: absolute;
    right: 40px;
    bottom: 40px;
    z-index: 3;
    display: flex;
    gap: 8px;
}
.hero-dot {
    width: 30px; height: 4px;
    border: none;
    border-radius: 3px;
    background: rgba(255, 255, 255, .32);
    cursor: pointer;
    padding: 0;
    transition: background .2s, width .2s;
}
.hero-dot:hover { background: rgba(255, 255, 255, .6); }
.hero-dot.active { background: var(--gold-300); width: 44px; }
/* ================================================================
   首页其它区块
   ================================================================ */
.eyebrow {
    display: inline-block;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--green-600);
    margin-bottom: 10px;
}
.section-lead {
    max-width: 780px;
    margin: 18px auto 0;
    text-align: center;
    font-size: 15.5px;
    color: var(--muted);
    line-height: 2;
}

/* 合作伙伴跑马灯 */
.partners-marquee {
    margin-top: 40px;
    overflow: hidden;
    position: relative;
    padding: 10px 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.partners-track {
    display: flex;
    align-items: center;
    gap: 28px;
    width: max-content;
    animation: partnersScroll 32s linear infinite;
}
.partners-marquee:hover .partners-track { animation-play-state: paused; }
.partners-track img {
    height: 62px;
    width: auto;
    object-fit: contain;
    opacity: .82;
    filter: grayscale(.12);
    transition: opacity .25s, filter .25s;
}
.partners-track img:hover { opacity: 1; filter: none; }
@keyframes partnersScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* 清真注释 */
.commentary-logo { text-align: center; margin: 30px 0 36px; }
.commentary-logo img { max-width: 260px; height: auto; display: inline-block; opacity: .9; }
.commentary-definitions { margin-bottom: 26px; }
.commentary-definitions li {
    position: relative;
    padding: 16px 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    margin-bottom: 14px;
    font-size: 14.5px;
    line-height: 1.9;
    color: var(--body);
}
.commentary-definitions strong { color: var(--green-700); }
.commentary-content { text-align: left; }
.commentary-content h4 {
    font-size: 20px;
    margin: 34px 0 14px;
    color: var(--ink);
    font-weight: 700;
    padding-left: 14px;
    border-left: 4px solid var(--green-500);
}
.commentary-content ol, .commentary-content ul:not(.commentary-definitions) {
    padding-left: 22px;
    margin-bottom: 24px;
    columns: 2;
    column-gap: 32px;
}
.commentary-content li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.9;
    color: var(--body);
}
.commentary-content ol li::before {
    counter-increment: halali;
    content: counter(halali);
    position: absolute;
    left: 0; top: 4px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--green-50);
    color: var(--green-700);
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.commentary-content ol { counter-reset: halali; }
.commentary-content ul:not(.commentary-definitions) li::before {
    content: '';
    position: absolute;
    left: 2px; top: 11px;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--gold-500);
}

/* ================================================================
   机构简介页
   ================================================================ */
.about-logo { text-align: center; margin-bottom: 26px; }
.about-logo img {
    max-width: 180px;
    width: auto;
    height: auto;
    display: inline-block;
}
.about-page .about-title { font-size: 34px; font-weight: 700; color: var(--ink); text-align: center; margin-bottom: 10px; }
.about-page .about-subtitle { font-size: 14px; color: var(--green-600); text-align: center; letter-spacing: 1px; }
.about-page .about-subtitle-ar { font-size: 17px; color: var(--green-700); text-align: center; margin-bottom: 30px; font-family: var(--font-arabic); }
.about-tabs {
    display: inline-flex;
    gap: 6px;
    margin-bottom: 4px;
    background: var(--cream);
    padding: 6px;
    border-radius: 30px;
    border: 1px solid var(--line);
}
.about-tab {
    padding: 10px 26px;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    border-radius: 24px;
    transition: all .25s;
}
.about-tab:hover { color: var(--green-700); }
.about-tab.active { background: #fff; color: var(--green-700); box-shadow: var(--shadow-xs); }
.about-content { margin-top: 26px; }
.about-lang {
    display: none;
    padding: 34px 38px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-sm);
}
.about-lang.active { display: block; }
.about-content p { margin-bottom: 1.1em; line-height: 2.05; color: var(--body); text-align: justify; }
.about-lang-ar, .about-lang-ur, .about-lang-fa { direction: rtl; text-align: right; }
.about-lang-ar p, .about-lang-ur p, .about-lang-fa p { text-align: right; }
.about-advantages { margin-top: 56px; }
.about-advantages-title { font-size: 26px; font-weight: 700; color: var(--ink); text-align: center; margin-bottom: 8px; }
.about-advantages-subtitle { font-size: 14px; color: var(--muted); text-align: center; margin-bottom: 34px; letter-spacing: 1px; }
/* ================================================================
   服务页 / 流程页 / 联系页 / 报名页
   ================================================================ */
.service-highlight {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 44px;
}
.service-highlight-item {
    padding: 26px 24px;
    border-radius: var(--r-lg);
    background: linear-gradient(150deg, var(--green-50), #fff);
    border: 1px solid var(--green-100);
}
.service-highlight-item h4 { font-size: 16px; color: var(--green-800); margin-bottom: 8px; font-weight: 700; }
.service-highlight-item p { font-size: 13.5px; color: var(--muted); line-height: 1.9; }

.process-note {
    margin-top: 28px;
    padding: 16px 22px;
    background: var(--green-50);
    border-left: 4px solid var(--green-500);
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
    font-size: 14px;
    color: var(--green-900);
    line-height: 1.85;
}

.faq-list { margin-top: 40px; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 22px 26px;
}
.faq-q { font-size: 16px; font-weight: 700; color: var(--green-800); margin-bottom: 8px; }
.faq-a { font-size: 14.5px; color: var(--muted); line-height: 1.95; }
.faq-a a, .contact-item-value a { color: var(--green-700); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.contact-card h3 { font-size: 20px; color: var(--ink); font-weight: 700; }

.register-intro {
    background: var(--green-50);
    border-left: 4px solid var(--green-600);
    padding: 20px 24px;
    border-radius: 0 var(--r-md) var(--r-md) 0;
    margin-bottom: 26px;
    font-size: 14.5px;
    color: var(--green-900);
    line-height: 1.9;
}
.register-intro strong { color: var(--green-700); }

/* ================================================================
   响应式
   ================================================================ */
@media (max-width: 1100px) {
    .hero-title-xl { font-size: 38px; }
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .hero-panel { max-width: 620px; }
    .content-grid { grid-template-columns: 1fr; }
    .sidebar-card { position: static; }
    .service-highlight { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
    .service-grid { grid-template-columns: repeat(2, 1fr); }
    .about-advantages-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-row { grid-template-columns: repeat(2, 1fr); }
    .home-latest { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .halal-scope-grid { grid-template-columns: repeat(3, 1fr); }
    .commentary-content ol,
    .commentary-content ul:not(.commentary-definitions) { columns: 1; }
}

@media (max-width: 760px) {
    .hero { padding: 112px 0 72px; min-height: auto; }
    .hero-title-xl { font-size: 30px; }
    .hero-lead { font-size: 15px; }
    .hero-points { grid-template-columns: 1fr; gap: 12px; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; margin-top: 40px; }
    .hero-stat-num { font-size: 22px; }
    .hero-indicators { right: 50%; transform: translateX(50%); bottom: 20px; }
    .service-grid { grid-template-columns: 1fr; }
    .about-advantages-grid { grid-template-columns: 1fr; }
    .halal-scope-grid { grid-template-columns: repeat(2, 1fr); }
    .cert-downloads-grid { grid-template-columns: 1fr; }
    .cert-downloads { padding: 26px 20px; }
    .query-form-wrapper { padding: 28px 22px; }
    .cert-detail-card { padding: 28px 20px; }
    .cert-detail-row { flex-direction: column; }
    .cert-detail-row label { flex: none; margin-bottom: 4px; }
    .article-title { font-size: 22px; }
    .article-gallery { grid-template-columns: repeat(2, 1fr); }
    .cta-band-inner { flex-direction: column; align-items: flex-start; }
    .cta-band-actions { width: 100%; }
    .cta-band h3 { font-size: 21px; }
    .timeline-content { padding: 20px 20px; }
    .timeline-item { gap: 16px; }
    .news-item { flex-direction: column; }
    .news-item-cover { width: 100%; height: 170px; }
    .about-tabs { display: flex; width: 100%; }
    .about-tab { flex: 1; padding: 10px 12px; }
    .about-lang { padding: 24px 20px; }
}
/* ---------- 内页标题区对齐辅助 ---------- */
.section > .container > .eyebrow,
.container-narrow > .eyebrow { display: block; text-align: center; }
.about-page .eyebrow { display: block; text-align: center; }
.page-hero + .section .section-lead { margin-top: 16px; }

/* ---------- 服务承诺 ---------- */
.promise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 44px;
}
.promise-item {
    padding: 28px 26px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-xs);
}
.promise-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--gold-600);
    background: var(--gold-100);
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 14px;
}
.promise-item h4 { font-size: 17px; color: var(--ink); font-weight: 700; margin-bottom: 8px; }
.promise-item p { font-size: 13.5px; color: var(--muted); line-height: 1.9; }

@media (max-width: 980px) {
    .promise-grid { grid-template-columns: 1fr; }
}

/* ---------- 工作人员查询 ---------- */
.staff-result { max-width: 760px; margin: 28px auto 0; }
.staff-result-title { font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 14px; }
.staff-result-empty {
    margin: 0;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    color: #8A3B12;
    line-height: 1.8;
}
.staff-card {
    display: flex;
    gap: 22px;
    align-items: center;
    padding: 22px 24px;
    margin-bottom: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-xs);
}
.staff-photo {
    width: 108px;
    height: 136px;
    flex-shrink: 0;
    border-radius: var(--r-md);
    overflow: hidden;
    background: var(--green-50);
    border: 1px solid var(--green-100);
    display: flex;
    align-items: center;
    justify-content: center;
}
.staff-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.staff-photo-fallback { font-size: 36px; font-weight: 700; color: var(--green-700); }
.staff-meta { flex: 1; min-width: 0; }
.staff-name-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.staff-name { font-size: 22px; font-weight: 700; color: var(--ink); }
.staff-status {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 3px 10px;
    border-radius: 20px;
}
.staff-status-active { color: var(--green-800); background: var(--green-100); }
.staff-status-inactive { color: #6B4A12; background: #F6E7C1; }
.staff-lines { display: grid; gap: 6px; }
.staff-line { font-size: 15px; color: var(--ink); line-height: 1.6; }
.staff-line span { color: var(--muted); margin-right: 8px; }
@media (max-width: 640px) {
    .staff-card { flex-direction: column; align-items: flex-start; }
    .staff-photo { width: 96px; height: 120px; }
}