/* 资质认证页面特定样式 */

/* 资质认证内容区域 */
.certificate-content {
    padding-top: 0;
    padding-bottom: 30px;
    background-color: #000;
    min-height: 100vh;
}

/* 品牌宣语区域样式 - 从stores.css复制 */
.brand-slogan {
    text-align: center;
    padding: 0;
    background-color: #111;
    position: relative;
    margin-bottom: 60px;
    height: 31.25rem; /* 500px转换为rem单位（假设16px=1rem） */
    background-image: url('../images/cetificate-banner.webp'); /* 使用品牌故事图作为背景 */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.brand-slogan::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1); /* 半透明黑色遮罩 */
    z-index: 1;
}

.brand-slogan .container {
    position: relative;
    z-index: 2;
}

.brand-slogan h1 {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 15px;
    font-weight: 300;
    letter-spacing: 2px;
    position: relative;
    opacity: 1; /* 强制显示 */
    transform: none; /* 移除动画效果 */
    animation: none; /* 禁用动画，确保始终可见 */
}

.brand-slogan p {
    font-size: 1.8rem;
    color: #ffffff;
    letter-spacing: 4px;
    opacity: 1; /* 强制显示 */
    transform: none; /* 移除动画效果 */
    animation: none; /* 禁用动画，确保始终可见 */
}

/* 资质认证简介样式 - 从stores.css复制 */
.series-description {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px 20px;
    background-color: rgba(140, 110, 74, 0.05);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.series-description:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(140, 110, 74, 0.15);
    background-color: rgba(140, 110, 74, 0.1);
}

.series-description::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #8c6e4a, #d4b18a);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.series-description:hover::before {
    transform: scaleX(1);
}

.series-description::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewY(20deg);
    transition: top 0.8s ease;
}

.series-description:hover::after {
    top: 100%;
}

.series-description p {
    font-size: 1.1rem;
    color: #e0e0e0; /* 修改为更偏白色的文本颜色 */
    line-height: 1.8;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.series-description:hover p {
    color: #ffffff; /* 悬停时改为纯白色 */
}

/* 资质认证网格 - 一排两个布局 */
.certificate-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto 3.125rem auto;
    padding: 0 1.875rem;
}

/* 资质认证项样式 - 改为黑色风格，添加动态效果 */
.certificate-item {
    background-color: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    height: auto;
    display: flex;
    flex-direction: column;
    border: 1px solid #333;
    cursor: pointer;
}

/* 确保a标签可以点击且没有下划线 */
.certificate-item a {
    display: block;
    text-decoration: none !important;
    color: inherit;
    z-index: 2;
    position: relative;
    height: 100%;
    width: 100%;
}

/* 动态CSS3效果 */
.certificate-item:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(140, 110, 74, 0.2);
    border: 1px solid rgba(140, 110, 74, 0.5);
}

.certificate-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #8c6e4a, #d4b18a);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.certificate-item:hover::before {
    transform: scaleX(1);
}

.certificate-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(140, 110, 74, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.certificate-item:hover::after {
    opacity: 1;
}

/* 资质认证图片容器 - 修改为600*350比例 */
.certificate-image {
    width: 100%;
    padding-top: 58.33%; /* 350/600 = 58.33% 比例 */
    overflow: hidden;
    position: relative;
}

.certificate-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease, filter 0.5s ease;
}

.certificate-item:hover .certificate-image img {
    transform: scale(1.1);
    filter: brightness(1.1) contrast(1.05);
}

/* 资质认证信息区域 */
.certificate-info {
    padding: 1.875rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.7);
}

.certificate-name {
    font-size: 1.5rem;
    color: #8c6e4a;
    margin-bottom: 0.5rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.certificate-item:hover .certificate-name {
    color: #d4b18a;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .certificate-grid {
        grid-template-columns: 1fr;
        gap: 1.875rem;
        padding: 0 1.25rem;
    }
    
    .brand-slogan h1 {
        font-size: 2.5rem;
    }
    
    .brand-slogan p {
        font-size: 1rem;
        letter-spacing: 3px;
    }
    
    .series-description {
        padding: 30px 15px;
        margin-bottom: 40px;
    }
    
    .certificate-name {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .brand-slogan {
        height: 25rem;
    }
    
    .brand-slogan h1 {
        font-size: 2rem;
    }
    
    .certificate-info {
        padding: 1.25rem;
    }
}