/* 
 * 创感科技企业网站样式表
 * 作者: AI助手
 * 版本: 1.0
 * 日期: 2024-05-24
 */

/* ===== 基础样式 ===== */
:root {
    /* 主色调 */
    --primary: #0056b3;
    --primary-dark: #004494;
    --primary-light: #e6f0ff;
    
    /* 辅助色 */
    --secondary: #6c757d;
    --success: #28a745;
    --info: #17a2b8;
    --warning: #ffc107;
    --danger: #dc3545;
    
    /* 中性色 */
    --dark: #343a40;
    --light: #f8f9fa;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    
    /* 字体 */
    --font-family-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
    --font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    
    /* 间距 */
    --spacer: 1rem;
}

body {
    font-family: var(--font-family-sans-serif);
    color: var(--gray-800);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* ===== 通用组件 ===== */
.section-title {
    position: relative;
    margin-bottom: 2rem;
    font-weight: 700;
    color: var(--gray-800);
}

.section-title:after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
   /** background-color: var(--primary);**/
    margin-top: 0.5rem;
}

.text-center .section-title:after {
    margin-left: auto;
    margin-right: auto;
}

.btn {
    border-radius: 4px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* ===== 顶部信息栏 ===== */
.top-bar {
    font-size: 0.875rem;
}

.top-bar .social-links a {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.top-bar .social-links a:hover {
    opacity: 1;
}

/* ===== 导航栏 ===== */
.navbar {
    padding: 0.5rem 1rem;
}

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

.navbar-light .navbar-nav .nav-link {
    color: var(--gray-700);
    font-weight: 500;
    padding: 1rem 1rem;
    position: relative;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar-light .navbar-nav .nav-link.active:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 3px;
    background-color: var(--primary);
}

.dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-radius: 0.25rem;
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    font-weight: 500;
}

.dropdown-item:hover, 
.dropdown-item:focus {
    background-color: var(--primary-light);
    color: var(--primary);
}

/* ===== 主横幅 ===== */
.hero-banner {
    position: relative;
}

.carousel-item {
    height: 600px;
}

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

.carousel-caption {
    bottom: 35%;
    padding: 2rem;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    max-width: 600px;
    margin: 0 auto;
}

.carousel-caption h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.carousel-caption p {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

/* ===== 公司简介 ===== */
.company-intro {
    background-color: var(--white);
}

.company-intro .lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

/* ===== 核心优势 ===== */
.advantage-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.icon-box {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* ===== 产品展示 ===== */
.product-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.product-image {
    position: relative;
    overflow: hidden;
}

.product-image img {
    transition: transform 0.5s ease;
    width: 100%;
    height: 250px;
    object-fit: cover;
    padding: 10px;
}

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

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* ===== 解决方案 ===== */
.solution-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.solution-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* ===== 成功案例 ===== */
.case-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.case-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.case-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* ===== 新闻资讯 ===== */
.news-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

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

.news-date {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.news-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.news-info .btn-link {
    color: var(--primary);
    padding: 0;
    text-decoration: none;
}

.news-info .btn-link:hover {
    color: var(--primary-dark);
}

/* ===== 合作伙伴 ===== */
.partner-logos img {
    max-height: 60px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.partner-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* ===== 联系我们CTA ===== */
.contact-cta {
    background-color: var(--primary);
}

/* ===== 页脚 ===== */
.footer {
    background-color: var(--gray-900);
}

.footer h5 {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer .social-links a {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer .social-links a:hover {
    opacity: 1;
}

/* ===== 返回顶部按钮 ===== */
#backToTop {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

#backToTop:hover {
    opacity: 1;
}

/* ===== 响应式设计 ===== */
@media (max-width: 991.98px) {
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
    }
    
    .navbar-light .navbar-nav .nav-link.active:after {
        display: none;
    }
    
    .carousel-item {
        height: 450px;
    }
    
    .carousel-caption {
        bottom: 10%;
    }
    
    .carousel-caption h1 {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .carousel-item {
        height: 350px;
    }
    
    .carousel-caption {
        bottom: 5%;
        padding: 1rem;
    }
    
    .carousel-caption h1 {
        font-size: 1.5rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 575.98px) {
    .top-bar .contact-info span {
        display: block;
        margin-bottom: 0.25rem;
    }
    
    .carousel-item {
        height: 300px;
    }
    
    .carousel-caption h1 {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

/* ===== 动画效果 ===== */
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}

/* ===== 内页样式 ===== */

/* 产品详情页 */
.product-detail-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.product-detail-image img {
    width: 100%;
}

.product-features {
    margin-top: 2rem;
}

.product-features h3 {
    margin-bottom: 1rem;
}

.feature-list {
    list-style: none;
    padding-left: 0;
}

.feature-list li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.feature-list li:before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--primary);
    position: absolute;
    left: 0;
}

.product-specs {
    margin-top: 2rem;
}

.specs-table {
    width: 100%;
}

.specs-table th {
    background-color: var(--gray-100);
}

/* 解决方案页 */
.solution-detail {
    margin-bottom: 3rem;
}

.solution-detail img {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* 案例详情页 */
.case-detail {
    margin-bottom: 3rem;
}

.case-detail img {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.case-meta {
    margin-bottom: 1.5rem;
    color: var(--gray-600);
}

/* 新闻详情页 */
.news-detail {
    margin-bottom: 3rem;
}

.news-detail img {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1.5rem;
}

.news-meta {
    margin-bottom: 1.5rem;
    color: var(--gray-600);
}

/* 关于我们页 */
.about-section {
    margin-bottom: 3rem;
}

.team-member {
    text-align: center;
    margin-bottom: 2rem;
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 5px solid var(--white);
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.team-member h4 {
    margin-bottom: 0.25rem;
}

.team-member p {
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

.team-member .social-links {
    margin-top: 0.5rem;
}

.team-member .social-links a {
    color: var(--gray-600);
    margin: 0 0.25rem;
    transition: color 0.3s ease;
}

.team-member .social-links a:hover {
    color: var(--primary);
}

/* 联系我们页 */
.contact-info-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    height: 100%;
}

.contact-info-card i {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-form {
    background-color: var(--white);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.map-container {
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* ===== 工具类 ===== */
.object-fit-cover {
    object-fit: cover;
}

.text-primary {
    color: var(--primary) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.rounded {
    border-radius: 0.25rem !important;
}

.rounded-circle {
    border-radius: 50% !important;
}

.border-primary {
    border-color: var(--primary) !important;
}
.table-responsive article h2{ width:100% !important;}