/* Global Styles */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 600;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.75), rgba(52, 58, 64, 0.7)), 
                url('../images/hero-background.jpg');
    background-size: cover, cover;
    background-position: center, center;
    background-attachment: fixed;
    color: white;
    padding: 50px 0 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(248, 249, 250, 0.2) 30%, 
        rgba(248, 249, 250, 0.6) 70%, 
        rgba(248, 249, 250, 0.95) 100%);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    text-shadow: 0 6px 12px rgba(0,0,0,0.6);
    line-height: 1.1;
    animation: fadeInUp 1.2s ease-out;
    letter-spacing: -0.02em;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-section h1::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #fff, rgba(255,255,255,0.6));
    margin: 1.5rem auto 0;
    border-radius: 3px;
    animation: slideIn 1.8s ease-out 0.8s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 100px;
        opacity: 1;
    }
}

/* About Section */
.about-section {
    padding: 80px 0;
    background-color: var(--light-color);
}

.about-section img {
    transition: transform 0.3s ease;
}

.about-section img:hover {
    transform: scale(1.02);
}

.about-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.about-section .list-unstyled li {
    margin-bottom: 1rem;
}

.about-section .list-unstyled i {
    margin-right: 0.5rem;
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background-color: white;
}

.services-section h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Service Cards */
.service-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}

.service-icon {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    flex-shrink: 0;
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: white !important;
}

.service-card h3 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--dark-color);
    font-weight: 600;
    flex-shrink: 0;
}

.service-description {
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-shrink: 0;
}

