/**
 * 陕西沃泉商贸有限公司官网 - 主样式文件
 */

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

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

a:hover {
    color: #e67e22;
}

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

ul, ol {
    list-style: none;
}

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

.ml-20 {
    margin-left: 20px;
}

/* ==================== 头部区域 ==================== */
.site-header {
    background-color: #fff;
}

.header-main {
    background-color: #fff;
    padding: 20px 0;
}

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

/* Logo */
.logo a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.logo-brand {
    font-size: 48px;
    font-weight: bold;
    color: #f5a623;
    letter-spacing: 2px;
}

.logo-product {
    font-size: 48px;
    font-weight: bold;
    color: #333;
    letter-spacing: 2px;
    margin-left: 6px;
}

.logo-divider {
    display: inline-block;
    width: 1px;
    height: 46px;
    background-color: #ddd;
    margin: 0 12px;
}

.logo-slogan {
    display: inline-flex;
    flex-direction: column;
    vertical-align: middle;
}

.slogan-line1 {
    font-size: 18px;
    color: #f5a623;
    font-weight: 500;
    letter-spacing: 2px;
    line-height: 1.4;
}

.slogan-line2 {
    font-size: 13px;
    color: #666;
    letter-spacing: 1px;
    line-height: 1.4;
    margin-top: 4px;
}

/* 头部电话 */
.header-phones {
    display: flex;
    gap: 30px;
    align-items: center;
}

.phone-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.phone-item > i {
    width: 40px;
    height: 40px;
    background-color: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #666;
    flex-shrink: 0;
}

.phone-info {
    display: flex;
    flex-direction: column;
}

.phone-label {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.phone-number {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    letter-spacing: 1px;
    line-height: 1.3;
}

/* ==================== 主导航 ==================== */
.main-nav {
    background-color: #f5f5f5;
    border-top: 1px solid #e8e8e8;
}

.nav-list {
    display: flex;
    justify-content: center;
}

.nav-list > li {
    position: relative;
}

.nav-list > li > a {
    display: block;
    padding: 14px 40px;
    font-size: 15px;
    color: #333;
    transition: all 0.3s;
    white-space: nowrap;
}

.nav-list > li:hover > a,
.nav-list > li.active > a {
    background-color: #f5a623;
    color: #fff;
}

/* 下拉菜单 */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    z-index: 1001;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.nav-list > li:hover .sub-menu {
    opacity: 1;
    visibility: visible;
}

.sub-menu li a {
    display: block;
    padding: 12px 20px;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s;
    white-space: nowrap;
}

.sub-menu li a:hover {
    background-color: #f5a623;
    color: #fff;
}

/* 移动端菜单按钮 */
.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 25px;
}

.mobile-menu {
    display: none;
    background-color: #1e3a5f;
    padding: 15px;
}

.mobile-menu ul li a {
    display: block;
    padding: 12px 15px;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-menu ul li a:hover {
    background-color: rgba(255,255,255,0.1);
    color: #e67e22;
}

/* ==================== 轮播图 ==================== */
.banner-section {
    position: relative;
    overflow: hidden;
}

.banner-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s;
}

.banner-slide.active {
    opacity: 1;
    position: relative;
}

.banner-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.banner-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.banner-dots .dot.active {
    background-color: #e67e22;
    width: 30px;
    border-radius: 6px;
}

.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(0,0,0,0.3);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s;
    border-radius: 50%;
}

.banner-arrow:hover {
    background-color: #e67e22;
}

.banner-arrow.prev {
    left: 20px;
}

.banner-arrow.next {
    right: 20px;
}

/* ==================== 通用标题样式 ==================== */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 32px;
    color: #1e3a5f;
    font-weight: bold;
    margin-bottom: 10px;
}

.section-title h2 span {
    color: #e67e22;
}

.section-title p {
    color: #999;
    font-size: 14px;
    margin-top: 5px;
}

.section-title .title-line {
    width: 60px;
    height: 3px;
    background-color: #e67e22;
    margin: 15px auto 0;
}

/* ==================== 产品展示 ==================== */
.products-showcase {
    padding: 60px 0;
    background-color: #f5f5f5;
}

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

.product-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

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

.product-card .product-image {
    height: 200px;
    overflow: hidden;
}

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

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

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

.product-card .product-info h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
    font-weight: 500;
}

.product-card .product-info p {
    font-size: 13px;
    color: #999;
}

