/* CSS Reset & Cross-browser compatibility */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* 防止元素被意外拖动 */
    -webkit-user-drag: none;
    user-drag: none;
}

/* HTML & Body 基础重置 */
html, body {
    height: 100%;
    width: 100%;
}

/* Ensure all browsers support CSS variables */
:root {
    /* 标题样式变量 */
    --title-gradient: linear-gradient(135deg, #1d1d1f 0%, #0071e3 100%);
    --title-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --title-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --title-font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    
    /* 内容文字变量 */
    --content-font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --content-color: #515154;
    --content-line-height: 1.7;
    
    /* 科技感渐变 */
    --tech-gradient: linear-gradient(135deg, #0071e3 0%, #00c6ff 100%);
    --tech-shadow: 0 0 20px rgba(0, 113, 227, 0.3);
    
    /* 移动端菜单 */
    --mobile-menu-bg: rgba(255, 255, 255, 0.98);
    --mobile-menu-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* 基础样式重置 - 增强跨浏览器兼容性 */
html {
    font-size: 16px;
    /* 防止移动端浏览器缩放文本 */
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    /* 平滑滚动 */
    scroll-behavior: smooth;
    /* 优化移动端滚动体验 */
    -webkit-overflow-scrolling: touch;
    overflow-scrolling: touch;
}

body {
    /* 使用系统默认字体栈 */
    font-family: var(--content-font-family);
    /* 优化字体渲染 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    /* 基础样式 */
    line-height: var(--content-line-height);
    color: #1d1d1f;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #e2e8f0 100%);
    transition: all 0.3s ease;
    /* 防止文本选择高亮影响体验 */
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    /* 布局基础 */
    padding-top: 90px; /* 为固定导航栏预留空间 */
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
}

/* 图片响应式 - 增强跨浏览器支持 */
img {
    max-width: 100%;
    height: auto;
    display: block;
    border: 0;
    /* 防止图片间隙问题 */
    vertical-align: middle;
}

/* 表单元素样式重置 - 统一所有浏览器表现 */
button, input, select, textarea {
    font-family: inherit;
    font-size: 100%;
    line-height: 1.15;
    margin: 0;
    vertical-align: baseline;
    /* 移除默认样式 */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    /* 确保表单元素可访问 */
    border-radius: 0;
}

button, input {
    overflow: visible;
}

button, select {
    text-transform: none;
}

/* 修复按钮样式 */
button, [type="button"], [type="reset"], [type="submit"] {
    -webkit-appearance: button;
    /* 确保按钮在所有浏览器中可点击 */
    cursor: pointer;
    /* 优化触摸体验 */
    min-height: 44px;
    min-width: 44px;
}

/* 修复IE 11按钮样式 */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    button {
        overflow: visible;
        width: auto;
    }
}

/* 修复select下拉菜单样式 */
select {
    /* 添加自定义箭头，确保所有浏览器显示一致 */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    /* 确保箭头不被文本遮挡 */
    padding-right: 30px;
}

/* 链接样式重置 */
a {
    background-color: transparent;
    text-decoration: none;
    color: inherit;
    /* 确保链接可访问 */
    display: inline-block;
    /* 优化触摸体验 */
    min-height: 44px;
    min-width: 44px;
}

/* 列表样式重置 */
ul, ol {
    list-style: none;
}

/* 表格样式重置 */
table {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
}

/* 标题元素重置 */
h1, h2, h3, h4, h5, h6 {
    margin: 0;
    padding: 0;
    font-weight: 600;
    line-height: 1.2;
    color: #1d1d1f;
}

/* 段落重置 */
p {
    margin: 0 0 1rem 0;
    line-height: var(--content-line-height);
}

/* 清除浮动 - 兼容旧版浏览器 */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* IE 11 兼容性修复 - CSS Grid 降级为 Flexbox */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    /* 网格布局在 IE 11 中不支持，使用 Flexbox 作为降级方案 */
    .business-grid,
    .news-grid,
    .products-grid {
        display: -ms-flexbox;
        display: flex;
        -ms-flex-wrap: wrap;
            flex-wrap: wrap;
        margin: 0 -15px;
    }
    
    /* 网格项样式 */
    .business-card,
    .news-card,
    .product-card {
        -ms-flex: 0 0 calc(33.333% - 30px);
            flex: 0 0 calc(33.333% - 30px);
        max-width: calc(33.333% - 30px);
        margin: 0 15px 30px;
    }
    
    /* 详情页布局修复 */
    .news-detail-section,
    .product-detail-section {
        display: -ms-flexbox;
        display: flex;
        -ms-flex-wrap: wrap;
            flex-wrap: wrap;
        margin: 0 -20px;
    }
    
    .news-detail-content,
    .product-detail-content {
        -ms-flex: 0 0 calc(66.666% - 40px);
            flex: 0 0 calc(66.666% - 40px);
        max-width: calc(66.666% - 40px);
        margin: 0 20px;
    }
    
    .news-detail-sidebar,
    .product-detail-sidebar {
        -ms-flex: 0 0 calc(33.333% - 40px);
            flex: 0 0 calc(33.333% - 40px);
        max-width: calc(33.333% - 40px);
        margin: 0 20px;
    }
    
    /* 修复 Flexbox 子元素高度问题 */
    .news-detail-content,
    .product-detail-content,
    .news-detail-sidebar,
    .product-detail-sidebar {
        -ms-flex-item-align: start;
            align-self: flex-start;
    }
}

/* Firefox 兼容性修复 */
@-moz-document url-prefix() {
    /* 修复 Firefox 中的滚动条问题 */
    body {
        scrollbar-width: thin;
        scrollbar-color: #ccc transparent;
    }
    
    /* 修复 Firefox 按钮焦点样式 */
    button:focus {
        outline: 2px solid #0071e3;
        outline-offset: 2px;
    }
}

/* Safari 兼容性修复 */
@media not all and (min-resolution:.001dpcm) {
    @supports (-webkit-appearance:none) {
        /* 修复 Safari 中渐变背景渲染问题 */
        .business-card:hover::after,
        .news-card:hover::after,
        .product-card:hover::after {
            background: -webkit-gradient(linear, left top, right top, from(#0071e3), to(#00c6ff));
        }
        
        /* 修复 Safari 中文本阴影问题 */
        h1, h2, h3, h4, h5, h6 {
            -webkit-text-shadow: none;
        }
    }
}

/* 移动端优化 */
@media (max-width: 768px) {
    /* 优化触摸体验 */
    button, a {
        min-height: 48px;
        min-width: 48px;
    }
    
    /* IE 11 移动端修复 */
    @media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
        .business-card,
        .news-card,
        .product-card {
            -ms-flex: 0 0 calc(100% - 30px);
                flex: 0 0 calc(100% - 30px);
            max-width: calc(100% - 30px);
        }
        
        .news-detail-content,
        .product-detail-content,
        .news-detail-sidebar,
        .product-detail-sidebar {
            -ms-flex: 0 0 calc(100% - 40px);
                flex: 0 0 calc(100% - 40px);
            max-width: calc(100% - 40px);
        }
    }
}

/* 添加科技感装饰元素 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: radial-gradient(circle at top right, rgba(0, 113, 227, 0.03) 0%, transparent 50%),
                radial-gradient(circle at bottom left, rgba(0, 198, 255, 0.03) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

/* 统一标题样式 */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--title-font-family);
    font-weight: 700;
    line-height: 1.2;
    color: #1d1d1f;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
}

