/**
 * 苏州富悦洧电子有限公司 - 企业官网主样式表
 * 作者：代可行
 * 兼容：IE10+
 */

/* ========================================
   1. CSS Reset / 基础样式
   ======================================== */

/* 全局盒模型 */
* {
    box-sizing: border-box;
}

/* 清理默认边距 */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

/* HTML5 旧浏览器兼容 */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}

body {
    line-height: 1.6;
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    color: #333333;
    background-color: #ffffff;
}

ol, ul {
    list-style: none;
}

blockquote, q {
    quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* a 标签默认样式 */
a {
    color: #1a5fb4;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #1558a0;
}

/* img 响应式 */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 清除浮动 */
.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}

.clearfix:after {
    clear: both;
}

.clearfix {
    *zoom: 1;
}

/* ========================================
   2. 布局
   ======================================== */

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

/* 响应式布局 */
@media (max-width: 768px) {
    .container {
        width: 100%;
        padding: 0 15px;
    }
}

/* 响应式 - 中等屏幕 */
@media (max-width: 992px) {
    .container {
        width: 100%;
        padding: 0 15px;
    }
}

/* ========================================
   3. 顶部信息栏 .top-bar
   ======================================== */

.top-bar {
    background: #2c3e50;
    color: #ffffff;
    height: 36px;
    line-height: 36px;
    font-size: 13px;
}

.top-bar .container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.top-bar-left,
.top-bar-right {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.top-bar-item {
    margin-right: 20px;
}

.top-bar-item i {
    margin-right: 4px;
}

/* ========================================
   4. 头部 .header
   ======================================== */

.header {
    background: #ffffff;
    height: 80px;
    line-height: 80px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    position: relative;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.shrink {
    height: 60px;
    line-height: 60px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.header .container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

/* Logo */
.logo {
    float: left;
    height: 50px;
    line-height: 50px;
}

.logo img {
    height: 50px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
}

/* 导航 */
.nav {
    float: right;
}

.nav ul {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

.nav li {
    position: relative;
}

.nav a {
    display: block;
    font-size: 15px;
    padding: 0 20px;
    height: 80px;
    line-height: 80px;
    color: #333333;
    transition: all 0.3s ease;
}

.header.shrink .nav a {
    height: 60px;
    line-height: 60px;
}

.nav a:hover {
    background: #1a5fb4;
    color: #ffffff;
}

.nav .active > a {
    border-bottom: 3px solid #1a5fb4;
    color: #1a5fb4;
}

.nav .active > a:hover {
    background: #1a5fb4;
    color: #ffffff;
}

/* 下拉菜单 */
.sub-nav {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    width: 160px;
    display: none;
    z-index: 1001;
}

.nav li:hover > .sub-nav {
    display: block;
}

.sub-nav li {
    border-bottom: 1px solid #e0e0e0;
}

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

.sub-nav a {
    height: 40px !important;
    line-height: 40px !important;
    padding: 0 15px;
    font-size: 14px;
    color: #333333 !important;
    background: none !important;
}

.sub-nav a:hover {
    background: #f5f7fa !important;
    color: #1a5fb4 !important;
}

/* 移动端汉堡按钮 */
.menu-toggle {
    display: none;
    width: 30px;
    height: 24px;
    position: relative;
    cursor: pointer;
    float: right;
    margin-top: 28px;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: #333333;
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.menu-toggle span:nth-child(1) {
    top: 0;
}

.menu-toggle span:nth-child(2) {
    top: 10px;
}

.menu-toggle span:nth-child(3) {
    top: 20px;
}

.menu-toggle.active span:nth-child(1) {
    top: 10px;
    transform: rotate(45deg);
}

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

.menu-toggle.active span:nth-child(3) {
    top: 10px;
    transform: rotate(-45deg);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #ffffff;
        box-shadow: 0 2px 10px rgba(0,0,0,0.15);
        float: none;
        display: none;
    }

    .nav.active {
        display: block;
    }

    .nav ul {
        display: block;
    }

    .nav li {
        border-bottom: 1px solid #e0e0e0;
    }

    .nav a {
        height: 50px !important;
        line-height: 50px !important;
    }

    .sub-nav {
        position: static;
        width: 100%;
        box-shadow: none;
    }
}

/* ========================================
   5. 轮播横幅 .banner
   ======================================== */

.banner {
    width: 100%;
    height: 500px;
    position: relative;
    overflow: hidden;
    background: #f5f7fa;
}

.banner-slides {
    width: 100%;
    height: 100%;
    position: relative;
}

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

.banner-slide.active {
    opacity: 1;
    display: block;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #ffffff;
    z-index: 10;
}

.banner-title {
    font-size: 48px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 20px;
}

.banner-text {
    font-size: 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* 轮播箭头 */
.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.5);
    color: #ffffff;
    font-size: 24px;
    text-align: center;
    line-height: 50px;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
}

.banner-arrow:hover {
    background: rgba(26, 95, 180, 0.8);
}

.banner-prev {
    left: 20px;
}

.banner-next {
    right: 20px;
}

/* 轮播圆点 */
.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    z-index: 20;
}

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

.banner-dot.active {
    background: #ffffff;
    transform: scale(1.2);
}

.banner-dot:hover {
    background: #ffffff;
}

/* 响应式 */
@media (max-width: 768px) {
    .banner {
        height: 250px;
    }

    .banner-title {
        font-size: 24px;
    }

    .banner-text {
        font-size: 14px;
    }

    .banner-arrow {
        width: 36px;
        height: 36px;
        line-height: 36px;
        font-size: 18px;
    }

    .banner-content {
        padding: 0 20px;
    }
}

/* ========================================
   6. 区块通用 .section
   ======================================== */

.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 28px;
    color: #333333;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #1a5fb4;
}

.section-desc {
    text-align: center;
    color: #666666;
    font-size: 16px;
    margin-bottom: 40px;
}

/* ========================================
   7. 首页公司简介 .about-preview
   ======================================== */

.about-preview {
    background: #ffffff;
}

.about-preview .container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 40px;
}