/* ==================== 产品中心分类 ==================== */
.product-categories {
    padding: 60px 0;
    background: url('../images/product-bg.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
}

.product-categories::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(30, 58, 95, 0.85);
}

.product-categories .container {
    position: relative;
    z-index: 1;
}

.product-categories .section-title h2 {
    color: #fff;
}

.product-categories .section-title h2 span {
    color: #f5a623;
}

.product-categories .section-title p {
    color: rgba(255,255,255,0.7);
}

.product-categories-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 20px;
}

/* 左侧分类导航 */
.categories-sidebar {
    background-color: #fff;
    border-radius: 4px;
    overflow: hidden;
}

.categories-sidebar-header {
    background-color: #f5a623;
    padding: 15px 20px;
    text-align: center;
}

.categories-sidebar-header h3 {
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    margin: 0;
}

.categories-sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-sidebar-list li {
    border-bottom: 1px solid #f0f0f0;
}

.categories-sidebar-list li:last-child {
    border-bottom: none;
}

.categories-sidebar-list li a {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    color: #333;
    font-size: 14px;
    transition: all 0.3s;
    text-decoration: none;
}

.categories-sidebar-list li a:hover {
    background-color: #f8f9fa;
    color: #e67e22;
}

.categories-sidebar-list li a .cat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #f5a623;
    margin-right: 12px;
    flex-shrink: 0;
}

.categories-sidebar-list li a .cat-name {
    flex: 1;
}

.categories-sidebar-list li a .fa-chevron-right {
    font-size: 12px;
    color: #ccc;
    transition: color 0.3s;
}

.categories-sidebar-list li a:hover .fa-chevron-right {
    color: #e67e22;
}

/* 右侧产品图片网格 */
.categories-images-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.category-image-item {
    display: block;
    background-color: #fff;
    border-radius: 4px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s;
}

.category-image-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.category-image-wrap {
    height: 180px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.category-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.category-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e8e8e8;
}

.category-image-placeholder i {
    font-size: 40px;
    color: #bbb;
}

.category-image-title {
    padding: 12px;
    text-align: center;
    font-size: 14px;
    color: #333;
    background-color: #f5f5f5;
    border-top: 1px solid #eee;
}

.category-image-item:hover .category-image-title {
    color: #e67e22;
}

/* ==================== 工程案例 ==================== */
.cases-section {
    padding: 60px 0;
    background-color: #f5f5f5;
}

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

.case-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 220px;
}

.case-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.case-item:hover img {
    transform: scale(1.1);
}

.case-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.case-item:hover .case-overlay {
    transform: translateY(0);
}

.case-overlay h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.case-overlay p {
    font-size: 13px;
    opacity: 0.8;
}

/* ==================== 公司优势 ==================== */
.advantages-section {
    padding: 60px 0;
    background-color: #fff;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.advantage-item {
    text-align: center;
    padding: 30px 20px;
}

.advantage-item .icon {
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    background-color: #f0f4f8;
    margin: 0 auto 20px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.advantage-item:hover .icon {
    background-color: #e67e22;
}

.advantage-item .icon i {
    font-size: 32px;
    color: #1e3a5f;
    transition: color 0.3s;
}

.advantage-item:hover .icon i {
    color: #fff;
}

.advantage-item h3 {
    font-size: 18px;
    color: #1e3a5f;
    margin-bottom: 10px;
    font-weight: 500;
}

.advantage-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
}

/* ==================== 关于我们简介 ==================== */
.about-section {
    padding: 60px 0;
    background-color: #f5f5f5;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-image img {
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.about-text h3 {
    font-size: 24px;
    color: #1e3a5f;
    margin-bottom: 20px;
    font-weight: 600;
}

.about-text p {
    font-size: 14px;
    color: #666;
    line-height: 2;
    margin-bottom: 15px;
}

.about-text .more-btn {
    display: inline-block;
    padding: 10px 30px;
    background-color: #e67e22;
    color: #fff;
    border-radius: 4px;
    margin-top: 15px;
    transition: all 0.3s;
    font-size: 14px;
}

.about-text .more-btn:hover {
    background-color: #d35400;
    color: #fff;
}

/* ==================== 新闻动态 ==================== */
.news-section {
    padding: 60px 0;
    background-color: #fff;
}

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

.news-column h3 {
    font-size: 18px;
    color: #1e3a5f;
    padding-bottom: 15px;
    border-bottom: 2px solid #e67e22;
    margin-bottom: 20px;
    font-weight: 500;
}

.news-list li {
    padding: 12px 0;
    border-bottom: 1px dashed #eee;
}

.news-list li a {
    display: flex;
    justify-content: space-between;
    color: #333;
    font-size: 14px;
    transition: color 0.3s;
}

.news-list li a:hover {
    color: #e67e22;
}

.news-list li a:hover span:first-child {
    color: #e67e22;
}

.news-list li .date {
    color: #999;
    font-size: 12px;
    white-space: nowrap;
    margin-left: 10px;
}

/* ==================== 底部 ==================== */
.main-footer {
    background-color: #1e3a5f;
    color: #fff;
}

.footer-top {
    padding: 60px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
}

.footer-item h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #e67e22;
    font-weight: 500;
}

