/* 
 * 归朴医药官网样式文件
 * Goopure Corporate Website Styles
 */

/* 主题色 */
:root {
    --primary-color: #03a9f4;
    --primary-dark: #0288d1;
    --primary-light: #b3e5fc;
    --secondary-color: #f79007;
    --text-dark: #333333;
    --text-muted: #666666;
    --bg-light: #f8f9fa;
}

/* 基础样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

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

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

/* 顶部栏 */
.top-bar {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
}

/* 导航栏 */
.navbar {
    padding: 0.75rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    color: var(--text-dark) !important;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

/* 页面标题 */
.page-header {
    background: linear-gradient(135deg, var(--bg-light) 0%, #ffffff 100%);
}

.page-header h1 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.breadcrumb {
    background: transparent;
}

/* 按钮样式 */
.btn-primary {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(3, 169, 244, 0.3);
}

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

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

/* 卡片样式 */
.card {
    border-radius: 12px;
    transition: all 0.3s ease;
}

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

/* 产品卡片 */
.product-card .card-img-top {
    border-radius: 12px 12px 0 0;
}

/* 新闻卡片 */
.news-card {
    overflow: hidden;
}

.news-card .card-img-top {
    border-radius: 12px 12px 0 0;
}

/* 区块标题 */
.section-header {
    margin-bottom: 3rem;
}

.section-header span {
    font-size: 0.875rem;
    letter-spacing: 2px;
}

/* Hero 区域 */
.hero-section {
    position: relative;
}

.hero-slide {
    min-height: 500px;
}

/* 时间线 */
.timeline {
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-light);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
}

.timeline-dot {
    position: relative;
    z-index: 1;
}

/* 页脚 */
footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
}

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

/* 联系卡片 */
.contact-card:hover .icon-box {
    background: var(--primary-color) !important;
}

.contact-card:hover .icon-box i {
    color: white !important;
}

/* 表单样式 */
.form-control,
.form-select {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(3, 169, 244, 0.25);
}

/* 分页 */
.pagination .page-link {
    color: var(--primary-color);
    border-radius: 8px;
    margin: 0 3px;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* 标签页 */
.nav-tabs .nav-link {
    color: var(--text-muted);
    font-weight: 500;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 1rem 1.5rem;
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: transparent;
}

/* 响应式调整 */
@media (max-width: 991.98px) {
    .hero-slide {
        min-height: 400px;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        padding-left: 50px;
    }
    
    .timeline-item .col-md-5:first-child,
    .timeline-item .col-md-5:last-child {
        text-align: left !important;
    }
    
    .timeline-item .col-md-2 {
        position: absolute;
        left: 0;
        width: 40px;
    }
}

@media (max-width: 767.98px) {
    .hero-slide {
        min-height: 350px;
    }
    
    .hero-slide h1 {
        font-size: 2rem;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
}

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

.card {
    animation: fadeInUp 0.5s ease;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}
