/* =====================================================
   知名企业机械科技 - 主样式文件
   ===================================================== */

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #8B1A1A;
    --primary-dark: #6B0F0F;
    --primary-light: #A52A2A;
    --secondary: #5C3D6E;
    --secondary-light: #7B5A8E;
    --text-dark: #333333;
    --text-gray: #666666;
    --text-light: #999999;
    --bg-light: #f5f5f5;
    --bg-gray: #eeeeee;
    --border-color: #e5e5e5;
    --white: #ffffff;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

img {
    max-width: 100%;
    height: auto;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* =====================================================
   Header 头部导航
   ===================================================== */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
}

.logo-text {
    margin-left: 10px;
}

.logo-text .name {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary);
}

.logo-text .en {
    font-size: 12px;
    color: var(--text-light);
}

/* 导航菜单 */
.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin: 0 20px;
}

.nav-menu a {
    font-size: 15px;
    color: var(--text-dark);
    padding: 10px 0;
    display: block;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

/* 头部右侧 */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-switch {
    font-size: 14px;
    color: var(--text-gray);
}

.lang-switch a {
    color: var(--primary);
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* =====================================================
   面包屑导航
   ===================================================== */
.breadcrumb {
    padding: 15px 0;
    background: var(--bg-light);
    font-size: 14px;
    color: var(--text-gray);
}

.breadcrumb a:hover {
    color: var(--primary);
}

/* =====================================================
   页面布局
   ===================================================== */
.page-layout {
    display: flex;
    gap: 30px;
    padding: 30px 0;
}

.page-layout .main-content {
    flex: 1;
    min-width: 0;
}

.page-layout .sidebar {
    width: 280px;
    flex-shrink: 0;
}

.page-layout .sidebar-left {
    order: -1;
}

/* =====================================================
   侧边栏组件
   ===================================================== */
.sidebar-box {
    background: var(--white);
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.sidebar-box .box-title {
    background: var(--primary);
    color: var(--white);
    padding: 15px 20px;
    font-size: 16px;
    font-weight: bold;
}

.sidebar-box .box-content {
    padding: 15px;
}

/* 产品分类菜单 */
.category-menu {
    list-style: none;
}

.category-menu li {
    border-bottom: 1px dashed var(--border-color);
}

.category-menu li:last-child {
    border-bottom: none;
}

.category-menu a {
    display: flex;
    align-items: center;
    padding: 12px 10px;
    font-size: 14px;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.category-menu a:hover,
.category-menu a.active {
    color: var(--primary);
    background: rgba(139, 26, 26, 0.05);
    padding-left: 15px;
}

.category-menu a::before {
    content: '›';
    margin-right: 8px;
    color: var(--primary);
}

/* 推荐产品 */
.recommend-product {
    display: block;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
}

.recommend-product:last-child {
    margin-bottom: 0;
}

.recommend-product img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recommend-product:hover img {
    transform: scale(1.05);
}

.recommend-product .title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--white);
    padding: 30px 10px 10px;
    font-size: 14px;
    text-align: center;
}

/* 热门标签 */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-list a {
    display: inline-block;
    padding: 5px 12px;
    background: var(--bg-light);
    border-radius: 3px;
    font-size: 13px;
    color: var(--text-gray);
    transition: all 0.3s ease;
}

.tag-list a:hover {
    background: var(--primary);
    color: var(--white);
}

/* 推荐新闻 */
.news-list-simple {
    list-style: none;
}

.news-list-simple li {
    padding: 10px 0;
    border-bottom: 1px dashed var(--border-color);
}

.news-list-simple li:last-child {
    border-bottom: none;
}

.news-list-simple a {
    display: block;
    font-size: 14px;
    color: var(--text-dark);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-list-simple .date {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 5px;
}

/* =====================================================
   产品列表
   ===================================================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.product-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.product-card .image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
}

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

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

.product-card .info {
    padding: 15px;
    text-align: center;
}

.product-card .title {
    font-size: 14px;
    color: var(--text-dark);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* =====================================================
   新闻列表
   ===================================================== */
.news-list {
    list-style: none;
}

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

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

.news-item .image {
    width: 200px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 5px;
}

.news-item .image img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-item:hover .image img {
    transform: scale(1.05);
}

.news-item .content {
    flex: 1;
}

.news-item .title {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-item .title:hover {
    color: var(--primary);
}

.news-item .summary {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-item .date {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 10px;
}

/* =====================================================
   分页
   ===================================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 30px 0;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 15px;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    font-size: 14px;
    color: var(--text-gray);
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination .current {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* =====================================================
   文章详情
   ===================================================== */
.article-header {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.article-header .title {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.article-header .meta {
    font-size: 14px;
    color: var(--text-light);
}

.article-content {
    font-size: 15px;
    line-height: 2;
    color: var(--text-dark);
}

.article-content p {
    margin-bottom: 15px;
    text-indent: 2em;
}

.article-content img {
    display: block;
    max-width: 100%;
    margin: 20px auto;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.article-content table th,
.article-content table td {
    border: 1px solid var(--border-color);
    padding: 10px;
    text-align: left;
}

.article-content table th {
    background: var(--bg-light);
}

/* =====================================================
   产品详情
   ===================================================== */
.product-detail {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.product-gallery {
    width: 450px;
    flex-shrink: 0;
}

.product-gallery .main-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    margin-bottom: 15px;
}

.product-gallery .main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-gallery .thumb-list {
    display: flex;
    gap: 10px;
}

.product-gallery .thumb-list .thumb {
    width: 80px;
    height: 80px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.product-gallery .thumb-list .thumb.active,
.product-gallery .thumb-list .thumb:hover {
    border-color: var(--primary);
}

.product-gallery .thumb-list .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    flex: 1;
}

.product-info .title {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.product-info .params {
    margin-bottom: 20px;
}

.product-info .params .item {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border-color);
}

.product-info .params .label {
    width: 100px;
    color: var(--text-gray);
    flex-shrink: 0;
}

.product-info .params .value {
    flex: 1;
    color: var(--text-dark);
}

.product-info .hotline {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.product-info .hotline .label {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 5px;
}

.product-info .hotline .phone {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary);
}

.product-info .btn-consult {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 12px 40px;
    border-radius: 5px;
    font-size: 16px;
    transition: background 0.3s ease;
}

.product-info .btn-consult:hover {
    background: var(--primary-dark);
    color: var(--white);
}

/* 同类产品推荐 */
.related-products {
    margin-top: 30px;
}

.section-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-dark);
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary);
    margin-bottom: 20px;
}

/* =====================================================
   图片列表
   ===================================================== */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.image-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.image-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.image-card .image {
    overflow: hidden;
    aspect-ratio: 3/4;
}

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

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

.image-card .title {
    padding: 12px;
    text-align: center;
    font-size: 14px;
    color: var(--text-dark);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* =====================================================
   视频列表
   ===================================================== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.video-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.video-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.video-card .thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.video-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-card .play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.video-card:hover .play-btn {
    transform: translate(-50%, -50%) scale(1.1);
}

.video-card .play-btn::after {
    content: '';
    border-style: solid;
    border-width: 10px 0 10px 18px;
    border-color: transparent transparent transparent var(--primary);
    margin-left: 5px;
}

.video-card .title {
    padding: 15px;
    font-size: 14px;
    color: var(--text-dark);
}

/* =====================================================
   Footer 页脚
   ===================================================== */
.footer-contact {
    background: var(--bg-light);
    padding: 50px 0;
}

.footer-contact .inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
}

.contact-info .title {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.contact-info .subtitle {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.contact-info .company {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.contact-info .item {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
}

.contact-info .item i {
    margin-right: 10px;
    color: var(--primary);
}

.contact-info .qr-codes {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.contact-info .qr-item {
    text-align: center;
}

.contact-info .qr-item img {
    width: 80px;
    height: 80px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
}

.contact-info .qr-item .name {
    font-size: 12px;
    color: var(--text-gray);
    margin-top: 5px;
}

/* 联系表单 */
.contact-form .form-group {
    margin-bottom: 15px;
}

.contact-form label {
    display: block;
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 5px;
}

.contact-form label .required {
    color: #f00;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.contact-form textarea {
    height: 100px;
    resize: none;
}

.contact-form .btn-group {
    display: flex;
    gap: 10px;
}

.contact-form .btn {
    flex: 1;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form .btn-submit {
    background: var(--primary);
    color: var(--white);
}

.contact-form .btn-submit:hover {
    background: var(--primary-dark);
}

.contact-form .btn-reset {
    background: var(--bg-gray);
    color: var(--text-gray);
}

.contact-form .btn-reset:hover {
    background: #ddd;
}

/* 地图 */
.contact-map {
    height: 100%;
    background: var(--bg-gray);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.contact-map #mapContainer {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

/* 页脚底部 */
.footer-bottom {
    background: #333;
    color: #999;
    padding: 20px 0;
}

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

.footer-nav {
    display: flex;
    gap: 20px;
}

.footer-nav a {
    color: #999;
    font-size: 14px;
}

.footer-nav a:hover {
    color: var(--white);
}

.footer-qr {
    display: flex;
    gap: 15px;
}

.footer-qr .item {
    text-align: center;
}

.footer-qr .item img {
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 3px;
}

.footer-qr .item .name {
    font-size: 12px;
    margin-top: 5px;
}

.copyright {
    text-align: center;
    padding-top: 15px;
    margin-top: 15px;
    border-top: 1px solid #444;
    font-size: 13px;
}

.copyright a {
    color: #999;
}

.copyright a:hover {
    color: var(--white);
}

/* =====================================================
   首页特殊样式
   ===================================================== */
/* Banner轮播 */
.banner-section {
    position: relative;
}

.banner-slide {
    height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.banner-content {
    max-width: 600px;
}

.banner-content .title {
    font-size: 48px;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 15px;
}

.banner-content .desc {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 25px;
}

.banner-content .btn {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 12px 35px;
    border-radius: 25px;
    font-size: 16px;
    transition: background 0.3s ease;
}

.banner-content .btn:hover {
    background: var(--primary-dark);
    color: var(--white);
}

/* 首页区块 */
.home-section {
    padding: 60px 0;
}

.home-section.bg-gray {
    background: var(--bg-light);
}

.home-section.bg-purple {
    background: var(--secondary);
}

.home-section-title {
    text-align: center;
    margin-bottom: 40px;
}

.home-section-title h2 {
    font-size: 28px;
    font-weight: bold;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
}

.home-section-title h2::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    margin-left: 8px;
    vertical-align: middle;
}

.home-section-title p {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 10px;
}

.home-section.bg-purple .home-section-title h2 {
    color: var(--white);
}

.home-section.bg-purple .home-section-title h2::after {
    background: var(--white);
}

.home-section.bg-purple .home-section-title p {
    color: rgba(255,255,255,0.7);
}

/* 首页产品分类 */
.home-product-cats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.home-product-cat {
    text-align: center;
    cursor: pointer;
}

.home-product-cat .image {
    position: relative;
    background: var(--bg-light);
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1;
    margin-bottom: 15px;
}

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

.home-product-cat:hover .image img {
    transform: scale(1.05);
}

.home-product-cat .overlay {
    position: absolute;
    inset: 0;
    background: rgba(139, 26, 26, 0.8);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.home-product-cat:hover .overlay {
    opacity: 1;
}

.home-product-cat .overlay-content {
    color: var(--white);
    text-align: center;
}

.home-product-cat .overlay-content i {
    font-size: 40px;
    margin-bottom: 10px;
}

.home-product-cat .name {
    font-size: 15px;
    color: var(--text-dark);
}

.home-product-cat .icon {
    width: 35px;
    height: 35px;
    background: rgba(139, 26, 26, 0.1);
    border-radius: 50%;
    margin: 10px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-product-cat .icon i {
    color: var(--primary);
    font-size: 16px;
}

/* 首页视频区 */
.home-video-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
    height: 450px;
}

.home-video-main {
    grid-row: 1 / 3;
}

.home-video-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
}

.home-video-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-video-item .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.home-video-item:hover .overlay {
    background: rgba(0,0,0,0.5);
}

.home-video-item .play-btn {
    width: 70px;
    height: 70px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.home-video-item:hover .play-btn {
    transform: scale(1.1);
}

.home-video-item .play-btn::after {
    content: '';
    border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent var(--primary);
    margin-left: 5px;
}

.home-video-item .info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 20px 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--white);
}

.home-video-item .tag {
    display: inline-block;
    background: var(--primary);
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 12px;
    margin-bottom: 8px;
}

.home-video-item .title {
    font-size: 15px;
}

.home-video-item .views {
    font-size: 12px;
    opacity: 0.85;
    margin-top: 5px;
}

/* 首页关于我们 */
.home-about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.home-about-video {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16/10;
    cursor: pointer;
}

.home-about-video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-about-video .play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-about-video .play-btn::after {
    content: '';
    border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent var(--primary);
    margin-left: 5px;
}

.home-about-content .title {
    font-size: 22px;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.home-about-content .desc {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 2;
    margin-bottom: 20px;
}

.home-about-content .more {
    color: var(--primary);
    font-size: 14px;
    margin-bottom: 30px;
    display: inline-block;
}

.home-about-links {
    display: flex;
    gap: 15px;
}

.home-about-links a {
    flex: 1;
    background: var(--bg-light);
    padding: 20px 15px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.home-about-links a:hover {
    background: var(--primary);
    color: var(--white);
}

.home-about-links a i {
    font-size: 30px;
    color: var(--primary);
    margin-bottom: 10px;
    display: block;
    transition: color 0.3s ease;
}

.home-about-links a:hover i {
    color: var(--white);
}

.home-about-links a span {
    font-size: 14px;
}

/* 首页证书轮播 */
.home-cert-slider {
    position: relative;
}

/* 首页合作伙伴 */
.home-partners {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

.home-partner {
    background: var(--white);
    border-radius: 5px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4/3;
    transition: transform 0.3s ease;
}

.home-partner:hover {
    transform: scale(1.05);
}

.home-partner img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* 首页新闻轮播 */
.home-news-slider {
    position: relative;
}

.home-news-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.home-news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.home-news-card .image {
    aspect-ratio: 16/10;
    overflow: hidden;
}

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

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

.home-news-card .content {
    padding: 20px;
}

.home-news-card .title {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-news-card .summary {
    font-size: 13px;
    color: var(--text-gray);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 15px;
}

.home-news-card .more {
    color: var(--primary);
    font-size: 13px;
}

/* =====================================================
   移动端底部导航
   ===================================================== */
.mobile-footer-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--border-color);
    z-index: 999;
}

.mobile-footer-nav .nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
    color: var(--text-gray);
    font-size: 12px;
}

.mobile-footer-nav .nav-item i {
    font-size: 20px;
    margin-bottom: 3px;
}

.mobile-footer-nav .nav-item:hover,
.mobile-footer-nav .nav-item.active {
    color: var(--primary);
}

/* =====================================================
   响应式设计
   ===================================================== */
@media (max-width: 1024px) {
    .home-product-cats {
        grid-template-columns: repeat(3, 1fr);
    }

    .home-video-grid {
        grid-template-columns: 1fr;
        height: auto;
    }

    .home-video-main {
        grid-row: auto;
        aspect-ratio: 16/9;
    }

    .home-about {
        grid-template-columns: 1fr;
    }

    .home-partners {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer-contact .inner {
        grid-template-columns: 1fr;
    }

    .product-detail {
        flex-direction: column;
    }

    .product-gallery {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        flex-direction: column;
        padding: 15px 0;
        z-index: 999;
    }

    .nav-menu.mobile-open {
        display: flex;
    }

    .nav-menu li {
        margin: 0;
        text-align: center;
    }

    .nav-menu a {
        padding: 12px 20px;
        border-bottom: 1px solid #eee;
    }

    .nav-menu li:last-child a {
        border-bottom: none;
    }

    .mobile-menu-btn {
        display: block;
        font-size: 24px;
        padding: 5px 10px;
        transition: transform 0.3s;
    }

    .mobile-menu-btn.active {
        transform: rotate(90deg);
    }

    .header-inner {
        position: relative;
    }

    .page-layout {
        flex-direction: column;
    }

    .page-layout .sidebar {
        width: 100%;
        order: 0;
    }

    .news-item {
        flex-direction: column;
    }

    .news-item .image {
        width: 100%;
    }

    .home-product-cats {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-partners {
        grid-template-columns: repeat(3, 1fr);
    }

    .banner-slide {
        height: 300px;
    }

    .banner-content .title {
        font-size: 28px;
    }

    .banner-content .desc {
        font-size: 14px;
    }

    .footer-bottom .inner {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .mobile-footer-nav {
        display: flex;
    }

    body {
        padding-bottom: 60px;
    }
}

@media (max-width: 480px) {
    .home-product-cats {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .image-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .home-partners {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-about-links {
        flex-wrap: wrap;
    }

    .home-about-links a {
        flex: 0 0 calc(33.333% - 10px);
    }
}

/* Swiper自定义样式 */
.swiper-pagination-bullet-active {
    background: var(--primary) !important;
}

.swiper-button-prev,
.swiper-button-next {
    color: var(--primary) !important;
    background: rgba(255,255,255,0.8);
    width: 45px !important;
    height: 45px !important;
    border-radius: 50%;
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 18px !important;
}

.slider-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

.slider-nav button {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--white);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-nav button:hover {
    background: var(--primary);
    color: var(--white);
}

/* =====================================================
   新增页面样式
   ===================================================== */

/* 页面标题 */
.page-title {
    font-size: 22px;
    font-weight: bold;
    color: var(--text-dark);
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary);
    margin-bottom: 25px;
}

/* 右侧边栏布局 */
.layout-right-sidebar .sidebar-right {
    order: 1;
}

/* 推荐新闻列表 */
.recommend-news {
    list-style: none;
}

.recommend-news li {
    padding: 10px 0;
    border-bottom: 1px dashed var(--border-color);
}

.recommend-news li:last-child {
    border-bottom: none;
}

.recommend-news a {
    font-size: 14px;
    color: var(--text-dark);
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recommend-news a:hover {
    color: var(--primary);
}

/* 侧边栏联系信息 */
.sidebar-contact .item {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 10px;
    line-height: 1.6;
}

/* =====================================================
   关于我们页面
   ===================================================== */
.about-banner {
    margin-bottom: 25px;
    border-radius: 8px;
    overflow: hidden;
}

.about-banner img {
    width: 100%;
    display: block;
}

/* 企业优势 */
.advantage-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 25px 0;
}

.advantage-item {
    text-align: center;
    padding: 25px 15px;
    background: var(--bg-light);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.advantage-item:hover {
    background: var(--primary);
    color: var(--white);
}

.advantage-item .icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.advantage-item h4 {
    font-size: 16px;
    margin-bottom: 10px;
}

.advantage-item p {
    font-size: 13px;
    line-height: 1.6;
    text-indent: 0;
}

.advantage-item:hover h4,
.advantage-item:hover p {
    color: var(--white);
}

/* 发展历程时间线 */
.timeline {
    position: relative;
    padding-left: 30px;
    margin: 25px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary);
}

.timeline-item {
    position: relative;
    padding-bottom: 25px;
    padding-left: 25px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: var(--white);
    border: 3px solid var(--primary);
    border-radius: 50%;
}

.timeline-item .year {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 5px;
}

.timeline-item .content {
    font-size: 14px;
    color: var(--text-gray);
    text-indent: 0;
}

/* =====================================================
   联系我们页面
   ===================================================== */
.contact-page-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.info-card {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 8px;
    text-align: center;
}

.info-card .icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.info-card h3 {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.info-card p {
    font-size: 14px;
    color: var(--text-gray);
    text-indent: 0;
}

.map-container {
    margin: 20px 0 30px;
}

/* 内联表单 */
.inline-contact-form {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
}

.inline-contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}

.inline-contact-form .form-group {
    margin-bottom: 0;
}

.inline-contact-form .form-group.full {
    grid-column: 1 / -1;
}

.inline-contact-form label {
    display: block;
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 8px;
}

.inline-contact-form label .required {
    color: #f00;
}

.inline-contact-form input,
.inline-contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
    background: var(--white);
}

.inline-contact-form input:focus,
.inline-contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.inline-contact-form .btn-group {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.inline-contact-form .btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
}

.inline-contact-form .btn-submit {
    background: var(--primary);
    color: var(--white);
}

.inline-contact-form .btn-reset {
    background: var(--bg-gray);
    color: var(--text-gray);
}

/* =====================================================
   新闻列表页
   ===================================================== */
.news-list .news-item .info {
    flex: 1;
}

.news-list .news-item .info .title {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.news-list .news-item .info .date {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.news-list .news-item .info .summary {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-indent: 0;
}

/* =====================================================
   新闻详情页
   ===================================================== */
.article-detail .article-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.article-detail .article-header .title {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.4;
}

.article-detail .article-header .meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--text-light);
}

.article-detail .article-content h2 {
    font-size: 18px;
    color: var(--text-dark);
    margin: 25px 0 15px;
    padding-left: 12px;
    border-left: 3px solid var(--primary);
}

.article-detail .article-content ul {
    margin: 15px 0;
    padding-left: 2em;
}

.article-detail .article-content li {
    margin-bottom: 8px;
    line-height: 1.8;
}

.article-image {
    margin: 20px 0;
    text-align: center;
}

.article-image img {
    max-width: 100%;
    border-radius: 8px;
}

.article-image .caption {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 10px;
    text-indent: 0;
}

/* 文章底部 */
.article-footer {
    margin-top: 30px;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.article-footer .tags {
    display: flex;
    align-items: center;
    gap: 10px;
}

.article-footer .tags .label {
    font-size: 14px;
    color: var(--text-gray);
}

.article-footer .tags .tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-light);
    border-radius: 3px;
    font-size: 13px;
    color: var(--text-gray);
}

.article-footer .tags .tag:hover {
    background: var(--primary);
    color: var(--white);
}

.article-footer .share {
    display: flex;
    align-items: center;
    gap: 10px;
}

.article-footer .share .label {
    font-size: 14px;
    color: var(--text-gray);
}

.article-footer .share-btn {
    padding: 5px 15px;
    background: var(--bg-light);
    border-radius: 3px;
    font-size: 13px;
    color: var(--text-gray);
}

.article-footer .share-btn:hover {
    background: var(--primary);
    color: var(--white);
}

/* 上下篇导航 */
.article-nav {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    border-top: 1px dashed var(--border-color);
    margin-top: 20px;
}

.article-nav a {
    font-size: 14px;
    color: var(--text-gray);
    max-width: 45%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.article-nav a:hover {
    color: var(--primary);
}

/* 相关推荐 */
.related-news {
    margin-top: 40px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.news-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.news-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.news-card .image {
    overflow: hidden;
}

.news-card .image img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.news-card .info {
    padding: 15px;
}

.news-card .info .title {
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-card .info .date {
    font-size: 12px;
    color: var(--text-light);
}

/* =====================================================
   图片列表页
   ===================================================== */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-item {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.gallery-item .image {
    overflow: hidden;
}

.gallery-item .image img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .image img {
    transform: scale(1.05);
}

.gallery-item .title {
    padding: 12px;
    text-align: center;
    font-size: 14px;
    color: var(--text-dark);
}

/* =====================================================
   视频列表页
   ===================================================== */
.video-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.video-item {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.video-item:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.video-cover {
    position: relative;
    overflow: hidden;
}

.video-cover img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.video-cover .play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary);
    transition: all 0.3s ease;
}

.video-item:hover .video-cover .play-btn {
    transform: translate(-50%, -50%) scale(1.1);
}

.video-item .info {
    padding: 20px;
}

.video-item .info .title {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.video-item .info .desc {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
}

.video-item .info .views {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 10px;
}

.video-cover .duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

/* =====================================================
   响应式补充
   ===================================================== */
@media (max-width: 1024px) {
    .advantage-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-page-info {
        grid-template-columns: 1fr;
    }

    .image-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .advantage-list {
        grid-template-columns: 1fr;
    }

    .inline-contact-form .form-row {
        grid-template-columns: 1fr;
    }

    .article-footer {
        flex-direction: column;
        gap: 15px;
    }

    .article-nav {
        flex-direction: column;
        gap: 10px;
    }

    .article-nav a {
        max-width: 100%;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .image-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .video-gallery {
        grid-template-columns: 1fr;
    }

    .article-detail .article-header .meta {
        flex-direction: column;
        gap: 5px;
    }
}