.footer-item p {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255,255,255,0.7);
    margin-bottom: 10px;
}

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

.footer-item ul li a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    transition: color 0.3s;
}

.footer-item ul li a:hover {
    color: #e67e22;
}

.footer-contact {
    margin-top: 15px;
}

.footer-contact p {
    margin-bottom: 5px;
}

.footer-contact i {
    color: #e67e22;
    margin-right: 8px;
}

.contact-info p {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
}

.contact-info i {
    color: #e67e22;
    margin-right: 10px;
    margin-top: 3px;
    min-width: 16px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
}

.footer-bottom .footer-divider {
    margin: 0 10px;
    color: rgba(255,255,255,0.3);
}

.footer-bottom a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-bottom a:hover {
    color: #e67e22;
}

/* ==================== 右侧悬浮侧边栏 ==================== */
.sidebar-float {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.sidebar-float .float-item {
    width: 70px;
    height: 70px;
    background-color: #e6a23c;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s;
    position: relative;
    text-decoration: none;
}

.sidebar-float .float-item:first-child {
    border-radius: 4px 0 0 0;
}

.sidebar-float .float-item:last-child {
    border-radius: 0 0 0 4px;
    border-bottom: none;
}

.sidebar-float .float-item:hover {
    background-color: #d4922a;
}

.sidebar-float .float-item i {
    font-size: 22px;
    margin-bottom: 4px;
}

.sidebar-float .float-item span {
    font-size: 12px;
}

.sidebar-float .float-item .float-tooltip {
    position: absolute;
    right: 80px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #fff;
    color: #333;
    padding: 10px 15px;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    pointer-events: none;
}

.sidebar-float .float-item .float-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent transparent #fff;
}

.sidebar-float .float-item:hover .float-tooltip {
    opacity: 1;
    visibility: visible;
}

.sidebar-float .float-item .qrcode-box {
    position: absolute;
    right: 80px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #fff;
    padding: 10px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    pointer-events: none;
    text-align: center;
}

.sidebar-float .float-item .qrcode-box::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent transparent #fff;
}

.sidebar-float .float-item .qrcode-box img {
    width: 120px;
    height: 120px;
    display: block;
    object-fit: contain;
}

.sidebar-float .float-item .qrcode-box p {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    white-space: nowrap;
}

.sidebar-float .float-item:hover .qrcode-box {
    opacity: 1;
    visibility: visible;
}

/* ==================== 回到顶部 ==================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: #e67e22;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #d35400;
}

/* ==================== 面包屑导航 ==================== */
.breadcrumb {
    background-color: #f5f5f5;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.breadcrumb .container {
    font-size: 13px;
    color: #666;
}

.breadcrumb a {
    color: #333;
}

.breadcrumb a:hover {
    color: #e67e22;
}

.breadcrumb .separator {
    margin: 0 8px;
    color: #999;
}

.breadcrumb .current {
    color: #e67e22;
}

/* ==================== 页面内容区 ==================== */
.page-content {
    padding: 40px 0 60px;
}

/* ==================== 产品列表页 ==================== */
.product-list-page .content-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
}

