
/* ============================================
   品牌核心模块
   ============================================ */

.brand-section {
    padding: 80px 0;
    background-color: var(--bg-light, #f8fafc);
}

.brand-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

/* 头部 */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.brand-title {
    font-size: 2.25rem;
    font-weight: 700;
    /* color: var(--primary-color); */
    color: var(--text-black);
    position: relative;
    padding-bottom: 16px;
    margin-bottom: 12px;
}

.brand-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color, #179744);
    border-radius: 2px;
}

.brand-subtitle {
    font-size: 1rem;
    color: var(--text-light, #64748b);
    margin-top: 8px;
}

/* 网格布局 */
.brand-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
}

/* 卡片 */
.brand-card {
    background: var(--bg-white, #ffffff);
    border-radius: 16px;
    padding: 36px 28px 32px;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-light, #e2e8f0);
    transition: all 0.3s ease;
}

.brand-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color, #179744);
}

/* 图标 */
.brand-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background-color: rgba(23, 151, 68, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color, #179744);
    transition: all 0.3s ease;
}

.brand-card:hover .brand-icon {
    background-color: var(--primary-color, #179744);
    color: var(--text-white, #ffffff);
}

/* 标题 */
.brand-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--bg-dark, #1e293b);
    margin-bottom: 10px;
}

/* 描述 */
.brand-card-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-light, #64748b);
    margin: 0;
}

/* ========== 响应式适配 ========== */
@media (max-width: 1024px) {
    .brand-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .brand-section {
        padding: 50px 0;
    }
    
    .brand-container {
        padding: 0 20px;
    }
    
    .brand-title {
        font-size: 1.8rem;
    }
    
    .brand-subtitle {
        font-size: 0.9rem;
    }
    
    .brand-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    
    .brand-card {
        padding: 24px 16px 20px;
    }
    
    .brand-icon {
        width: 48px;
        height: 48px;
    }
    
    .brand-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .brand-card-title {
        font-size: 1rem;
    }
    
    .brand-card-desc {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .brand-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}
/* 公司历史 */
.about-module{
    margin: 50px 20%;
    /* text-align: center; */
}
.about-module h2{
    font-size: 2rem;
    /* color: var(--primary-color); */
    color: var(text-black);
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}
.about-module h2::after{
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #179744;
}
.about-module p{
    font-size: 1.2rem;
    line-height: 30px;
    text-align: justify;
}
@media (max-width: 768px) {
    .page-banner{
        min-height: 300px;
    }
    .banner-overlay{
        min-height: 300px;
    }
    .about-module{
        margin: 50px 10% 20px 10%;
    }
    .about-module p{
        font-size: 0.9rem;
        line-height: 25px;
    }
}
@media(max-width: 480px){
    .about-module p{
        font-size: 0.8rem;
        line-height: 20px
    }
}
/* ============================================
   数据统计模块
   ============================================ */
.stats-section {
    background-image:url(/wp-content/themes/shuangyuan/assets/images/stats-bg.webp);
    padding: 60px 0;
    background-position: center;
    /* background-color: var(--primary-color); */
    position: relative;
    background-size: cover; 
}
.stats-section:before{
    z-index: 1;
    content: " ";
    inset: 0;
    position: absolute;
    opacity: 0.6;
    background-color: var(--primary-color);
}
.stats-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}
.stats-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
}

.stat-item {
    text-align: center;
    flex-shrink: 0;
        position: relative;
    z-index: 2;
}
.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.2;
    margin-bottom: 8px;

}

.stat-suffix {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-white);
}

.stat-label {
    font-size: 1rem;
    color: var(--text-white);
    margin: 0;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .stats-section {
        padding: 40px 0;
    }
    
    .stats-container {
        padding: 0 20px;
    }
    
    .stats-grid {
        gap: 40px;
        flex-wrap: wrap;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-suffix {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
}
@media (max-width: 480px) {
    .stats-grid {
        gap: 24px;
        flex-direction: column;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-suffix {
        font-size: 1.5rem;
    }
}




/* ===== 整体容器 ===== */
.timeline-switch-wrapper {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: Arial, sans-serif;
}

/* ===== 顶部导航 ===== */
.timeline-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 20px 0 30px 0;  /* 上下留白，给圆点和文字空间 */
}

/* ===== 横线（绝对定位，穿过圆点中心） ===== */
.timeline-nav::before {
    content: '';
    position: absolute;
    top: 30%;               /* 关键：定位在导航区域的正中间 */
    left: 0;
    width: 100%;
    height: 3px;
    background: #ddd;
    z-index: 0;
    transform: translateY(-50%);  /* 精确居中 */
}

/* ===== 每个导航项 ===== */
.timeline-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    position: relative;
    z-index: 1;
    flex: 1;
    user-select: none;
}

/* ===== 圆点（居中在横线上） ===== */
.timeline-nav-item .timeline-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 3px solid #bbb;
    background: transparent;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;           /* 盖住横线 */
    flex-shrink: 0;
    /* 不需要 margin，靠父级 flex 居中 */
}

