/* 企业主页专属样式 - 从原HTML拆分 */
.enterprise-homepage { 
    min-height: 100vh; 
    background-color: #f5f7fa; 
	padding-top: 20px;
}
.enterprise-banner-container {
    margin-top: 0px;  /* banner 容器距顶部20px */
}

/* Banner容器 - 用于控制banner宽度与内容区域一致 */
.enterprise-banner-wrapper {
    background-color: #e2e8f0;
	border-radius: 12px; 
}

.enterprise-banner { 
	
    height: 400px; 
    background-size: cover; 
    background-position: center; 
    background-color: #e2e8f0;
   
	border-radius: 12px; 
	margin-top:20px;
}


.enterprise-header { 
    position: relative; 
    padding: 0 20px; 
    margin-top: 20px !important; 
}


.enterprise-logo { 
    width: 120px; 
    height: 120px; 
    border-radius: 16px; 
    border: 4px solid white; 
    background: white; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); 
    object-fit: contain; 
}
.enterprise-name { 
    font-size: 28px; 
    font-weight: 600; 
   
	margin-top: -90px  !important; 
}
.enterprise-status { 
    display: inline-block; 
    padding: 4px 12px; 
    border-radius: 20px; 
    font-size: 12px; 
    font-weight: 500; 
	margin-top:10px;
}
.status-verified { 
    background: #d4edda; 
    color: #155724; 
}
.status-unverified { 
    background: #f8d7da; 
    color: #721c24; 
}

/* 企业简介区域 - 富文本样式优化 */
.enterprise-description { 
    background: white; 
    border-radius: 12px; 
    padding: 24px; 
    margin-bottom: 24px; 
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* 富文本内容样式 - 确保所有内容不超出容器 */
.enterprise-description * {
    max-width: 100%;
    box-sizing: border-box;
}

/* 图片自适应 - 关键样式 */
.enterprise-description img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 16px 0;
    border-radius: 8px;
}

/* 表格自适应 */
.enterprise-description table {
    max-width: 100%;
    overflow-x: auto;
    display: block;
}

/* iframe视频自适应 */
.enterprise-description iframe,
.enterprise-description video {
    max-width: 100%;
    height: auto;
}

