/* =========================================================
   禁止横向溢出（首页专用）
   ========================================================= */

.homepage,
.homepage *,
.homepage *::before,
.homepage *::after {
    box-sizing: border-box;
}

.homepage {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* 兜底：防止首页把 body 撑宽 */
body.grzan-home,
body.home {
    overflow-x: hidden;
    max-width: 100%;
}




/* =========================================================
   GRZAN Global Homepage
   Front Page Styles - 三色方案（主色: #004c90 + 辅助蓝: #008ad7 + 辅助橙: #ff8124）
   ========================================================= */

/* =========================================================
   Homepage Container
   ========================================================= */

.homepage .container {
    width: 100%;
    max-width: 1730px;
    margin: 0 auto;
    padding-left: 30px;
    padding-right: 30px;
}

.homepage section {
    width: 100%;
}

/* =========================================================
   Common Section Styles - 统一标题样式
   ========================================================= */

.homepage .section-title {
    margin-bottom: 32px;
    text-align: center;
}

.homepage .section-title h2 {
    margin: 0;
    color: #004c90;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.homepage .section-title p {
    max-width: 760px;
    margin: 0px auto 0;
    color: #8a9aa8;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.8;
    letter-spacing: 0.02em;
}

/* =========================================================
   Hero Section - 居中·开阔版
   ========================================================= */

.hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #004c90;
    min-height: 560px;
}

.hero-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 560px;
}

.hero-image {
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0, 76, 144, 0.75) 0%,
        rgba(0, 76, 144, 0.40) 50%,
        rgba(0, 76, 144, 0.15) 80%,
        rgba(0, 76, 144, 0.05) 100%
    );
    z-index: 1;
}

.hero-image img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center center;
}

.hero-section .container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1730px;
    margin: 0 auto;
    padding: 70px 40px;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1000px;
    margin: 0 auto;
    color: #fff;
    text-align: center;
}

.hero-content h1 {
    margin: 0 0 20px;
    color: #fff;
    font-size: 56px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.01em;
}

.hero-content p {
    max-width: 740px;
    margin: 0 auto 34px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    line-height: 2;
}

/* ===== Hero 按钮 - 主次优化 ===== */
.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 10px;
}

.hero-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 14px 36px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

/* ===== 主按钮：橙色实心 + 阴影 ===== */
.hero-actions .btn-primary {
    border: 2px solid #ff8124;
    background: #ff8124;
    color: #fff;
    box-shadow: 0 4px 16px rgba(255, 129, 36, 0.30);
}

.hero-actions .btn-primary:hover {
    border-color: #e06e1a;
    background: #e06e1a;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 129, 36, 0.40);
}

/* ===== 次按钮：半透明背景 + 清晰可见 ===== */
.hero-actions .btn-secondary {
    border: 2px solid rgba(255, 255, 255, 0.50);
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
    box-shadow: none;
}

.hero-actions .btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.80);
    background: rgba(255, 255, 255, 0.20);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: none;
}


/* =========================================================
   About Section - 全白背景
   ========================================================= */

.about-section {
    padding: 40px 0 44px;
    background: #ffffff;
}

/* ---------- 标题区 ---------- */
.about-header {
    text-align: center;
    margin-bottom: 28px;
}