/* 统一内容文字样式 */
p, .text-content, .card-content p, .news-content p, .product-content p, .section-description, .about-intro p, .value-item p, .contact-info {
    font-family: var(--content-font-family);
    color: var(--content-color);
    line-height: var(--content-line-height);
    letter-spacing: 0.15px;
    transition: all 0.3s ease;
}

/* 确保所有段落都有统一的底部间距 */
p {
    margin-bottom: 20px;
}

h1::after, h2::after, h3::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--tech-gradient);
    border-radius: 1px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

h1:hover::after, h2:hover::after, h3:hover::after {
    width: 100%;
}

/* 居中标题样式 */
h1.text-center, h2.text-center, h3.text-center {
    display: block;
}

h1.text-center::after, h2.text-center::after, h3.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

.card-content h3::after, .news-content h3::after, .product-content h3::after {
    width: 0;
    height: 2px;
    bottom: -6px;
}

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

/* 导航栏样式 */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 18px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

/* 桌面菜单样式 */
.menu {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
    margin: 0;
}

.menu li a {
    text-decoration: none;
    color: #1d1d1f;
    font-size: 15px;
    font-weight: 400;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 12px 15px;
    font-family: var(--content-font-family);
    letter-spacing: 0.5px;
    text-transform: none;
    font-weight: 400;
    white-space: nowrap;
}

.menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15px;
    right: 15px;
    height: 2px;
    background: var(--tech-gradient);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scaleX(0);
    border-radius: 1px;
}

.menu li a:hover {
    color: #0071e3;
    transform: translateY(-2px);
}

.menu li a:hover::after {
    transform: scaleX(1);
}

/* 移动端汉堡菜单按钮 */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    transition: all 0.3s ease;
}

.mobile-menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: #1d1d1f;
    margin: 6px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
    background-color: #1d1d1f;
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
    background-color: #1d1d1f;
}

/* 移动端菜单样式 */
@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: var(--mobile-menu-bg);
        backdrop-filter: blur(10px);
        box-shadow: var(--mobile-menu-shadow);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 20px;
        border-left: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .menu.active {
        right: 0;
    }
    
    .menu li a {
        font-size: 18px;
        padding: 15px 20px;
        width: 100%;
        text-align: center;
        border-radius: 8px;
        transition: all 0.2s ease;
    }
    
    .menu li a:hover {
        background-color: rgba(0, 113, 227, 0.1);
        transform: none;
    }
    
    .menu li a::after {
        display: none;
    }
}

/* 移动端遮罩层 */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

@media (min-width: 993px) {
    .mobile-menu-overlay {
        display: none !important;
    }
}

/* 横幅样式 */
.banner {
    margin-top: 0; /* 移除margin-top，因为body已经有padding-top */
    position: relative;
    height: 85vh;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(1.05);
    transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    z-index: 10;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.85) contrast(1.05);
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp 1s ease forwards;
    z-index: 2;
}

/* 横幅链接样式 */
.banner-link {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    z-index: 100;
    pointer-events: auto;
    cursor: pointer;
}

/* 确保链接内的图片不阻止点击 */
.banner-link img {
    pointer-events: none;
}

/* 确保链接内的内容不阻止点击 */
.banner-link .slide-content {
    pointer-events: none;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.slide-content h1 {
    font-size: 4.2rem;
    margin-bottom: 25px;
    color: white;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.slide-content p {
    font-size: 1.6rem;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.banner-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    transform: translateY(-50%);
    z-index: 50;
}

.banner-controls button {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 2.2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 101;
    position: relative;
}

.banner-controls button:hover {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* 主内容样式 */
main {
    padding: 50px 0;
    /* 移除固定margin-top，因为banner已经有了，而在没有banner的页面，我们会通过其他方式处理 */
}

/* 首页样式 */
.hero {
    text-align: center;
    padding: 100px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 0;
    margin: 0;
    box-shadow: none;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 25px;
    text-align: center;
    background: var(--title-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: var(--title-shadow);
}

.hero p {
    font-size: 1.6rem;
    margin-bottom: 50px;
    color: #64748b;
    font-weight: 300;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    text-decoration: none;
    border-radius: 28px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    font-family: var(--content-font-family);
    letter-spacing: 0.2px;
    -webkit-font-smoothing: antialiased;
    text-transform: uppercase;
    background: transparent;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--tech-gradient);
    border-radius: 28px;
    z-index: -1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover::before {
    left: 100%;
}

/* 主按钮样式 */
.btn-primary {
    background: var(--tech-gradient);
    color: white;
    border: none;
    box-shadow: var(--tech-shadow);
}

.btn-primary::after {
    opacity: 0;
    background: linear-gradient(135deg, #005bb5 0%, #004c97 100%);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 113, 227, 0.4);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover::after {
    opacity: 1;
}

/* 次要按钮样式 */
.btn-secondary {
    color: #0071e3;
    border: 2px solid #0071e3;
    background: transparent;
}

.btn-secondary::after {
    opacity: 0;
    background: var(--tech-gradient);
}

.btn-secondary:hover {
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 113, 227, 0.4);
}

.btn-secondary:hover::after {
    opacity: 1;
}

/* 按钮聚焦样式 */
.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.2);
}

/* 按钮点击效果 */
.btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
}

/* 小按钮样式 */
.btn-small {
    padding: 10px 24px;
    font-size: 14px;
    border-radius: 24px;
}

/* 业务板块样式 */
.business-overview {
    padding: 50px 0;
}

.business-overview h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    width: 100%;
    display: block;
    color: #1d1d1f;
}

.business-overview h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    padding: 0 20px;
}

.business-card, .news-card, .product-card, .value-item {
    background-color: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.business-card::before, 
.news-card::before, 
.product-card::before, 
.value-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--tech-gradient);
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.business-card:hover, 
.news-card:hover, 
.product-card:hover, 
.value-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 113, 227, 0.12);
    z-index: 10;
}

