/*
Theme Name: 雅博主题
Description: 企业网站模板
Version: 1.0.0
*/

:root {
    --primary: #1a3a6e;
    --secondary: #ff6b00;
    --accent: #dc3545;
}

/* 全局字体系统 */
body {
    line-height: 1.6;
}

.font-weight-bold {
    font-weight: bold !important;
}

/* 通用页面内容样式 */
.page-content {
    line-height: 1.6;
    color: #333;
}

.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5,
.page-content h6 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.page-content p {
    margin-bottom: 1rem;
}

.page-content a {
    color: var(--primary);
    text-decoration: underline;
}

.page-content a:hover {
    color: var(--secondary);
}

.page-content ul,
.page-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.page-content li {
    margin-bottom: 0.5rem;
}

/* 关于我们页面专属样式 */
.about-page-philosophy {
    border-left: 4px solid var(--primary);
}

.about-page-value {
    background-color: var(--primary) !important;
}

/* 侧边栏组件样式 */
.sidebar {
    /* 侧边栏容器独立区块样式 */
}

.sidebar .list-group-item.active {
    background: #1a3a6e !important;
    color: white !important;
    font-weight: bold;
    border: none !important;
}

/* 侧边栏响应式布局 */
@media (min-width: 992px) {
    /* 桌面端：侧边栏宽度30% */
    .sidebar {
        width: 30%;
    }
}

@media (max-width: 991.98px) {
    /* 移动端：侧边栏移至主内容下方，组件宽度100%，内边距10px */
    .sidebar {
        width: 100%;
        padding: 10px;
    }
    
    .sidebar .card {
        width: 100%;
    }
}

/* 顶部栏样式 */
.top-bar {
    background-color: #343a40; /* 深蓝色背景 */
    position: relative;
    z-index: 1000;
}

.top-bar .logo-text {
    font-weight: 500;
    font-size: 1.2rem;
}

.top-bar .paw-icon {
    font-size: 1.5rem;
}

/* 联系方式按钮悬停效果 */
.top-bar .btn-outline-light:hover {
    background-color: #f8f9fa;
    color: #343a40;
}

/* 主导航样式 */
.navbar {
    background: linear-gradient(to right, var(--primary), #2a4a8e); /* 蓝色渐变 */
}

/* 导航项样式 */
.navbar-nav .nav-item {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}

.navbar-nav .nav-link {
    font-weight: normal;
    position: relative;
    transition: all 0.2s ease-in-out;
}

/* 导航项悬停效果 */
.navbar-nav .nav-link:hover {
    font-weight: bold;
    text-decoration: underline;
}

/* 当前页指示 */
.navbar-nav .nav-item.active .nav-link,
.navbar-nav .nav-link.active,
.current-menu-item > .nav-link,
.nav-item.current-menu-item > .nav-link {
    font-weight: bold;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.25rem;
}

/* 微信咨询按钮样式 */
.btn-warning {
    background-color: var(--secondary); /* 橙色 */
    border-color: var(--secondary);
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn-warning:hover {
    background-color: #e05a00;
    border-color: #e05a00;
}

/* 页脚样式 */
.site-footer .card.bg-primary {
    background-color: var(--primary) !important;
}

/* 返回顶部按钮样式 */
#back-to-top {
    width: 40px;
    height: 40px;
    padding: 0;
    font-size: 16px;
    text-align: center;
    line-height: 40px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.16), 0 2px 6px rgba(0,0,0,0.23);
    z-index: 999;
    transition: background-color 0.3s ease;
}

/* 菜单列表样式 */
.footer-menu ul {
    list-style: none;
    padding: 0;
}

.footer-menu ul li {
    display: inline-block;
    margin-right: 15px;
}

.footer-menu ul li a {
    color: #333;
    text-decoration: none;
}

.footer-menu ul li a:hover {
    text-decoration: underline;
}

/* 轮播区样式 */
.carousel-item {
    height: 500px;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
}

/* 数据卡片样式 */
.counter {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary);
}

/* 产品卡片样式 */
.card-deck .card {
    flex: 1 0 0%;
    margin-right: 15px;
    margin-left: 15px;
}

/* 团队展示样式 */
.card-group .card {
    flex: 1 0 0%;
}

/* 卡片悬停动画 */
.card {
    transition: all 0.3s ease;
    transform: translateY(0);
}

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

/* 案例网格悬停动画 */
.case-item .card:hover,
.product-item .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* 案例和产品筛选按钮 */
.filter-btn.active {
    background-color: var(--primary);
    border-color: var(--primary);
}

.filter-btn:hover:not(.active) {
    background-color: #f8f9fa;
}

/* 联系卡片样式 */
.contact-card .card-header {
    background-color: var(--primary) !important;
}

/* 微信联系按钮 */
.btn-success {
    background-color: #28a745;
    border-color: #28a745;
    transition: background-color 0.3s ease;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

/* 实时聊天按钮 */
#live-chat {
    background-color: var(--accent) !important;
    border-color: var(--accent) !important;
    transition: background-color 0.3s ease;
}

