/* 北京哈拉国际认证中心 - 贴近PPT设计 */
/* 主题色: accent3 #196B24, bg1 lumMod95% 浅灰, dk2 #0E2841 */

:root {
    --primary-green: #196B24;
    --primary-green-dark: #14561c;
    --primary-green-light: #2d8a3a;
    --dark-blue: #0E2841;
    --text-dark: #0F1115;
    --text-light: #666;
    --bg-gray: #f2f2f2;   /* PPT: bg1 lumMod 95% */
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --font-sans: 'Noto Sans SC', 'Microsoft YaHei', '等线', sans-serif;
    --font-arabic: 'Noto Sans Arabic', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== Header: 绿色条 + Logo左 + 导航中 + 电话右 (PPT) ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-bar {
    background: var(--primary-green);
    padding: 10px 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.logo-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: white;
}

.logo-img {
    height: 42px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 11px;
    font-weight: 500;
    color: white;
    text-align: center;
    line-height: 1.2;
}

.nav {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 10px 14px;
    font-size: 14px;
    border-radius: 4px;
    transition: background 0.2s;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255,255,255,0.2);
}

.nav-en {
    display: block;
    font-size: 11px;
    opacity: 0.9;
}

.header-tel {
    color: white;
    font-size: 14px;
    text-align: right;
}

/* 移动端汉堡菜单按钮 - 默认隐藏 */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    color: white;
}

.nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: white;
    border-radius: 1px;
}

.tel-en {
    display: block;
    font-size: 12px;
    opacity: 0.9;
}

/* ========== Hero: 大背景图 + 白色文字叠加 (PPT) ========== */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 600px;
    padding-top: 64px; /* 为固定 header 留出空间 */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    overflow: hidden;
}

.hero-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-indicators {
    position: absolute;
    bottom: 24px;
    right: 24px;
    z-index: 2;
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 32px;
    height: 32px;
    border: 2px solid rgba(255,255,255,0.8);
    background: rgba(0,0,0,0.3);
    color: white;
    font-size: 14px;
    font-weight: 600;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dot:hover {
    background: rgba(255,255,255,0.3);
}

.hero-dot.active {
    background: var(--primary-green);
    border-color: white;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    max-width: 900px;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-text {
    position: absolute;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-text.active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
}

.hero-logo {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.hero-logo-img {
    height: 64px;
    width: auto;
    object-fit: contain;
}

.hero-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.2);
    letter-spacing: 4px;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 12px;
    opacity: 0.98;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.hero-arabic {
    font-family: var(--font-arabic);
    font-size: 24px;
    margin-top: 20px;
    margin-bottom: 24px;
    direction: rtl;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.hero-org {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.hero-org-en {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    opacity: 0.98;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* ========== Sections: 浅灰/白色交替 (PPT) ========== */
.section {
    padding: 80px 0;
}

.section-gray {
    background: var(--bg-gray);
}

.section-white {
    background: var(--bg-white);
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 4px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--primary-green);
    text-align: center;
    margin-bottom: 48px;
}

.section-cta {
    text-align: center;
    margin-top: 32px;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background: var(--primary-green);
    color: white !important;
    padding: 14px 36px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--primary-green-dark);
}

/* ========== Content Grid: 左文右图 (PPT) ========== */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 48px;
    align-items: start;
}

.content-main p,
.content-main ul {
    margin-bottom: 16px;
}

.content-main ul {
    padding-left: 24px;
}

.content-main li {
    margin-bottom: 12px;
}

.sidebar-card {
    background: white;
    padding: 0;
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.sidebar-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.sidebar-card h3 {
    font-size: 20px;
    color: var(--primary-green);
    margin: 20px 20px 4px;
}

.sidebar-card h4 {
    font-size: 14px;
    color: var(--text-light);
    margin: 0 20px 16px;
}

.sidebar-card p {
    font-size: 14px;
    margin: 0 20px 16px;
}

.sidebar-card p:last-child {
    margin-bottom: 20px;
}

/* ========== Partners 合作伙伴滚动 ========== */
#halal-commentary.section {
    padding-bottom: 0;
}

#partners.section {
    padding-top: 48px;
    padding-bottom: 0;
}

#halal-significance.section {
    padding-top: 32px;
    padding-bottom: 120px;
}

