/* ../css/zyhome0806.css */
<style>
/* ==================== 全局样式 ==================== */
/* 全局重置和基础样式 */
* {
    margin: 0; /* 清除默认外边距 */
    padding: 0; /* 清除默认内边距 */
    box-sizing: border-box; /* 盒模型设置为border-box */
    font-family: "Microsoft YaHei", Arial, sans-serif; /* 设置默认字体 */
}

/* 页面基础样式 */
body {
    background-color: #f5f5f5; /* 页面背景色 */
    color: #333; /* 默认文字颜色 */
    line-height: 1.6; /* 行高 */
    display: flex; /* 弹性布局 */
    flex-direction: column; /* 垂直排列 */
    min-height: 100vh; /* 最小高度为视口高度 */
    font-size: 16px; /* 基准字体大小 - 移动端适配基础 */
}

/* 链接样式 - 取消所有下划线 */
a { 
    text-decoration: none !important; 
}

/* ==================== 布局结构 ==================== */
/* 主容器样式 */
.wrap { 
    width: 100%; 
    max-width: 1200px; /* 最大宽度限制 */
    margin: 0 auto; /* 水平居中 */
    background-color: #fff; 
    box-shadow: 0 0 15px rgba(0,0,0,0.1); 
    flex: 1; /* 弹性扩展填满空间 */
    display: flex;
    flex-direction: column;
}

/* 内容区块通用样式 */
.content-box {
    flex: 1; /* 弹性扩展 */
    min-width: 300px; /* 最小宽度 */
    padding: 10px; /* 内边距 */
}

/* 浮动工具类 */
.fl { float: left; }
.fr { float: right; }
.clear::after {
    content: "";
    display: table;
    clear: both;
}

/* ==================== 组件样式 ==================== */
/* 横幅轮播组件 */
.banner {
    position: relative;
    height: 400px; /* 桌面端高度 */
    overflow: hidden;
}

.banner .bd ul {
    list-style: none;
    position: relative;
    height: 100%; /* 继承父元素高度 */
}

.banner .bd ul li {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s;
}

.banner .bd ul li:first-child {
    opacity: 1; /* 默认显示第一张 */
}

.banner .bd ul li img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 图片填充方式 */
}

/* 轮播指示器 */
.banner .hd {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    z-index: 10;
}

.banner .hd ul {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.banner .hd ul li {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    margin: 0 5px;
    cursor: pointer;
}

.banner .hd ul li.on {
    background: #0072c6; /* 激活状态样式 */
}

/* 内容区块样式 */
.i-box {
    background: white;
    border: 1px solid #e5e5e5;
    padding: 20px;
    margin-bottom: 20px;
    height: 100%;
}

.i-title {
    font-size: 18px;
    font-weight: bold;
    color: #004a9f;
    padding-bottom: 15px;
    border-bottom: 2px solid #004a9f;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
}

.i-title .more {
    font-size: 14px;
    font-weight: normal;
    color: #666;
}

.i-title .more:hover {
    color: #0072c6;
}

/* 列表样式 */
.list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}

.list li:last-child {
    border-bottom: none;
}

.list a {
    color: #333;
    transition: all 0.3s;
    display: block;
}

.list a:hover {
    color: #006699;
    padding-left: 5px;
}

/* 新闻区块布局 */
.i-newsslide {
    width: 65%; /* 桌面端宽度 */
}

.i-newsslide .bd ul {
    display: flex;
    list-style: none;
}

.i-newsslide .bd ul li {
    width: 33.33%;
    padding: 0 10px;
    position: relative;
}

.i-newsslide .bd ul li:first-child {
    padding-left: 0;
}

.i-newsslide .bd ul li:last-child {
    padding-right: 0;
}

.i-newsslide .bd ul li img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.i-newsslide .bd ul li .tit {
    font-size: 16px;
    margin-top: 10px;
    font-weight: bold;
    line-height: 1.4;
}

.i-newsslide .bd ul li .tit a:hover {
    color: #0072c6;
}

.i-news {
    width: 33%; /* 桌面端宽度 */
}

/* 解决方案区块 */
.i-solution {
    width: 100%;
}

.i-solution ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0 -10px;
}

.i-solution ul li {
    width: 33.33%;
    padding: 10px;
}

.i-solution ul li a {
    display: block;
    position: relative;
    overflow: hidden;
    height: 250px;
}

.i-solution ul li img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.i-solution ul li a:hover img {
    transform: scale(1.05);
}

.i-solution ul li .cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,58,112,0.7);
    opacity: 0;
    transition: opacity 0.3s;
}

.i-solution ul li a:hover .cover {
    opacity: 1;
}

.i-solution ul li p {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 10px 15px;
    margin: 0;
    font-size: 16px;
    z-index: 2;
}

/* 快速入口区块 */
.i-quick {
    width: 220px;
}

.i-quick .list {
    padding-top: 10px;
}

.i-quick .list li {
    border-bottom: none;
    padding: 8px 0;
}

.i-quick .list li a {
    display: flex;
    align-items: center;
    padding: 0;
}

.i-quick .list li a b {
    display: inline-block;
    width: 30px;
    height: 30px;
    background: #f5f5f5;
    margin-right: 10px;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    color: #004a9f;
}

