/* 企业门户网站主样式文件 */

/* 引用主题变量定义文件 */
@import 'theme-variables.css';

/* 面包屑导航样式 */
.breadcrumb-section {
    background-color: var(--bg-secondary, #f8f9fa);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-light, #e9ecef);
    position: relative;
}

.breadcrumb {
    margin: 0;
    padding: 0;
    font-size: 14px;
    color: var(--text-secondary, #6c757d);
    background-color: transparent;
}

.breadcrumb a {
    color: var(--primary-color, #f9a826);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--primary-dark, #e69500);
    text-decoration: underline;
}

.breadcrumb > span {
    color: var(--dark-color, #2c3e50);
}

/* 页面位置导航样式 */
.page-location {
    font-size: 14px;
    color: var(--text-secondary, #6c757d);
    line-height: 1.5;
}

.page-location .page-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin: 5px 0;
}

.page-location .icon-ic-nav-loc {
    margin-right: 5px;
    color: var(--primary-color, #f9a826);
}

.page-location .text-cur {
    margin-right: 5px;
}

.page-location .link {
    color: #333333;
    text-decoration: none;
    transition: color 0.3s ease;
    margin: 0 5px;
}

/* 直接针对a标签设置黑灰色字体 */
.page-location a {
    color: #333333;
}

/* 默认网站logo透明度设置 */
/* 分类图标容器样式 */
.icon-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    overflow: hidden;
}

/* 图标容器中的图片样式 */
.icon-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* 分类图标遮罩层 */
.icon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1); /* 半透明黑色遮罩 */
    opacity: 1;
    pointer-events: none;
}

/* 通用遮罩层样式 */
.overlay-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 半透明黑色遮罩 */
    opacity: 1; /* 确保完全不透明 */
    z-index: 999;
    pointer-events: auto;
}

/* 轻量级遮罩层 */
.light-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8); /* 半透明白色遮罩 */
    opacity: 1;
    z-index: 999;
    pointer-events: none;
}

.page-location .link:hover {
    color: var(--primary-dark, #e69500);
    text-decoration: underline;
}

.page-location .text-split {
    color: var(--dark-color, #2c3e50);
    margin: 0 5px;
}

/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100%;
}



/* 内容正文统一样式 */
.content-main {
    background-color: var(--bg-primary, white);
    padding: 10px 0;
    min-height: calc(100vh - 240px); /* 确保页面至少占据视口高度，减去头部和底部高度 */
    margin-top: 80px; /* 预留顶部导航栏空间，避免内容被固定导航栏遮挡 */
    position: relative;
    z-index: 1; /* 确保内容在导航栏下方正常显示 */
}

/* 内容容器样式 */
#content-container {
    min-height: 0; /* 默认值，将通过JavaScript动态设置 */
    display: flex;
    flex-direction: column;
    margin-top: 80px; /* 预留顶部导航栏空间，避免内容被固定导航栏遮挡 */
}

.content-main .container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

/* 在小屏幕设备上调整内边距 */
@media (max-width: 768px) {
    .content-main {
        padding: 20px 0;
    }
    
    .content-main .container {
        gap: 20px;
    }
}

/* 在超小屏幕设备上进一步调整 */
@media (max-width: 576px) {
    .content-main {
        padding: 15px 0;
    }
    
    .content-main .container {
        gap: 15px;
    }
}

body {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary, #333);
    background-color: var(--bg-secondary, #f8f9fa);
    overflow-x: hidden; /* 防止页面横向溢出 */
}

/* 通用按钮样式 */
.btn {
    padding: 10px 24px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color, #f9a826);
    color: var(--text-light, white);
}

.btn-primary:hover {
    background-color: var(--primary-dark, #e08e00);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 168, 38, 0.3);
}

.btn-secondary {
    background-color: var(--secondary-color, #6c757d);
    color: var(--text-light, white);
}

.btn-secondary:hover {
    background-color: var(--secondary-dark, #545b62);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color, #f9a826);
    color: var(--primary-color, #f9a826);
}

.btn-outline:hover {
    background-color: var(--primary-color, #f9a826);
    color: var(--text-light, white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 168, 38, 0.3);
}

/* 标题样式 */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--dark-color, #2c3e50);
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color, #f9a826);
}

.section-title p {
    font-size: 18px;
    color: var(--secondary-color, #6c757d);
    max-width: 700px;
    margin: 0 auto;
}

/* 通用区域样式 */
.section {
    padding: 80px 0;
}

.section-alt {
    background-color: var(--bg-secondary, #f8f9fa);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}









/* 合作伙伴样式 */
.partners {
    background-color: var(--bg-secondary, #f8f9fa);
    padding: 60px 0;
}

.partner-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.partner-item:hover {
    opacity: 1;
    transform: scale(1.05);
}

.partner-item img {
    max-width: 80%;
    max-height: 60px;
}

/* 联系表单样式 */
.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 1px solid var(--border-color, #ced4da);
    border-radius: 4px;
    transition: all 0.3s ease;
    background-color: var(--bg-primary, white);
    color: var(--text-primary, #333);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color, #f9a826);
    box-shadow: 0 0 0 2px rgba(249, 168, 38, 0.25);
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--bg-secondary, #f3f3f3);
    border-top: 3px solid var(--primary-color, #f9a826);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 图片占位符样式 */
.image-placeholder {
    background-color: var(--bg-secondary, #f8f9fa);
    border: 1px dashed var(--border-light, #ddd);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary, #6c757d);
}

/* 辅助类 */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary-color, #f9a826);
}

.mt-5 {
    margin-top: 3rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.p-5 {
    padding: 3rem;
}