#halal-significance .section-title {
    margin-bottom: 8px;
}

#halal-significance .section-subtitle {
    margin-bottom: 32px;
}

#partners .section-title {
    margin-bottom: 8px;
}

.partners-marquee {
    width: 100%;
    overflow: hidden;
    padding: 0;
    line-height: 0;
}

.partners-marquee:hover .partners-track {
    animation-play-state: paused;
}

.partners-track {
    display: flex;
    width: max-content;
    animation: partnersScroll 25s linear infinite;
    animation-play-state: running;
    align-items: stretch;
}

.partners-track img {
    flex-shrink: 0;
    height: 400px;
    width: auto;
    max-width: 1600px;
    object-fit: contain;
    display: block;
    vertical-align: top;
    border: none;
    box-shadow: none;
    outline: none;
}

@keyframes partnersScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-33.333%); }
}

.partners-track.partners-dynamic {
    animation-name: partnersScrollDynamic;
}

@keyframes partnersScrollDynamic {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ========== 证书样本 ========== */
/* 认证流程页：15天服务流程与下方证书样本间距 */
.cert-process-steps.section {
    padding-bottom: 32px;
}

#cert-sample.section {
    padding-top: 8px;
}

.cert-sample-logo {
    text-align: center;
    margin-bottom: 20px;
}

.cert-sample-logo img {
    max-width: 200px;
    height: auto;
    display: inline-block;
}

.cert-sample-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
}

.cert-sample-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.cert-sample-item img {
    width: 100%;
    height: auto;
    display: block;
}

.cert-sample-mask {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 20px,
        rgba(255,255,255,0.03) 20px,
        rgba(255,255,255,0.03) 40px
    );
    pointer-events: all;
    user-select: none;
}

.cert-sample-mask::after {
    content: '样本';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-30deg);
    font-size: 48px;
    font-weight: 700;
    color: rgba(0,0,0,0.08);
    letter-spacing: 0.5em;
    pointer-events: none;
}

/* ========== 清真认证: 左文右图 ========== */
.cert-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    align-items: start;
}

.cert-text .section-title {
    text-align: left;
}

.cert-text .section-subtitle {
    text-align: left;
    margin-bottom: 24px;
}

.cert-text p {
    margin-bottom: 20px;
    text-align: justify;
}

.cert-text .section-cta {
    text-align: left;
}

.halal-cert-page .about-subtitle {
    margin-bottom: 20px;
}

/* 清真认证页面 - 快速定位导航 */
.halal-page-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-bottom: 32px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8fcf9 0%, #eef5ef 100%);
    border-radius: 10px;
    border: 1px solid rgba(25, 107, 36, 0.12);
}

.halal-page-nav-link {
    font-size: 14px;
    color: var(--text-dark);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    background: white;
    border: 1px solid rgba(25, 107, 36, 0.2);
    transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.halal-page-nav-link:hover {
    color: var(--primary-green);
    background: rgba(25, 107, 36, 0.06);
    border-color: var(--primary-green);
}

.halal-page-nav-link:active,
.halal-page-nav-link:focus-visible {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}

/* 锚点定位时避免被固定头部遮挡 */
#halal-intro,
#halal-about,
#halal-logos,
#halal-process,
#halal-scope,
#halal-regulations {
    scroll-margin-top: 80px;
}

.halal-cert-page .about-lang,
.halal-cert-page .halal-cert-text {
    display: block;
}