/* ===== 时间文字（在圆点下方） ===== */
.timeline-nav-item .timeline-time {
    font-size: 16px;
    font-weight: 400;
    color: #888;
    transition: all 0.3s ease;
    margin-top: 12px;      /* 与圆点的间距 */
}

/* ===== 选中状态 ===== */
.timeline-nav-item.active .timeline-dot {
    background: #0073aa;
    border-color: #0073aa;
    box-shadow: 0 0 0 4px rgba(0, 115, 170, 0.25);
}

.timeline-nav-item.active .timeline-time {
    font-weight: 700;
    color: #0073aa;
}

/* ===== 悬停效果 ===== */
.timeline-nav-item:hover .timeline-dot {
    border-color: #0073aa;
}
.timeline-nav-item:hover .timeline-time {
    color: #333;
}
.timeline-nav-item.active:hover .timeline-time {
    color: #0073aa;
}

/* ===== 内容显示区域 ===== */
.timeline-display {
    position: relative;
    min-height: 120px;
    overflow: hidden;
    margin-top: 20px;
    border-radius: 10px;
    padding: 30px 30px;
}

/* ===== 每个内容项 ===== */
.timeline-content-item {
    position: absolute;
    top: 30px;
    left: 30px;
    right: 30px;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.5s ease;
    pointer-events: none;
    display: flex;           /* 添加 flex 布局 */
    flex-direction: row;     /* 左右排列 */
    gap: 40px;               /* 图片和文案间距 */
    align-items: center;     /* 垂直居中 */
}

/* ===== 选中状态：滑入显示 ===== */
.timeline-content-item.active {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

/* 切换时旧内容滑出（用退出动画） */
.timeline-content-item.exit {
    opacity: 0;
    transform: translateX(-30px);
}

/* ===== 内容样式 ===== */
.timeline-content-image {
    flex: 0 0 45%;
    max-width: 40%;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--bg-light, #f5f5f5);
}

.timeline-content-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;  /* 按盒子填充，裁剪多余部分 */
    display: block;
}
.timeline-content-text {
    font-size: 17px;
    line-height: 1.3;
    color: #333;
    text-align: justify;
}

/* ===== 响应式 ===== */

/* 平板 */
@media (max-width: 768px) {
    .timeline-content-item {
        gap: 10px;
    }
    .timeline-nav-item .timeline-time {
        font-size: 14px;
    }
    .timeline-nav-item .timeline-dot {
        width: 15px;
        height: 15px;
        border-width: 2.5px;
    }
    .timeline-nav::before {
        bottom: 24px;
    }
    .timeline-content-text {
        font-size: 16px;
    }
    .timeline-display {
        padding: 20px 20px;
        min-height: 100px;
    }
    .timeline-content-item {
        top: 20px;
        left: 20px;
        right: 20px;
    }
}

/* 手机 */
@media (max-width: 480px) {
    .timeline-nav {
        padding: 0 0 20px 0;
        gap: 5px;
    }
    .timeline-nav-item .timeline-time {
        font-size: 12px;
        white-space: nowrap;
        margin-top: 6px;
    }
    .timeline-nav-item .timeline-dot {
        width: 13px;
        height: 13px;
        border-width: 2px;
        margin-bottom: 0;
    }
    .timeline-nav::before {
        bottom: 18px;
        top: 12%;
    }
    .timeline-content-text {
        font-size: 11px;
        line-height: 1.4;
    }
    .timeline-display {
        padding: 15px 15px;
        min-height: 80px;
    }
    .timeline-content-item {
        top: 15px;
        left: 15px;
        right: 15px;
    }
}










