/* ============================================
   青岛华誉机电 - 橙色工业主题覆盖样式
   匹配原官网 huayujd.com 视觉风格
   ============================================ */

/* ========== 全局基础 ========== */
body {
    background: #f5f5f5;
    color: #333;
    font-family: "Microsoft YaHei", "微软雅黑", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
}

a { color: #333; transition: color 0.3s; }
a:hover { color: #ff6600; text-decoration: none; }

/* ========== 顶部导航栏 ========== */
.navbar {
    background: #fff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    padding: 0 0 !important;
    min-height: 72px !important;
}

.navbar .container {
    height: 72px;
    display: flex;
    align-items: center;
}

.navbar-brand {
    padding: 0 !important;
    margin: 0 !important;
    height: auto !important;
    line-height: 1 !important;
}

.navbar-brand img {
    height: 50px !important;
    max-height: 50px !important;
}

.navbar-nav .nav-item {
    position: relative;
}

.navbar-nav .nav-link {
    color: #333 !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    padding: 24px 20px !important;
    letter-spacing: 1px;
    transition: color 0.3s, border-color 0.3s;
    border-bottom: 3px solid transparent;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-item:hover .nav-link,
.navbar-nav .nav-item.active .nav-link {
    color: #ff6600 !important;
    border-bottom-color: #ff6600;
}

/* 手机端菜单 */
.navbar-toggler {
    border-color: #ff6600 !important;
    padding: 4px 8px;
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='%23ff6600' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* ========== 轮播图/Banner ========== */
.swiper-container {
    margin-top: 0;
}
.swiper-slide img.slideshow,
.swiper-slide img.d-block {
    height: 500px !important;
    object-fit: cover;
    width: 100%;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #ff6600 !important;
    opacity: 0.5;
}
.swiper-pagination-bullet-active {
    opacity: 1 !important;
    background: #ff6600 !important;
}

.swiper-button-prev,
.swiper-button-next {
    color: #ff6600 !important;
}

.swiper-container .position-absolute {
    left: 8% !important;
    top: 25% !important;
}

.swiper-container .swiper-slide h1 {
    color: #fff;
    font-size: 36px !important;
    font-weight: bold !important;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7) !important;
    letter-spacing: 2px;
    margin-bottom: 15px !important;
}

.swiper-container .swiper-slide h4 {
    color: #fff;
    font-size: 18px !important;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6) !important;
    font-weight: normal;
    letter-spacing: 1px;
}

/* Banner下方的"了解更多"按钮 */
.swiper-slide a.btn,
.swiper-slide .btn {
    background: #ff6600 !important;
    border-color: #ff6600 !important;
    color: #fff !important;
    padding: 10px 30px;
    border-radius: 4px;
    font-size: 16px;
    letter-spacing: 1px;
}

/* ========== 产品区域 ========== */
.card {
    border: none !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
    border-radius: 8px !important;
}

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

.card-img-150 {
    height: 200px;
    overflow: hidden;
    position: relative;
}

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

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

.card-body {
    padding: 15px !important;
}

.card-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px !important;
}

.card-title a {
    color: #333 !important;
}
.card-title a:hover {
    color: #ff6600 !important;
}

.card-text {
    font-size: 13px;
    color: #999 !important;
    line-height: 1.6;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 产品区域标题样式 - 匹配原官网 */
.bg-white .text-success,
.bg-light .text-info,
.bg-white .text-warning {
    color: #333 !important;
    font-size: 28px !important;
    font-weight: bold !important;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 15px;
}

.bg-white .text-success::after,
.bg-light .text-info::after,
.bg-white .text-warning::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #ff6600;
}

/* ========== 按钮主色 - 橙色 ========== */
.btn, .btn-primary, button.btn {
    background: #ff6600 !important;
    border-color: #ff6600 !important;
    color: #fff !important;
    border-radius: 4px;
    transition: all 0.3s;
}

.btn:hover, .btn-primary:hover {
    background: #e55d00 !important;
    border-color: #e55d00 !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255,102,0,0.3);
}

.btn-danger {
    background: #ff6600 !important;
    border-color: #ff6600 !important;
}

.btn-info {
    background: #ff6600 !important;
    border-color: #ff6600 !important;
}

.btn-light {
    background: #f8f9fa !important;
    border-color: #dee2e6 !important;
    color: #333 !important;
}

.btn-light:hover {
    background: #ff6600 !important;
    border-color: #ff6600 !important;
    color: #fff !important;
}

/* ========== 子菜单/hover ========== */
.header .nav ul li ul li a:hover,
.navbar-nav .dropdown-menu a:hover {
    background: #ff6600 !important;
    color: #fff !important;
}

/* ========== 侧边栏样式 ========== */
.side-title, .block-title, .list-title {
    border-left: 4px solid #ff6600 !important;
    background: #f5f5f5 !important;
    color: #333 !important;
    padding: 12px 15px;
    font-size: 18px;
    font-weight: bold;
}

/* ========== 分类导航 - 产品列表页侧边栏 ========== */
.sonsort {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.sonsort .btn {
    border-radius: 4px;
    padding: 8px 16px;
    margin: 3px;
    font-size: 14px;
}

.sonsort .btn-info {
    background: #ff6600 !important;
    border-color: #ff6600 !important;
    color: #fff !important;
}

/* ========== 产品列表页左侧分类导航 ========== */
.product-sidebar {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
}

.product-sidebar .sidebar-title {
    background: #ff6600;
    color: #fff;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 1px;
}

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

.product-sidebar .sidebar-menu li {
    border-bottom: 1px solid #f0f0f0;
}

.product-sidebar .sidebar-menu li a {
    display: block;
    padding: 12px 20px;
    color: #333;
    font-size: 14px;
    transition: all 0.3s;
}

.product-sidebar .sidebar-menu li a:hover,
.product-sidebar .sidebar-menu li.active a {
    color: #ff6600;
    background: #fff5eb;
    padding-left: 25px;
}

.product-sidebar .sidebar-menu li .sub-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #fafafa;
}

.product-sidebar .sidebar-menu li .sub-menu li a {
    padding-left: 35px;
    font-size: 13px;
}

.product-sidebar .sidebar-menu li .sub-menu li a:hover,
.product-sidebar .sidebar-menu li .sub-menu li.active a {
    color: #ff6600;
    background: #fff5eb;
    padding-left: 40px;
}

/* ========== 产品详情页 ========== */
.view .swiper-slide {
    height: 400px !important;
    max-width: 100% !important;
}

.product-info {
    padding: 20px;
    background: #fff;
    border-radius: 8px;
}

.product-info h2 {
    color: #333;
    font-size: 22px;
    font-weight: bold;
    padding-bottom: 10px;
}

.product-info .btn-danger {
    background: #ff6600 !important;
    border-color: #ff6600 !important;
    padding: 12px 40px;
    font-size: 16px;
    border-radius: 4px;
    letter-spacing: 1px;
}

/* ========== 关于我们页标签导航 ========== */
.about-tabs {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
}

.about-tabs .tab-title {
    background: #ff6600;
    color: #fff;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: bold;
}

.about-tabs .tab-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.about-tabs .tab-menu li a {
    display: block;
    padding: 15px 20px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s;
}

.about-tabs .tab-menu li a:hover,
.about-tabs .tab-menu li.active a {
    color: #ff6600;
    background: #fff5eb;
    border-left: 3px solid #ff6600;
}

/* ========== 分页 ========== */
.page-num, .page-link {
    color: #ff6600 !important;
    border-color: #dee2e6;
}

.page-num:hover, .page-link:hover {
    background: #ff6600 !important;
    border-color: #ff6600 !important;
    color: #fff !important;
}

.page-num-current {
    background: #ff6600 !important;
    border-color: #ff6600 !important;
    color: #fff !important;
}

/* ========== 内容区块 ========== */
.main, .content-wrap, .container-box {
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border-radius: 8px;
}

.pages {
    min-height: 500px;
    padding: 20px;
}

/* ========== 面包屑导航 ========== */
.position, .position a {
    color: #999;
    font-size: 13px;
}

.position a:hover {
    color: #ff6600;
}

/* ========== 页脚 ========== */
.footer {
    background: #2c3e50 !important;
    color: #bdc3c7 !important;
    margin-top: 40px;
}

.footer h5 {
    color: #fff !important;
    font-size: 18px;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #ff6600;
}

.footer a {
    color: #bdc3c7 !important;
    transition: color 0.3s;
}

.footer a:hover {
    color: #ff6600 !important;
}

.footer .copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #7f8c8d;
    font-size: 13px;
}