.about-content {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
}

.about-content h2 {
    font-size: 28px;
    color: #333333;
    margin-bottom: 20px;
}

.about-content p {
    color: #666666;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-image {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
}

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

@media (max-width: 768px) {
    .about-preview .container {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
    }
}

/* ========================================
   8. 产品卡片 .product-card
   ======================================== */

.products-section {
    background: #f5f7fa;
}

.products-grid {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin: -15px;
}

.product-card {
    width: 33.333%;
    padding: 15px;
}

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

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

.product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

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

.product-info {
    padding: 15px;
}

.product-name {
    font-size: 16px;
    font-weight: bold;
    color: #333333;
    margin-bottom: 8px;
}

.product-model {
    font-size: 13px;
    color: #666666;
    margin-bottom: 15px;
}

.product-btn {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid #1a5fb4;
    color: #1a5fb4;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.product-btn:hover {
    background: #1a5fb4;
    color: #ffffff;
}

@media (max-width: 992px) {
    .product-card {
        width: 50%;
    }
}

@media (max-width: 768px) {
    .product-card {
        width: 100%;
    }
}

/* ========================================
   9. 新闻列表 .news-item
   ======================================== */

.news-section {
    background: #ffffff;
}

.news-list {
    max-width: 800px;
    margin: 0 auto;
}

.news-item {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    margin-bottom: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.news-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}

.news-date {
    width: 80px;
    background: #1a5fb4;
    color: #ffffff;
    text-align: center;
    padding: 15px 0;
    flex-shrink: 0;
}

.news-date .month {
    font-size: 14px;
    display: block;
    margin-bottom: 5px;
}

.news-date .day {
    font-size: 24px;
    font-weight: bold;
    display: block;
}

.news-content {
    padding: 20px;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
}

.news-title {
    font-size: 18px;
    font-weight: bold;
    color: #333333;
    margin-bottom: 10px;
}

.news-title a {
    color: inherit;
}

.news-title a:hover {
    color: #1a5fb4;
}

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

@media (max-width: 768px) {
    .news-date {
        width: 60px;
        padding: 10px 0;
    }

    .news-date .day {
        font-size: 18px;
    }

    .news-content {
        padding: 15px;
    }

    .news-title {
        font-size: 16px;
    }
}

/* ========================================
   10. 分页 .pagination
   ======================================== */

.pagination {
    text-align: center;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 3px;
    border: 1px solid #e0e0e0;
    background: #ffffff;
    color: #333333;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination a:hover {
    border-color: #1a5fb4;
    color: #1a5fb4;
}

.pagination .current {
    background: #1a5fb4;
    border-color: #1a5fb4;
    color: #ffffff;
}

.pagination .prev,
.pagination .next {
    font-weight: bold;
}

/* ========================================
   11. 页脚 .footer
   ======================================== */

.footer {
    background: #2c3e50;
    color: #b0bec5;
    padding: 50px 0 20px;
}