/* ==================================================
==================Certificate ===================
======================================================= */
.qualification{
    background-color: var(--bg-white);
    padding: 20px 0;
}


.cert-wrapper {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    margin: 20px 10%;
    flex-wrap: wrap-reverse;
}

/* 列表 */
.cert-list {
    flex: 0 0 280px;
    max-height: 420px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 6px;
}
.cert-list::-webkit-scrollbar {
    width: 4px;
}
.cert-list::-webkit-scrollbar-thumb {
    background: var(--primary-color, #179744);
    border-radius: 4px;
}
.cert-list::-webkit-scrollbar-track {
    background: var(--bg-light, #f8fafc);
    border-radius: 4px;
}

.cert-list-item {
    padding: 14px 18px;
    background: var(--bg-light, #f8fafc);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark, #1f2937);
    border-left: 3px solid transparent;
    transition: all 0.3s;
    flex-shrink: 0;
}
.cert-list-item:hover {
    background: rgba(23,151,68,0.06);
}
.cert-list-item.active {
    background: rgba(23,151,68,0.1);
    border-left-color: var(--primary-color, #179744);
    color: var(--primary-color, #179744);
}

/* 画廊 */
.cert-gallery {
    flex: 1;
    position: relative;
    height: 420px;
}

.cert-gallery-item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 280px;
    height: 360px;
    background: #fff;
    border-radius: 14px;
    border: 2px solid var(--border-light, #e2e8f0);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.85);
}

.cert-gallery-item.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 10;
    transform: translate(-50%, -50%) scale(1);
    border-color: var(--primary-color, #179744);
    box-shadow: 0 20px 60px rgba(23,151,68,0.2);
    width: 320px;
    height: 400px;
}
.cert-gallery-item.prev {
    opacity: 0.7;
    pointer-events: auto;
    z-index: 5;
    transform: translate(calc(-50% - 200px), calc(-50% + 15px)) scale(0.8);
    cursor: pointer;
    filter: brightness(0.75);
}
.cert-gallery-item.next {
    opacity: 0.7;
    pointer-events: auto;
    z-index: 5;
    transform: translate(calc(-50% + 200px), calc(-50% + 15px)) scale(0.8);
    cursor: pointer;
    filter: brightness(0.75);
}
.cert-gallery-item.prev:hover {
    filter: brightness(0.9);
    transform: translate(calc(-50% - 250px), calc(-50% + 15px)) scale(0.82);
}
.cert-gallery-item.next:hover {
    filter: brightness(0.9);
    transform: translate(calc(-50% + 250px), calc(-50% + 15px)) scale(0.82);
}

.cert-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    background: #fff;
}
.cert-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 0.85rem;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s;
}
.cert-gallery-item.active .cert-label {
    opacity: 1;
}
@media (max-width: 1024px) {
    /* .cert-wrapper {
        flex-wrap: wrap;
        gap: 30
    } */
.cert-list {
        flex: none;
        width: 100%;
        flex-direction: column;
        max-height: 200px;
        position: relative;
        z-index: 1;
    }
    .cert-list-item {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    .cert-gallery {
        height: 300px;
        width: 100%;
        position: relative;
        z-index: 0;
    }
    .cert-gallery-item {
        width: 200px;
        height: 260px;
    }
    .cert-gallery-item.active {
        width: 270px;
        height: 330px;
    }
    .cert-gallery-item.prev {
        transform: translate(calc(-50% - 100px), calc(-50% + 6px)) scale(0.9);
    }
    .cert-gallery-item.next {
        transform: translate(calc(-50% + 100px), calc(-50% + 6px)) scale(0.9);
    }
}

@media (max-width: 768px) {
    /* .cert-section { padding: 50px 0; } */
    /* .cert-container { padding: 0 20px; } */
    /* .cert-title { font-size: 1.8rem; } */
    .cert-gallery {
        height: 300px;
    }
    .cert-gallery-item {
        width: 220px;
        height: 300px;
    }
    /* .cert-gallery-item.active {
        width: 220px;
        height: 300px;
    } */
    .cert-gallery-item.prev {
        transform: translate(calc(-50% - 80px), calc(-50% + 10px)) scale(0.7);
    }
    .cert-gallery-item.next {
        transform: translate(calc(-50% + 80px), calc(-50% + 10px)) scale(0.7);
    }
    .cert-list {
        max-height: 160px;
    }
}
@media (max-width: 480px) {
    .cert-gallery {
        height: 260px;
    }
    .cert-gallery-item {
        width: 120px;
        height: 160px;
    }
    .cert-gallery-item.active {
        width: 150px;
        height: 190px;
    }
    .cert-gallery-item.prev {
        transform: translate(calc(-50% - 60px), calc(-50% + 8px)) scale(0.65);
    }
    .cert-gallery-item.next {
        transform: translate(calc(-50% + 60px), calc(-50% + 8px)) scale(0.65);
    }
    .cert-list {
        max-height: 140px;
    }
    .cert-list-item {
        padding: 10px 14px;
        font-size: 0.8rem;
    }
    .cert-label{
        display: none;
    }
}
   /* 隐藏真正的单选按钮 */
.radio-selector {
    display: none;
}
/* 选项标签模拟按钮 */
.option-label {
    display: inline-block;
    padding: 8px 20px;
    /* margin: 4px; */
    background: #22ff6f66;
    /* border-radius: 20px; */
    cursor: pointer;
    user-select: none;
    transition: background 0.5s ease;
    border-radius: 10px 10px 0 0;
    box-shadow: 3px 1px;
}

/* 被选中的选项高亮 */
/* .option-label:hover, */
.radio-selector:checked + .option-label {
    background: var(--bg-white);
    /* color: white; */
    box-shadow: 5px 0 0 rgba(146, 135, 135, 0.2);
}



/* 所有内容默认隐藏 */
.content-item {
    display: none;
    padding: 20px;
    background: var(--bg-white);
    /* border-radius: 8px;   */
    /* margin-top: 16px; */
    /* display: flex;
    flex-wrap: wrap; */
}
/* 当某个radio被选中时，显示对应的内容 */
#radio1:checked ~ #content1,
#radio2:checked ~ #content2,
#radio3:checked ~ #content3 {
    display: flex;
    flex-wrap: wrap;
}
.content-item img {
        width: 40%;
        border-radius: 8px;
        object-fit: cover;
        margin: 20px;
}
.factor-green{
    width: 100%;
    background-color: var(--primary-color);
    padding: 5px;
}
.factor-selector{
    margin: 30px 8%;
    /* background: var(--primary-color); */
    border-radius: 5px;
}
.factor-selector .factor-text{
    margin: 0 20px;
    line-height: 25px;
}
.factor-selector p{
    font-size: 1rem;
}
@media(max-width:768px){
    .content-item img {
        width: 80%;
    }
    .factor-selector{
        margin: 30px 0;
    }
    .factor-selector p,
    .factor-selector ul,
    .factor-selector li{
        font-size: 0.8rem;
    }
}
@media(max-width:480px){
    .option-label{
        border-radius: 0;
                box-shadow: 3px 3px 0;
    }
}





/* ===== Partners ===== */
.partners-section {
    padding: 80px 0;
    background: var(--bg-light, #f8fafc);
}

.partners-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.partners-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--bg-dark, #1e293b);
    position: relative;
    padding-bottom: 16px;
    margin-bottom: 12px;
}

.partners-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color, #179744);
}

.partners-subtitle {
    font-size: 1rem;
    color: var(--text-light, #64748b);
    margin-top: 8px;
}

/* Logo 网格 - 使用 flex */
.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 950px;  /* 4列宽度：200px*4 + 30px*3 = 890px，留一些余量 */
    margin: 0 auto;
}

.partner-item {
    flex: 0 0 200px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-white, #ffffff);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-light, #e2e8f0);
    transition: all 0.3s ease;
}

.partner-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color, #179744);
}

.partner-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.partner-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.partner-item:hover img {
    filter: grayscale(0);
    opacity: 1;
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .partners-grid {
        max-width: 720px;
        gap: 24px;
    }
    .partner-item {
        flex: 0 0 180px;
        height: 105px;
    }
}

@media (max-width: 768px) {
    .partners-section {
        padding: 50px 0;
    }
    .partners-container {
        padding: 0 20px;
    }
    .partners-title {
        font-size: 1.8rem;
    }
    .partners-grid {
        max-width: 480px;
        gap: 20px;
    }
    .partner-item {
        flex: 0 0 160px;
        height: 80px;
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .partners-grid {
        max-width: 340px;
        gap: 14px;
    }
    .partner-item {
        flex: 0 0 140px;
        height: 70px;
        padding: 12px;
    }
}