/* ========== 手机底部导航 ========== */
.container-fluid.bg-info {
    background: #ff6600 !important;
}

/* ========== 在线客服 ========== */
.online dl dt h3 {
    background: #ff6600 !important;
}

.online dl dt button {
    background: #ff6600 !important;
    border-color: #ff6600 !important;
}

/* ========== 标签/徽章 ========== */
.badge-info {
    background: #ff6600 !important;
}

/* ========== 内容详情 ========== */
.content {
    color: #555;
    line-height: 2;
}

.content h2, .content h3 {
    color: #333;
    border-bottom: 2px solid #ff6600;
    padding-bottom: 8px;
    margin-bottom: 15px;
}

/* ========== 顶部大屏横幅 ========== */
.jumbotron {
    background-size: cover !important;
    background-position: center !important;
    position: relative;
}

.jumbotron::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,102,0,0.8) 0%, rgba(255,102,0,0.4) 100%);
}

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

.jumbotron h1 {
    font-weight: bold;
    letter-spacing: 2px;
}

.jumbotron p {
    letter-spacing: 1px;
}

/* ========== 产品列表网格间距 ========== */
.product-grid .col-12 {
    margin-bottom: 20px;
}

/* ========== 新闻列表样式 ========== */
.news-list-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-list-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.news-list-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-list-item .news-content {
    padding: 15px;
}

