/* ============================================================
   首页 Banner 独立样式
   仅在首页 index.php 加载（$hcExtraCss），不影响其他页面
   结构命名独立：halal-hero / halal-hero-inner / halal-hero-slide
   ============================================================ */

.halal-hero {
    position: relative;
    overflow: hidden;
    background: var(--color-primary-darker);
}

/* 专属容器：最大 1200px 居中，不依赖全站 .halal-container */
.halal-hero-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.halal-hero-slides {
    position: relative;
    height: 570px;
}

.halal-hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .8s ease, visibility .8s;
    background: linear-gradient(120deg, #10154d 0%, #1e2586 62%, #2c3497 100%);
}

/* 轮播通过 CSS 渐变与几何元素区分，不使用背景图片 */
.halal-hero-slide--1 {
    background:
        radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.2px) 0 0 / 24px 24px,
        radial-gradient(760px 340px at 82% 20%, rgba(242, 169, 59, .18), transparent 68%),
        linear-gradient(120deg, #10154d 0%, #1e2586 62%, #2c3497 100%);
}

.halal-hero-slide--2 {
    background:
        radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1.2px) 0 0 / 24px 24px,
        radial-gradient(820px 420px at 84% 78%, rgba(58, 68, 176, .62), transparent 70%),
        linear-gradient(120deg, #0d1240 0%, #161b66 55%, #1e2586 100%);
}

.halal-hero-slide--3 {
    background:
        radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1.2px) 0 0 / 24px 24px,
        radial-gradient(720px 400px at 78% 26%, rgba(242, 169, 59, .2), transparent 66%),
        linear-gradient(140deg, #10154d 0%, #1e2586 52%, #161b66 100%);
}

.halal-hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.halal-hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(16, 21, 77, .88) 0%, rgba(16, 21, 77, .5) 44%, rgba(16, 21, 77, .04) 100%);
}

/* 背景装饰：大号 HALAL 字样水印 */
.halal-hero-slide::after {
    content: "HALAL";
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 0;
    transform: translate(-50%, -50%);
    font-family: "Arial Black", Arial, sans-serif;
    font-size: clamp(120px, 21vw, 300px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: .08em;
    white-space: nowrap;
    color: rgba(255, 255, 255, .05);
    -webkit-text-stroke: 2px rgba(255, 255, 255, .1);
    pointer-events: none;
    user-select: none;
}

.halal-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    color: #fff;
    text-align: left;
}

.halal-hero-tag {
    display: inline-block;
    padding: 5px 16px;
    border: 1px solid rgba(242, 169, 59, .8);
    color: var(--color-accent);
    border-radius: 20px;
    font-size: 13.5px;
    margin-bottom: 18px;
    letter-spacing: 1px;
}

.halal-hero-content h1,
.halal-hero-content h2 {
    color: #fff;
    font-size: 38px;
    line-height: 1.32;
    margin-bottom: 16px;
    max-width: 720px;
}

.halal-hero-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: center;
    gap: 48px;
}

.halal-hero-content p {
    font-size: 16px;
    line-height: 1.85;
    color: rgba(255, 255, 255, .9);
    margin-bottom: 20px;
    max-width: 640px;
}

/* 要点列表 */
.halal-hero-points {
    display: grid;
    gap: 9px;
    margin: 0 0 26px;
    padding: 0;
    list-style: none;
}

.halal-hero-points li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 14.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .88);
}

.halal-hero-points .halal-icon {
    width: 17px;
    height: 17px;
    margin-top: 2px;
    color: var(--color-accent);
}

/* 电话与机构说明 */
.halal-hero-foot {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-top: 18px;
    font-size: 13px;
    color: rgba(255, 255, 255, .72);
}

.halal-hero-tel {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
}

.halal-hero-tel:hover {
    color: var(--color-accent);
}

.halal-hero-insts b {
    font-weight: 600;
    color: rgba(255, 255, 255, .92);
}

/* 右侧信息卡 */
.halal-hero-side {
    position: relative;
    padding: 26px 26px 22px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .09);
    border: 1px solid rgba(255, 255, 255, .18);
    box-shadow: 0 22px 50px rgba(6, 10, 50, .35);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.halal-hero-side-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--color-accent);
}

.halal-hero-side-title::before {
    content: "";
    width: 16px;
    height: 2px;
    background: var(--color-accent);
}