.footer-grid {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-col {
    width: 25%;
    padding: 0 15px;
}

.footer-col h3 {
    color: #ffffff;
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #1a5fb4;
    display: inline-block;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #b0bec5;
    font-size: 14px;
}

.footer-col ul li a:hover {
    color: #ffffff;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #3d566e;
    font-size: 13px;
}

@media (max-width: 992px) {
    .footer-col {
        width: 50%;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .footer-col {
        width: 100%;
    }
}

/* ========================================
   12. 返回顶部 .back-top
   ======================================== */

.back-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 50px;
    height: 50px;
    background: #1a5fb4;
    color: #ffffff;
    text-align: center;
    line-height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    z-index: 9999;
    transition: all 0.3s ease;
}

.back-top:hover {
    background: #1558a0;
}

.back-top.show {
    display: block;
}

/* ========================================
   13. 产品详情页
   ======================================== */

.product-detail {
    padding: 40px 0;
}

.product-detail .container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 40px;
}

.product-image-box {
    width: 50%;
}

.product-image-box img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.product-info-box {
    width: 50%;
}

.product-info-box h1 {
    font-size: 28px;
    color: #333333;
    margin-bottom: 15px;
}

.product-info-box .model {
    font-size: 16px;
    color: #666666;
    margin-bottom: 20px;
}

.product-info-box .description {
    color: #666666;
    line-height: 1.8;
    margin-bottom: 25px;
}

.product-info-box .price {
    font-size: 24px;
    color: #ff7800;
    font-weight: bold;
    margin-bottom: 25px;
}

.spec-table {
    width: 100%;
    border: 1px solid #e0e0e0;
    margin-bottom: 25px;
}

.spec-table th,
.spec-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
    text-align: left;
}

.spec-table th {
    background: #f5f7fa;
    color: #333333;
    font-weight: bold;
    width: 140px;
}

.spec-table td {
    color: #666666;
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
    border-bottom: none;
}

@media (max-width: 768px) {
    .product-detail .container {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
    }

    .product-image-box,
    .product-info-box {
        width: 100%;
    }
}

/* ========================================
   14. 新闻详情页
   ======================================== */

.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.article-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.article-header h1 {
    font-size: 28px;
    color: #333333;
    margin-bottom: 15px;
}

.article-meta {
    color: #666666;
    font-size: 14px;
}

.article-meta span {
    margin: 0 10px;
}

.article-body {
    color: #333333;
    line-height: 1.8;
    font-size: 16px;
}

.article-body h2 {
    font-size: 22px;
    color: #333333;
    margin: 30px 0 15px;
}

.article-body h3 {
    font-size: 18px;
    color: #333333;
    margin: 25px 0 12px;
}

.article-body p {
    margin-bottom: 15px;
}

.article-body img {
    max-width: 100%;
    margin: 20px 0;
    border-radius: 8px;
}