.sidebar {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

.sidebar h3 {
    font-size: 18px;
    color: #1e3a5f;
    padding-bottom: 15px;
    border-bottom: 2px solid #e67e22;
    margin-bottom: 15px;
}

.sidebar-menu li {
    margin-bottom: 5px;
}

.sidebar-menu li a {
    display: block;
    padding: 10px 15px;
    color: #333;
    border-radius: 4px;
    transition: all 0.3s;
}

.sidebar-menu li a:hover,
.sidebar-menu li a.active {
    background-color: #e67e22;
    color: #fff;
}

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

/* ==================== 产品详情页 ==================== */
.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.product-gallery {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

.product-gallery .main-image {
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

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

.product-info-detail h1 {
    font-size: 24px;
    color: #1e3a5f;
    margin-bottom: 15px;
}

.product-info-detail .subtitle {
    color: #e67e22;
    font-size: 14px;
    margin-bottom: 20px;
}

.product-info-detail .parameters {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.product-info-detail .parameters h3 {
    font-size: 16px;
    color: #1e3a5f;
    margin-bottom: 10px;
}

.product-info-detail .parameters pre {
    font-family: inherit;
    font-size: 14px;
    line-height: 2;
    color: #666;
    white-space: pre-wrap;
}

.product-info-detail .contact-btn {
    display: inline-block;
    padding: 12px 40px;
    background-color: #e67e22;
    color: #fff;
    border-radius: 4px;
    font-size: 16px;
    transition: all 0.3s;
}

.product-info-detail .contact-btn:hover {
    background-color: #d35400;
    color: #fff;
}

.product-description {
    margin-top: 40px;
}

.product-description h3 {
    font-size: 20px;
    color: #1e3a5f;
    padding-bottom: 15px;
    border-bottom: 2px solid #e67e22;
    margin-bottom: 20px;
}

.product-description .content {
    line-height: 2;
    color: #666;
}

.product-description .content p {
    margin-bottom: 15px;
}

/* 富文本内容样式 */
.rich-text {
    line-height: 1.8;
    color: #333;
}
.rich-text p {
    margin-bottom: 12px;
}
/* 富文本编辑器字体（UEditor 使用系统字体，无需下载） */
.rich-text .font-songti, .rich-text [style*="宋体"] { font-family: '宋体', SimSun, serif; }
.rich-text .font-yahei, .rich-text [style*="微软雅黑"] { font-family: '微软雅黑', 'Microsoft YaHei', sans-serif; }
.rich-text .font-heiti, .rich-text [style*="黑体"] { font-family: '黑体', SimHei, sans-serif; }
.rich-text .font-kaiti, .rich-text [style*="楷体"] { font-family: '楷体', '楷体_GB2312', SimKai, serif; }
.rich-text .font-fangsong, .rich-text [style*="仿宋"] { font-family: '仿宋', '仿宋_GB2312', SimFang, serif; }
.rich-text .font-lishu, .rich-text [style*="隶书"] { font-family: '隶书', LiSu, SimLi, serif; }
.rich-text .font-youyuan, .rich-text [style*="幼圆"] { font-family: '幼圆', YouYuan, sans-serif; }
.rich-text .font-stxihei, .rich-text [style*="华文细黑"] { font-family: '华文细黑', STXihei, sans-serif; }
.rich-text .font-stkaiti, .rich-text [style*="华文楷体"] { font-family: '华文楷体', STKaiti, serif; }
.rich-text .font-stsong, .rich-text [style*="华文宋体"] { font-family: '华文宋体', STSong, serif; }
.rich-text .font-stzhongsong, .rich-text [style*="华文中宋"] { font-family: '华文中宋', STZhongsong, serif; }
.rich-text .font-stfangsong, .rich-text [style*="华文仿宋"] { font-family: '华文仿宋', STFangsong, serif; }
.rich-text .font-fzshu, .rich-text [style*="方正舒体"] { font-family: '方正舒体', FZShuTi, serif; }
.rich-text .font-fzyao, .rich-text [style*="方正姚体"] { font-family: '方正姚体', FZYaoTi, serif; }
.rich-text .font-arial, .rich-text [style*="Arial"] { font-family: Arial, Helvetica, sans-serif; }
.rich-text .font-times, .rich-text [style*="Times New Roman"] { font-family: 'Times New Roman', Times, serif; }
.rich-text .font-georgia, .rich-text [style*="Georgia"] { font-family: Georgia, serif; }
.rich-text .font-verdana, .rich-text [style*="Verdana"] { font-family: Verdana, sans-serif; }
.rich-text .font-courier, .rich-text [style*="Courier New"] { font-family: 'Courier New', Courier, monospace; }

.rich-text img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 10px 0;
    display: block;
}
.rich-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    font-size: 14px;
}
.rich-text table th,
.rich-text table td {
    border: 1px solid #ddd;
    padding: 10px 12px;
    text-align: left;
}
.rich-text table th {
    background-color: #f5f5f5;
    font-weight: 600;
    color: #1e3a5f;
}
.rich-text table tr:nth-child(even) {
    background-color: #fafafa;
}
.rich-text h1, .rich-text h2, .rich-text h3, .rich-text h4 {
    color: #1e3a5f;
    margin: 20px 0 12px;
}
.rich-text h1 { font-size: 24px; }
.rich-text h2 { font-size: 20px; }
.rich-text h3 { font-size: 18px; }
.rich-text h4 { font-size: 16px; }
.rich-text blockquote {
    border-left: 4px solid #e67e22;
    padding: 10px 15px;
    margin: 15px 0;
    background: #f8f9fa;
    color: #666;
}
.rich-text ul, .rich-text ol {
    margin: 10px 0 10px 20px;
}
.rich-text li {
    margin-bottom: 6px;
}
.rich-text a {
    color: #1976d2;
    text-decoration: underline;
}
.rich-text code {
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
    font-size: 13px;
}
.rich-text pre {
    background: #f4f4f4;
    padding: 15px;
    border-radius: 4px;
    overflow-x: auto;
    margin: 15px 0;
}

/* ==================== 案例列表页 ==================== */
.case-list-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* ==================== 案例详情页 ==================== */
.case-detail-content h1 {
    font-size: 24px;
    color: #1e3a5f;
    margin-bottom: 20px;
}

.case-images {
    margin-bottom: 30px;
}

.case-images img {
    border-radius: 8px;
    margin-bottom: 15px;
}

.case-detail-text {
    line-height: 2;
    color: #666;
}

/* ==================== 新闻列表页 ==================== */
.news-list-page .content-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
}

.news-list-items .news-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: all 0.3s;
}

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

