/* 基础重置与变量定义（扁平风格核心） */
:root {
    --primary: #2c3e50; /* 企业蓝黑主色 */
    --secondary: #3498db; /* 辅助色（按钮/强调） */
    --light: #f5f7fa; /* 背景色 */
    --gray: #95a5a6; /* 次要文本 */
    --border: #eaecef; /* 边框色 */
    --shadow: 0 2px 8px rgba(0,0,0,0.08); /* 扁平阴影 */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Helvetica Neue", Arial, sans-serif; /* 企业常用无衬线字体 */
    font-size: 16px;
    line-height: 1.6;
    color: var(--primary);
    background: var(--light);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--secondary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 页头样式（企业风格） */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 15px 0;
    box-shadow: var(--shadow);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.site-logo span {
    color: var(--secondary); /*  logo 强调色 */
}

/* 导航菜单（扁平风格） */
.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-list li a {
    font-size: 15px;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.nav-list li a.current::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--secondary);
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary);
    cursor: pointer;
}

/* 主内容区样式 */
.main-container {
    padding: 40px 0;
}

/* 文章列表（企业内容展示） */
.post-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.post-item {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.post-item:hover {
    transform: translateY(-5px);
}

.post-thumb {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.post-content {
    padding: 20px;
}

.post-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--primary);
}

.post-excerpt {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 15px;
}

.post-meta {
    font-size: 13px;
    color: var(--gray);
    display: flex;
    justify-content: space-between;
}

/* 侧边栏样式（企业信息模块） */
.sidebar {
    background: #fff;
    border-radius: 4px;
    box-shadow: var(--shadow);
    padding: 25px;
    margin-top: 30px;
}

.widget-title {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary);
}

/* 最新评论样式（扁平风格适配） */
.comment-list {
    list-style: none;
}

.comment-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
}

.comment-info .name {
    font-weight: 600;
    font-size: 14px;
}

.comment-info .time {
    font-size: 12px;
    color: var(--gray);
    margin-left: 10px;
}

.comment-info .content {
    margin-top: 5px;
    font-size: 14px;
    color: var(--primary);
}

/* 页脚样式（企业版权信息） */
.site-footer {
    background: var(--primary);
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h3 {
    font-size: 16px;
    margin-bottom: 20px;
    position: relative;
    padding-left: 15px;
}

.footer-col h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    background: var(--secondary);
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
}

.footer-col a:hover {
    color: var(--secondary);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
    color: rgba(255,255,255,0.6);
}

/* 响应式适配（扁平风格在多设备一致性） */
@media (max-width: 768px) {
    .nav-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        gap: 0;
        padding: 10px 0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        z-index: 1000;
    }
    .nav-list.active {
        display: flex;
    }
    .nav-list li {
        width: 100%;
        text-align: center;
    }
    .nav-list li a {
        display: block;
        padding: 12px 20px;
    }
    .nav-list li a:hover {
        background-color: var(--light);
    }
    .menu-toggle {
        display: block;
        z-index: 1001;
    }
    .post-list {
        grid-template-columns: 1fr;
    }
    .footer-inner {
        grid-template-columns: 1fr;
    }
}
.slider {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: #000;
    width: 100%;
    margin: 0;
    padding: 0;
}
.slider-inner {
    position: relative;
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}
.slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s;
}
.slide-item.active {
    opacity: 1;
    z-index: 1;
}
.slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}
.slide-text {
    position: absolute;
    top: 50%;
    left: 20%;
    transform: translateY(-50%);
    color: white;
    z-index: 2;
}
.slide-text h2 {
    font-size: 40px;
    margin-bottom: 15px;
}
.slide-text p {
    font-size: 18px;
    opacity: 0.9;
}
.slider-prev, .slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.3);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
}
.slider-prev { left: 20px; }
.slider-next { right: 20px; }