/* 清真认证 - 核心优势展示 */
.halal-cert-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.halal-cert-highlight-item {
    text-align: center;
    padding: 20px 16px;
    background: linear-gradient(135deg, #f8faf8 0%, #eef5ef 100%);
    border-radius: 10px;
    border: 1px solid rgba(25, 107, 36, 0.15);
    transition: transform 0.2s, box-shadow 0.2s;
}

.halal-cert-highlight-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 107, 36, 0.12);
}

.halal-cert-num {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 6px;
}

.halal-cert-label {
    font-size: 0.85rem;
    color: var(--text-dark);
    line-height: 1.4;
}

/* 清真认证 - 正文样式 */
.halal-cert-content {
    margin-top: 0;
}

.halal-cert-page .halal-cert-text {
    padding: 28px 32px;
    background: var(--bg-gray);
    border-radius: 12px;
    border-left: 4px solid var(--primary-green);
}

.halal-cert-page .halal-cert-text p {
    margin-bottom: 1.2em;
    text-align: justify;
    line-height: 1.95;
    color: var(--text-dark);
}

.halal-cert-page .halal-cert-text p:last-child {
    margin-bottom: 0;
}

.halal-cert-logos-img {
    text-align: center;
    margin: 32px 0 24px;
}

.halal-cert-logos-img img {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

/* 15天服务流程 */
.process-15days {
    margin: 48px 0 32px;
    padding: 36px 32px;
    background: linear-gradient(135deg, #f8fcf9 0%, #e8f5eb 50%, #f0f7f1 100%);
    border-radius: 12px;
    border: 1px solid rgba(25, 107, 36, 0.12);
}

.process-15days-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 6px;
}

.process-15days-subtitle {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 32px;
}

.process-15days-flow {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0;
    position: relative;
}

.process-15days-step {
    flex: 1;
    min-width: 140px;
    max-width: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.process-15days-node {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-green);
    flex-shrink: 0;
    margin-bottom: 12px;
}

.process-15days-step-content {
    font-size: 14px;
}

.process-15days-days {
    display: block;
    font-size: 12px;
    color: var(--primary-green);
    font-weight: 600;
    margin-bottom: 4px;
}

.process-15days-step-content strong {
    font-size: 15px;
    color: var(--text-dark);
}

.process-15days-en {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: var(--text-light);
}

.process-15days-step-content p {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 6px;
    line-height: 1.5;
}

.process-15days-link {
    color: var(--primary-green);
    text-decoration: none;
}

.process-15days-link:hover {
    text-decoration: underline;
}

/* 哈拉认证范围 */
.halal-scope {
    margin: 40px 0 32px;
}

.halal-scope-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 6px;
}

.halal-scope-subtitle {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 24px;
}

.halal-scope-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.halal-scope-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 16px;
    background: white;
    border-radius: 10px;
    border: 1px solid rgba(25, 107, 36, 0.15);
    transition: transform 0.2s, box-shadow 0.2s;
}

.halal-scope-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 107, 36, 0.12);
}

.halal-scope-icon {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 8px;
}

.halal-scope-label {
    font-size: 14px;
    color: var(--text-dark);
    text-align: center;
    line-height: 1.4;
}

/* 哈拉认证法规 */
.halal-regulations {
    margin: 40px 0 32px;
}

.halal-regulations-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 6px;
}

.halal-regulations-subtitle {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 24px;
}

.halal-regulations-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.halal-regulations-item {
    padding: 20px 24px;
    background: white;
    border-radius: 10px;
    border: 1px solid rgba(25, 107, 36, 0.15);
    border-left: 4px solid var(--primary-green);
}

.halal-regulations-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    display: block;
    margin-bottom: 8px;
}

.halal-regulations-desc {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0 0 12px 0;
}

.halal-regulations-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 24px;
    padding-top: 12px;
    border-top: 1px solid rgba(25, 107, 36, 0.12);
}

.halal-regulations-org,
.halal-regulations-date {
    font-size: 13px;
    color: var(--text-light);
}