.business-card:hover::before, 
.news-card:hover::before, 
.product-card:hover::before, 
.value-item:hover::before {
    transform: scaleX(1);
}

.card-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.business-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 25px;
}

.card-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #1d1d1f;
    font-weight: 500;
    letter-spacing: -0.2px;
    line-height: 1.3;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
}

.card-content p {
    color: #515154;
    margin-bottom: 20px;
    line-height: 1.6;
    letter-spacing: 0.15px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: #0071e3;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.25s ease;
    gap: 5px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
    letter-spacing: 0.15px;
}

.read-more:hover {
    color: #2563eb;
    gap: 10px;
}

.read-more::after {
    content: '→';
    transition: transform 0.3s ease;
}

.read-more:hover::after {
    transform: translateX(3px);
}

/* 新闻样式 */
.latest-news {
    padding: 50px 0;
    background: #f8fafc;
}

.latest-news h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    width: 100%;
    display: block;
    color: #1d1d1f;
}

.latest-news h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.news-section {
    padding: 60px 0;
    background: #f8fafc;
}

.news-section h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #1d1d1f;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    padding: 0 20px;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0ea5e9, #3b82f6);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

/* 统一新闻卡片图片高度 */
.news-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 0;
}

.news-card:hover .news-image img {
    transform: scale(1.03);
}

.news-content {
    padding: 22px;
}

.news-date {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 12px;
    font-weight: 400;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
    display: inline-block;
    padding: 4px 12px;
    background: #f1f5f9;
    border-radius: 12px;
}

.news-content h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: #1d1d1f;
    font-weight: 500;
    letter-spacing: -0.2px;
    line-height: 1.3;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
}

.news-content p {
    color: #64748b;
    margin-bottom: 18px;
    line-height: 1.6;
    letter-spacing: 0.1px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
    font-size: 0.95rem;
}

.view-all {
    text-align: center;
    padding: 0 20px;
}

/* 产品样式 */
.products-preview {
    padding: 50px 0;
}

.products-preview h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    width: 100%;
    display: block;
    color: #1d1d1f;
}

.products-preview h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.products-section {
    padding: 60px 0;
    background: #f8fafc;
}

.products-section h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #1d1d1f;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    padding: 0 20px;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8b5cf6, #6366f1);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

/* 统一产品卡片图片高度 */
.product-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 0;
}

.product-card:hover .product-image img {
    transform: scale(1.03);
}

.product-content {
    padding: 22px;
}

.product-content h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: #1d1d1f;
    font-weight: 500;
    letter-spacing: -0.2px;
    line-height: 1.3;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
}

.product-content p {
    color: #64748b;
    margin-bottom: 18px;
    line-height: 1.6;
    letter-spacing: 0.1px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
    font-size: 0.95rem;
}

/* 新闻详情样式 */
.news-detail-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.news-detail-content,
.product-detail-content {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.news-detail-header h1,
.product-detail-header h1 {
    font-size: 2.25rem;
    margin-bottom: 15px;
    color: #1d1d1f;
    font-weight: 600;
    letter-spacing: -0.5px;
    line-height: 1.15;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
}

.news-detail-info {
    color: #86868b;
    margin-bottom: 30px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
    font-size: 0.95rem;
}

.news-detail-image img,
.product-detail-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 30px;
}

.news-detail-body,
.product-detail-body,
.business-detail-body {
    line-height: 1.7;
    color: #1d1d1f;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    letter-spacing: 0.15px;
}

.news-detail-body p,
.product-detail-body p,
.business-detail-body p {
    margin-bottom: 20px;
}

/* 富文本编辑器生成的内容样式 */
.news-detail-body h1,
.product-detail-body h1,
.business-detail-body h1,
.about-intro h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 30px 0 20px;
    color: #1d1d1f;
}

.news-detail-body h2,
.product-detail-body h2,
.business-detail-body h2,
.about-intro h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin: 25px 0 18px;
    color: #1d1d1f;
}

.news-detail-body h3,
.product-detail-body h3,
.business-detail-body h3,
.about-intro h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 20px 0 15px;
    color: #1d1d1f;
}

.news-detail-body h4,
.product-detail-body h4,
.business-detail-body h4,
.about-intro h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 18px 0 12px;
    color: #1d1d1f;
}

.news-detail-body h5,
.product-detail-body h5,
.business-detail-body h5,
.about-intro h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 15px 0 10px;
    color: #1d1d1f;
}