.news-list-item .news-date {
    color: #999;
    font-size: 13px;
}

.news-list-item .news-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 8px 0;
}

.news-list-item .news-title:hover {
    color: #ff6600;
}

.news-list-item .news-desc {
    color: #666;
    font-size: 13px;
    line-height: 1.6;
}

.news-list-item .read-more {
    color: #ff6600;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
}

/* ========== 首页关于我们区域 ========== */
.about-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255,102,0,0.1);
    border-radius: 50%;
}

.about-section h2,
.about-section .text-info {
    color: #fff !important;
}

.about-section .text-secondary {
    color: rgba(255,255,255,0.7) !important;
}

/* ========== 首页应用领域 ========== */
.industry-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.industry-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.industry-card .industry-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 20px;
    color: #fff;
}

.industry-card h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

/* ========== 联系我们CTA区域 ========== */
.cta-section {
    background: linear-gradient(135deg, #ff6600 0%, #e55d00 100%);
    color: #fff;
    padding: 40px 0;
}

.cta-section h2 {
    color: #fff;
    font-size: 28px;
    font-weight: bold;
}

.cta-section .btn {
    background: #fff !important;
    color: #ff6600 !important;
    font-weight: bold;
    padding: 12px 30px;
    border-radius: 4px;
    border: none;
}

.cta-section .btn:hover {
    background: #1a1a2e !important;
    color: #fff !important;
}

/* ========== 优势/特色图标 ========== */
.feature-item {
    text-align: center;
    padding: 30px 20px;
}

.feature-item .feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6600, #ff9933);
    color: #fff;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.feature-item h5 {
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.feature-item p {
    color: #666;
    font-size: 13px;
    line-height: 1.6;
}

/* ========== 搜索框 ========== */
.form-control:focus {
    border-color: #ff6600;
    box-shadow: 0 0 0 0.2rem rgba(255,102,0,0.25);
}

/* ========== 响应式调整 ========== */
@media (max-width: 768px) {
    .swiper-slide img.slideshow,
    .swiper-slide img.d-block {
        height: 250px !important;
    }
    
    .swiper-container .swiper-slide h1 {
        font-size: 22px !important;
    }
    
    .swiper-container .swiper-slide h4 {
        font-size: 14px !important;
    }
    
    .navbar-nav .nav-link {
        padding: 10px 15px !important;
        font-size: 14px !important;
    }
    
    .jumbotron {
        min-height: auto !important;
        padding: 30px 0 !important;
    }
}

/* ========== 荣誉证书轮播 ========== */
.honor-scroll {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 0;
}

.honor-scroll img {
    height: 120px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ========== 微调 ========== */
.logo-sm-height {
    max-height: 50px;
}

.lh-2 {
    line-height: 2;
}

.lh-3 {
    line-height: 2.5;
}

.border-bottom-dashed {
    border-bottom: 1px dashed #e0e0e0 !important;
}
