/* ========================================
   抚顺华庆石油机械制造有限公司 - 主样式表
   Fushun Huaqing Petroleum Machinery Mfg. Co., Ltd.
   ======================================== */

/* === 基础设置 === */
:root {
    --primary: #1A4F78;
    --primary-dark: #123B58;
    --primary-light: #2B6EA5;
    --primary-bg: #F0F4F8;
    --accent: #F0882A;
    --accent-dark: #D4751E;
    --accent-light: #FFF5EB;
    --gold: #E8962A;
    --gold-dark: #C87A1A;
    --dark: #1A1D23;
    --gray-bg: #F9F8F5;
    --white: #FFFFFF;
    --border: #E2E5E9;
    --text-main: #1D2026;
    --text-second: #5D6675;
    --text-light: #8B95A5;
    --shadow: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-hover: 0 8px 24px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
    --radius: 8px;
}

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

body {
    font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    color: #333;
    line-height: 1.7;
    background: var(--white);
    min-width: 320px;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

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

/* === 顶部信息栏 === */
.top-bar {
    background: var(--dark);
    color: #ccc;
    font-size: 13px;
    padding: 6px 0;
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.top-bar a { color: #ccc; }
.top-bar a:hover { color: var(--white); }
.top-bar .top-left span { margin-right: 15px; }
.top-bar .top-right a { margin-left: 15px; }
.top-bar i { margin-right: 4px; color: var(--gold); }

/* === Header === */
.site-header { padding: 15px 0; background: var(--white); border-bottom: 1px solid var(--border); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon {
    width: 52px; height: 52px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--white); font-size: 24px; font-weight: bold; flex-shrink: 0;
}
.logo-text h1 { font-size: 22px; color: var(--primary); font-weight: 700; line-height: 1.3; }
.logo-text p { font-size: 12px; color: var(--gray); }

.header-contact { text-align: right; }
.header-phone { font-size: 24px; color: var(--accent); font-weight: bold; }
.header-phone i { margin-right: 6px; }
.header-contact p { font-size: 13px; color: var(--gray); }

/* === 主导航 === */
.main-nav { background: var(--primary); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.main-nav .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.nav-list { display: flex; flex-wrap: wrap; }
.nav-list > li { position: relative; }
.nav-list > li > a {
    display: block; padding: 15px 22px; color: var(--white);
    font-size: 15px; font-weight: 500; white-space: nowrap; transition: var(--transition);
}
.nav-list > li > a:hover, .nav-list > li.active > a { background: var(--primary-dark); }

/* 下拉菜单 */
.nav-list .dropdown { position: relative; }
.nav-list .dropdown-menu {
    display: none; position: absolute; top: 100%; left: 0;
    background: var(--white); min-width: 200px;
    box-shadow: var(--shadow-hover); border-radius: 0 0 var(--radius) var(--radius);
    z-index: 1001;
}
.nav-list .dropdown:hover .dropdown-menu { display: block; }
.nav-list .dropdown-menu li {}
.nav-list .dropdown-menu li a {
    display: block; padding: 10px 18px; color: #333; font-size: 14px;
    border-bottom: 1px solid var(--border);
}
.nav-list .dropdown-menu li a:hover { background: var(--gray-bg); color: var(--accent); }

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

/* === Banner === */
.hero-banner { position: relative; overflow: hidden; min-height: 280px; }
.hero-banner .banner-slide {
    height: 450px; background-size: cover; background-position: center;
    display: flex; align-items: flex-end; position: absolute; inset: 0;
    opacity: 0; transition: opacity 0.8s ease-in-out;
    padding-bottom: 12%; /* 内容放在banner下半区 */
}
.hero-banner .banner-slide .container {
    width: 100%;
}
.hero-banner .banner-slide.active {
    opacity: 1; position: relative;
}
.hero-banner .banner-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to right, rgba(26,60,109,0.85) 0%, rgba(26,60,109,0.3) 70%, transparent 100%);
}
.hero-banner .banner-content { position: relative; z-index: 2; color: var(--white); max-width: 600px; padding: 40px 0; }
.hero-banner .banner-content h2 { font-size: 36px; font-weight: 700; margin-bottom: 15px; line-height: 1.3; }
.hero-banner .banner-content p { font-size: 17px; line-height: 1.8; margin-bottom: 25px; opacity: 0.9; }
.hero-banner .btn-primary {
    display: inline-block; padding: 12px 35px;
    background: var(--accent); color: var(--white); border-radius: 30px;
    font-size: 16px; font-weight: 600; transition: var(--transition);
}
.hero-banner .btn-primary:hover { background: var(--accent-hover); color: var(--white); transform: translateY(-2px); }
/* 默认banner背景（无图片时使用） */
.hero-banner .banner-bg-default {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
}
/* 轮播导航箭头 */
.hero-banner .banner-prev,
.hero-banner .banner-next {
    position: absolute; top: 50%; z-index: 3;
    width: 50px; height: 50px;
    background: rgba(255,255,255,0.2); border: 2px solid rgba(255,255,255,0.5);
    color: var(--white); border-radius: 50%;
    font-size: 20px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}
.hero-banner .banner-prev { left: 30px; }
.hero-banner .banner-next { right: 30px; }
.hero-banner .banner-prev:hover,
.hero-banner .banner-next:hover {
    background: rgba(255,255,255,0.4);
    border-color: var(--white);
}
/* 轮播指示器圆点 */
.hero-banner .banner-dots {
    position: absolute; bottom: 25px; left: 50%; z-index: 3;
    transform: translateX(-50%);
    display: flex; gap: 10px;
}
.hero-banner .banner-dots .dot {
    width: 12px; height: 12px;
    background: rgba(255,255,255,0.4); border: 2px solid rgba(255,255,255,0.6);
    border-radius: 50%; cursor: pointer;
    transition: all 0.3s ease;
}
.hero-banner .banner-dots .dot:hover {
    background: rgba(255,255,255,0.7);
}
.hero-banner .banner-dots .dot.active {
    background: var(--white); border-color: var(--white);
    width: 30px; border-radius: 6px;
}

/* === 特色产品区域 === */
.featured-section { padding: 60px 0; }
.section-title { text-align: center; margin-bottom: 45px; }
.section-title h2 { font-size: 30px; color: var(--primary); font-weight: 700; margin-bottom: 10px; }
.section-title p { color: var(--gray); font-size: 15px; }
.section-title .title-line { width: 60px; height: 3px; background: var(--accent); margin: 12px auto 0; }

.featured-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.featured-card {
    background: var(--white); border-radius: var(--radius);
    overflow: hidden; box-shadow: 0 0 0 0px var(--accent), 0 2px 8px rgba(0,0,0,0.06); transition: var(--transition);
}
.featured-card:hover { box-shadow: 0 0 0 3px var(--accent), 0 12px 28px rgba(0,0,0,0.13); transform: translateY(-4px); }
.featured-card .card-img {
    height: 280px; background-size: contain; background-repeat: no-repeat; background-position: center; background-color: #e8edf3;
    position: relative; overflow: hidden;
}
.featured-card .card-img .card-tag {
    position: absolute; top: 20px; right: 20px;
    background: var(--accent); color: var(--white); padding: 5px 16px;
    border-radius: 20px; font-size: 13px; font-weight: 600;
}
.featured-card .card-body { padding: 25px; }
.featured-card .card-body h3 { font-size: 22px; color: var(--primary); margin-bottom: 10px; }
.featured-card .card-body p { color: #666; line-height: 1.8; margin-bottom: 18px; font-size: 14px; }
.featured-card .card-body .btn-outline {
    display: inline-block; padding: 8px 25px;
    border: 2px solid var(--primary); color: var(--primary);
    border-radius: 25px; font-weight: 600; font-size: 14px; transition: var(--transition);
}
.featured-card .card-body .btn-outline:hover { background: var(--primary); color: var(--white); }

/* === 产品分类展示 === */
.category-section { padding: 60px 0; background: var(--gray-bg); }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat-card {
    background: var(--white); border-radius: var(--radius); padding: 30px 20px;
    text-align: center; box-shadow: 0 0 0 0px var(--accent), 0 2px 8px rgba(0,0,0,0.06); transition: var(--transition);
    cursor: pointer;
}
.cat-card:hover { box-shadow: 0 0 0 3px var(--accent), 0 12px 28px rgba(0,0,0,0.13); transform: translateY(-4px); }
.cat-card .cat-icon {
    width: 100%; height: 140px; margin: 0 auto 15px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.cat-card .cat-icon img {
    width: 100%; height: 100%; object-fit: contain;
}
.cat-card h4 { font-size: 16px; color: #333; font-weight: 600; }

/* === 关于我们区域 === */
.about-section { padding: 60px 0; }
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-text h2 { font-size: 28px; color: var(--primary); margin-bottom: 20px; }
.about-text p { color: #666; line-height: 1.9; margin-bottom: 15px; }
.about-text .stats { display: flex; gap: 30px; margin-top: 25px; }
.stat-item { text-align: center; }
.stat-item .num { font-size: 32px; font-weight: 700; color: var(--accent); }
.stat-item .label { font-size: 13px; color: var(--gray); margin-top: 4px; }
.about-img { display: flex; align-items: center; }
.strength-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
}
.strength-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.strength-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    border-color: var(--primary);
}
.strength-icon {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 12px;
}
.strength-num {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 4px;
}
.strength-label {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}
.strength-desc {
    font-size: 12px;
    color: #999;
}

/* === 新闻资讯 === */
.news-section { padding: 60px 0; background: var(--gray-bg); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.news-card {
    background: var(--white); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); transition: var(--transition);
}
.news-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.news-card .news-img { height: 200px; background-size: contain; background-repeat: no-repeat; background-position: center; background-color: #e0e0e0; }
.news-card .news-body { padding: 20px; }
.news-card .news-body h4 { font-size: 16px; margin-bottom: 10px; line-height: 1.5; }
.news-card .news-body h4 a { color: #333; }
.news-card .news-body h4 a:hover { color: var(--accent); }
.news-card .news-body .news-date { font-size: 13px; color: var(--gray); }
.news-card .news-body .news-excerpt { font-size: 14px; color: #777; margin-top: 8px; line-height: 1.7; }

/* === 页脚 === */
.site-footer { background: var(--dark); color: #bbb; padding-top: 50px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 30px; }
.footer-col h4 { color: var(--white); font-size: 17px; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--accent); display: inline-block; }
.footer-col p { font-size: 14px; line-height: 2; }
.footer-col ul li { padding: 5px 0; }
.footer-col ul li a { color: #bbb; font-size: 14px; }
.footer-col ul li a:hover { color: var(--white); }
.footer-col ul li a::before { content: '▸ '; color: var(--accent); }
.footer-contact p { margin-bottom: 8px; }
.footer-contact i { color: var(--gold); margin-right: 8px; width: 16px; text-align: center; }
.footer-bottom {
    margin-top: 40px; padding: 20px 0; border-top: 1px solid #444;
    text-align: center; font-size: 13px; color: #777;
}
.footer-bottom a { color: #bbb; }
.footer-qr { text-align: center; }
.footer-qr .qr-box { width: 120px; height: 120px; background: var(--white); margin: 0 auto 8px; border-radius: 4px; display: flex; align-items: center; justify-content: center; color: #999; font-size: 12px; }

/* === 内页 Banner === */
.page-banner {
    height: 200px; background-size: cover; background-position: center;
    position: relative; display: flex; align-items: center;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}
.page-banner .overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.3); }
.page-banner .banner-text { position: relative; z-index: 2; color: var(--white); }
.page-banner .banner-text h2 { font-size: 30px; margin-bottom: 8px; }
.page-banner .banner-text .breadcrumb { font-size: 14px; opacity: 0.85; }
.page-banner .banner-text .breadcrumb a { color: var(--white); }

/* === 主内容区 === */
.main-content { padding: 40px 0; min-height: 400px; }
.content-layout { display: grid; grid-template-columns: 260px 1fr; gap: 30px; }

/* === 侧边栏 === */
.sidebar { }
.sidebar-box {
    background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
    margin-bottom: 20px; overflow: hidden;
}
.sidebar-title {
    background: var(--primary); color: var(--white); padding: 14px 18px;
    font-size: 17px; font-weight: 600;
}
.sidebar-nav li { border-bottom: 1px solid #f0f0f0; }
.sidebar-nav li a {
    display: block; padding: 12px 18px; color: #555; font-size: 14px;
    transition: var(--transition);
}
.sidebar-nav li a:hover, .sidebar-nav li.active a {
    background: var(--gray-bg); color: var(--accent); padding-left: 25px;
}
.sidebar-contact { padding: 18px; text-align: center; }
.sidebar-contact .phone { font-size: 22px; color: var(--accent); font-weight: bold; }
.sidebar-contact p { font-size: 13px; color: #888; margin-top: 8px; }

/* === 内容区 === */
.content-area { }
.content-area .page-title { font-size: 24px; color: var(--primary); margin-bottom: 25px; padding-bottom: 12px; border-bottom: 2px solid var(--border); }

/* === 产品列表 === */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.valve-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 0 -40px; }
.valve-grid > a { display: block; }
@media (max-width: 992px) { .valve-grid { grid-template-columns: repeat(2, 1fr); margin: 0; } }
@media (max-width: 600px) { .valve-grid { grid-template-columns: 1fr; margin: 0; } }
.product-card {
    background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; transition: var(--transition);
}
.product-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); border-color: var(--primary-light); }
.product-card .product-img { height: 300px; background-size: contain; background-repeat: no-repeat; background-position: center; background-color: #fff; position: relative; }
.product-card .product-img .no-img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: #fff; color: #bbb; font-size: 50px; }
.product-card .product-body { padding: 18px; }
.product-card .product-body h4 { font-size: 15px; margin-bottom: 8px; line-height: 1.5; }
.product-card .product-body h4 a { color: #333; }
.product-card .product-body h4 a:hover { color: var(--accent); }
.product-card .product-body .product-cat { font-size: 12px; color: var(--gray); background: var(--gray-bg); padding: 3px 10px; border-radius: 15px; display: inline-block; }
.product-card .product-body .product-desc { font-size: 13px; color: #888; margin-top: 10px; line-height: 1.7; }

/* === 产品搜索/筛选 === */
.product-filter { margin-bottom: 25px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.product-filter select, .product-filter input {
    padding: 9px 14px; border: 1px solid var(--border); border-radius: 4px; font-size: 14px;
}
.product-filter select:focus, .product-filter input:focus { outline: none; border-color: var(--primary); }
.product-filter input[type="text"] { min-width: 250px; }
.product-filter .btn-search {
    padding: 9px 22px; background: var(--primary); color: var(--white);
    border: none; border-radius: 4px; cursor: pointer; font-size: 14px; transition: var(--transition);
}
.product-filter .btn-search:hover { background: var(--primary-dark); }

/* === 产品详情 === */
.product-detail { }
.product-detail .product-gallery { margin-bottom: 30px; }
.product-detail .product-gallery .main-img {
    width: 100%; height: 400px; background-size: contain; background-repeat: no-repeat;
    background-position: center; background-color: #fff; border-radius: var(--radius);
    border: 1px solid var(--border);
}
.product-detail .product-info h3 { font-size: 26px; color: var(--primary); margin-bottom: 15px; }
.product-detail .product-info .product-meta { margin-bottom: 20px; }
.product-detail .product-info .product-meta span {
    display: inline-block; margin-right: 20px; font-size: 14px; color: var(--gray);
}
.product-detail .product-desc { margin: 30px 0; line-height: 2; }

/* 规格表 */
.specs-table { width: 100%; border-collapse: collapse; margin: 25px 0; table-layout: auto; }
.specs-table th, .specs-table td { padding: 10px 15px; border: 1px solid black; text-align: center; }
.specs-table th { background: var(--primary); color: var(--white); font-weight: 500; white-space: nowrap; }
.specs-table td { white-space: nowrap; }
.specs-table tr:nth-child(even) td { background: var(--gray-bg); }

/* === 新闻列表 === */
.news-list { }
.news-list .news-item {
    padding: 20px 0; border-bottom: 1px solid var(--border);
    display: grid; grid-template-columns: 200px 1fr; gap: 25px; align-items: start;
}
.news-list .news-item .news-thumb { height: 140px; background-size: contain; background-repeat: no-repeat; background-position: center; border-radius: var(--radius); background-color: #eee; }
.news-list .news-item .news-info h4 { font-size: 18px; margin-bottom: 8px; }
.news-list .news-item .news-info h4 a { color: #333; }
.news-list .news-item .news-info h4 a:hover { color: var(--accent); }
.news-list .news-item .news-info .meta { font-size: 13px; color: var(--gray); margin-bottom: 10px; }
.news-list .news-item .news-info .meta span { margin-right: 15px; }
.news-list .news-item .news-info .summary { font-size: 14px; color: #777; line-height: 1.8; }

/* === 新闻详情 === */
.news-detail { }
.news-detail h2 { font-size: 26px; color: var(--primary); margin-bottom: 15px; line-height: 1.4; }
.news-detail .news-meta { font-size: 14px; color: var(--gray); padding-bottom: 15px; border-bottom: 1px solid var(--border); margin-bottom: 25px; }
.news-detail .news-meta span { margin-right: 20px; }
.news-detail .news-body { line-height: 2; font-size: 15px; }
.news-detail .news-body img { max-width: 100%; margin: 20px 0; border-radius: var(--radius); }
.news-detail .news-body p { margin-bottom: 15px; }
.news-pager { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; }

/* === 联系页面 === */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info .info-item { display: flex; gap: 15px; margin-bottom: 25px; }
.contact-info .info-item .info-icon {
    width: 45px; height: 45px; background: var(--primary); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--white); font-size: 18px; flex-shrink: 0;
}
.contact-info .info-item h5 { font-size: 15px; color: var(--primary); margin-bottom: 4px; }
.contact-info .info-item p { font-size: 14px; color: #666; }
.contact-map { margin-top: 40px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.contact-map iframe { width: 100%; height: 350px; border: none; display: block; }

/* === 留言表单 === */
.message-form { background: var(--white); padding: 30px; border-radius: var(--radius); box-shadow: var(--shadow); }
.message-form h3 { font-size: 22px; color: var(--primary); margin-bottom: 25px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 14px; color: #555; }
.form-group label .required { color: var(--accent); }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 4px;
    font-size: 14px; font-family: inherit; transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,60,109,0.1); }
.form-group textarea { resize: vertical; min-height: 120px; }
.btn-submit {
    padding: 12px 40px; background: var(--accent); color: var(--white);
    border: none; border-radius: 30px; font-size: 16px; font-weight: 600;
    cursor: pointer; transition: var(--transition);
}
.btn-submit:hover { background: var(--accent-hover); transform: translateY(-2px); }

/* === 分页 === */
.pagination { margin-top: 30px; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 5px; }
.pagination .page-link {
    display: inline-block; padding: 8px 14px; border: 1px solid var(--border);
    border-radius: 4px; color: #555; font-size: 14px; transition: var(--transition);
}
.pagination .page-link:hover, .pagination .page-link.active {
    background: var(--primary); color: var(--white); border-color: var(--primary);
}
.pagination .page-dots { padding: 8px 6px; color: var(--gray); }
.pagination .page-info { color: var(--gray); font-size: 13px; margin-left: 12px; }

/* === 定制页面 === */
.custom-page {}
.custom-intro { margin-bottom: 40px; }
.custom-intro h2 { font-size: 26px; color: var(--primary); margin-bottom: 20px; }
.custom-intro p { line-height: 2; color: #555; margin-bottom: 15px; }
.custom-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; margin: 35px 0; }
.custom-feature-item { text-align: center; padding: 30px 20px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.custom-feature-item .feature-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.custom-feature-item .feature-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(255,255,255,0.1) 15%, rgba(255,255,255,0.55) 50%, rgba(255,255,255,0.95) 78%); z-index: 1; }
.custom-feature-item .feature-icon { width: 60px; height: 60px; margin: 0 auto 12px; position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; }
.custom-feature-item .feature-icon::before { content: attr(data-emoji); font-size: 36px; line-height: 1; }
.custom-feature-item .feature-icon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; z-index: 3; }
.custom-feature-item h4 { font-size: 17px; color: var(--primary); margin-bottom: 10px; position: relative; z-index: 2; }
.custom-feature-item p { font-size: 13px; color: #555; line-height: 1.8; position: relative; z-index: 2; }
.custom-process { margin: 40px 0; }
.custom-process h3 { font-size: 22px; color: var(--primary); margin-bottom: 25px; text-align: center; }
.process-steps { display: flex; gap: 15px; }
.process-step { flex: 1; text-align: center; padding: 25px 15px; background: var(--gray-bg); border-radius: var(--radius); position: relative; }
.process-step .step-num {
    width: 40px; height: 40px; background: var(--primary); color: var(--white);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 12px; font-weight: bold; font-size: 18px;
}
.custom-gallery { margin: 40px 0; }
.custom-gallery h3 { font-size: 22px; color: var(--primary); margin-bottom: 25px; text-align: center; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.gallery-item { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); position: relative; }
.gallery-item img { width: 100%; height: 200px; object-fit: cover; transition: var(--transition); }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .gallery-caption {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: rgba(0,0,0,0.65); color: var(--white); padding: 10px;
    font-size: 13px; text-align: center;
}

/* === 提示框 === */
.alert { padding: 15px 20px; border-radius: var(--radius); margin-bottom: 20px; font-size: 14px; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-info { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }

/* === 回到顶部 === */
.back-to-top {
    position: fixed; bottom: 30px; right: 30px;
    width: 45px; height: 45px; background: var(--primary);
    color: var(--white); border-radius: 50%; display: flex;
    align-items: center; justify-content: center; font-size: 20px;
    cursor: pointer; z-index: 999; opacity: 0; visibility: hidden;
    transition: var(--transition); box-shadow: var(--shadow);
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--accent); }

/* === 在线客服悬浮 === */
.float-service {
    position: fixed; right: 0; top: 55%; z-index: 998;
    display: flex; flex-direction: column; gap: 2px;
}
.float-service a {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 15px; background: var(--primary); color: var(--white);
    font-size: 13px; writing-mode: horizontal-tb; transition: var(--transition);
}
.float-service a:hover { background: var(--accent); padding-right: 25px; }
.float-service a i { font-size: 18px; }

/* === 响应式设计 === */

/* 平板端 */
@media (max-width: 992px) {
    .container { max-width: 100%; padding: 0 15px; }
    .hero-banner .banner-slide { height: 350px; padding-bottom: 10%; }
    .hero-banner .banner-content h2 { font-size: 28px; }
    .featured-grid { grid-template-columns: 1fr; }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .about-content { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .content-layout { grid-template-columns: 200px 1fr; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .news-list .news-item { grid-template-columns: 150px 1fr; }
    .contact-layout { grid-template-columns: 1fr; }
    .custom-features { grid-template-columns: repeat(2, 1fr); }
    .process-steps { flex-wrap: wrap; }
    .process-step { flex: 1 1 40%; }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

/* 手机端 */
@media (max-width: 768px) {
    .top-bar .top-right { display: none; }
    .site-header .container { flex-direction: column; text-align: center; gap: 10px; }
    .header-contact { text-align: center; }
    .menu-toggle { display: block; }
    .nav-list {
        display: none; width: 100%; flex-direction: column;
        background: var(--primary-dark); border-top: 1px solid rgba(255,255,255,0.1);
    }
    .nav-list.show { display: flex; }
    .nav-list > li > a { padding: 12px 15px; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .nav-list .dropdown-menu { position: static; display: none; background: rgba(0,0,0,0.15); }
    .nav-list .dropdown-menu.show { display: block; }
    .nav-list .dropdown-menu li a { color: #ddd; border-bottom-color: rgba(255,255,255,0.05); }
    .hero-banner .banner-slide { height: 280px; padding-bottom: 8%; }
    .hero-banner .banner-content { padding: 20px 0; }
    .hero-banner .banner-content h2 { font-size: 22px; }
    .hero-banner .banner-content p { font-size: 14px; }
    .hero-banner .banner-prev,
    .hero-banner .banner-next { width: 36px; height: 36px; font-size: 14px; }
    .hero-banner .banner-prev { left: 10px; }
    .hero-banner .banner-next { right: 10px; }
    .hero-banner .banner-dots { bottom: 15px; gap: 6px; }
    .hero-banner .banner-dots .dot { width: 8px; height: 8px; }
    .hero-banner .banner-dots .dot.active { width: 22px; }
    .featured-card .card-img { height: 200px; }
    .category-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .cat-card { padding: 20px 12px; }
    .news-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .content-layout { grid-template-columns: 1fr; }
    .sidebar { order: 2; }
    .content-area { order: 1; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .product-card .product-img { height: 220px; }
    .news-list .news-item { grid-template-columns: 1fr; }
    .news-list .news-item .news-thumb { height: 180px; }
    .product-filter { flex-direction: column; }
    .product-filter input[type="text"] { min-width: 100%; }
    .custom-features { grid-template-columns: 1fr; }
    .process-steps { flex-direction: column; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .section-title h2 { font-size: 24px; }
    .page-banner { height: 150px; }
    .page-banner .banner-text h2 { font-size: 22px; }
    .news-detail h2 { font-size: 20px; }
    .float-service { display: none; }
    .form-row { grid-template-columns: 1fr; }
}

/* 小屏手机 */
@media (max-width: 480px) {
    .hero-banner .banner-slide { height: 220px; padding-bottom: 6%; }
    .hero-banner .banner-content h2 { font-size: 18px; }
    .hero-banner .banner-prev,
    .hero-banner .banner-next { width: 30px; height: 30px; font-size: 12px; }
    .hero-banner .banner-prev { left: 5px; }
    .hero-banner .banner-next { right: 5px; }
    .category-grid { grid-template-columns: 1fr 1fr; }
    .product-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }
    .about-text .stats { flex-wrap: wrap; gap: 15px; }
}

/* ========================================
   富文本内容样式（编辑器输出）
   ======================================== */
.rich-content {
    line-height: 1.9;
    color: var(--text-main);
    word-wrap: break-word;
}
.rich-content h1,
.rich-content h2,
.rich-content h3,
.rich-content h4 {
    margin: 18px 0 12px;
    color: var(--primary);
    font-weight: 600;
}
.rich-content h1 { font-size: 1.6em; }
.rich-content h2 { font-size: 1.35em; }
.rich-content h3 { font-size: 1.15em; }
.rich-content h4 { font-size: 1.05em; }
.rich-content p {
    margin-bottom: 12px;
    min-height: 1em;
}
.rich-content ul,
.rich-content ol {
    padding-left: 28px;
    margin-bottom: 12px;
}
.rich-content ul { list-style: disc; }
.rich-content ul ul { list-style: circle; }
.rich-content ul ul ul { list-style: square; }
.rich-content ol { list-style: decimal; }
.rich-content li {
    margin-bottom: 4px;
}
.rich-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 10px 18px;
    margin: 14px 0;
    background: var(--gray-bg);
    color: var(--text-second);
    font-style: italic;
}
.rich-content a {
    color: var(--primary-light);
    text-decoration: underline;
}
.rich-content a:hover {
    color: var(--accent);
}
.rich-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 12px 0;
}
.rich-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 20px 0;
}
.rich-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
}
.rich-content table td,
.rich-content table th {
    border: 1px solid var(--border);
    padding: 8px 12px;
}
.rich-content table th {
    background: var(--gray-bg);
    font-weight: 600;
}
/* Quill编辑器输出的对齐类 */
.rich-content .ql-align-center { text-align: center; }
.rich-content .ql-align-right { text-align: right; }
.rich-content .ql-align-justify { text-align: justify; }
.rich-content .ql-indent-1 { padding-left: 2em; }
.rich-content .ql-indent-2 { padding-left: 4em; }
.rich-content .ql-indent-3 { padding-left: 6em; }
.rich-content .ql-indent-4 { padding-left: 8em; }
/* 兼容旧纯文本内容中的换行 */
.rich-content br { display: inline; }