.i-quick .list li.line {
    height: 1px;
    background: #eee;
    margin: 10px 0;
}

/* ==================== 页脚样式 ==================== */
.footer {
    background: #003366;
    padding: 30px 20px;
    color: white;
    margin-top: 20px;
}

.ft-link {
    width: 80%;
}

.ft-link dt {
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: bold;
}

.ft-link dd {
    display: flex;
    flex-wrap: wrap;
}

.ft-link dd a {
    color: #ccc;
    margin-right: 15px;
    margin-bottom: 8px;
    font-size: 14px;
    white-space: nowrap;
}

.ft-link dd a:hover {
    color: white;
    text-decoration: underline;
}

.ft-nav {
    padding-top: 25px;
}

.ft-nav a {
    color: #ccc;
    margin-right: 15px;
    font-size: 14px;
}

.ft-nav a:hover {
    color: white;
}

.copyright {
    background: #002147;
    color: #999;
    font-size: 14px;
    text-align: center;
    padding: 15px 0;
}

.copyright a {
    color: #999;
    margin: 0 10px;
}

.copyright a:hover {
    color: #ccc;
}

/* ==================== 移动端响应式设计 ==================== */
@media (max-width: 768px) {
    /* 基础调整 */
    body {
        font-size: 14px; /* 减小基础字号 */
    }
    
    /* 轮播图调整 */
    .banner {
        height: 250px; /* 减小高度 */
    }
    
    .banner .bd ul {
        height: 250px;
    }
    
    /* 内容区块调整 */
    .i-box {
        padding: 15px; /* 减小内边距 */
        margin-bottom: 15px;
    }
    
    .i-title {
        font-size: 16px; /* 减小标题字号 */
        padding-bottom: 12px;
        margin-bottom: 12px;
    }
    
    /* 新闻区块调整为单列布局 */
    .i-newsslide, .i-news {
        width: 100%;
        float: none;
    }
    
    .i-newsslide .bd ul {
        flex-direction: column;
    }
    
    .i-newsslide .bd ul li {
        width: 100%;
        padding: 0 0 15px 0;
    }
    
    /* 解决方案调整为两列布局 */
    .i-solution ul li {
        width: 50%;
    }
    
    /* 页脚调整 */
    .footer {
        padding: 20px 15px;
    }
    
    .ft-link {
        width: 100%;
    }
}

/* 超小屏幕设备 (手机) */
@media (max-width: 480px) {
    /* 进一步减小字号 */
    body {
        font-size: 13px;
    }
    
    /* 轮播图更小 */
    .banner {
        height: 180px;
    }
    
    .banner .bd ul {
        height: 180px;
    }
    
    /* 解决方案单列显示 */
    .i-solution ul li {
        width: 100%;
    }
    
    /* 列表项调整 */
    .list li {
        padding: 6px 0;
    }
    
    /* 页脚链接调整 */
    .ft-link dd a, .ft-nav a {
        font-size: 12px;
        margin-right: 10px;
    }
    
    .copyright {
        font-size: 12px;
        padding: 10px 0;
    }
}

/* ==================== 实用工具类 ==================== */
.mt10 { margin-top: 20px; }
.mt15 { margin-top: 15px; }
.mb10 { margin-bottom: 10px; }

/* ==================== 特殊组件 ==================== */
/* 管理员面板样式 */
.admin-panel {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: #fff;
    z-index: 1000;
    box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    padding: 20px;
    overflow-y: auto;
}

.admin-btn {
    background: #ff9800;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
    color: #fff !important;
}

.admin-btn:hover {
    background: #e68a00;
}
/* 通用行样式 */
.row {
    width: 100%;
    margin-bottom: 20px;
    overflow: hidden;
}

/* 列布局 */
.col-half {
    width: 48%;
    float: left;
}

.left-col {
    margin-right: 2%;
}

.right-col {
    margin-right: 0;
}

.full-col {
    width: 100%;
    float: left;
}

/* 产品网格布局 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

/* 清除浮动 */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.mt10 {
    margin-top: 10px;
}

/* 新闻列表容器 */
.news-list-container {
    background: #fff;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
/* 产品网格容器 */
.products-grid-container {
    display: flex;
    gap: 20px;
    width: 100%;
}

/* 产品列 */
.products-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px; /* 缩小间距 */
}

/* 单个产品项 */
.product-item {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    padding: 8px; /* 缩小内边距 */
}

.product-item:hover {
    transform: translateY(-3px); /* 减小悬停位移 */
}

.product-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
}

.product-image-container {
    width: 40px; /* 缩小到原来的一半 */
    height: 40px; /* 缩小到原来的一半 */
    flex-shrink: 0;
    margin-right: 10px; /* 缩小右边距 */
    overflow: hidden;
    border-radius: 3px; /* 缩小圆角 */
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-item:hover .product-image {
    transform: scale(1.05);
}

.product-info {
    flex: 1;
}

.product-name {
    margin: 0 0 3px 0; /* 缩小下边距 */
    font-size: 13px; /* 缩小字体大小 */
    font-weight: 600;
    line-height: 1.3; /* 调整行高 */
}

.product-description {
    margin: 0;
    font-size: 12px; /* 缩小字体大小 */
    color: #666;
    line-height: 1.3; /* 调整行高 */
}
</style>