/* 在现有轮播图样式后添加以下代码 */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    overflow-x: hidden !important;
}

/* 确保轮播图完全拉满宽度 */
.slider {
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    padding: 0 !important;
    overflow: hidden !important;
    z-index: 1 !important;
}

.slider-inner {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
}

.slide-item {
    width: 100% !important;
    height: 100% !important;
}

.slide-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 确保轮播图导航按钮位置正确 */
.slider-prev, .slider-next {
    z-index: 10 !important;
}

/* 产品展示 - 保持PC端原有结构 */
.products {
    padding: 80px 0;
    background: #f9f9f9;
}
.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 10px;
    color: #333;
}
.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 50px;
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.product-item {
    background: white;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.product-item img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 20px;
}
.product-name {
    font-size: 18px;
    margin-bottom: 10px;
}
.product-link {
    display: inline-block;
    margin-top: 15px;
    color: #0066cc;
    text-decoration: none;
}

/* 解决方案 - 保持PC端原有结构 */
.solutions {
    padding: 80px 0;
}
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.solution-item {
    position: relative;
    height: 300px;
    overflow: hidden;
}
.solution-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.solution-item h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: rgba(0,0,0,0.7);
    color: white;
    margin: 0;
}

/* 服务案例 - 确保PC端横排显示，保持原有结构 */
.cases {
    padding: 80px 0;
    background: white;
}
.cases-slider {
    display: flex;
    gap: 30px;
    flex-wrap: nowrap;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.case-item {
    flex: 0 0 auto;
    width: calc(33.333% - 20px);
    text-align: center;
}
.case-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    margin-bottom: 15px;
    border-radius: 4px;
}

/* 合作伙伴 - 保持PC端原有结构 */
.partners {
    padding: 80px 0;
    background: #f9f9f9;
}
.partners-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 0 20px;
}
.partners-logos img {
    max-width: 120px;
    height: auto;
    padding: 10px;
    background: white;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* 响应式适配 - 移动端样式统一 */
@media (max-width: 768px) {
    /* 轮播图调整 - 与其他区域保持一致 */
    .slider {
        height: 180px;
        padding: 0;
    }
    .slide-text h2 {
        font-size: 24px;
    }
    .slide-text p {
        font-size: 14px;
    }
    .slider-inner {
        max-width: 100% !important;
        padding: 0 !important;
        width: 100% !important;
    }
    .slide-item img {
        width: 100% !important;
        height: 100% !important;
    }
    
    /* 统一所有容器的移动端样式 */
    .container,
    .products-grid,
    .solutions-grid,
    .cases-slider,
    .partners-logos {
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }
    
    /* 为内部内容区域添加统一的内边距 */
    .products-grid > div,
    .solutions-grid > div,
    .cases-slider,
    .partners-logos {
        padding: 0 15px !important;
    }
    
    /* 产品介绍 - 移动端统一样式 */
    .products-grid {
        grid-template-columns: 1fr;
    }
    .product-item {
        width: 100% !important;
        margin-bottom: 20px;
    }
    .product-item img {
        height: 260px !important;
        object-fit: cover !important;
        width: 100% !important;
    }
    
    /* 解决方案 - 移动端统一样式 */
    .solutions-grid {
        grid-template-columns: 1fr;
    }
    .solution-item {
        height: 260px !important;
        width: 100% !important;
        margin-bottom: 20px;
    }
    
    /* 修复解决方案项目标题两侧多余的灰色区域 */
    .solution-item h3 {
        font-size: 16px;
        padding: 15px;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    /* 修复解决方案区域标题超出图片两边的问题 */
    .solutions .section-title {
        font-size: 24px;
        padding: 0 15px;
        box-sizing: border-box;
    }
    .solutions .container {
        padding-bottom: 20px !important;
    }
    
    /* 服务案例 - 移动端统一样式 */
    .cases-slider {
        flex-wrap: wrap;
        justify-content: center;
    }
    .case-item {
        width: 100% !important;
        margin-bottom: 20px;
    }
    .case-item img {
        height: 260px !important;
        width: 100% !important;
    }
    
    /* 调整各区块的内边距 */
    .products,
    .solutions,
    .cases,
    .partners {
        padding: 40px 0;
    }
}

/* 确保PC端服务案例显示为横排 */
@media (min-width: 769px) {
    .cases-slider {
        justify-content: flex-start;
        overflow-x: hidden;
    }
    .case-item {
        width: calc(33.333% - 20px);
    }
}

/* 适配中等屏幕 */
@media (max-width: 992px) and (min-width: 769px) {
    .case-item {
        width: calc(50% - 15px);
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .comment-form-wrapper,
    .comment-list-wrapper {
        background-color: #1f2937;
    }
    
    .comment-form-title,
    .comment-list-title,
    .comment-author,
    .comment-text {
        color: #f9fafb;
    }
    
    .comment-date {
        color: #9ca3af;
    }
    
    .comment-textarea,
    .comment-input,
    .comment-content {
        background-color: #374151;
        border-color: #4b5563;
        color: #f9fafb;
    }
    
    .comment-textarea:focus,
    .comment-input:focus {
        background-color: #4b5563;
        border-color: #4f46e5;
    }
    
    .comment-item {
        border-color: #374151;
    }
    
    .comment-avatar {
        border-color: #374151;
    }
}

/* 评论系统样式 - 使用wind模板配色方案 */
.comment-section {
    margin-top: 40px;
}

.comment-form-wrapper {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 24px;
}

.comment-form-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 20px;
}

.comment-textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background-color: #f9fafb;
    color: #374151;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    transition: all 0.3s ease;
}

.comment-textarea:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    background-color: white;
}