.halal-regulations-link {
    font-size: 14px;
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 500;
}

.halal-regulations-link:hover {
    color: var(--primary-green-dark);
    text-decoration: underline;
}

.process-15days-connector {
    width: 24px;
    min-width: 24px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-green), var(--primary-green-light));
    margin-top: 7px;
    flex-shrink: 0;
}

.cert-img {
    position: sticky;
    top: 100px;
}

.cert-img img {
    width: 100%;
    height: auto;
}

/* About */
/* About page - design layout */
.about-page .container.container-narrow {
    max-width: 960px;
}

.about-logo {
    text-align: center;
    margin-bottom: 32px;
}

.about-logo img {
    max-width: 280px;
    height: auto;
    display: inline-block;
    border: 3px solid var(--primary-green);
    border-radius: 12px;
    padding: 8px;
}

.about-page .about-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.about-page .about-subtitle {
    font-size: 18px;
    color: var(--primary-green);
    margin-bottom: 4px;
}

.about-page .about-subtitle-ar {
    font-size: 18px;
    color: var(--primary-green);
    margin-bottom: 28px;
    font-family: 'Noto Sans Arabic', sans-serif;
}

/* 语言切换选项卡 */
.about-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-bottom: 0;
    background: var(--bg-gray);
    padding: 8px;
    border-radius: 12px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.06);
}

.about-tab {
    flex: 1 1 auto;
    min-width: 70px;
    max-width: 120px;
    padding: 12px 16px;
    border: none;
    background: transparent;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.25s ease;
}

.about-tab:hover {
    color: var(--primary-green);
}

.about-tab.active {
    background: white;
    color: var(--primary-green);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.about-content {
    margin-top: 24px;
}

.about-content p {
    margin-bottom: 1em;
    text-align: justify;
    line-height: 1.9;
    color: var(--text-dark);
}

.about-content p:last-child {
    margin-bottom: 0;
}

.about-lang {
    display: none;
    padding: 28px 32px;
    background: var(--bg-gray);
    border-radius: 12px;
    border-left: 4px solid var(--primary-green);
    animation: aboutFadeIn 0.3s ease;
}

.about-lang.active {
    display: block;
}

@keyframes aboutFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.about-lang:last-child {
    margin-bottom: 0;
}

.about-lang-ar,
.about-lang-ur,
.about-lang-fa {
    direction: rtl;
    text-align: right;
    border-left: none;
    border-right: 4px solid var(--primary-green);
}

.about-lang-ar p,
.about-lang-ur p,
.about-lang-fa p {
    text-align: right;
}

/* 机构简介 - 北京哈拉国际认证中心的优势 */
.about-advantages {
    margin-top: 48px;
}

.about-advantages-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-green);
    text-align: center;
    margin-bottom: 8px;
}

.about-advantages-subtitle {
    font-size: 15px;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 32px;
}