.article-nav {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.article-nav a {
    color: #666666;
    font-size: 14px;
}

.article-nav a:hover {
    color: #1a5fb4;
}

/* ========================================
   15. 联系页面
   ======================================== */

.contact-section {
    padding: 40px 0;
}

.contact-wrapper {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 40px;
}

.contact-info {
    width: 40%;
}

.contact-info h2 {
    font-size: 24px;
    color: #333333;
    margin-bottom: 20px;
}

.contact-info p {
    color: #666666;
    line-height: 1.8;
    margin-bottom: 15px;
}

.contact-form {
    width: 60%;
}

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

.form-label {
    display: block;
    font-size: 14px;
    color: #333333;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #1a5fb4;
    box-shadow: 0 0 0 3px rgba(26, 95, 180, 0.1);
}

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

.form-submit {
    padding: 12px 40px;
    background: #1a5fb4;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-submit:hover {
    background: #1558a0;
}

@media (max-width: 768px) {
    .contact-wrapper {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
    }

    .contact-info,
    .contact-form {
        width: 100%;
    }
}

/* ========================================
   16. 后台管理样式
   ======================================== */

/* 后台整体布局 */
.admin-wrapper {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    min-height: 100vh;
}

/* 左侧菜单 */
.admin-sidebar {
    width: 220px;
    background: #2c3e50;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    z-index: 1000;
}

.admin-logo {
    height: 60px;
    line-height: 60px;
    text-align: center;
    background: #1a5fb4;
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
}

.admin-menu {
    padding-top: 20px;
}

.admin-menu li {
    height: 48px;
    line-height: 48px;
}

.admin-menu a {
    display: block;
    padding: 0 20px;
    color: #b0bec5;
    font-size: 14px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.admin-menu a:hover {
    background: #34495e;
    color: #ffffff;
}

.admin-menu .active a {
    background: #34495e;
    color: #ffffff;
    border-left-color: #3498db;
}

.admin-menu .submenu {
    display: none;
    background: #1a252f;
}

.admin-menu .submenu a {
    padding-left: 40px;
    font-size: 13px;
}

.admin-menu li:hover > .submenu {
    display: block;
}

/* 右侧内容区 */
.admin-content {
    margin-left: 220px;
    padding: 20px;
    background: #f5f7fa;
    min-height: 100vh;
}

.admin-header {
    background: #ffffff;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.admin-header h2 {
    font-size: 20px;
    color: #333333;
}

.admin-header .user-info {
    color: #666666;
    font-size: 14px;
}

/* 数据表格 */
.data-table {
    width: 100%;
    background: #ffffff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.data-table th,
.data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.data-table th {
    background: #f5f7fa;
    color: #333333;
    font-weight: bold;
    font-size: 14px;
}

.data-table td {
    color: #666666;
    font-size: 14px;
}

.data-table tr:hover td {
    background: #f9fafb;
}

.data-table tr:nth-child(even) td {
    background: #fafbfc;
}

.data-table tr:nth-child(even):hover td {
    background: #f9fafb;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    text-align: center;
}

.btn-primary {
    background: #1a5fb4;
    color: #ffffff;
    border-color: #1a5fb4;
}

.btn-primary:hover {
    background: #1558a0;
    border-color: #1558a0;
}

.btn-success {
    background: #27ae60;
    color: #ffffff;
    border-color: #27ae60;
}

.btn-success:hover {
    background: #219a52;
    border-color: #219a52;
}

.btn-danger {
    background: #e74c3c;
    color: #ffffff;
    border-color: #e74c3c;
}

.btn-danger:hover {
    background: #c0392b;
    border-color: #c0392b;
}

.btn-secondary {
    background: #95a5a6;
    color: #ffffff;
    border-color: #95a5a6;
}

.btn-secondary:hover {
    background: #7f8c8d;
    border-color: #7f8c8d;
}

.btn-sm {
    padding: 5px 12px;
    font-size: 12px;
}

.btn-lg {
    padding: 12px 30px;
    font-size: 16px;
}

/* 表单样式 */
.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: inline-block;
    width: 120px;
    text-align: right;
    padding-right: 15px;
    font-size: 14px;
    color: #333333;
    font-weight: bold;
    vertical-align: middle;
}

.form-input {
    display: inline-block;
    width: 400px;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #1a5fb4;
    box-shadow: 0 0 0 3px rgba(26, 95, 180, 0.1);
}

.form-textarea {
    display: inline-block;
    width: 400px;
    min-height: 100px;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
}

.form-textarea:focus {
    outline: none;
    border-color: #1a5fb4;
    box-shadow: 0 0 0 3px rgba(26, 95, 180, 0.1);
}

.form-select {
    display: inline-block;
    width: 400px;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    background: #ffffff;
    cursor: pointer;
}

.form-checkbox,
.form-radio {
    margin-right: 5px;
}

.form-inline {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    margin-bottom: 15px;
}

.form-inline .form-label {
    width: auto;
    padding-right: 10px;
}

.form-inline .form-input {
    width: auto;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
}

/* 统计卡片 */
.stats-grid {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin: -15px;
}

.stat-card {
    width: 25%;
    padding: 15px;
}

.stat-card-inner {
    background: #ffffff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.stat-card h3 {
    font-size: 14px;
    color: #666666;
    margin-bottom: 10px;
}

.stat-card .number {
    font-size: 32px;
    color: #1a5fb4;
    font-weight: bold;
}

@media (max-width: 992px) {
    .stat-card {
        width: 50%;
    }
}

@media (max-width: 768px) {
    .stat-card {
        width: 100%;
    }

    .form-label {
        display: block;
        width: 100%;
        text-align: left;
        margin-bottom: 5px;
    }

    .form-input,
    .form-textarea,
    .form-select {
        width: 100%;
    }
}

/* 提示信息 */
.alert {
    padding: 15px 20px;
    border-radius: 4px;
    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-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* 登录页 */
.login-page {
    min-height: 100vh;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    background: #f5f7fa;
}

.login-box {
    width: 400px;
    background: #ffffff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.login-box h2 {
    text-align: center;
    font-size: 24px;
    color: #333333;
    margin-bottom: 30px;
}

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

.login-box .form-label {
    display: block;
    width: 100%;
    text-align: left;
    margin-bottom: 8px;
}

.login-box .form-input {
    width: 100%;
}

.login-box .btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
}

.login-remember {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    margin-bottom: 20px;
}

.login-remember input {
    margin-right: 5px;
}

/* 标签 */
.badge {
    display: inline-block;
    padding: 3px 8px;
    font-size: 12px;
    border-radius: 10px;
    background: #1a5fb4;
    color: #ffffff;
}

.badge-success {
    background: #27ae60;
}

.badge-danger {
    background: #e74c3c;
}

.badge-warning {
    background: #f39c12;
}

.badge-info {
    background: #3498db;
}

/* 分页器（后台） */
.admin-pagination {
    margin-top: 20px;
    text-align: right;
}

.admin-pagination a,
.admin-pagination span {
    display: inline-block;
    padding: 6px 12px;
    margin-left: 5px;
    border: 1px solid #e0e0e0;
    background: #ffffff;
    color: #333333;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-pagination a:hover {
    border-color: #1a5fb4;
    color: #1a5fb4;
}

.admin-pagination .current {
    background: #1a5fb4;
    border-color: #1a5fb4;
    color: #ffffff;
}

/* 搜索框 */
.search-box {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    margin-bottom: 20px;
}

.search-input {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    padding: 8px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
}

.search-input:focus {
    outline: none;
    border-color: #1a5fb4;
}

/* 操作栏 */
.action-bar {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    margin-bottom: 20px;
}

.action-bar-left,
.action-bar-right {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 10px;
}

/* 卡片 */
.card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.card-header {
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.card-header h3 {
    font-size: 18px;
    color: #333333;
}

.card-body {
    padding: 20px;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
}

.modal.active {
    display: block;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    border-radius: 8px;
    width: 500px;
    max-width: 90%;
    max-height: 90vh;
    overflow: auto;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.modal-header h3 {
    font-size: 18px;
    color: #333333;
}

.modal-close {
    font-size: 24px;
    color: #999999;
    cursor: pointer;
}

.modal-close:hover {
    color: #333333;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #e0e0e0;
    text-align: right;
}

.modal-footer .btn {
    margin-left: 10px;
}

/* ========================================
   17. 响应式样式补充
   ======================================== */

@media (max-width: 992px) {
    .products-grid .product-card {
        width: 50%;
    }

    .footer-grid .footer-col {
        width: 50%;
    }

    .stats-grid .stat-card {
        width: 50%;
    }
}

@media (max-width: 768px) {
    .products-grid .product-card {
        width: 100%;
    }

    .footer-grid .footer-col {
        width: 100%;
    }

    .stats-grid .stat-card {
        width: 100%;
    }

    .top-bar {
        display: none;
    }

    .header {
        height: 60px;
    }

    .logo {
        height: 40px;
    }

    .logo img {
        height: 40px;
    }

    .section {
        padding: 40px 0;
    }

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

/* ========================================
   18. 动画
   ======================================== */

/* 淡入动画 */
.fade-in {
    -webkit-animation: fadeIn 0.6s ease;
    animation: fadeIn 0.6s ease;
}

@-webkit-keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 上浮动画 */
.slide-up {
    -webkit-animation: slideUp 0.5s ease;
    animation: slideUp 0.5s ease;
}

@-webkit-keyframes slideUp {
    from {
        opacity: 0;
        -webkit-transform: translateY(20px);
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        -webkit-transform: translateY(20px);
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

/* 卡片悬停过渡 */
.product-card-inner,
.news-item,
.stat-card-inner {
    transition: all 0.3s ease;
}

/* 按钮悬停 */
.btn {
    transition: all 0.3s ease;
}

/* 链接悬停 */
a {
    transition: all 0.3s ease;
}

/* 输入框聚焦 */
.form-input,
.form-textarea,
.form-select {
    transition: all 0.3s ease;
}

/* ========================================
   19. HTML模板补全样式
   对齐PHP模板中使用的class
   ======================================== */

/* --- 顶部信息栏补全 --- */
.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar-left span {
    margin-right: 20px;
}
.top-bar-right a {
    color: #b0bec5;
    font-size: 13px;
}
.top-bar-right a:hover {
    color: #fff;
}

/* --- 主头部 --- */
.main-header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}
.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
}
.logo img {
    height: 50px;
    width: auto;
}
.logo-text {
    font-size: 16px;
    font-weight: bold;
    color: #1a5fb4;
    white-space: nowrap;
}

/* --- 主导航 --- */
.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}
.main-nav > ul > li {
    position: relative;
}
.main-nav > ul > li > a {
    display: block;
    padding: 15px 20px;
    color: #333;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s;
}
.main-nav > ul > li:hover > a,
.main-nav > ul > li.active > a {
    color: #1a5fb4;
}
.main-nav > ul > li.active > a {
    border-bottom: 3px solid #1a5fb4;
}

/* 下拉菜单 */
.has-dropdown > a i {
    margin-left: 4px;
    font-size: 12px;
}
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 160px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border-top: 3px solid #1a5fb4;
    z-index: 1001;
    /* 覆盖 .nav ul 的 flex 布局 */
    flex-direction: column;
    /* 防止鼠标移出间隙 */
    margin-top: 0;
}
/* 修复鼠标移出间隙问题 - 在菜单上方添加不可见区域 */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: transparent;
}
.dropdown-menu li {
    width: 100%;
}
.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: #333;
    font-size: 14px;
    height: auto;
    line-height: 1.4;
    white-space: nowrap;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s;
}
.has-dropdown:hover > .dropdown-menu {
    /* JS控制显示隐藏，此处保留作为无JS降级 */
    display: block;
}
.dropdown-menu li a:hover {
    background: #f5f7fa;
    color: #1a5fb4;
}

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

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
        flex-shrink: 0;
    }
    .header-inner {
        padding: 8px 15px;
    }
    .logo {
        max-width: calc(100% - 50px);
        overflow: hidden;
    }
    .logo a {
        gap: 6px;
    }
    .logo img {
        height: 32px;
        flex-shrink: 0;
    }
    .logo-text {
        display: none;
    }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        box-shadow: 0 4px 15px rgba(0,0,0,0.15);
        z-index: 1000;
    }
    .main-nav.open {
        display: block;
    }
    .main-nav ul {
        flex-direction: column;
    }
    .main-nav > ul > li > a {
        padding: 12px 20px;
        border-bottom: 1px solid #f0f0f0;
    }
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border-top: none;
        padding-left: 20px;
    }
    .has-dropdown:hover > .dropdown-menu {
        display: none;
    }
    .has-dropdown.open > .dropdown-menu {
        display: block;
    }
    .hidden-xs {
        display: none !important;
    }
}