.news-item-image {
    height: 130px;
    border-radius: 4px;
    overflow: hidden;
}

.news-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.news-item-content h3 {
    font-size: 16px;
    color: #1e3a5f;
    margin-bottom: 8px;
}

.news-item-content .meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

.news-item-content .meta span {
    margin-right: 15px;
}

.news-item-content .summary {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* ==================== 新闻详情页 ==================== */
.news-detail-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
}

.news-detail-content h1 {
    font-size: 24px;
    color: #1e3a5f;
    margin-bottom: 15px;
}

.news-detail-content .meta {
    font-size: 13px;
    color: #999;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.news-detail-content .meta span {
    margin-right: 20px;
}

.news-detail-content .content {
    line-height: 2;
    color: #333;
}

.news-detail-content .content p {
    margin-bottom: 15px;
}

.news-detail-content .content img {
    max-width: 100%;
    border-radius: 4px;
    margin: 15px 0;
}

/* ==================== 关于我们页 ==================== */
/* 关于我们页面布局 */
.about-content-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: start;
}

.about-content-layout .about-image img {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    width: 100%;
}

.about-content-layout .about-text h3 {
    font-size: 26px;
    color: #1e3a5f;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid #e67e22;
    display: inline-block;
}

.about-content-layout .about-text p {
    margin-bottom: 15px;
    line-height: 2;
    color: #555;
    text-align: justify;
}

.about-page-content {
    line-height: 2;
    color: #333;
}

.about-page-content h2 {
    font-size: 22px;
    color: #1e3a5f;
    margin: 30px 0 15px;
}

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

/* ==================== 联系我们页 ==================== */
/* 联系方式卡片 */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.contact-card {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    color: #fff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.contact-card:hover::before {
    opacity: 1;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(30, 58, 95, 0.3);
}

.contact-card .card-icon {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 24px;
    color: #f39c12;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
}

.contact-card .card-content h4 {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 8px;
    font-weight: normal;
}

.contact-card .card-content p {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    word-break: break-all;
}

/* 联系页面布局 */
.contact-page-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 40px;
    align-items: start;
}

/* 左侧联系信息卡片 */
.contact-info-box {
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
    color: #333;
    position: relative;
    overflow: hidden;
}

.contact-info-box h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e67e22;
    display: inline-block;
    color: #1e3a5f;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 28px;
    position: relative;
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-info-item .icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: #f0f4f8;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    transition: all 0.3s;
}

.contact-info-item:hover .icon {
    background: #e67e22;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
}

.contact-info-item .icon i {
    font-size: 18px;
    color: #1e3a5f;
    transition: color 0.3s;
}

.contact-info-item:hover .icon i {
    color: #fff;
}