.about-advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.about-advantage-item {
    padding: 24px 20px;
    background: linear-gradient(135deg, #f8fcf9 0%, #eef5ef 100%);
    border-radius: 12px;
    border: 1px solid rgba(25, 107, 36, 0.12);
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.about-advantage-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(25, 107, 36, 0.15);
}

.about-advantage-icon {
    display: inline-block;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 12px;
    padding: 6px 14px;
    background: rgba(25, 107, 36, 0.08);
    border-radius: 8px;
}

.about-advantage-item h4 {
    font-size: 17px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.about-advantage-item p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}


/* Commentary */
.commentary-logo {
    text-align: center;
    margin: 24px 0 32px;
}

.commentary-logo img {
    max-width: 280px;
    height: auto;
    display: inline-block;
}

.commentary-definitions {
    list-style: disc;
    padding-left: 24px;
    margin-bottom: 24px;
}

.commentary-definitions li {
    margin-bottom: 16px;
    text-align: left;
}

.commentary-content {
    text-align: left;
}

.commentary-content h4 {
    font-size: 20px;
    margin: 24px 0 12px;
    color: var(--primary-green);
}

.commentary-content ol,
.commentary-content ul:not(.commentary-definitions) {
    padding-left: 24px;
    margin-bottom: 24px;
}

.commentary-content li {
    margin-bottom: 12px;
}

/* News */
.news-placeholder {
    text-align: center;
    padding: 80px 24px;
    background: var(--bg-gray);
    border-radius: 8px;
    border: 2px dashed var(--border-color);
}

.news-placeholder-title {
    font-size: 28px;
    font-weight: 700;
    color: #c00;
}

.news-placeholder-desc {
    font-size: 14px !important;
    margin-top: 8px;
    color: var(--text-light);
}

/* 行业动态列表 */
.news-list {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.news-loading {
    text-align: center;
    padding: 48px;
    color: var(--text-light);
}

.news-empty {
    text-align: center;
    padding: 60px 24px;
    color: var(--text-light);
    font-size: 16px;
}

.news-item {
    display: flex;
    gap: 24px;
    background: var(--bg-gray);
    padding: 24px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-green);
    transition: box-shadow 0.2s;
}

.news-item:hover {
    box-shadow: var(--shadow);
}

.news-item-link {
    text-decoration: none;
    color: inherit;
    display: flex;
}

.news-item-more {
    font-size: 14px;
    color: var(--primary-green);
    margin-top: 8px;
    display: inline-block;
}

.news-item-link:hover .news-item-more {
    text-decoration: underline;
}

.news-item-cover {
    flex-shrink: 0;
    width: 200px;
    height: 120px;
    overflow: hidden;
    border-radius: 6px;
}

.news-item-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    margin: 0 auto;
}

.news-item-body {
    flex: 1;
    min-width: 0;
}

.news-item-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.news-item-date {
    font-size: 14px;
    color: var(--text-light);
    display: block;
    margin-bottom: 12px;
}

.news-item-summary {
    font-size: 15px;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 12px;
}

.news-item-content {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
    padding: 12px 0;
    border-top: 1px solid var(--border-color);
    margin-top: 8px;
    white-space: pre-wrap;
}

.news-toggle {
    font-size: 14px;
    color: var(--primary-green);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}

.news-toggle:hover {
    color: var(--primary-green-dark);
}

/* 行业动态分页 */
.news-pagination-wrap {
    margin-top: 32px;
}

.news-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.news-pagination-info {
    font-size: 14px;
    color: var(--text-light);
}