/* 代码块换行 */
.enterprise-description pre {
    max-width: 100%;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* 标题样式优化 */
.enterprise-description h1,
.enterprise-description h2,
.enterprise-description h3,
.enterprise-description h4,
.enterprise-description h5,
.enterprise-description h6 {
    margin-top: 20px;
    margin-bottom: 12px;
}

/* 段落样式 */
.enterprise-description p {
    margin-bottom: 12px;
    line-height: 1.6;
}

/* 列表样式 */
.enterprise-description ul,
.enterprise-description ol {
    padding-left: 24px;
    margin-bottom: 12px;
}

/* 引用样式 */
.enterprise-description blockquote {
    border-left: 4px solid #dee2e6;
    padding-left: 16px;
    margin: 16px 0;
    color: #6c757d;
}

.products-section { 
    background: white; 
    border-radius: 12px; 
    padding: 24px; 
	margin-top:20px;
}
.products-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
    gap: 20px; 
}
.product-card { 
    border: 1px solid #e2e8f0; 
    border-radius: 12px; 
    overflow: hidden; 
    transition: transform 0.2s, box-shadow 0.2s; 
    cursor: pointer; 
}
.product-card:hover { 
    transform: translateY(-4px); 
    box-shadow: 0 8px 24px rgba(0,0,0,0.12); 
}
.product-card-image {
    height: 160px;
    background-size: cover;
    background-position: center;
    background-color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* 无banner图时，渐变背景上的文字样式 */
.product-card-image span {
    max-width: 90%;
    word-wrap: break-word;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.product-card-logo { 
    width: 48px; 
    height: 48px; 
    border-radius: 8px; 
    margin-top: -24px; 
    margin-left: 16px; 
    border: 2px solid white; 
    background: white; 
    object-fit: contain; 
}
.product-card-content { 
    padding: 16px; 
}
.product-card-title { 
    font-size: 18px; 
    font-weight: 600; 
    margin: -6px 0 8px 0; 
}
.product-card-category { 
    font-size: 12px; 
    color: #6c757d; 
    margin-bottom: 8px; 
}
.product-card-description { 
    font-size: 14px; 
    color: #4a5568; 
    line-height: 1.5; 
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical; 
    overflow: hidden; 
	max-height:60px;
	margin-bottom:-10px;
}
.loading-spinner { 
    text-align: center; 
    padding: 60px; 
}
.no-products { 
    text-align: center; 
    padding: 60px; 
    color: #6c757d; 
}

/* 响应式调整 */

@media (max-width: 992px) {
.enterprise-banner {
        height: 200px;
		margin-top:10px;
    }

.enterprise-header {
        margin-top: -10px !important;
    }
	
}

@media (max-width: 768px) {
    .enterprise-banner {
        height: 200px;
		margin-top:0px;
    }
    .enterprise-header {
        margin-top: -100px !important;
    }
    .enterprise-logo {
        width: 80px;
        height: 80px;
    }
    .enterprise-name {
        font-size: 18px;
		margin-top:110px !important;
    }
	.enterprise-status { 
		margin-top:-10px !important;
	}
    .enterprise-description {
        padding: 16px;
    }
}


/* ========== Quill 富文本完整样式补充 ========== */

/* 1. 文本对齐样式 */
.ql-align-center {
    text-align: center;
}
.ql-align-right {
    text-align: right;
}
.ql-align-left {
    text-align: left;
}
.ql-align-justify {
    text-align: justify;
}

/* 2. 文本方向（RTL 从右到左）*/
.ql-direction-rtl {
    direction: rtl;
    text-align: inherit;
}

/* 3. 标题样式 */
.ql-size-huge {
    font-size: 2.5em;
}
.ql-size-large {
    font-size: 1.5em;
}
.ql-size-small {
    font-size: 0.75em;
}

/* 4. 字体样式（Quill 默认字体）*/
.ql-font-serif {
    font-family: Georgia, Times New Roman, serif;
}
.ql-font-monospace {
    font-family: Monaco, Courier New, monospace;
}

/* 5. 背景色和前景色（需要配合对应的类名）*/
.ql-bg-black {
    background-color: #000000;
}
.ql-bg-red {
    background-color: #e60000;
}
.ql-bg-orange {
    background-color: #f90;
}
.ql-bg-yellow {
    background-color: #ff0;
}
.ql-bg-green {
    background-color: #008000;
}
.ql-bg-blue {
    background-color: #06c;
}
.ql-bg-purple {
    background-color: #93f;
}

.ql-color-white {
    color: #ffffff;
}
.ql-color-red {
    color: #e60000;
}
.ql-color-orange {
    color: #f90;
}
.ql-color-yellow {
    color: #ff0;
}
.ql-color-green {
    color: #008000;
}
.ql-color-blue {
    color: #06c;
}
.ql-color-purple {
    color: #93f;
}

/* 6. 列表样式 */
.ql-indent-1 {
    padding-left: 3em;
}
.ql-indent-2 {
    padding-left: 6em;
}
.ql-indent-3 {
    padding-left: 9em;
}
.ql-indent-4 {
    padding-left: 12em;
}
.ql-indent-5 {
    padding-left: 15em;
}
.ql-indent-6 {
    padding-left: 18em;
}
.ql-indent-7 {
    padding-left: 21em;
}
.ql-indent-8 {
    padding-left: 24em;
}

/* 7. 有序列表和无序列表 */
.ql-list-bullet {
    list-style-type: disc;
}
.ql-list-ordered {
    list-style-type: decimal;
}

/* 8. 代码块样式 */
.ql-code-block {
    background-color: #f0f0f0;
    font-family: monospace;
    padding: 8px 12px;
    border-radius: 4px;
    white-space: pre-wrap;
    word-break: break-all;
}

/* 9. 引用块样式 */
.ql-blockquote {
    border-left: 4px solid #ccc;
    margin-bottom: 5px;
    margin-top: 5px;
    padding-left: 16px;
}

/* 10. 清除格式 */
.ql-clean {
    all: revert;
}

/* 11. 图片样式优化 */
.enterprise-description img {
    max-width: 100% !important;
    height: auto !important;
    display: inline-block;
    border-radius: 8px;
    margin: 8px 0;
}

/* 图片居中时的特殊处理 */
.ql-align-center img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* 12. 链接样式 */
.enterprise-description a {
    color: #0d6efd;
    text-decoration: none;
}
.enterprise-description a:hover {
    text-decoration: underline;
}

/* 13. 表格样式 */
.enterprise-description table {
    border-collapse: collapse;
    width: 100%;
    margin: 12px 0;
}
.enterprise-description th,
.enterprise-description td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}
.enterprise-description th {
    background-color: #f2f2f2;
    font-weight: bold;
}

/* 14. 上下标样式 */
.enterprise-description sup {
    vertical-align: super;
    font-size: smaller;
}
.enterprise-description sub {
    vertical-align: sub;
    font-size: smaller;
}

/* 15. 删除线样式 */
.enterprise-description s,
.enterprise-description strike {
    text-decoration: line-through;
}








/* 全宽图片样式 */
.full-width-image-container {
    width: 100%;
    background-color: #f8f9fa;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

.full-width-image-wrapper {
    position: relative;
    width: 100%;
    background: #f8f9fa;
}

.full-width-image {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.full-width-image:hover {
    opacity: 0.95;
}

.image-hint {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.full-width-image-wrapper:hover .image-hint {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.05);
}

/* 全屏模态框样式 */
.modal-fullscreen .modal-content {
    background: rgba(0, 0, 0, 0.95);
    border: none;
}

.modal-fullscreen .modal-body {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .image-hint {
        bottom: 8px;
        right: 8px;
        padding: 4px 10px;
        font-size: 11px;
    }
}


/* 企业文章模块样式 */
.articles-section {
    margin-top: 48px;
    padding: 0 0 40px 0;
}

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.article-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
    cursor: pointer;
}

.article-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: #1890ff;
}

.article-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.article-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    text-decoration: none;
    transition: color 0.2s;
}

.article-title:hover {
    color: #1890ff;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 12px;
    color: #999;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.article-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: #999;
}

.article-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 无文章样式 */
.no-articles {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e8e8e8;
}

.no-articles i {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 16px;
}

.no-articles p {
    color: #999;
    font-size: 14px;
}

/* 文章分页样式 */
.articles-pagination {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.pagination {
    gap: 8px;
}

.pagination .page-link {
    border-radius: 8px;
    color: #1890ff;
    border: 1px solid #e8e8e8;
    padding: 8px 14px;
}

.pagination .page-item.active .page-link {
    background: #1890ff;
    border-color: #1890ff;
    color: white;
}

.pagination .page-link:hover {
    background: #e6f7ff;
    border-color: #1890ff;
}

/* 响应式 */
@media (max-width: 768px) {
    .article-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .article-stats {
        width: 100%;
        justify-content: flex-start;
        padding-top: 8px;
        border-top: 1px solid #f0f0f0;
    }
    
    .article-title {
        font-size: 15px;
    }
}