.service-features li {
    padding: 0.5rem 0;
    color: var(--dark-color);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.service-features li i {
    margin-right: 0.75rem;
    font-size: 0.9rem;
    min-width: 16px;
}

/* Portfolio Section */
.portfolio-section {
    padding: 20px 0 80px;
    background: linear-gradient(180deg, 
        rgba(248, 249, 250, 0.9) 0%, 
        rgba(248, 249, 250, 1) 30%, 
        rgba(248, 249, 250, 1) 100%);
    position: relative;
    margin-top: 0;
}

.portfolio-section::before {
    display: none;
}

.portfolio-section .container {
    position: relative;
    z-index: 2;
}

.portfolio-section .card {
    transition: transform 0.3s ease;
    margin-bottom: 30px;
}

.portfolio-section .card:hover {
    transform: translateY(-5px);
}

.portfolio-section .card-img-top {
    height: 200px;
    object-fit: cover;
}

.portfolio-section .card-title {
    color: var(--primary-color);
}

/* Section Titles */
.section-title {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 15px;
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Stats Section */
.stats-section {
    padding: 60px 0;
    background-color: var(--primary-color);
    color: white;
}

.stat-item {
    padding: 20px;
    transition: transform 0.3s ease;
    text-align: center;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-item i {
    margin-bottom: 15px;
    color: #ffffff !important;
    opacity: 0.9;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.stat-item:hover i {
    opacity: 1;
    transform: scale(1.1);
    transition: all 0.3s ease;
}

/* 确保覆盖Bootstrap的text-primary类 */
.stats-section .stat-item i.text-primary {
    color: #ffffff !important;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.stat-item p {
    font-size: 1.1rem;
    margin-bottom: 0;
    opacity: 0.9;
}

/* Team Section */
.team-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
}

.team-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.team-card {
    background: white;
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    border: 1px solid rgba(0,123,255,0.1);
    overflow: hidden;
    position: relative;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #0056b3);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}

.team-card:hover::before {
    transform: scaleX(1);
}

.team-card-large {
    min-height: 320px;
}

.team-header {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: white;
    padding: 30px 25px 25px;
    text-align: center;
    position: relative;
}

.team-header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 2px;
}

.team-title h4 {
    margin: 0 0 5px 0;
    font-size: 1.4rem;
    font-weight: 600;
    color: white;
}

.team-position {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.9;
    font-weight: 400;
    color: rgba(255,255,255,0.9);
}

.team-content {
    padding: 30px 25px 25px;
    display: flex;
    flex-direction: column;
    height: calc(100% - 115px);
}

.team-description {
    color: var(--dark-color);
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 25px;
    flex-grow: 1;
}

.team-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.skill-tag {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(0,123,255,0.2);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background-color: white;
}

.contact-info-card,
.contact-form-card {
    background-color: var(--light-color);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info-card:hover,
.contact-form-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}

.contact-info-card .section-title {
    text-align: left;
    margin-bottom: 1rem;
    padding-bottom: 10px;
}

.contact-info-card .section-title::after {
    left: 0;
    transform: none;
}

.contact-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
}

.contact-item i {
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.contact-details h5 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-details p {
    color: var(--dark-color);
    margin-bottom: 0;
    line-height: 1.6;
}

.form-title {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
}

.contact-form {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group:last-of-type {
    margin-bottom: 2rem;
}

.form-label {
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.form-control {
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.15);
    outline: none;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.btn-primary {
    padding: 1rem 1.5rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-top: auto;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,123,255,0.3);
}

/* Testimonials Section */
.testimonials-section {
    padding: 80px 0;
    background-color: var(--light-color);
}

.testimonial-card {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-content {
    margin-bottom: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.testimonial-content i {
    flex-shrink: 0;
    margin-bottom: 15px;
}

.testimonial-content p {
    font-style: italic;
    color: var(--dark-color);
    flex-grow: 1;
    margin-bottom: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-top: auto;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    margin-right: 15px;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    flex-shrink: 0;
}

.testimonial-author h5 {
    color: var(--primary-color);
    margin-bottom: 0;
    font-size: 1rem;
}

.testimonial-author p {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 20px;
}

.footer h4 {
    margin-bottom: 1.5rem;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer a {
    color: white;
    text-decoration: none;
}

.footer a:hover {
    color: var(--primary-color);
}

.copyright {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
    
    .hero-section h1 {
        font-size: 2rem;
        max-width: 100%;
    }
    
    .hero-section {
        padding: 40px 0 30px;
        background-attachment: scroll;
        min-height: 32.5vh;
    }
    
    .hero-section h1::after {
        width: 80px;
        height: 3px;
        margin: 1rem auto 0;
    }
    
    .portfolio-section {
        margin-top: 0;
        padding: 15px 0 60px;
    }
    
    .cases-carousel-wrapper {
        margin-top: 0.5rem;
    }
    
    .services-section,
    .about-section,
    .team-section {
        padding: 60px 0;
    }
    
    .service-card {
        margin-bottom: 2rem;
        padding: 1.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .service-icon i {
        font-size: 1.5rem !important;
    }
    
    .footer {
        text-align: center;
    }
    
    .stat-item {
        margin-bottom: 2rem;
    }
    
    .team-card {
        margin-bottom: 2rem;
        padding: 25px 20px;
    }
    
    .team-card-large {
        min-height: auto;
    }
    
    .team-header {
        padding: 25px 20px 20px;
        gap: 15px;
    }
    
    .team-avatar {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .team-title h4 {
        font-size: 1.2rem;
    }
    
    .team-position {
        font-size: 0.9rem;
    }
    
    .team-content {
        padding: 25px 20px 20px;
        height: auto;
    }
    
    .team-description {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    .skill-tag {
        font-size: 0.75rem;
        padding: 5px 10px;
    }
}

@media (max-width: 991px) {
    .contact-info-card,
    .contact-form-card {
        margin-bottom: 2rem;
        height: auto;
    }
    
    .contact-info {
        gap: 1.5rem;
    }
    
    .contact-item {
        padding: 0.75rem 0;
    }
    
    .team-card-large {
        min-height: 280px;
    }
    
    .team-header {
        padding: 25px 20px 20px;
    }
    
    .team-content {
        padding: 25px 20px 20px;
    }
}

@media (max-width: 768px) {
    .contact-info-card,
    .contact-form-card {
        padding: 30px 25px;
    }
    
    .contact-section {
        padding: 60px 0;
    }
}

.cases-carousel-wrapper {
  position: relative;
  width: 100%;
  margin-top: 2rem;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  background: rgba(37,99,235,0.9);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn-left { left: -22px; }
.carousel-btn-right { right: -22px; }
.carousel-btn:hover { background: #2563eb; }

.cases-carousel {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 2rem;
  padding: 2rem 20%;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  align-items: center;
  min-height: 450px;
  will-change: scroll-position;
}

.case-card {
  min-width: 260px;
  max-width: 320px;
  min-height: 350px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 25px rgba(37,99,235,0.12);
  overflow: hidden;
  text-align: center;
  transition: 
    transform 0.4s cubic-bezier(.4,2,.6,1),
    box-shadow 0.3s,
    max-width 0.4s,
    opacity 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 1.2rem;
  scroll-snap-align: center;
  opacity: 0.7;
  filter: blur(0.5px);
  cursor: pointer;
  will-change: transform, opacity, filter;
  border: 1px solid rgba(37,99,235,0.1);
}

.case-card.focused {
  transform: scale(1.15);
  max-width: 520px;
  min-width: 400px;
  min-height: 400px;
  opacity: 1;
  filter: none;
  z-index: 1;
  box-shadow: 0 12px 40px rgba(37,99,235,0.25);
  border-color: rgba(37,99,235,0.2);
}

.case-card:hover {
  opacity: 0.9;
  filter: blur(0.2px);
}

.case-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  margin-bottom: 1.5rem;
}

.case-card h3 {
  color: #2563eb;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  margin-top: 0.2rem;
}

.case-card p {
  color: #444;
  font-size: 1.1rem;
  padding: 0 1.5rem;
  line-height: 1.6;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cases-carousel::-webkit-scrollbar {
  display: none;
}

.cases-carousel {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

@media (max-width: 700px) {
  .cases-carousel {
    padding: 2rem 10%;
  }
  .case-card, .case-card.focused {
    min-width: 90vw;
    max-width: 95vw;
  }
  .carousel-btn-left, .carousel-btn-right {
    left: 10px;
    right: 10px;
    top: unset;
    bottom: -50px;
    transform: none;
    width: 40px;
    height: 40px;
  }
} 