.news-detail-body h6,
.product-detail-body h6,
.business-detail-body h6,
.about-intro h6 {
    font-size: 1rem;
    font-weight: 600;
    margin: 12px 0 8px;
    color: #1d1d1f;
}

.news-detail-body ul,
.product-detail-body ul,
.business-detail-body ul,
.about-intro ul {
    margin: 15px 0;
    padding-left: 25px;
    list-style-type: disc; /* 小圆点项目符号 */
}

.news-detail-body ol,
.product-detail-body ol,
.business-detail-body ol,
.about-intro ol {
    margin: 15px 0;
    padding-left: 25px;
    list-style-type: decimal; /* 数字编号 */
}

.news-detail-body li,
.product-detail-body li,
.business-detail-body li,
.about-intro li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.news-detail-body strong,
.product-detail-body strong,
.business-detail-body strong,
.about-intro strong {
    font-weight: 600;
    color: #1d1d1f;
}

.news-detail-body em,
.product-detail-body em,
.business-detail-body em,
.about-intro em {
    font-style: italic;
}

.news-detail-body a,
.product-detail-body a,
.business-detail-body a,
.about-intro a {
    color: #0071e3;
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-detail-body a:hover,
.product-detail-body a:hover,
.business-detail-body a:hover,
.about-intro a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.news-detail-body img,
.product-detail-body img,
.business-detail-body img,
.about-intro img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    display: block;
}

.news-detail-body blockquote,
.product-detail-body blockquote,
.business-detail-body blockquote,
.about-intro blockquote {
    margin: 20px 0;
    padding: 15px 20px;
    background-color: #f8fafc;
    border-left: 4px solid #0071e3;
    border-radius: 0 8px 8px 0;
    color: #475569;
    font-style: italic;
}

.news-detail-body hr,
.product-detail-body hr,
.business-detail-body hr,
.about-intro hr {
    margin: 30px 0;
    border: none;
    border-top: 1px solid #e2e8f0;
}

.news-detail-body table,
.product-detail-body table,
.business-detail-body table,
.about-intro table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.news-detail-body th,
.product-detail-body th,
.business-detail-body th,
.about-intro th,
.news-detail-body td,
.product-detail-body td,
.business-detail-body td,
.about-intro td {
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    text-align: left;
}

.news-detail-body th,
.product-detail-body th,
.business-detail-body th,
.about-intro th {
    background-color: #f8fafc;
    font-weight: 600;
    color: #1d1d1f;
}

.news-detail-video {
    margin-top: 30px;
}

.news-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.related-news {
    background-color: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.related-news h3 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: #1d1d1f;
    font-weight: 500;
    letter-spacing: -0.15px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
}

.related-news ul {
    list-style: none;
}

.related-news li {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.related-news li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.related-news a {
    text-decoration: none;
    color: #1d1d1f;
    display: flex;
    gap: 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
}

.related-news-image,
.related-product-image {
    width: 80px;
    flex-shrink: 0;
}

.related-news-image img,
.related-product-image img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    margin: 0;
    padding: 0;
}

.related-news-info,
.related-product-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.related-news-info h4,
.related-product-info h4 {
    font-size: 1rem;
    margin: 0;
    padding: 0;
    line-height: 1.4;
    transition: color 0.3s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.related-news-info {
    gap: 4px;
}

.related-news a:hover h4,
.related-products a:hover h4 {
    color: #0071e3;
    transition: color 0.25s ease;
}

.related-news-date {
    font-size: 0.85rem;
    color: #86868b;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
}

/* 产品详情样式 */
.product-detail-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.product-detail-content {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.product-detail-header h1 {
    font-size: 2.25rem;
    margin-bottom: 15px;
    color: #1d1d1f;
    font-weight: 600;
    letter-spacing: -0.5px;
    line-height: 1.15;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
}

.product-detail-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 30px;
}



.product-detail-video {
    margin-top: 30px;
}

.product-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.related-products {
    background-color: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.related-products h3 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: #1d1d1f;
    font-weight: 500;
    letter-spacing: -0.15px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
}

.related-products ul {
    list-style: none;
}

.related-products li {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.related-products li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.related-products a {
    text-decoration: none;
    color: #1d1d1f;
    display: flex;
    gap: 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
}





/* 业务板块样式 */
.business-section {
    padding: 60px 0;
}

.business-section h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #1d1d1f;
    font-weight: 600;
    letter-spacing: -0.5px;
    line-height: 1.15;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
}

.business-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.business-section-item {
    background-color: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 20px;
    align-items: center;
    padding: 15px;
    transition: all 0.3s ease;
    border: none;
}

.business-section-item:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.section-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: none;
    transition: all 0.3s ease;
}