/* --- 主内容区 --- */
.main-content {
    min-height: calc(100vh - 400px);
}

/* --- 轮播横幅 --- */
.hero-slider {
    position: relative;
    height: 500px;
    overflow: hidden;
}
.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}
.slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    display: none;
}
.slide.active {
    display: block;
}
.slide-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.slide-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 40, 80, 0.55);
    z-index: 1;
}
.slide-content {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    padding: 0 20px;
    z-index: 2;
    max-width: 800px;
    width: 100%;
}
.slide-content h2 {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
.slide-content p {
    font-size: 20px;
    margin-bottom: 25px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* 轮播箭头 */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.4);
    color: #fff;
    border: none;
    font-size: 20px;
    cursor: pointer;
    z-index: 20;
    transition: background 0.3s;
}
.slider-arrow:hover {
    background: rgba(26,95,180,0.8);
}
.slider-prev {
    left: 20px;
}
.slider-next {
    right: 20px;
}

/* 轮播圆点 */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}
.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
}
.slider-dots .dot.active {
    background: #fff;
    transform: scale(1.3);
}
.slider-dots .dot:hover {
    background: #fff;
}

@media (max-width: 768px) {
    .hero-slider {
        height: 280px;
    }
    .slide-content h2 {
        font-size: 24px;
    }
    .slide-content p {
        font-size: 14px;
    }
    .slider-arrow {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

/* --- 区块通用 --- */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}
.section-header h2 {
    font-size: 28px;
    color: #333;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}
.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #1a5fb4;
}
.section-header p {
    color: #999;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 8px;
}
.section-more {
    text-align: center;
    margin-top: 30px;
}

/* --- 关于我们区块 --- */
.about-section {
    background: #fff;
}
.about-grid {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}
.about-text {
    flex: 1;
}
.about-text h2 {
    font-size: 22px;
    color: #333;
    margin-bottom: 15px;
}
.about-text p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 10px;
}
.about-text ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 15px;
}
.about-text li {
    color: #666;
    line-height: 1.8;
    margin-bottom: 5px;
}
.about-image {
    flex: 1;
}
.about-image img {
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .about-grid {
        flex-direction: column;
    }
}