.about-badge {
    display: inline-block;
    margin-bottom: 12px;
    color: #ff8124;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.about-header h2 {
    margin: 0 0 16px;
    color: #004c90;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

.about-divider-center {
    width: 44px;
    height: 3px;
    background: #ff8124;
    margin: 0 auto;
}

/* ---------- 文字内容 ---------- */
.about-content {
    max-width: 100%;
    margin: 0 auto 36px;
    text-align: justify;
    text-justify: inter-ideograph;
}

.about-content p {
    max-width: 100%;
    margin: 0 0 18px;
    color: #4a5a6a;
    font-size: 16px;
    line-height: 2;
    font-weight: 400;
    text-align: justify;
    text-justify: inter-ideograph;
}

.about-content p:last-of-type {
    margin-bottom: 0;
}

.about-content p strong {
    color: #004c90;
    font-weight: 600;
}

/* 了解更多 → 居中对齐 */
.about-link-wrap {
    text-align: center;
    margin-top: 24px;
}

.about-link {
    display: inline-flex;
    align-items: center;
    color: #008ad7;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.about-link:hover {
    color: #004c90;
    transform: translateX(4px);
}

/* ---------- 数据标签 ---------- */
.about-tags {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-top: 8px;
}

.about-tag {
    padding: 28px 16px 24px;
    border-radius: 8px;
    border: 1px solid #eef2f6;
    background: #fafbfc;
    text-align: center;
    transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.about-tag:hover {
    border-color: #ff8124;
    background: #ffffff;
    transform: translateY(-3px);
}

.about-tag-number {
    display: block;
    color: #004c90;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

.about-tag-highlight .about-tag-number {
    color: #ff8124;
}

.about-tag-label {
    display: block;
    margin-top: 6px;
    color: #8a9aa8;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

/* =========================================================
   Services Section - 全白背景
   ========================================================= */

.services-section {
    padding: 40px 0 44px;
    background: #ffffff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.service-card {
    position: relative;
    min-height: 400px;
    overflow: hidden;
    border-radius: 8px;
    background-color: #004c90;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 76, 144, 0.15);
}

.service-regulatory {
    background-image: url("/wp-content/themes/grzan-cn/assets/images/service-1.jpg");
}

.service-authorized {
    background-image: url("/wp-content/themes/grzan-cn/assets/images/service-2.jpg");
}

.service-clinical {
    background-image: url("/wp-content/themes/grzan-cn/assets/images/service-3.jpg");
}

.service-qms {
    background-image: url("/wp-content/themes/grzan-cn/assets/images/service-4.jpg");
}

.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 76, 144, 0.10) 0%,
        rgba(0, 76, 144, 0.40) 45%,
        rgba(0, 76, 144, 0.92) 100%
    );
    transition: background 0.3s ease;
    z-index: 1;
}

.service-card:hover::before {
    background: linear-gradient(
        180deg,
        rgba(0, 76, 144, 0.18) 0%,
        rgba(0, 76, 144, 0.50) 40%,
        rgba(0, 76, 144, 0.95) 100%
    );
}

.service-overlay {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 34px 28px 30px;
    color: #fff;
}

.service-overlay h3 {
    margin: 0;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
}

.service-overlay .service-en {
    display: block;
    margin-top: 4px;
    color: #ff8124;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.service-overlay p {
    margin: 14px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 14px;
    line-height: 1.75;
}

.service-overlay .service-link {
    display: inline-flex;
    align-items: center;
    margin-top: 16px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.25s ease;
    text-decoration: none;
}

.service-overlay .service-link:hover {
    color: #ff8124;
}

.service-overlay .service-link::after {
    content: " →";
    transition: transform 0.25s ease;
}

.service-overlay .service-link:hover::after {
    transform: translateX(4px);
}




/* =========================================================
   Advantage Section - 为什么选择国瑞中安（痛点+方案列表）
   ========================================================= */

.advantage-section {
    padding: 40px 0 44px;
    background: #ffffff;
}

.advantage-section .section-title p {
    max-width: 580px;
    margin: 14px auto 0;
    color: #8a9aa8;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.8;
    letter-spacing: 0.02em;
}

/* ---------- 痛点+方案列表（全宽） ---------- */
.advantage-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.advantage-item {
    display: flex;
    gap: 20px;
    padding: 22px 30px;
    border-radius: 8px;
    background: #fafbfc;
    border: 1px solid #eef2f6;
    transition: all 0.3s ease;
}

.advantage-item:hover {
    background: #ffffff;
    border-color: #ff8124;
    box-shadow: 0 4px 16px rgba(255, 129, 36, 0.08);
    transform: translateX(6px);
}

.advantage-icon {
    color: #ff8124;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.6;
    flex-shrink: 0;
    margin-top: 3px;
}

.advantage-content {
    flex: 1;
}

.advantage-content h3 {
    margin: 0 0 6px;
    color: #004c90;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
}

.advantage-content p {
    margin: 0;
    color: #6b7a89;
    font-size: 15px;
    line-height: 1.8;
    font-weight: 300;
}

.advantage-content p strong {
    color: #004c90;
    font-weight: 600;
}

/* =========================================================
   CTA Section
   ========================================================= */
.cta-section {
    padding: 52px 0 48px;
    text-align: center;
    background: linear-gradient(135deg, #004c90 0%, #0066b3 50%, #004c90 100%);
}

.cta-section h2 {
    margin: 0;
    color: #fff;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.02em;
}

.cta-section p {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.80);
    font-size: 16px;
    line-height: 1.8;
}

/* 按钮容器 */
.cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 15px;
    flex-wrap: wrap;
}

/* 所有按钮通用样式 */
.cta-section .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    min-height: 54px;
    padding: 14px 32px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    transition: all 0.3s ease;
    text-decoration: none;
}

/* 主按钮 - 橙色 */
.cta-section .btn-primary {
    border: 2px solid #ff8124;
    background: #ff8124;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(255, 129, 36, 0.30);
}

.cta-section .btn-primary:hover {
    border-color: #e06e1a;
    background: #e06e1a;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 129, 36, 0.40);
}

/* 次按钮 - 透明边框 */
.cta-section .btn-secondary {
    border: 2px solid rgba(255, 255, 255, 0.30);
    background: transparent;
    color: #ffffff;
}

.cta-section .btn-secondary:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    transform: translateY(-3px);
}



/* =========================================================
   News Section - 首页资讯中心（4列极简版）
   ========================================================= */