.contact-info-item .info h4 {
    font-size: 13px;
    font-weight: 500;
    color: #999;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.contact-info-item .info p {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.5;
    word-break: break-all;
}

/* 右侧表单 */
.contact-form-box {
    background-color: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
}

.contact-form-box h3 {
    font-size: 22px;
    color: #1e3a5f;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e67e22;
    display: inline-block;
    font-weight: 600;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.company-info-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
}

.company-info-box h3 {
    font-size: 22px;
    color: #1e3a5f;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e67e22;
    display: inline-block;
}

.company-desc p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: #555;
    text-align: justify;
}

.contact-cta {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px dashed #ddd;
}

.cta-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    color: #1e3a5f;
    font-size: 14px;
}

.cta-item i {
    width: 36px;
    height: 36px;
    background: #e67e22;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
}

.form-group label .required {
    color: #e74c3c;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s;
    background-color: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e67e22;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.form-group .char-count {
    text-align: right;
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

.submit-btn {
    display: inline-block;
    padding: 14px 50px;
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.4);
}

.alert {
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ==================== 分页 ==================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    font-size: 14px;
    transition: all 0.3s;
}

.pagination a:hover {
    background-color: #e67e22;
    color: #fff;
    border-color: #e67e22;
}

.pagination span.current {
    background-color: #e67e22;
    color: #fff;
    border-color: #e67e22;
}

/* ==================== 入场动画 ==================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* 从左侧滑入 */
.animate-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-left.animated {
    opacity: 1;
    transform: translateX(0);
}

/* 从右侧滑入 */
.animate-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-right.animated {
    opacity: 1;
    transform: translateX(0);
}

/* 缩放淡入 */
.animate-scale {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.animate-scale.animated {
    opacity: 1;
    transform: scale(1);
}

/* 延迟类 */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* ==================== 响应式设计 ==================== */
@media (max-width: 1199px) {
    .products-grid,
    .cases-grid,
    .case-list-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

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

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

    .sidebar-float {
        display: none;
    }

    .product-categories-layout {
        grid-template-columns: 220px 1fr;
    }

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

@media (max-width: 991px) {
    .main-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
        position: absolute;
        right: 15px;
        top: 30px;
    }

    .mobile-menu.show {
        display: block;
    }

    .header-inner {
        flex-direction: column;
        gap: 15px;
        padding: 15px 0;
    }

    .header-phones {
        flex-direction: column;
        gap: 10px;
    }

    .logo-brand,
    .logo-product {
        font-size: 36px;
    }

    .slogan-line1 {
        font-size: 16px;
    }

    .products-grid,
    .cases-grid,
    .case-list-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .about-content,
    .about-content-layout,
    .product-detail-layout,
    .contact-page-layout {
        grid-template-columns: 1fr;
    }

    .product-list-page .content-layout,
    .news-list-page .content-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        margin-bottom: 30px;
    }

    .product-list-grid,
    .news-list-items .news-item {
        grid-template-columns: repeat(2, 1fr);
    }

    .banner-slider {
        height: 350px;
    }

    .product-categories-layout {
        grid-template-columns: 1fr;
    }

    .categories-sidebar {
        display: none;
    }

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

@media (max-width: 767px) {
    .header-inner {
        flex-direction: column;
        gap: 10px;
        padding: 10px 0;
    }

    .logo a {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }

    .logo-divider {
        display: none;
    }

    .logo-slogan {
        text-align: center;
    }

    .logo-brand,
    .logo-product {
        font-size: 28px;
    }

    .slogan-line1 {
        font-size: 14px;
    }

    .header-phones {
        display: none;
    }

    .mobile-menu-toggle {
        top: 20px;
    }

    .section-title h2 {
        font-size: 24px;
    }

    .products-grid,
    .cases-grid,
    .case-list-grid,
    .categories-grid,
    .advantages-grid,
    .news-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .product-list-grid,
    .news-list-items .news-item {
        grid-template-columns: 1fr;
    }

    .banner-slider {
        height: 200px;
    }

    .banner-arrow {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .product-gallery .main-image {
        height: 250px;
    }

    .contact-page-layout {
        gap: 30px;
    }

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

/* 联系我们页响应式 */
@media (max-width: 1199px) {
    .contact-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .contact-cards {
        grid-template-columns: 1fr;
    }

    .contact-card {
        padding: 20px 15px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-form-box,
    .company-info-box {
        padding: 20px;
    }
}
