/* 全局样式 */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --gradient-start: #1a73e8;
    --gradient-end: #0d47a1;
    --section-padding: 4rem;
    --section-padding-sm: 2rem;
}

:root {
    --sidebar-width: 250px;
    --header-height: 70px;
    --primary: #3b7ddd;
    --primary-dark: #2f64b1;
    --secondary: #6c757d;
    --success: #1cbb8c;
    --info: #17a2b8;
    --warning: #fcb92c;
    --danger: #dc3545;
    --light: #f5f7fb;
    --dark: #212529;
    --text-primary: #3e4676;
    --text-secondary: #6c757d;
    --border-color: #e9ecef;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
    padding-top: 6rem;
}

/* 导航栏样式 */
.navbar {
    transition: background-color 0.3s ease;
}

.navbar.scrolled {
    background-color: var(--gradient-start) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.navbar-brand {
    font-weight: 600;
}

/* 英雄区域样式 */
.hero-section {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    min-height: 500px;
    position: relative;
    overflow: hidden;
    padding: calc(var(--section-padding) + 76px) 0 var(--section-padding);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* 浮动元素动画 */
.floating-elements {
    position: relative;
    height: 300px;
}

.floating-icon {
    position: absolute;
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.8);
    animation: float 6s ease-in-out infinite;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.floating-icon:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
    font-size: 3rem;
}

.floating-icon:nth-child(2) {
    top: 60%;
    left: 50%;
    animation-delay: -1s;
    font-size: 2rem;
}

.floating-icon:nth-child(3) {
    top: 40%;
    left: 80%;
    animation-delay: -2s;
    font-size: 2.8rem;
}

.floating-icon:nth-child(4) {
    top: 80%;
    left: 30%;
    animation-delay: -3s;
    font-size: 2.2rem;
}

.floating-icon:nth-child(5) {
    top: 30%;
    left: 60%;
    animation-delay: -4s;
    font-size: 2.4rem;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) scale(1.1) rotate(5deg);
    }
}

/* 背景动画效果 */
.hero-background::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 60%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 内容区域通用样式 */
.section-gradient {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
    padding: var(--section-padding) 0;
}

.section-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(26,115,232,0.05) 0%, rgba(13,71,161,0.05) 100%);
    z-index: 1;
}

.section-gradient .container {
    position: relative;
    z-index: 2;
}

.section-gradient .py-5,
.container.py-5 {
    padding-top: var(--section-padding-sm) !important;
    padding-bottom: var(--section-padding-sm) !important;
}

/* 卡片样式 */
.card {
    transition: all 0.3s ease-in-out;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0,0,0,.1);
}

.card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 15px rgba(0,0,0,.1);
}

.card-body {
    padding: 2rem;
}

.card .fa-3x {
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.card:hover .fa-3x {
    transform: scale(1.1);
    color: var(--primary-color);
}

/* 时间线样式 */
.timeline {
    padding: 2rem 0;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(13,110,253,0) 0%, 
        rgba(13,110,253,0.5) 50%,
        rgba(13,110,253,0) 100%);
    z-index: 1;
}

.timeline-step {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,.1);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.timeline-step:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 15px rgba(0,0,0,.1);
}

.timeline-step .fa-2x {
    transition: all 0.3s ease;
}

.timeline-step:hover .fa-2x {
    transform: scale(1.2);
    color: var(--primary-color);
}

/* 专业领域样式 */
.domain-card {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,.1);
}

.domain-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,.1);
    border-color: var(--primary-color);
}

.domain-card i {
    transition: all 0.3s ease;
}

.domain-card:hover i {
    transform: scale(1.2);
    color: var(--primary-color);
}

/* 按钮样式 */
.btn {
    border-radius: 5px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-lg {
    padding: 1rem 2rem;
}

.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.btn-outline-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* 页脚样式 */
footer {
    margin-top: 0;
    background: linear-gradient(135deg, #2d3436 0%, #1a1a1a 100%);
}

footer hr {
    border-color: rgba(255,255,255,.1);
}

footer a {
    text-decoration: none;
    transition: all 0.3s ease;
}

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

/* 响应式调整 */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2.5rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }

    .timeline-step {
        margin-bottom: 1rem;
    }
    
    .floating-elements {
        height: 300px;
    }

    .timeline::before {
        display: none;
    }
}

/* 案例卡片样式 */
.case-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,.1);
    transition: all 0.3s ease;
    height: 100%;
}

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

.case-image {
    height: 200px;
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
    position: relative;
}

.case-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.case-content {
    padding: 1.5rem;
}

.case-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0,0,0,.1);
}

/* 服务保障卡片样式 */
.guarantee-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    height: 100%;
}

.guarantee-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,.1);
}

.guarantee-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto;
    background: rgba(13,110,253,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.guarantee-card:hover .guarantee-icon {
    background: var(--primary-color);
    color: white;
}

.guarantee-card:hover .guarantee-icon i {
    color: white;
}

/* 常见问题样式 */
.accordion-item {
    border: none;
    background: transparent;
    margin-bottom: 1rem;
}

.accordion-button {
    background: white;
    border-radius: 10px !important;
    box-shadow: 0 4px 6px rgba(0,0,0,.1);
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 8px 15px rgba(13,110,253,0.2);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.accordion-body {
    background: white;
    border-radius: 0 0 10px 10px;
    padding: 1.5rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .case-image {
        height: 160px;
    }
    
    .guarantee-card {
        margin-bottom: 1rem;
    }
} 