.comment-info {
    margin-top: 16px;
}

.comment-info-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.comment-input {
    flex: 1;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background-color: #f9fafb;
    color: #374151;
    font-size: 14px;
    transition: all 0.3s ease;
}

.comment-input.full-width {
    width: 100%;
}

.comment-input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    background-color: white;
}

.captcha-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.comment-submit-wrapper {
    margin-top: 20px;
    text-align: right;
}

.comment-submit-btn {
    padding: 10px 24px;
    background-color: #4f46e5;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.comment-submit-btn:hover {
    background-color: #4338ca;
}

.comment-login-link {
    color: #4f46e5;
    text-decoration: underline;
}

.comment-login-link:hover {
    color: #4338ca;
}

.comment-list-wrapper {
    margin-top: 32px;
}

.comment-list-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 20px;
}

.comment-item {
    display: flex;
    gap: 16px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.comment-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.child-comment {
    padding-left: 32px;
    margin-top: 20px;
}

.comment-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f3f4f6;
}

.child-avatar {
    width: 40px;
    height: 40px;
}

.comment-content-wrapper {
    flex: 1;
}

.comment-content {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 16px;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.child-content {
    padding: 12px;
}

.comment-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.comment-author {
    font-weight: 600;
    color: #1f2937;
    font-size: 14px;
}

.comment-date {
    color: #6b7280;
    font-size: 12px;
}

.comment-text {
    color: #374151;
    line-height: 1.6;
    word-break: break-all;
}

.comment-reply-btn {
    margin-top: 8px;
}

.comment-reply-btn .com-reply {
    color: #4f46e5;
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
}

.comment-reply-btn .com-reply:hover {
    color: #4338ca;
}

.comment-pagination {
    margin-top: 24px;
    text-align: center;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .comment-info-row {
        flex-direction: column;
        gap: 8px;
    }
    
    .comment-input {
        width: 100%;
    }
    
    .child-comment {
        padding-left: 16px;
    }
    
    .comment-form-wrapper {
        padding: 16px;
    }
    
    .comment-content {
        padding: 12px;
    }
    
    .comment-avatar {
        width: 40px;
        height: 40px;
    }
    
    .child-avatar {
        width: 32px;
        height: 32px;
    }
}

/* 文章详情页样式 */
.log-con {
    background: #fff;
    border-radius: 4px;
    box-shadow: var(--shadow);
    padding: 40px;
    margin-top: 30px;
}

.markdown {
    margin: 20px 0;
    line-height: 1.8;
    font-size: 16px;
}

.markdown p {
    margin-bottom: 20px;
}

.markdown h2, .markdown h3 {
    margin: 25px 0 15px;
    color: var(--primary);
}

.markdown img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 20px 0;
}