/* --- 产品区块 --- */
.products-section {
    background: #f5f7fa;
}
.product-grid {
    display: flex;
    flex-wrap: wrap;
    margin: -15px;
}
.product-card {
    width: 25%;
    padding: 15px;
}
.product-card a {
    display: block;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: all 0.3s;
    color: inherit;
}
.product-card a:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.product-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f7fa;
}
.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.product-card a:hover .product-img img {
    transform: scale(1.05);
}
.product-info {
    padding: 15px;
}
.product-info h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}
.product-model {
    font-size: 13px;
    color: #999;
    margin-bottom: 10px;
}
.btn-link {
    font-size: 14px;
    color: #1a5fb4;
}
.btn-link:hover {
    color: #1558a0;
}
.btn-link i {
    margin-left: 3px;
    transition: transform 0.3s;
}
.btn-link:hover i {
    transform: translateX(3px);
}

@media (max-width: 992px) {
    .product-card {
        width: 33.333%;
    }
}
@media (max-width: 768px) {
    .product-card {
        width: 50%;
    }
}
@media (max-width: 480px) {
    .product-card {
        width: 100%;
    }
}

/* --- 新闻区块 --- */
.news-section {
    background: #fff;
}
.news-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.news-card {
    flex: 1;
    min-width: 280px;
}
.news-card a {
    display: flex;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s;
    color: inherit;
}
.news-card a:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}
.news-date {
    width: 80px;
    background: #1a5fb4;
    color: #fff;
    text-align: center;
    padding: 15px 10px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.date-day {
    font-size: 28px;
    font-weight: bold;
    line-height: 1.2;
}
.date-ym {
    font-size: 12px;
    opacity: 0.8;
}
.news-info {
    padding: 15px 20px;
    flex: 1;
}
.news-info h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
}
.news-info p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* --- 资质认证区块 --- */
.cert-section {
    background: #f5f7fa;
}
.cert-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}
.cert-item {
    text-align: center;
}
.cert-item img {
    width: 80px;
    height: 100px;
    margin: 0 auto 10px;
    object-fit: contain;
}
.cert-item span {
    display: block;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}