.section-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    transition: transform 0.4s ease;
}

.business-section-item:hover .section-image img {
    transform: scale(1.03);
}

.section-content h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #1d1d1f;
    font-weight: 500;
    letter-spacing: -0.2px;
    line-height: 1.25;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
}

.section-description {
    line-height: 1.6;
    color: #515154;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
    font-size: 0.95rem;
    letter-spacing: 0.1px;
}

/* 关于我们样式 */
.about-section {
    padding: 60px 0;
}

.about-section h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #1d1d1f;
    font-weight: 600;
    letter-spacing: -0.5px;
    line-height: 1.15;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.about-intro {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(0, 113, 227, 0.1);
    border-radius: 15px;
    padding: 40px 40px;
    box-shadow: 0 5px 15px rgba(0, 113, 227, 0.06);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--tech-gradient);
    transform: scaleX(1);
    border-radius: 1px;
}

.about-intro::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 40%;
    height: 200%;
    background: radial-gradient(circle at top right, rgba(0, 113, 227, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.about-intro:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 113, 227, 0.12);
}

.about-intro h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: #1d1d1f;
    font-weight: 600;
    letter-spacing: -0.5px;
    line-height: 1.2;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    position: relative;
    display: inline-block;
    z-index: 1;
}

.about-intro h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--tech-gradient);
    border-radius: 1.5px;
    opacity: 0.8;
}

.about-intro p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #475569;
    max-width: 800px;
    margin: 0 auto;
    letter-spacing: 0.15px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
    position: relative;
    z-index: 1;
    text-align: justify;
    text-justify: inter-word;
}

.about-intro p:not(:last-child) {
    margin-bottom: 25px;
}

.about-values {
    text-align: center;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 15px;
    padding: 40px 20px;
    margin: 0;
}

.about-values h2 {
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: #1d1d1f;
    font-weight: 600;
    letter-spacing: -0.5px;
    line-height: 1.2;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.value-item {
    background: white;
    border: 1px solid rgba(0, 113, 227, 0.1);
    border-radius: 15px;
    padding: 45px 30px;
    box-shadow: 0 8px 25px rgba(0, 113, 227, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.value-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 113, 227, 0.12);
}

.value-item h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: #1d1d1f;
    font-weight: 600;
    letter-spacing: -0.2px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    text-align: center;
}

.value-item p {
    color: #475569;
    line-height: 1.7;
    letter-spacing: 0.15px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
    text-align: center;
}

.about-contact {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(0, 113, 227, 0.1);
    border-radius: 15px;
    padding: 30px 20px;
    box-shadow: 0 5px 15px rgba(0, 113, 227, 0.06);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 20px 0;
}

.about-contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--tech-gradient);
    transform: scaleX(1);
    border-radius: 1px;
}

.about-contact h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #1d1d1f;
    font-weight: 600;
    letter-spacing: -0.5px;
    line-height: 1.2;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    position: relative;
    display: inline-block;
}

.about-contact h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--tech-gradient);
    border-radius: 1.5px;
    opacity: 0.8;
}

.contact-info {
    font-size: 1rem;
    line-height: 1.8;
    color: #475569;
    letter-spacing: 0.15px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
    max-width: 600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    align-items: center;
}

/* 地址占满整行，电话和邮箱各占一列 */
.contact-info p:first-child {
    grid-column: 1 / -1;
}

/* 页脚样式 */
.footer {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 20px 0 15px; /* 进一步减少上下内边距 */
    margin-top: 40px; /* 进一步减少顶部外边距 */
    border-top: 4px solid #3b82f6;
    color: #cbd5e1;
}

.footer .container {
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto 15px; /* 进一步减少底部外边距 */
    padding: 0 15px;
}

.footer-content p {
    font-size: 0.9rem; /* 进一步减小字体大小 */
    line-height: 1.5; /* 调整行高 */
    margin-bottom: 10px; /* 进一步减少段落间距 */
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px; /* 进一步减少底部外边距 */
    flex-wrap: wrap;
}

.footer-links a {
    color: #f5f5f7;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.25s ease;
    position: relative;
    padding: 6px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
    letter-spacing: 0.15px;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #2997ff;
    transition: width 0.25s ease;
}

