/* 
 * 沈阳车辆抵押贷款网站样式表
 * 主题色：深海蓝 #1976D2
 * 框架：Bootstrap 5 + 自定义样式
 */

/* ==================== 基础变量与重置 ==================== */
:root {
    --primary-color: #1976D2;
    --primary-dark: #0D47A1;
    --primary-light: #64B5F6;
    --secondary-color: #FF9800;
    --success-color: #4CAF50;
    --info-color: #03A9F4;
    --warning-color: #FFC107;
    --danger-color: #F44336;
    --dark-color: #212121;
    --light-color: #f8f9fa;
    --gray-color: #757575;
    --border-radius: 1rem;
    --box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

.object-fit-cover {
    object-fit: cover;
}

/* ==================== 通用工具类 ==================== */
.hover-primary:hover {
    color: var(--primary-color) !important;
}

.hover-light:hover {
    color: var(--light-color) !important;
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15) !important;
}

.hover-shadow {
    transition: box-shadow 0.3s ease;
}

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

.hover-shadow-lg {
    transition: box-shadow 0.3s ease;
}

.hover-shadow-lg:hover {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

.transition-all {
    transition: var(--transition);
}

.hover-scale {
    transition: transform 0.5s ease;
}

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

.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ls-2 {
    letter-spacing: 0.2em;
}

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

/* ==================== 顶部栏 ==================== */
.sydk-topbar {
    font-size: 0.875rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
}

/* ==================== 导航栏 ==================== */
.sydk-navbar {
    padding: 0.75rem 0;
    transition: all 0.3s ease;
}

.sydk-navbar.navbar-scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1) !important;
}

.sydk-navbar .navbar-brand img {
    transition: transform 0.3s ease;
}

.sydk-navbar .navbar-brand:hover img {
    transform: scale(1.05);
}

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

.sydk-navbar .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%);
}

.sydk-navbar .nav-link:hover::after,
.sydk-navbar .nav-link.active::after {
    width: 80%;
}

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

/* ==================== 移动端底部栏 ==================== */
.sydk-mobile-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

body {
    padding-bottom: 70px;
}

@media (min-width: 992px) {
    body {
        padding-bottom: 0;
    }
}

/* ==================== Hero轮播区 ==================== */
.sydk-hero {
    min-height: 600px;
    height: calc(100vh - 140px);
    max-height: 900px;
}

.sydk-hero .carousel-item {
    height: 100%;
}

.hero-slide-bg {
    transition: transform 10s ease;
}

.carousel-item.active .hero-slide-bg {
    transform: scale(1.1);
}

.hero-content {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.animate-fadeInUp {
    animation-name: fadeInUp;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 50px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.hero-stats {
    z-index: 10;
}

/* ==================== 特色服务卡片 ==================== */
.sydk-features {
    margin-top: -50px;
    position: relative;
    z-index: 20;
}

.feature-card {
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.feature-icon {
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: rotateY(360deg);
}

/* ==================== 服务业务展示 ==================== */
.sydk-services .service-item {
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.service-img {
    transition: transform 0.5s ease;
}

.service-item:hover .service-img {
    transform: scale(1.1);
}

.service-badge {
    z-index: 2;
}

/* ==================== 办理流程 ==================== */
.sydk-process .process-step {
    transition: all 0.3s ease;
}

.process-step:hover {
    transform: translateY(-10px);
}

.step-number {
    transition: all 0.3s ease;
}

.process-step:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 0.5rem 1rem rgba(25, 118, 210, 0.3) !important;
}

/* ==================== 对比表格 ==================== */
.compare-table-wrapper {
    border-radius: var(--border-radius);
}

.compare-table th,
.compare-table td {
    padding: 1rem;
    vertical-align: middle;
}

.compare-table tbody tr:hover {
    background-color: rgba(25, 118, 210, 0.05);
}

/* ==================== 城市站点 ==================== */
.cities-wrapper {
    border-radius: var(--border-radius);
}

.city-link {
    display: block;
    padding: 0.5rem;
    text-align: center;
    background: var(--light-color);
    border-radius: 0.5rem;
    color: var(--dark-color);
    font-size: 0.875rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.city-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
    text-decoration: none;
}

/* ==================== 资讯列表 ==================== */
.news-card {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.news-image-wrapper {
    position: relative;
    overflow: hidden;
}

.news-category-badge {
    z-index: 2;
    border-radius: 0 0 0.5rem 0 !important;
}

/* ==================== 文章详情页 ==================== */
.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
    font-weight: 600;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
    box-shadow: var(--box-shadow);
}

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

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

.article-content a {
    color: var(--primary-color);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

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

/* ==================== 关于我们时间线 ==================== */
.timeline-content {
    position: relative;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateX(5px);
}

/* ==================== 联系表单 ==================== */
.contact-form .form-control {
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.15);
    background-color: #fff !important;
}

.contact-card {
    transition: all 0.3s ease;
    border-radius: var(--border-radius);
}

.contact-card:hover {
    transform: translateX(10px);
}

.contact-icon {
    transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
    transform: rotate(360deg);
}

/* ==================== 返回顶部 ==================== */
.sydk-backtop {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.sydk-backtop.show {
    opacity: 1;
    visibility: visible;
}

.sydk-backtop:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(25, 118, 210, 0.4) !important;
}

@media (min-width: 992px) {
    .sydk-backtop {
        bottom: 40px;
        right: 40px;
    }
}

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

.sydk-footer .footer-links a {
    transition: all 0.3s ease;
    display: inline-block;
}

.sydk-footer .footer-links a:hover {
    color: var(--primary-light) !important;
    transform: translateX(5px);
}

.area-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.25rem;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.area-tag:hover {
    background: var(--primary-color);
    color: white;
}

.friend-links a {
    transition: all 0.3s ease;
    opacity: 0.7;
}

.friend-links a:hover {
    opacity: 1;
    color: var(--primary-light) !important;
}

/* ==================== 页面通用头部 ==================== */
.page-header {
    position: relative;
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* ==================== 统计数字动画 ==================== */
.counter {
    font-variant-numeric: tabular-nums;
}

/* ==================== 响应式调整 ==================== */
@media (max-width: 991.98px) {
    .sydk-hero {
        min-height: 500px;
        height: auto;
        padding: 3rem 0;
    }
    
    .hero-stats {
        position: relative !important;
        background: var(--primary-dark) !important;
    }
    
    .display-3 {
        font-size: 2rem;
    }
    
    .display-4 {
        font-size: 1.75rem;
    }
    
    .display-5 {
        font-size: 1.5rem;
    }
    
    .display-6 {
        font-size: 1.25rem;
    }
    
    .experience-badge {
        position: relative !important;
        transform: none !important;
        margin-top: 1rem;
        display: inline-block;
    }
    
    .timeline-line {
        left: 20px !important;
    }
    
    .timeline-dot {
        margin-left: 0 !important;
    }
}

@media (max-width: 767.98px) {
    .sydk-topbar {
        display: none !important;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .city-link {
        font-size: 0.8125rem;
        padding: 0.375rem;
    }
}

/* ==================== 动画关键帧 ==================== */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(25, 118, 210, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(25, 118, 210, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(25, 118, 210, 0);
    }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* ==================== 打印样式 ==================== */
@media print {
    .sydk-topbar,
    .sydk-navbar,
    .sydk-footer,
    .sydk-mobile-bar,
    .sydk-backtop {
        display: none !important;
    }
    
    body {
        padding-bottom: 0;
    }
}

/* ==================== 加载动画 ==================== */
.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}