.cert-item p {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

/* --- 页面Banner --- */
.page-banner {
    height: 200px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    position: relative;
}
.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}
.page-banner .container {
    position: relative;
    z-index: 1;
}
.page-banner h1 {
    font-size: 36px;
    margin-bottom: 10px;
}
.page-banner p {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 3px;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .page-banner {
        height: 150px;
    }
    .page-banner h1 {
        font-size: 24px;
    }
}

/* --- 面包屑 --- */
.breadcrumb-bar {
    background: #f5f7fa;
    padding: 12px 0;
    font-size: 14px;
    color: #999;
    border-bottom: 1px solid #e0e0e0;
}
.breadcrumb-bar a {
    color: #666;
}
.breadcrumb-bar a:hover {
    color: #1a5fb4;
}
.breadcrumb-bar strong {
    color: #333;
}
.breadcrumb-bar span {
    margin: 0 6px;
    color: #ccc;
}

/* --- 页面通用 --- */
.page-section {
    padding: 40px 0;
}
.page-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #1a5fb4;
    display: inline-block;
}
.page-content {
    line-height: 1.8;
    color: #555;
}
.page-content h2 {
    font-size: 20px;
    color: #333;
    margin: 20px 0 10px;
}
.page-content p {
    margin-bottom: 12px;
}
.page-content ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 12px;
}
.page-content li {
    margin-bottom: 5px;
}

/* 两栏布局 */
.page-layout {
    display: flex;
    gap: 30px;
}
.page-main {
    flex: 1;
}
.page-sidebar {
    width: 280px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .page-layout {
        flex-direction: column;
    }
    .page-sidebar {
        width: 100%;
    }
}

/* 侧栏组件 */
.sidebar-widget {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 20px;
    margin-bottom: 20px;
}
.widget-title {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #1a5fb4;
}
.sidebar-contact li {
    padding: 6px 0;
    font-size: 14px;
    color: #666;
}
.sidebar-contact li i {
    margin-right: 8px;
    color: #1a5fb4;
    width: 16px;
}
.cert-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.cert-item-small {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: #f5f7fa;
    border-radius: 4px;
}
.cert-item-small img {
    width: 40px;
    height: 50px;
    object-fit: contain;
}
.cert-item-small span {
    font-size: 13px;
    color: #555;
}

/* --- 联系页面 --- */
.contact-page {
    display: flex;
    gap: 40px;
    padding: 30px 0;
}
.contact-info-col {
    flex: 1;
}
.contact-form-col {
    flex: 1;
}
.contact-form-col h2 {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
}
.contact-intro h2 {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
}
.contact-intro p {
    color: #666;
    margin-bottom: 10px;
}
.contact-details {
    margin: 25px 0;
}
.contact-details h2 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
}
.contact-list {
    list-style: none;
}
.contact-list li {
    padding: 8px 0;
    font-size: 15px;
    color: #555;
}
.contact-list li i {
    margin-right: 10px;
    color: #1a5fb4;
    width: 16px;
}
.contact-list li strong {
    margin-right: 5px;
}
.contact-map {
    margin-top: 20px;
}
.contact-map img {
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .contact-page {
        flex-direction: column;
    }
}

/* --- 分类筛选 --- */
.category-filter {
    margin-bottom: 25px;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}
.category-filter a {
    display: inline-block;
    padding: 8px 20px;
    margin-right: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #666;
    font-size: 14px;
    transition: all 0.3s;
}
.category-filter a:hover,
.category-filter a.active {
    background: #1a5fb4;
    color: #fff;
    border-color: #1a5fb4;
}