.footer-links a:hover {
    color: #2997ff;
}

.footer-links a:hover::after {
    width: 100%;
}

/* 后台管理链接样式 - 不显眼 */
.footer-links a.admin-footer-link {
    font-size: 13px;
    color: #94a3b8;
    font-weight: normal;
    opacity: 0.7;
}

.footer-links a.admin-footer-link:hover {
    color: #cbd5e1;
    opacity: 0.9;
}

.footer-links a.admin-footer-link::after {
    display: none;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 15px; /* 进一步减少顶部内边距 */
    font-size: 0.85rem; /* 进一步减小字体大小 */
    color: #94a3b8;
    line-height: 1.4;
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    display: none;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
}

.back-to-top:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.4);
}

/* 首页飘旗 - 左上图文框 */
.home-flag {
    position: fixed;
    top: 120px;
    left: 30px;
    z-index: 800;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    pointer-events: none;
}

.home-flag.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.home-flag-content {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    animation: breathe 3s ease-in-out infinite;
}

/* 呼吸动画 */
@keyframes breathe {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    }
}

.home-flag-content:hover {
    transform: translateY(-5px);
    animation-play-state: paused;
}

/* 飘旗标题 */
.home-flag-title {
    padding: 15px;
    background: white;
    color: #1d1d1f;
    font-family: var(--title-font-family);
    font-weight: 600;
    font-size: 1.2rem;
    text-align: center;
    border-bottom: 1px solid #eee;
    margin: 0;
    flex-shrink: 0;
    height: auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 飘旗图片 */
.home-flag-image {
    width: 100%;
    overflow: hidden;
    flex-grow: 1;
    margin: 2px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}

.home-flag-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.home-flag-content:hover .home-flag-image img {
    transform: scale(1.05);
}

/* 飘旗内容 */
.home-flag-content-text {
    padding: 15px;
    background: white;
    color: #333;
    font-family: var(--content-font-family);
    line-height: 1.6;
    overflow-y: auto;
    flex-shrink: 0;
    max-height: 150px;
    text-align: center;
    border-top: 1px solid #eee;
    margin: 0;
}

.home-flag-content-text p {
    margin: 0 0 10px 0;
    color: var(--content-color);
    text-align: center;
}

.home-flag-content-text p:last-child {
    margin-bottom: 0;
}

.home-flag-content-text h3, .home-flag-content-text h4, .home-flag-content-text h5 {
    margin: 0 0 15px 0;
    color: #1d1d1f;
    font-weight: 600;
    text-align: center;
}

/* 响应式设计 - 小屏及手机端不显示 */
@media (max-width: 1024px) {
    .home-flag {
        display: none;
    }
}

/* 无内容样式 */
.no-content {
    text-align: center;
    padding: 60px 0;
    color: #999;
    font-size: 1.2rem;
}

/* 错误页面样式 */
.error-section {
    text-align: center;
    padding: 80px 0;
}

.error-section h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: #1d1d1f;
    font-weight: 600;
    letter-spacing: -0.75px;
    line-height: 1.15;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
}

.error-section p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #666;
}

/* 全面的响应式设计 */

/* 大屏幕平板和小屏幕桌面 */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .menu {
        gap: 25px;
    }
    
    .banner {
        height: 70vh;
    }
    
    .slide-content h1 {
        font-size: 3rem;
    }
    
    .slide-content p {
        font-size: 1.4rem;
    }
    
    .news-detail-section,
    .product-detail-section {
        grid-template-columns: 1fr;
    }
    
    /* 响应式设计：中等屏幕显示2个卡片 */
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 平板设备 */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    body {
        padding-top: 80px;
    }
    
    .navbar {
        padding: 15px 0;
    }
    
    /* 移除移动端logo尺寸限制，使用后台设置的尺寸 */
    
    .banner {
        height: 60vh;
    }
    
    .slideshow-container {
        height: 100%;
    }
    
    .slide img {
        object-position: center;
    }
    
    .slide-content h1 {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }
    
    .slide-content p {
        font-size: 1.2rem;
    }
    
    .hero {
        padding: 80px 20px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
        margin-bottom: 40px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .btn {
        padding: 12px 28px;
        font-size: 15px;
    }
    
    .business-overview,
    .latest-news,
    .products-preview {
        padding: 60px 0;
    }
    
    .business-overview h2,
    .latest-news h2,
    .products-preview h2 {
        font-size: 2rem;
    }
    
    .business-grid,
    .news-grid,
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
        padding: 0 15px;
    }
    
    .card-content,
    .news-content,
    .product-content {
        padding: 20px;
    }
    
    .card-content h3,
    .news-content h3,
    .product-content h3 {
        font-size: 1.3rem;
    }
    
    .card-content p,
    .news-content p,
    .product-content p {
        font-size: 0.95rem;
    }
    
    .business-section-item {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 25px;
    }
    
    .section-image {
        height: 250px;
    }
    
    .section-content h2 {
        font-size: 1.75rem;
    }
    
    .section-description {
        font-size: 0.95rem;
    }
    
    .news-detail-content,
    .product-detail-content {
        padding: 25px;
    }
    
    .news-detail-header h1,
    .product-detail-header h1 {
        font-size: 2rem;
    }
    
    /* 响应式设计：小屏幕显示1个卡片 */
    .values-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .about-intro,
    .about-contact {
        padding: 30px 25px;
    }
    
    .back-to-top {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
        bottom: 25px;
        right: 25px;
    }
}