.news-pagination-btns {
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-page-btn {
    padding: 8px 14px;
    font-size: 14px;
    border: 1px solid var(--border-color);
    background: white;
    color: var(--text-dark);
    border-radius: 4px;
    cursor: pointer;
}

.news-page-btn:hover:not(:disabled) {
    border-color: var(--primary-green);
    color: var(--primary-green);
}

.news-page-btn.active {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: white;
}

.news-page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.news-page-nums {
    display: flex;
    gap: 4px;
}

@media (max-width: 640px) {
    .news-item {
        flex-direction: column;
    }
    .news-item-cover {
        width: 100%;
        height: 160px;
    }
}

/* Training Notice List */
.training-list {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.training-item {
    background: var(--bg-gray);
    padding: 24px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-green);
    transition: box-shadow 0.2s;
}

.training-item-urgent { border-left-color: #c62828; }
.training-item-important { border-left-color: #e65100; }
.training-item-normal { border-left-color: var(--primary-green); }

.training-item:hover {
    box-shadow: var(--shadow);
}

.training-item-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.training-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    flex: 1;
    min-width: 200px;
}

.training-date {
    font-size: 14px;
    color: var(--text-light);
}

.training-level {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.training-level-normal {
    background: #e0e0e0;
    color: #616161;
}

.training-level-important {
    background: #fff3e0;
    color: #e65100;
}

.training-level-urgent {
    background: #ffebee;
    color: #c62828;
}

.training-status {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
}

.training-status-open {
    background: #e8f5e9;
    color: var(--primary-green);
}

.training-status-closed {
    background: #f5f5f5;
    color: var(--text-light);
}

.training-status-upcoming {
    background: #fff3e0;
    color: #e65100;
}

.training-summary {
    font-size: 15px;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 12px;
}

.training-detail {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
    padding: 12px 0;
    border-top: 1px solid var(--border-color);
    margin-top: 8px;
}

.training-detail img,
.training-summary img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 16px auto;
    border-radius: 8px;
}

.training-toggle {
    font-size: 14px;
    color: var(--primary-green);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}

.training-toggle:hover {
    color: var(--primary-green-dark);
}

.training-empty {
    text-align: center;
    padding: 60px 24px;
    color: var(--text-light);
    font-size: 16px;
}

/* 通知公告分页 */
.training-pagination-wrap {
    margin-top: 32px;
}

.training-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.training-pagination-info {
    font-size: 14px;
    color: var(--text-light);
}

.training-pagination-btns {
    display: flex;
    align-items: center;
    gap: 8px;
}

.training-page-btn {
    padding: 8px 14px;
    font-size: 14px;
    border: 1px solid var(--border-color);
    background: white;
    color: var(--text-dark);
    border-radius: 4px;
    cursor: pointer;
}

.training-page-btn:hover:not(:disabled) {
    border-color: var(--primary-green);
    color: var(--primary-green);
}

.training-page-btn.active {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: white;
}

.training-page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.training-page-nums {
    display: flex;
    gap: 4px;
}

/* Process Steps */
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.process-step {
    background: white;
    padding: 32px 24px;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}

.process-step:hover {
    transform: translateY(-4px);
}

.step-num {
    display: inline-block;
    width: 48px;
    height: 48px;
    line-height: 48px;
    background: var(--primary-green);
    color: white;
    font-size: 24px;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 16px;
}

.process-step h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.process-step p {
    font-size: 14px;
    color: var(--text-light);
}

.process-note {
    margin-top: 24px;
    padding: 16px 20px;
    background: #e8f5e9;
    border-left: 4px solid var(--primary-green);
    font-size: 14px;
    color: var(--text-dark);
    border-radius: 0 6px 6px 0;
}

/* 申请表及资料下载 */
.cert-downloads {
    margin-top: 48px;
    padding: 32px;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.cert-downloads-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.cert-downloads-desc {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 24px;
}

.cert-downloads-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.cert-download-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: var(--bg-gray);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.cert-download-icon {
    font-size: 24px;
}

.cert-download-name {
    flex: 1;
    min-width: 140px;
    font-weight: 600;
    font-size: 15px;
}

.cert-download-hint {
    font-size: 12px;
    color: var(--text-light);
}

.cert-download-btn {
    padding: 8px 20px;
    background: var(--primary-green);
    color: white !important;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.cert-download-btn:hover {
    background: var(--primary-green-dark);
}

.cert-downloads-note {
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .cert-downloads-grid {
        grid-template-columns: 1fr;
    }
}

/* Certificate Query Form */
.query-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-gray);
    padding: 48px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.query-form .form-row {
    margin-bottom: 24px;
}

.query-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 15px;
}

.query-form input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.query-form input:focus {
    outline: none;
    border-color: var(--primary-green);
}

.captcha-row {
    display: flex;
    gap: 12px;
}

.captcha-row input {
    flex: 1;
}

.captcha-display {
    width: 120px;
    padding: 14px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--primary-green);
    cursor: pointer;
    user-select: none;
}

.btn-submit {
    width: 100%;
    margin-top: 8px;
    padding: 16px;
}

/* Certificate Detail Page */
.cert-detail-main {
    background: linear-gradient(180deg, #e8f5e9 0%, #f5f5f5 100%);
    min-height: 100vh;
}

.cert-detail-header {
    text-align: center;
    margin-bottom: 32px;
}

.cert-detail-logo {
    margin-bottom: 16px;
}

.cert-detail-logo {
    display: inline-block;
    padding: 12px 24px;
    background: var(--primary-green);
    border-radius: 8px;
}

.cert-detail-logo .cert-logo-img {
    height: 56px;
    display: block;
}

.cert-detail-org-ar {
    font-family: var(--font-arabic);
    font-size: 18px;
    color: var(--primary-green);
    margin-bottom: 4px;
}

.cert-detail-org-zh {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.cert-detail-org-en {
    font-size: 14px;
    color: var(--text-light);
}

.cert-detail-intro {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.cert-detail-intro-en {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 24px;
}

.cert-detail-card {
    background: white;
    border-radius: 8px;
    padding: 32px;
    box-shadow: var(--shadow);
    margin-bottom: 32px;
}

.cert-detail-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.cert-detail-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.cert-detail-row label {
    flex: 0 0 280px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
}

.cert-detail-value {
    flex: 1;
    font-size: 15px;
    color: var(--text-dark);
}

.cert-detail-products {
    line-height: 1.6;
}

.cert-detail-loading,
.cert-detail-error {
    text-align: center;
    padding: 48px;
    color: var(--text-light);
}

.cert-detail-error a {
    color: var(--primary-green);
    text-decoration: underline;
}

.cert-detail-image-section {
    background: white;
    border-radius: 8px;
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 32px;
    text-align: center;
}

.cert-detail-image-section h4 {
    font-size: 16px;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.cert-image-wrapper {
    max-width: 720px;
    margin: 0 auto;
}

.cert-image-wrapper img {
    max-width: 100%;
    height: auto;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.cert-image-clickable { cursor: pointer; }
.cert-image-clickable:hover img { border-color: var(--primary-green); }

.image-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.85);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.image-lightbox.show { display: flex; }
.image-lightbox img { max-width: 95%; max-height: 95%; object-fit: contain; pointer-events: none; }

.cert-detail-actions {
    text-align: center;
}

.cert-detail-actions .btn-primary {
    display: inline-block;
    padding: 12px 32px;
    text-decoration: none;
}

@media (max-width: 768px) {
    .cert-detail-row {
        flex-direction: column;
    }
    .cert-detail-row label {
        flex: none;
        margin-bottom: 4px;
    }
}

/* ========== Footer: 绿色条 + 白色文字 (PPT) ========== */
.footer {
    background: var(--primary-green);
    color: white;
    padding: 30px 0 22px;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.footer-logo {
    flex-shrink: 0;
}

.footer-logo img {
    max-height: 56px;
    width: auto;
    display: block;
}

.footer-text {
    flex: 0 1 auto;
}

.footer-content h3 {
    font-size: 22px;
    margin-bottom: 8px;
}

.footer-text p {
    font-size: 15px;
    margin-bottom: 4px;
    opacity: 0.95;
}

.footer-bottom {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.25);
    text-align: center;
}

.footer-bottom-home {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.footer-bottom p {
    font-size: 15px;
    margin: 0;
    opacity: 0.95;
}

.footer-bottom p + p {
    margin-top: 8px;
}

.footer-bottom a {
    color: white;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* ========== 首页悬浮重要通知 ========== */
.float-notice {
    position: fixed;
    right: 0;
    top: 70%;
    transform: translateY(-50%);
    z-index: 999;
    writing-mode: vertical-rl;
    padding: 16px 12px;
    background: var(--primary-green);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 2px;
    box-shadow: -2px 0 12px rgba(0,0,0,0.15);
    border-radius: 8px 0 0 8px;
    transition: background 0.2s, padding-right 0.2s;
}
.float-notice:hover {
    background: var(--primary-green-dark);
    padding-right: 16px;
}
.float-notice-text {
    display: inline-block;
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .about-advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cert-layout {
        grid-template-columns: 1fr;
    }
    
    .cert-img {
        position: static;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .hero-side-img {
        display: none;
    }
    
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 12px;
    }

    .logo-area {
        flex: 1;
        min-width: 0;
    }

    .logo-text {
        font-size: 10px;
    }

    .nav-toggle {
        display: flex;
        flex-shrink: 0;
        order: 2;
    }

    .header-tel {
        order: 3;
        text-align: right;
        font-size: 11px;
    }

    .header-tel .tel-en {
        display: none;
    }

    .nav {
        display: none;
        width: 100%;
        order: 4;
        flex-direction: column;
        gap: 0;
        padding: 12px 0 0;
        border-top: 1px solid rgba(255,255,255,0.3);
        margin-top: 8px;
    }

    .header-content.nav-open .nav {
        display: flex;
    }

    .nav-link {
        display: block;
        width: 100%;
        padding: 12px 16px;
        text-align: left;
        border-radius: 6px;
    }

    .nav-link .nav-en {
        display: inline;
        margin-left: 4px;
        font-size: 12px;
        opacity: 0.85;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-arabic {
        font-size: 20px;
    }
    
    .section {
        padding: 48px 0;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .query-form-wrapper {
        padding: 24px;
    }
    
    .about-lang {
        padding: 20px 20px;
    }
    
    .about-page .about-title {
        font-size: 28px;
    }
    
    .about-tabs {
        padding: 4px;
    }
    
    .about-advantages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .about-advantage-item {
        padding: 18px 16px;
    }

    .about-advantage-icon {
        font-size: 16px;
    }

    .about-advantage-item h4 {
        font-size: 15px;
    }

    .about-advantage-item p {
        font-size: 13px;
    }

    .about-tab {
        padding: 10px 12px;
        font-size: 0.85rem;
        min-width: 60px;
        max-width: none;
    }
    
    .halal-cert-highlights {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .halal-cert-highlight-item {
        padding: 16px 12px;
    }
    
    .halal-cert-num {
        font-size: 1.1rem;
    }
    
    .halal-cert-label {
        font-size: 0.8rem;
    }
    
    .halal-cert-page .halal-cert-text {
        padding: 20px 20px;
    }

    .halal-page-nav {
        padding: 12px 16px;
        gap: 8px;
    }

    .halal-page-nav-link {
        font-size: 13px;
        padding: 6px 12px;
    }

    .process-15days {
        margin: 32px 0 24px;
        padding: 24px 16px;
    }

    .process-15days-title {
        font-size: 22px;
    }

    .process-15days-flow {
        flex-direction: column;
        align-items: stretch;
    }

    .process-15days-step {
        max-width: none;
        flex-direction: row;
        text-align: left;
        padding: 16px 0;
        border-bottom: 1px dashed rgba(25, 107, 36, 0.2);
    }

    .process-15days-step:last-of-type {
        border-bottom: none;
    }

    .process-15days-node {
        margin-right: 16px;
        margin-bottom: 0;
    }

    .process-15days-connector {
        width: 2px;
        height: 16px;
        margin: 0 auto;
        background: linear-gradient(180deg, var(--primary-green), var(--primary-green-light));
    }

    .halal-scope-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .halal-scope-item {
        padding: 16px 12px;
    }

    .halal-scope-icon {
        font-size: 16px;
    }

    .halal-scope-label {
        font-size: 13px;
    }

    .halal-regulations-item {
        padding: 16px 18px;
    }

    .halal-regulations-name {
        font-size: 15px;
    }

    .halal-regulations-desc {
        font-size: 13px;
    }

    .halal-regulations-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .halal-regulations-org,
    .halal-regulations-date {
        font-size: 12px;
    }

    .halal-regulations-link {
        font-size: 13px;
    }
    
    .cert-sample-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .footer-logo img {
        max-height: 48px;
    }
    
    .float-notice {
        padding: 12px 10px;
        font-size: 14px;
    }
}