.log-title {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--primary);
    line-height: 1.3;
}

.date {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 20px;
}

.neighbor-log {
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
/* 全新的导航栏和内容布局修复方案 - 删除之前所有的修复代码，只保留这段 */

/* 1. 重置并重新定义导航栏样式 */
.site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 60px !important; /* 明确设置导航栏高度为60px */
    background-color: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    z-index: 9999 !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
}

/* 2. 修复header-inner样式 */
.header-inner {
    height: 100% !important;
    padding: 0 !important;
    margin: 0 auto !important;
    display: flex !important;
    align-items: center !important;
    max-width: 1200px !important;
    width: 100% !important;
}

/* 3. 使用body padding-top作为主要解决方案 */
body {
    padding-top: 60px !important; /* 与导航栏高度一致 */
    margin: 0 !important;
}

/* 4. 清除所有容器的顶部边距，避免重复间距 */
.main-container,
.log-con,
#content,
.article-content,
.content-detail,
.slider,
#slider-section,
.products,
.post-list,
.container {
    margin-top: 0 !important;
    padding-top: 0 !important;
    position: relative !important;
    z-index: 1 !important;
}

/* 5. 为内容容器添加适当的内边距，但不影响导航 */
.container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 20px !important;
    padding-top: 20px !important; /* 这是内容的内边距，不会影响导航栏高度 */
}

/* 6. 轮播图特殊处理 */
.slider {
    width: 100% !important;
    height: calc(50vh - 60px) !important; /* 从100vh改为50vh，正好是原来的一半 */
    position: relative !important;
    top: 0 !important;
    z-index: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 7. 确保轮播图完全拉满 */
.slider {
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
}

/* 8. 文章详情页特殊处理 */
.log-con {
    background: #fff !important;
    border-radius: 4px !important;
    box-shadow: var(--shadow) !important;
    padding: 40px !important;
    margin: 20px auto !important;
    max-width: 1200px !important;
}

/* 9. 确保文章标题可见 */
.log-title {
    font-size: 28px !important;
    margin-bottom: 20px !important;
    color: var(--primary) !important;
    line-height: 1.3 !important;
    position: relative !important;
    z-index: 1 !important;
}

/* 10. 移动端适配 */
@media (max-width: 768px) {
    /* 移动端导航栏高度 */
    .site-header {
        height: 50px !important;
    }
    
    /* 移动端body padding */
    body {
        padding-top: 50px !important;
    }
    
    /* 移动端轮播图高度 */
    .slider {
        height: 150px !important;
    }
    /* 移动端菜单样式 */
    .nav-list.active {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 9998 !important;
        background: white !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* 移动端容器内边距调整 */
    .container {
        padding: 10px !important;
    }
    
    /* 移动端文章容器 */
    .log-con {
        padding: 20px !important;
    }
}

/* 11. 确保所有区块都有适当的间距 */
.products,
.solutions,
.cases,
.partners {
    padding: 40px 0 !important;
    position: relative !important;
    z-index: 1 !important;
}

/* 12. 清除可能的负边距或冲突样式 */
* {
    margin-top: 0 !important;
}

/* 13. 确保body的直接子元素都在正确位置 */
body > div,
body > article,
body > section {
    position: relative !important;
    z-index: 1 !important;
}
