/* 全局样式 */
:root {
    --primary-color: #0086ff;
    --primary-dark: #0066cc;
    --secondary-color: #6c757d;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    padding-top: 80px; /* 为固定导航栏留出空间 */
}

@media (max-width: 768px) {
    body {
        padding-top: 70px; /* 在小屏幕上调整导航栏空间 */
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 65px; /* 在更小屏幕上调整导航栏空间 */
    }
}

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

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

/* 页面标题 */
.page-header {
    padding: 100px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf9 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 134, 255, 0.15) 0%, transparent 70%);
    z-index: 0;
}

.page-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='50' cy='50' r='1' fill='%230086ff' fill-opacity='0.1'/%3E%3C/svg%3E") repeat;
    z-index: 0;
    opacity: 0.3;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark-color);
    position: relative;
    animation: fadeInUp 0.8s ease-out;
    text-shadow: 0 2px 10px rgba(0, 134, 255, 0.2);
    transition: all 0.3s ease;
}

.page-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), #0066cc);
    margin: 20px auto;
    border-radius: 2px;
    animation: expandWidth 1s ease-out 0.5s both;
    transition: all 0.3s ease;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--secondary-color);
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    line-height: 1.6;
    transition: all 0.3s ease;
}

/* 多种背景动画效果 */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-10px) translateX(10px);
    }
    100% {
        transform: translateY(0) translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes expandWidth {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 80px;
        opacity: 1;
    }
}

