/* 全局样式 */
:root {
    --primary-color: #1976D2;
    --primary-light: #42A5F5;
    --primary-dark: #1565C0;
    --secondary-color: #FF5722;
    --text-color: #212121;
    --text-light: #757575;
    --border-color: #e0e0e0;
    --bg-light: #f5f5f5;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.2);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-color);
}

/* 顶部栏 */
.top-bar {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

/* 导航栏 */
.navbar-brand img {
    max-height: 50px;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin-right: 1rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

.search-box {
    position: relative;
}

.search-box input {
    border-radius: 20px;
    padding-right: 40px;
}

.search-box button {
    position: absolute;
    right: 3px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
}

/* 轮播图 */
.hero-carousel .carousel-item {
    height: 600px;
}

.hero-carousel .carousel-item img {
    height: 100%;
    object-fit: cover;
}

.hero-carousel .carousel-caption {
    background: rgba(0,0,0,0.5);
    border-radius: 10px;
    padding: 2rem;
    bottom: 50%;
    transform: translateY(50%);
}

/* 服务卡片 */
.service-card {
    padding: 2rem;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.icon-box {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(25, 118, 210, 0.1);
    border-radius: 50%;
}

/* 城市链接 */
.city-link {
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.city-link:hover {
    transform: scale(1.05);
}

/* 统计卡片 */
.stat-card {
    padding: 2rem;
    border-radius: 10px;
    background: white;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
}

/* 流程步骤 */
.process-step {
    position: relative;
}

.step-number {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-weight: bold;
}

/* 关键词模块 */
.keywords-cloud .badge {
    transition: transform 0.3s ease;
}

.keywords-cloud .badge:hover {
    transform: scale(1.1);
}

/* 客户评价 */
.testimonial-card {
    padding: 2rem;
}

.quote-icon {
    color: var(--primary-color);
    opacity: 0.3;
}

/* 时间线 */
.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-content {
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.timeline-date {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 1rem;
}

/* 团队成员 */
.team-member {
    padding: 2rem;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* 荣誉项目 */
.honor-item {
    padding: 2rem;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.honor-item:hover {
    transform: translateY(-5px);
}

/* 文化卡片 */
.culture-card {
    border-left: 4px solid var(--primary-color);
}

/* 联系卡片 */
.contact-card {
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    transition: transform 0.3s ease;
}

.contact-card:hover .contact-icon {
    transform: scale(1.1);
}

/* 悬浮侧边栏 */
.floating-sidebar {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1000;
}

.sidebar-item {
    margin-bottom: 10px;
}

.sidebar-item .btn {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.sidebar-item .btn:hover {
    transform: scale(1.1);
}

/* 页面标题 */
.page-title-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

/* 新闻列表 */
.news-item .card {
    transition: transform 0.3s ease;
}

.news-item:hover .card {
    transform: translateY(-3px);
}

/* 文章详情 */
.article-meta {
    color: var(--text-light);
}

.article-meta i {
    margin-right: 0.5rem;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* 时间线 */
.timeline-section {
    position: relative;
}

.timeline-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: var(--primary-color);
    transform: translateX(-50%);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 50%;
    padding-right: 2rem;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 50%;
    padding-left: 2rem;
}

@media (max-width: 768px) {
    .timeline-section::before {
        left: 20px;
    }
    
    .timeline-item .timeline-content {
        margin-left: 60px !important;
        margin-right: 0 !important;
        padding-left: 2rem !important;
        padding-right: 0 !important;
        text-align: left !important;
    }
    
    .timeline-date {
        position: absolute;
        left: 0;
        top: 0;
        margin-bottom: 0;
    }
}

/* FAQ */
.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: white;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(25, 118, 210, 0.25);
}

/* 响应式调整 */
@media (max-width: 991px) {
    .hero-carousel .carousel-item {
        height: 400px;
    }
    
    .hero-carousel .carousel-caption {
        bottom: 20px;
        transform: none;
    }
}

@media (max-width: 768px) {
    .hero-carousel .carousel-item {
        height: 300px;
    }
    
    .hero-carousel .carousel-caption h1 {
        font-size: 1.5rem;
    }
    
    .hero-carousel .carousel-caption p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-carousel .carousel-item {
        height: 250px;
    }
    
    .hero-carousel .carousel-caption {
        padding: 1rem;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fadeInUp {
    animation: fadeInUp 0.6s ease;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 返回顶部 */
.back-to-top {
    display: none;
}

/* 表单样式 */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(25, 118, 210, 0.25);
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(25, 118, 210, 0.25);
}

/* 按钮样式 */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.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);
}