/* --- 搜索页面 --- */
.search-page {
    padding: 30px 0;
}
.search-page h1 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
}
.search-form {
    margin-bottom: 30px;
}
.search-results h2 {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
}
.search-results h3 {
    font-size: 16px;
    color: #1a5fb4;
    margin: 20px 0 15px;
}

/* --- 文章详情 --- */
.article-page {
    padding: 30px 0;
}
.article-detail h1 {
    font-size: 26px;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
}
.article-meta {
    color: #999;
    font-size: 14px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}
.article-meta span {
    margin-right: 20px;
}
.article-meta i {
    margin-right: 5px;
}
.article-cover {
    margin-bottom: 20px;
}
.article-cover img {
    width: 100%;
    border-radius: 8px;
}
.article-content {
    line-height: 1.8;
    color: #555;
}
.article-content h2 {
    font-size: 20px;
    color: #333;
    margin: 25px 0 12px;
}
.article-content h3 {
    font-size: 18px;
    color: #333;
    margin: 20px 0 10px;
}
.article-content p {
    margin-bottom: 12px;
}
.article-content ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 12px;
}

/* 上下篇导航 */
.article-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}
.nav-prev,
.nav-next {
    max-width: 45%;
}
.nav-prev span,
.nav-next span {
    display: block;
    font-size: 13px;
    color: #999;
    margin-bottom: 5px;
}
.nav-prev a,
.nav-next a {
    color: #1a5fb4;
    font-size: 14px;
}

/* --- 产品详情 --- */
.product-detail {
    display: flex;
    gap: 40px;
    padding: 30px 0;
}
.product-detail-left {
    flex: 1;
}
.product-detail-right {
    flex: 1;
}
.product-main-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    background: #f5f7fa;
}
.product-main-image img {
    width: 100%;
}
.product-detail-right h1 {
    font-size: 26px;
    color: #333;
    margin-bottom: 15px;
}
.detail-model {
    font-size: 15px;
    color: #666;
    margin-bottom: 8px;
}
.detail-model strong {
    color: #1a5fb4;
}
.detail-category {
    font-size: 15px;
    color: #666;
    margin-bottom: 20px;
}
.detail-category a {
    color: #1a5fb4;
}
.detail-actions {
    margin-top: 25px;
    display: flex;
    gap: 15px;
}
.product-description {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}
.product-description h2 {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
}
.related-products {
    margin-top: 40px;
}
.related-products h2 {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
}

/* 规格表格 */
.spec-table {
    margin-bottom: 20px;
}
.spec-table h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
}
.spec-table table {
    width: 100%;
    border-collapse: collapse;
}
.spec-table td {
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    font-size: 14px;
}
.spec-label {
    background: #f5f7fa;
    color: #333;
    font-weight: 500;
    width: 120px;
}

@media (max-width: 768px) {
    .product-detail {
        flex-direction: column;
    }
}

/* --- 页脚 --- */
.main-footer {
    background: #2c3e50;
    color: #b0bec5;
    padding: 50px 0 0;
}
.footer-inner {
    margin-bottom: 30px;
}
.footer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.footer-col {
    flex: 1;
    min-width: 200px;
}
.footer-col h3 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #1a5fb4;
    display: inline-block;
}
.footer-links li {
    margin-bottom: 8px;
}
.footer-links a {
    color: #b0bec5;
    font-size: 14px;
}
.footer-links a:hover {
    color: #fff;
}
.footer-contact li {
    padding: 4px 0;
    font-size: 14px;
}
.footer-contact li i {
    margin-right: 8px;
    width: 16px;
    color: #1a5fb4;
}
.footer-about-text {
    font-size: 14px;
    line-height: 1.8;
}
.footer-bottom {
    text-align: center;
    padding: 15px 0;
    margin-top: 30px;
    border-top: 1px solid #3d566e;
    font-size: 13px;
}

@media (max-width: 768px) {
    .footer-grid {
        flex-direction: column;
    }
}

/* --- 返回顶部 --- */
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 45px;
    height: 45px;
    background: #1a5fb4;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 45px;
    font-size: 18px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    background: #1558a0;
    transform: translateY(-3px);
}

/* --- 无数据提示 --- */
.no-data {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}
.no-data i {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}
.no-data p {
    font-size: 16px;
}

/* --- 按钮补全 --- */
.btn-outline {
    background: transparent;
    color: #1a5fb4;
    border: 2px solid #1a5fb4;
}
.btn-outline:hover {
    background: #1a5fb4;
    color: #fff;
}
.btn i {
    margin-right: 5px;
}

/* --- 滚动动画 --- */
.fade-in-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in-item.visible {
    opacity: 1;
    transform: translateY(0);
}