@keyframes colorShift {
    0% {
        background: linear-gradient(135deg, #f5f7fa 0%, #e4edf9 100%);
    }
    25% {
        background: linear-gradient(135deg, #e4edf9 0%, #d0e1f9 100%);
    }
    50% {
        background: linear-gradient(135deg, #d0e1f9 0%, #b1d4f9 100%);
    }
    75% {
        background: linear-gradient(135deg, #b1d4f9 0%, #e4edf9 100%);
    }
    100% {
        background: linear-gradient(135deg, #f5f7fa 0%, #e4edf9 100%);
    }
}

@keyframes particles {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 100px 100px;
    }
}

/* 新增的动画效果 */
@keyframes zoom {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes shake {
    0% { transform: translate(0, 0); }
    10% { transform: translate(-2px, -2px); }
    20% { transform: translate(2px, -2px); }
    30% { transform: translate(-2px, 2px); }
    40% { transform: translate(2px, 2px); }
    50% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, -2px); }
    70% { transform: translate(-2px, 2px); }
    80% { transform: translate(2px, 2px); }
    90% { transform: translate(-2px, -2px); }
    100% { transform: translate(0, 0); }
}

@keyframes flip {
    0% {
        transform: perspective(400px) rotateY(0);
    }
    50% {
        transform: perspective(400px) rotateY(180deg);
    }
    100% {
        transform: perspective(400px) rotateY(360deg);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

@keyframes swing {
    20% {
        transform: rotate(15deg);
    }
    40% {
        transform: rotate(-10deg);
    }
    60% {
        transform: rotate(5deg);
    }
    80% {
        transform: rotate(-5deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

@keyframes wobble {
    0% {
        transform: translateX(0%);
    }
    15% {
        transform: translateX(-15px) rotate(-5deg);
    }
    30% {
        transform: translateX(10px) rotate(3deg);
    }
    45% {
        transform: translateX(-7px) rotate(-3deg);
    }
    60% {
        transform: translateX(4px) rotate(2deg);
    }
    75% {
        transform: translateX(-2px) rotate(-1deg);
    }
    100% {
        transform: translateX(0%);
    }
}

@keyframes tada {
    0% {
        transform: scale(1);
    }
    10%, 20% {
        transform: scale(0.9) rotate(-3deg);
    }
    30%, 50%, 70%, 90% {
        transform: scale(1.1) rotate(3deg);
    }
    40%, 60%, 80% {
        transform: scale(1.1) rotate(-3deg);
    }
    100% {
        transform: scale(1) rotate(0);
    }
}

@keyframes jello {
    0%, 100% {
        transform: scale(1, 1);
    }
    25% {
        transform: scale(0.9, 1.1);
    }
    50% {
        transform: scale(1.1, 0.9);
    }
    75% {
        transform: scale(0.95, 1.05);
    }
}

@keyframes hueRotate {
    0% {
        filter: hue-rotate(0deg);
    }
    50% {
        filter: hue-rotate(180deg);
    }
    100% {
        filter: hue-rotate(360deg);
    }
}

@keyframes blur {
    0%, 100% {
        filter: blur(0px);
    }
    50% {
        filter: blur(1px);
    }
}

/* 页面标题的多种动画效果类 */
.page-header.float { animation: float 4s ease-in-out infinite; }
.page-header.pulse { animation: pulse 3s ease-in-out infinite; }
.page-header.wave { animation: wave 10s linear infinite; }
.page-header.colorShift { animation: colorShift 8s ease-in-out infinite; }
.page-header.particles::after { animation: particles 20s linear infinite; }
.page-header.zoom { animation: zoom 3s ease-in-out infinite; }
.page-header.shake { animation: shake 3s ease-in-out infinite; }
.page-header.flip { animation: flip 6s ease-in-out infinite; }
.page-header.bounce { animation: bounce 2s ease-in-out infinite; }
.page-header.swing { animation: swing 3s ease-in-out infinite; }
.page-header.wobble { animation: wobble 3s ease-in-out infinite; }
.page-header.tada { animation: tada 3s ease-in-out infinite; }
.page-header.jello { animation: jello 3s ease-in-out infinite; }
.page-header.hueRotate { animation: hueRotate 10s linear infinite; }
.page-header.blur { animation: blur 4s ease-in-out infinite; }

/* 旋转动画保持在::before元素上 */
.page-header::before {
    animation: rotate 20s linear infinite;
}

/* 导航栏样式 */
.navbar {
    box-shadow: none;
    padding: 15px 0;
    background-color: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: none;
}

.navbar-brand {
    display: flex;
    align-items: center;
    min-width: 0; /* 允许flex项目收缩 */
}

.navbar-brand .brand-logo {
    height: 40px;
    border-radius: 8px;
}

.brand-text {
    margin-left: 12px;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0; /* 防止文字收缩 */
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 10px;
    position: relative;
    color: var(--dark-color);
}

.navbar-nav .nav-link.active::after,
.navbar-nav .nav-link:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

.navbar-nav .nav-link.active {
    color: var(--primary-color);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

/* 首页轮播图 */
.hero-slider {
    position: relative;
    height: 100vh;
    margin-top: 0;
    padding-top: 0;
}

.carousel-item {
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slider-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
}

.slider-content .container {
    position: relative;
    z-index: 1;
}

.slider-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
    position: relative;
    z-index: 1;
}

.slider-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.slider-buttons {
    position: relative;
    z-index: 1;
}

.slider-image {
    position: relative;
    z-index: 1;
    display: none;
}

.slider-image img {
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    animation: float 6s ease-in-out infinite;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.carousel-indicators {
    bottom: 80px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
}

.carousel-indicators .active {
    background-color: white;
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 134, 255, 0.3);
    border-radius: 50%;
    opacity: 0.8;
    z-index: 2;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: rgba(0, 134, 255, 0.5);
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 24px;
    height: 24px;
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

/* 版块标题样式 */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark-color);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--secondary-color);
    max-width: 700px;
    margin: 0 auto 30px;
}

/* 公司优势 */
.features-section {
    background: white;
}

.feature-card {
    background: white;
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: rgba(0, 134, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--primary-color);
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.feature-card p {
    color: var(--secondary-color);
    font-size: 1rem;
}

/* 服务项目 */
.services-section {
    background: #f8f9fa;
}

.service-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #eee;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 123, 255, 0.2);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: rgba(0, 134, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: var(--primary-color);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.service-card p {
    color: var(--secondary-color);
    font-size: 0.95rem;
}

/* 统计数据 */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.stat-item h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
}

.stat-item p {
    font-size: 1.3rem;
    opacity: 0.9;
    color: white;
}

/* 合作伙伴 */
.partners-section {
    background: white;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
}

.partner-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.partner-logo img {
    max-width: 100%;
    max-height: 60px;
    filter: grayscale(100%);
    opacity: 0.7;
}

.partner-logo:hover img {
    filter: grayscale(0);
    opacity: 1;
}

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

.footer h3,
.footer h4 {
    color: white;
    margin-bottom: 20px;
}

.footer-links,
.contact-info {
    list-style: none;
    padding: 0;
}

.footer-links li,
.contact-info li {
    margin-bottom: 10px;
}

.footer-links a,
.contact-info a {
    color: #aaa;
    transition: all 0.3s ease;
}

.footer-links a:hover,
.contact-info a:hover {
    color: white;
}

.copyright {
    color: #aaa;
    font-size: 0.9rem;
    margin: 0;
}

.copyright a {
    color: #aaa;
    text-decoration: underline;
}

.copyright a:hover {
    color: white;
}

/* 关于我们页面 */
.about-section {
    background: white;
}

.timeline {
    position: relative;
    padding: 30px 0;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* 为每个项目之间创建连接线 */
.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 80px; /* 从年份圆圈底部开始 */
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: calc(100% - 30px); /* 连接到下一个圆圈中心，考虑margin和padding */
    background: var(--primary-color);
    z-index: 0;
}

.timeline-item:nth-child(odd) {
    padding-right: calc(50% + 50px);
    text-align: right;
}

.timeline-item:nth-child(even) {
    padding-left: calc(50% + 50px);
}

.timeline-year {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    z-index: 2; /* 确保年份圆圈在卡片之上 */
}

.timeline-content {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1; /* 确保卡片在年份圆圈之下 */
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 20px;
    height: 20px;
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    z-index: 3; /* 确保连接点在最上层 */
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -60px;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -60px;
}

.timeline-content h3 {
    margin-top: 0;
    color: var(--dark-color);
}

.team-member {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.team-image {
    height: 250px;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.team-member:hover .team-image img {
    transform: scale(1.1);
}

.team-info {
    padding: 20px;
    text-align: center;
}

.team-info h3 {
    margin: 0 0 5px 0;
    color: var(--dark-color);
}

.team-position {
    color: var(--primary-color);
    font-weight: 500;
    margin: 0 0 15px 0;
}

.culture-item {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.culture-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.culture-icon {
    width: 70px;
    height: 70px;
    background: rgba(0, 134, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: var(--primary-color);
}

.culture-item h3 {
    margin: 0 0 15px 0;
    color: var(--dark-color);
}

.culture-item p {
    color: var(--secondary-color);
    margin: 0;
}

/* 服务项目页面 */
.service-detail-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #eee;
}

.service-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 123, 255, 0.2);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: rgba(0, 134, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: var(--primary-color);
}

.service-detail-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.service-detail-card p {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-features li {
    padding: 5px 0 5px 25px;
    position: relative;
    color: var(--secondary-color);
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.process-section {
    background: #f8f9fa;
}

.process-step {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.process-number {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0 auto 20px;
}

.process-step h3 {
    margin: 0 0 15px 0;
    color: var(--dark-color);
}

.process-step p {
    color: var(--secondary-color);
    margin: 0;
}

.advantages-section {
    background: white;
}

.advantage-item {
    display: flex;
    align-items: flex-start;
}

.advantage-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 134, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-right: 15px;
}

.advantage-content h3 {
    margin: 0 0 10px 0;
    color: var(--dark-color);
}

.advantage-content p {
    color: var(--secondary-color);
    margin: 0;
}

.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.cta-section h2 {
    color: white;
    margin-bottom: 15px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.cta-section .btn-light {
    color: var(--primary-color);
    font-weight: 500;
}

/* 案例展示页面 */
.cases-filter {
    background: #f8f9fa;
}

.filter-tabs {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.filter-tab {
    padding: 8px 20px;
    background: white;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-tab:hover,
.filter-tab.active {
    background: var(--primary-color);
    color: white;
}

.case-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

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

.case-image {
    position: relative;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: all 0.5s ease;
}

.case-card:hover .case-image img {
    transform: scale(1.1);
}

.case-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 123, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.case-card:hover .case-overlay {
    opacity: 1;
}

.case-content {
    padding: 20px;
}

.case-category {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(0, 134, 255, 0.1);
    color: var(--primary-color);
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.case-content h3 {
    margin: 0 0 10px 0;
    color: var(--dark-color);
}

.case-content p {
    color: var(--secondary-color);
    margin: 0;
    font-size: 0.95rem;
}

.testimonial-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

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

.testimonial-content {
    position: relative;
    margin-bottom: 20px;
}

.testimonial-content p {
    color: var(--secondary-color);
    font-style: italic;
    margin: 0;
}

.testimonial-content::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: -10px;
    font-size: 4rem;
    color: rgba(0, 123, 255, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    margin: 0 0 5px 0;
    color: var(--dark-color);
    font-size: 1.1rem;
}

.author-info p {
    margin: 0;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* 开源项目页面 */
.opensource-intro {
    background: white;
}

.intro-content h3 {
    margin-bottom: 20px;
    color: var(--dark-color);
}

.intro-content p {
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.intro-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.intro-list li {
    padding: 8px 0 8px 30px;
    position: relative;
    color: var(--secondary-color);
}

.intro-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.project-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.project-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: rgba(0, 134, 255, 0.05);
}

.project-header h3 {
    margin: 0 0 15px 0;
    color: var(--dark-color);
}

.project-links {
    text-align: right;
}

.project-content {
    padding: 20px;
}

.project-content p {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.project-features h4 {
    margin: 0 0 15px 0;
    color: var(--dark-color);
}

.project-features ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.project-features ul li {
    padding: 5px 0;
    color: var(--secondary-color);
}

.project-stats {
    display: flex;
    gap: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.stat-item {
    display: flex;
    align-items: center;
    color: var(--secondary-color);
}

.stat-item i {
    margin-right: 5px;
    color: var(--primary-color);
}

.contribute-section {
    background: white;
}

.contribute-step {
    text-align: center;
    padding: 30px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
    height: 100%;
}

.contribute-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0 auto 20px;
}

.contribute-step h3 {
    margin: 0 0 15px 0;
    color: var(--dark-color);
}

.contribute-step p {
    color: var(--secondary-color);
    margin: 0;
}

.community-section {
    background: #f8f9fa;
}

.community-card {
    background: white;
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

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

.community-icon {
    width: 70px;
    height: 70px;
    background: rgba(0, 134, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: var(--primary-color);
}

.community-card h3 {
    margin: 0 0 15px 0;
    color: var(--dark-color);
}

.community-card p {
    color: var(--secondary-color);
    margin: 0 0 10px 0;
}

.community-info {
    font-weight: 500;
    color: var(--primary-color);
    margin: 0;
}

/* 联系我们页面 */
.contact-info-section {
    background: white;
}

.contact-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

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

.contact-icon {
    width: 70px;
    height: 70px;
    background: rgba(0, 134, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: var(--primary-color);
}

.contact-card h3 {
    margin: 0 0 15px 0;
    color: var(--dark-color);
}

.contact-card p {
    color: var(--secondary-color);
    margin: 0 0 10px 0;
}

.contact-form-section {
    background: #f8f9fa;
}

.contact-form {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-label {
    font-weight: 500;
    color: var(--dark-color);
}

.form-control,
.form-select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

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

.map-section {
    background: white;
}

.map-container {
    height: 600px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
}

.work-time-section {
    background: #f8f9fa;
}

.work-time-content p {
    font-size: 1.2rem;
    margin: 10px 0;
    color: var(--secondary-color);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .brand-text {
        font-size: 1.5rem;
        margin-left: 10px;
    }
    
    .slider-content {
        height: 100vh;
        padding: 120px 0 80px;
    }
    
    .slider-title {
        font-size: 2.2rem;
    }
    
    .slider-subtitle {
        font-size: 1.1rem;
    }
    
    body {
        padding-top: 80px;
    }
    
    /* 页面标题响应式调整 */
    .page-header {
        height: 200px;
        padding: 100px 0;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .page-subtitle {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .navbar-brand {
        flex: 1;
    }
    
    .brand-text {
        font-size: 1.4rem;
        margin-left: 8px;
    }
    
    .slider-content {
        height: 100vh;
        min-height: 100vh;
        padding: 100px 0 60px;
        display: flex;
    }
    
    .slider-content .row {
        flex-direction: column-reverse;
    }
    
    .slider-content .col-lg-6:first-child {
        margin-top: 30px;
        text-align: center;
    }
    
    .slider-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .slider-subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .slider-buttons .btn {
        padding: 8px 20px;
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    
    .slider-image {
        margin-top: 0;
        text-align: center;
    }
    
    /* 页面标题响应式调整 */
    .page-header {
        height: 200px;
        padding: 100px 0;
    }
    
    .page-title {
        font-size: 2.2rem;
    }
    
    .page-subtitle {
        font-size: 1.1rem;
    }
    
    /* 时间线响应式调整 */
    .timeline-item:not(:last-child)::after {
        left: 30px;
        transform: none;
        top: 60px;
        height: calc(100% + 20px); /* 增加高度确保连接线完全连接 */
    }
    
    .timeline-item {
        padding-right: 0 !important;
        padding-left: 70px !important;
        text-align: left !important;
    }
    
    .timeline-year {
        left: 30px;
        transform: translateX(-50%);
        width: 60px;
        height: 60px;
        font-size: 1rem;
    }
    
    .timeline-item:nth-child(odd) .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        left: -45px;
        right: auto;
        top: 15px;
        width: 15px;
        height: 15px;
    }
    
    .timeline-content {
        padding: 20px;
    }
    
    body {
        padding-top: 70px;
    }
}

@media (max-width: 576px) {
    .navbar-brand .brand-logo {
        height: 30px;
    }
    
    .brand-text {
        font-size: 1.3rem;
        margin-left: 6px;
    }
    
    .slider-content {
        height: 100vh;
        min-height: 100vh;
        padding: 80px 0 40px;
    }
    
    .slider-content .col-lg-6:first-child {
        margin-top: 20px;
    }
    
    .slider-title {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
    
    .slider-subtitle {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    
    .slider-buttons {
        text-align: center;
    }
    
    .slider-buttons .btn {
        display: block;
        width: 80%;
        margin: 10px auto;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 20px;
        height: 20px;
    }
    
    .carousel-indicators button {
        width: 10px;
        height: 10px;
    }
    
    /* 页面标题响应式调整 */
    .page-header {
        height: 200px;
        padding: 100px 0;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    /* 时间线响应式调整 */
    .timeline-item:not(:last-child)::after {
        left: 20px;
        top: 50px;
        height: calc(100% + 25px); /* 增加高度确保连接线完全连接 */
    }
    
    .timeline-item {
        padding-left: 50px !important;
    }
    
    .timeline-year {
        width: 50px;
        height: 50px;
        font-size: 0.9rem;
        left: 20px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        left: -35px;
        width: 12px;
        height: 12px;
        top: 12px;
    }
    
    .timeline-content {
        padding: 15px;
    }
    
    body {
        padding-top: 65px;
    }
}

@media (max-width: 400px) {
    .navbar-brand .brand-logo {
        height: 25px;
    }
    
    .brand-text {
        font-size: 1.2rem;
        margin-left: 5px;
    }
    
    .slider-content {
        height: 100vh;
        min-height: 100vh;
        padding: 60px 0 30px;
    }
    
    .slider-title {
        font-size: 1.5rem;
    }
    
    .slider-subtitle {
        font-size: 0.8rem;
    }
    
    .slider-buttons .btn {
        width: 90%;
        padding: 6px 15px;
        font-size: 0.8rem;
    }
    
    /* 页面标题响应式调整 */
    .page-header {
        height: 200px;
        padding: 100px 0;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .page-subtitle {
        font-size: 0.9rem;
    }
    
    /* 时间线响应式调整 */
    .timeline-item:not(:last-child)::after {
        left: 15px;
        top: 45px;
        height: calc(100% + 25px); /* 增加高度确保连接线完全连接 */
    }
    
    .timeline-year {
        width: 45px;
        height: 45px;
        font-size: 0.8rem;
        left: 15px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        left: -30px;
        width: 10px;
        height: 10px;
        top: 10px;
    }
    
    .timeline-content {
        padding: 12px;
    }
    
    body {
        padding-top: 60px;
    }
}