/* 固定联系按钮 */
.contact-float {
    position: fixed;
    bottom: 90px;
    right: 20px;
    z-index: 1000;
}

.contact-dropdown {
    position: relative;
}

.contact-options {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 10px;
    display: none;
    flex-direction: column;
    align-items: center;
}

.contact-options.show {
    display: flex;
}

.contact-option {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.16), 0 2px 6px rgba(0,0,0,0.23);
    border: none;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.contact-option.phone {
    background-color: #28a745;
    color: white;
}

.contact-option.wechat {
    background-color: #28a745;
    color: white;
}

.contact-toggle {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease;
}

/* 面包屑导航 */
.breadcrumb {
  padding: 10px 0;
  font-size: 14px;
  color: #666;
}
.breadcrumb a {
  color: #1a3a6e;
}

/* 产品标题 */
.product-title {
  font-size: 24px;
  color: #1a3a6e;
  margin: 15px 0 25px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

/* 主产品图 */
.product-main-image {
  margin-bottom: 30px;
}
.product-main-image img {
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* 内容区 */
.product-content {
  line-height: 1.8;
}

/* 产品分类页主图 */
.taxonomy-product_category .product-main-image {
  margin-bottom: 0;
}

/* 产品分类页样式 */
.product-category-hero {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.hero-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

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

.product-category-hero:hover .hero-image {
  transform: scale(1.05);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  z-index: 2;
  color: white;
  text-align: center;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero-description {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.section-title {
  position: relative;
  padding-bottom: 10px;
  border-bottom: 2px solid #1a3a6e;
  color: #1a3a6e;
}

.category-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #1a3a6e;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(26, 58, 110, 0.15);
}

.product-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
  .product-category-hero {
    height: 300px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .product-category-hero {
    height: 250px;
  }
  
  .hero-title {
    font-size: 1.5rem;
  }
  
  .hero-description {
    font-size: 0.9rem;
  }
}

/* 面包屑导航在小屏幕上的样式 */
@media (max-width: 767.98px) {
    .breadcrumb {
        font-size: 0.8rem;
    }
}

/* 侧边栏链接触控优化 */
.sidebar .media a {
    display: block;
    padding: 8px 0;
    min-height: 44px; /* 符合移动端触控区域标准 */
    line-height: 1.4;
}

.sidebar .media a:hover {
    text-decoration: none;
}

/* 触控优化链接和按钮 */
.touch-optimized-link,
.touch-optimized-button {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 移动端适配 */
@media (max-width: 767.98px) {
    .top-bar .col-6.text-right {
        display: none !important;
    }
    
    .carousel-item {
        height: 300px;
    }
    
    .card-deck .card {
        flex: 1 0 100%;
        margin-bottom: 20px;
    }
    
    .card-group .card {
        flex: 1 0 100%;
        margin-bottom: 15px;
    }
    
    .jumbotron-bg {
        min-height: 200px;
    }
    
    /* 案例网格单列显示 */
    .case-item, .product-item {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    /* 固定底部联系按钮 */
    #live-chat {
        width: 50px !important;
        height: 50px !important;
        font-size: 16px !important;
        bottom: 15px !important;
        right: 15px !important;
    }
    
    #back-to-top {
        width: 35px !important;
        height: 35px !important;
        font-size: 14px !important;
        line-height: 35px !important;
        bottom: 75px !important;
        right: 15px !important;
    }
    
    /* 隐藏桌面端微信按钮，显示移动端微信按钮 */
    .ml-auto.d-none.d-lg-block {
        display: none !important;
    }
    
    .d-lg-none.mt-2 {
        display: block !important;
    }
    
    /* 页面模板移动端优化 */
    .page-template .row {
        flex-direction: column-reverse;
    }
    
    .page-template .row > div:first-child {
        order: 2;
    }
    
    .page-template .row > div:last-child {
        order: 1;
        margin-bottom: 2rem;
    }
}

@media (min-width: 992px) {
    .d-lg-none.mt-2 {
        display: none !important;
    }
}

/* 页面模板品牌元素和字体样式 */
.page-template h1.font-weight-bold .text-primary {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

.page-template .card-title.font-weight-bold {
    font-size: 1.25rem;
}

.page-template .lead {
    font-size: 1.1rem !important;
}

/* 首页产品展示 */
.product-item .badge-danger {
    font-size: 0.7rem;
}

/* 团队成员悬停效果 */
.team-member .member-bio {
    display: none;
}

/* 客户评价轮播 */
#testimonialCarousel .carousel-item {
    height: auto;
}

#testimonialCarousel blockquote {
    font-style: italic;
}

#testimonialCarousel .blockquote-footer::before {
    content: "~ ";
}

/* 页面导航当前项高亮 */
.list-group-item.active {
    background-color: #1a3a6e;
    border-color: #1a3a6e;
}