.halal-hero-side-list {
    display: grid;
    gap: 11px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

.halal-hero-side-list li {
    position: relative;
    padding-left: 18px;
    font-size: 14px;
    line-height: 1.55;
    color: rgba(255, 255, 255, .9);
}

.halal-hero-side-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-accent);
    opacity: .85;
}

.halal-hero-side-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 11px 16px;
    border: 0;
    border-radius: 10px;
    background: var(--color-accent);
    color: #3a2a05;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition: all .2s;
}

.halal-hero-side-cta:hover {
    background: #fff;
    color: var(--color-primary-darker);
}

.halal-hero-side-cta .halal-icon {
    width: 15px;
    height: 15px;
}

.halal-hero-btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* 轮播控制 */
.halal-hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .4);
    background: rgba(16, 21, 77, .35);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
}

.halal-hero-arrow:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #3a2a05;
}

.halal-hero-arrow.prev { left: 24px; }
.halal-hero-arrow.next { right: 24px; }
.halal-hero-arrow.prev .halal-icon { transform: rotate(180deg); }

.halal-hero-dots {
    position: absolute;
    bottom: 22px;
    left: 0;
    right: 0;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.halal-hero-dots button {
    width: 12px;
    height: 12px;
    padding: 0;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, .45);
    transition: all .2s;
}

.halal-hero-dots button.active {
    background: var(--color-accent);
    width: 30px;
    border-radius: 6px;
}

/* ---------- 首页资讯模块 ---------- */
.halal-home-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.halal-home-news-card {
    display: flex;
    flex-direction: column;
    padding: 24px 24px 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all .25s;
}

.halal-home-news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.halal-home-news-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 12.5px;
    color: var(--text-muted);
}

.halal-home-news-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.halal-home-news-tag {
    display: inline-block;
    padding: 3px 11px;
    border-radius: 20px;
    background: var(--color-primary-50);
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 700;
}

.halal-home-news-card h3 {
    font-size: 16.5px;
    line-height: 1.55;
    margin-bottom: 9px;
    color: var(--color-primary-darker);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.halal-home-news-card p {
    font-size: 13.5px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.halal-home-news-card .halal-link-more {
    margin-top: auto;
    font-size: 13px;
}

/* 中等桌面端：侧卡左移，避免与右侧箭头重叠 */
@media (max-width: 1360px) {
    .halal-hero-side {
        margin-right: 40px;
    }
}

/* ---------- 独立响应式 ---------- */
@media (max-width: 992px) {
    .halal-hero-slides {
        height: 530px;
    }

    .halal-hero-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .halal-hero-side {
        display: none;
    }

    .halal-home-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .halal-hero-content h1,
    .halal-hero-content h2 {
        font-size: 31px;
    }
}

@media (max-width: 768px) {
    .halal-hero-slides {
        height: 560px;
    }

    .halal-hero-inner {
        padding: 0 16px;
    }

    .halal-home-news-grid {
        grid-template-columns: 1fr;
    }

    .halal-hero-content h1,
    .halal-hero-content h2 {
        font-size: 25px;
    }

    .halal-hero-content p {
        font-size: 14.5px;
    }

    .halal-hero-points li {
        font-size: 13.5px;
    }

    .halal-hero-slide::after {
        -webkit-text-stroke-width: 1px;
    }

    .halal-hero-arrow {
        display: none;
    }
}

@media (max-width: 480px) {
    .halal-hero-slides {
        height: 640px;
    }

    .halal-hero-inner {
        padding: 0 14px;
    }

    .halal-hero-content h1,
    .halal-hero-content h2 {
        font-size: 23px;
    }

    .halal-hero-slide::after {
        font-size: 96px;
    }
}

/* 首页底部 CTA：PC 端隐藏，仅移动端显示 */
@media (min-width: 993px) {
    .halal-home-cta-mobile {
        display: none;
    }
}

/* ---------- 首页：各国指南小卡片 ---------- */
.halal-country-chips {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.halal-country-chip {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 16px 16px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform .25s, box-shadow .25s, border-color .25s;
}

.halal-country-chip:hover {
    transform: translateY(-3px);
    border-color: var(--color-primary-100);
    box-shadow: var(--shadow);
}

.halal-country-chip-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-primary-darker);
}

.halal-country-chip-en {
    font-size: 11.5px;
    letter-spacing: .3px;
    color: var(--text-muted);
}

.halal-country-chip-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 10px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--color-primary);
}

@media (max-width: 1100px) {
    .halal-country-chips {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .halal-country-chips {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
