/* 招鸿公司网站 - 主样式表 */

:root {
    --primary-color: #0066cc;
    --secondary-color: #004c99;
    --accent-color: #ff6600;
    --light-bg: #f8f9fa;
    --dark-bg: #212529;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* 导航栏样式 */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    z-index: 1030;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.nav-link {
    font-weight: 500;
    color: #333 !important;
    transition: color 0.3s ease;
}

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

/* Hero 区域 */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 180px 0 140px 0;
    min-height: 700px;
}

.hero-section h1 {
    font-weight: 700;
    letter-spacing: -0.5px;
    font-size: 3rem;
}

.hero-section .lead {
    opacity: 0.95;
    font-size: 1.3rem;
}

/* 页头区域 */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
    padding-top: 180px !important;
    padding-bottom: 120px !important;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

.page-header .lead {
    font-size: 1.2rem;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #fff;
}

.breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.6);
}

/* 卡片样式 */
.card {
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-title {
    font-weight: 600;
}

/* 按钮样式 */
.btn {
    border-radius: 50px;
    padding: 10px 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-outline-primary:hover {
    transform: translateY(-2px);
}

/* 表单样式 */
.form-control {
    border-radius: 8px;
    padding: 12px 15px;
    border: 1px solid #dee2e6;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

/* 页脚样式 */
.footer {
    background-color: var(--dark-bg);
}

.footer a {
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--accent-color) !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-section {
        padding: 160px 0 80px 0;
        min-height: auto;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .display-4 {
        font-size: 2rem !important;
    }
    
    .page-header {
        padding-top: 100px !important;
        padding-bottom: 100px !important;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .page-header .lead {
        font-size: 1rem;
    }
    
    .btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

[data-aos] {
    animation-duration: 800ms;
    animation-fill-mode: both;
}

/* 徽章样式 */
.badge {
    padding: 6px 12px;
    font-weight: 500;
    border-radius: 20px;
}

/* 图标样式 */
.bi {
    vertical-align: middle;
}

/* 滚动效果 */
.scrollspy-example {
    position: relative;
    height: 200px;
    margin-top: 1.5rem;
    overflow-y: auto;
}

/* 联系表单成功提示 */
#successAlert {
    border-radius: 8px;
    animation: slideDown 0.5s ease;
}

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

/* 列表组样式 */
.list-group-item {
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    border-left-color: var(--primary-color);
    background-color: #f8f9fa;
}

/* 页面滚动时导航栏背景变化 */
.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
}

/* 产品卡片样式 */
.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    height: 200px;
    overflow: hidden;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

/* 产品介绍样式 */
.product-introduction {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.product-introduction h2,
.product-introduction h3,
.product-introduction h4 {
    color: #333;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 16px;
}

.product-introduction h2:first-child,
.product-introduction h3:first-child,
.product-introduction h4:first-child {
    margin-top: 0;
}

.product-introduction p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 16px;
}

.product-introduction ul,
.product-introduction ol {
    color: #666;
    line-height: 1.8;
    padding-left: 24px;
    margin-bottom: 16px;
}

.product-introduction li {
    margin-bottom: 8px;
}

.product-introduction img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
}

@media (max-width: 768px) {
    .product-introduction {
        padding: 20px;
    }
    
    .product-introduction h2,
    .product-introduction h3,
    .product-introduction h4 {
        font-size: 1.3rem;
    }
}