/* 小屏平板和大屏幕手机 */
@media (max-width: 640px) {
    html {
        font-size: 14px;
    }
    
    .banner {
        height: 55vh;
    }
    
    .slide-content h1 {
        font-size: 2.25rem;
    }
    
    .slide-content p {
        font-size: 1.1rem;
    }
    
    .banner-controls {
        padding: 0 20px;
    }
    
    .banner-controls button {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .business-grid,
    .news-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .business-card,
    .news-card,
    .product-card {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .news-detail-content,
    .product-detail-content {
        padding: 20px;
    }
    
    .news-detail-header h1,
    .product-detail-header h1 {
        font-size: 1.8rem;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .value-item {
        padding: 30px 20px;
    }
}

/* 手机设备 */
@media (max-width: 480px) {
    html {
        font-size: 13px;
    }
    
    body {
        padding-top: 70px;
    }
    
    .navbar {
        padding: 12px 0;
    }
    
    /* 移除小屏幕logo尺寸限制，使用后台设置的尺寸 */
    
    .banner {
        height: 50vh;
    }
    
    .slide-content {
        padding: 0 20px;
    }
    
    .slide-content h1 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .slide-content p {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .hero {
        padding: 60px 20px;
        margin: 0 15px;
    }
    
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .hero p {
        font-size: 0.95rem;
        margin-bottom: 35px;
    }
    
    .btn {
        padding: 11px 24px;
        font-size: 14px;
    }
    
    .business-overview h2,
    .latest-news h2,
    .products-preview h2 {
        font-size: 1.75rem;
    }
    
    .business-grid,
    .news-grid,
    .products-grid {
        padding: 0 15px;
        gap: 20px;
    }
    
    .card-image img,
    .news-image img,
    .product-image img {
        height: 180px;
    }
    
    .card-content h3,
    .news-content h3,
    .product-content h3 {
        font-size: 1.2rem;
    }
    
    .card-content p,
    .news-content p,
    .product-content p {
        font-size: 0.9rem;
    }
    
    .business-section-item {
        padding: 20px;
        gap: 15px;
    }
    
    .section-image {
        height: 200px;
    }
    
    .section-content h2 {
        font-size: 1.5rem;
    }
    
    .news-detail-header h1,
    .product-detail-header h1 {
        font-size: 1.6rem;
    }
    
    .news-detail-content,
    .product-detail-content {
        padding: 15px;
    }
    
    .news-content h3,
    .product-content h3 {
        font-size: 1.2rem;
    }
    
    .about-section h1,
    .business-section h1,
    .news-section h1,
    .products-section h1 {
        font-size: 1.8rem;
    }
    
    .about-intro h2,
    .about-values h2 {
        font-size: 1.5rem;
    }
    
    .about-intro,
    .about-contact {
        padding: 25px 20px;
    }
    
    .value-item h3 {
        font-size: 1.2rem;
    }
    
    .footer-content p {
        font-size: 0.85rem;
    }
    
    .footer-links {
        gap: 15px;
    }
    
    .footer-links a {
        font-size: 13px;
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        bottom: 20px;
        right: 20px;
    }
}

/* 超小屏手机 */
@media (max-width: 360px) {
    .banner {
        height: 45vh;
    }
    
    .slide-content h1 {
        font-size: 1.6rem;
    }
    
    .hero {
        padding: 50px 15px;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .business-overview h2,
    .latest-news h2,
    .products-preview h2 {
        font-size: 1.6rem;
    }
}