.news-section {
    padding: 40px 0 44px;
    background: #f7fafc;
}

.news-section .section-title h2 {
    color: #004c90;
    font-size: 30px;
    font-weight: 700;
}

.news-section .section-title p {
    color: #8a9aa8;
    font-size: 15px;
    font-weight: 300;
}

/* 4列布局 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 32px;
}

.news-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eef2f6;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    border-color: #008ad7;
    box-shadow: 0 6px 24px rgba(0, 138, 215, 0.06);
    transform: translateY(-4px);
}

.news-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* 缩略图（固定高度，防止变形） */
.news-thumbnail {
    position: relative;
    width: 100%;
    height: 145px;
    overflow: hidden;
    background: #f0f4f8;
    flex-shrink: 0;
}

.news-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 关键：裁剪填满，不变形 */
    transition: transform 0.3s ease;
}

.news-card:hover .news-thumbnail img {
    transform: scale(1.05);
}

/* 无图占位 */
.news-thumbnail-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7fafc;
}

/* 分类标签（通用基础样式） */
.news-category-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-block;
    padding: 3px 14px; 
    border-radius: 20px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.02em;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15); 
}

/* 1. 行业洞察：深蓝色（主色调） */
.news-category-tag.cat-industry-insights {
    background: #004c90;
}

/* 2. 注册解析：辅助蓝色（亮蓝色） */
.news-category-tag.cat-registration-analysis {
    background: #008ad7;
}

/* 3. 公司动态：品牌橙色（与网站CTA按钮呼应） */
.news-category-tag.cat-company-news {
    background: #ff8124;
}

/* 卡片内容（只有标题和日期） */
.news-card-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-card-body h3 {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    color: #004c90;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px; /* 强制两行高度，保证日期对齐 */
}

.news-card-body h3:hover {
    color: #008ad7;
}

.news-date {
    display: block;
    color: #b0c4d8;
    font-size: 12px;
    margin-top: auto; /* 让日期沉底 */
}

/* 底部查看全部按钮 */
.news-footer {
    text-align: center;
}

.news-more-link {
    display: inline-block;
    padding: 10px 32px;
    border: 2px solid #008ad7;
    border-radius: 4px;
    color: #008ad7;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.news-more-link:hover {
    background: #008ad7;
    color: #ffffff;
}

/* =========================================================
   资讯板块响应式适配
   ========================================================= */

/* 大屏变小屏：4列 -> 2列 */
@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .news-thumbnail {
        height: 160px; /* 2列下图片稍微调高 */
    }
}

/* 手机端：2列 -> 1列 */
@media (max-width: 600px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .news-thumbnail {
        height: 200px; /* 1列下图片恢复大图 */
    }
    .news-card-body h3 {
        font-size: 16px;
        min-height: auto; /* 手机端取消强制高度 */
    }
    /* 手机端只显示前3条资讯 */
    .news-grid .news-card:nth-child(n+4) {
        display: none !important;
    }
}

/* =========================================================
   手机端换行控制
   ========================================================= */

/* PC 端默认不换行 */
.mobile-break {
    display: inline;
}

/* 手机端换行 */
@media (max-width: 600px) {
    .mobile-break {
        display: inline-block;
        white-space: nowrap;
    }
}


/* =========================================================
   首页移动端适配
   ========================================================= */

@media (max-width: 1024px) {
    .homepage .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero-section .container {
        padding: 60px 24px;
    }

    .hero-content h1 {
        font-size: 40px;
    }

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

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-tags {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .homepage .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-section,
    .hero-wrapper {
        min-height: 420px;
    }

    .hero-section .container {
        padding: 50px 16px;
    }

    .hero-content h1 {
        font-size: 28px;
        line-height: 1.3;
    }

    .hero-content p {
        font-size: 14px;
        line-height: 1.9;
        margin-bottom: 24px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
    }

    .homepage .section-title h2,
    .about-header h2 {
        font-size: 26px;
    }

    .about-header h2 .mobile-break {
        display: block;
    }

    .about-content p {
        font-size: 15px;
        line-height: 1.9;
        text-align: left;
    }

    .about-tags {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .about-tag {
        padding: 20px 12px 18px;
    }

    .about-tag-number {
        font-size: 26px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .service-card {
        min-height: 320px;
    }

    .service-overlay {
        padding: 24px 20px 22px;
    }

    .service-overlay h3 {
        font-size: 20px;
    }

    .advantage-item {
        padding: 18px 20px;
        gap: 14px;
    }

    .advantage-item:hover {
        transform: none;
    }

    .advantage-content h3 {
        font-size: 16px;
    }

    .advantage-content p {
        font-size: 14px;
    }

    .cta-section h2 {
        font-size: 24px;
    }

    .cta-section p {
        font-size: 14px;
    }

    .cta-section .btn {
        min-width: 100%;
        max-width: 300px;
    }
}