/* ===================================
   永年保险经纪 - Main Stylesheet
   =================================== */

:root {
    --primary-color: #032a77;
    --primary-dark: #1c222f;
    --secondary-color: #7b7e2e;
    --accent-color: #7b7e2e;
    --accent-gold: #7b7e2e;
    --text-dark: #1c222f;
    --text-light: #666666;
    --text-white: #ffffff;
    --bg-light: #f9f9f9;
    --bg-dark: #032a77;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
    --content-max-width: 1000px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #fff;
}

/* ===================================
   Content Container - A4 Centered Style
   =================================== */

.content-container {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Override Bootstrap container for content sections */
.about-section .container,
.advantages-section .container,
.stats-section .container,
.services-section .container,
.contact-section .container {
    max-width: var(--content-max-width);
}

/* ===================================
   Header & Navigation
   =================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 1);
    box-shadow: var(--shadow-md);
}

.navbar {
    padding: 0.75rem 0;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-gold));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

.logo-sub {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 400;
}

.navbar-nav .nav-link {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 1.25rem !important;
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 60%;
}

.lang-switch {
    background: var(--bg-light);
    border-radius: 20px;
    padding: 0.4rem 1rem !important;
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
}

.dropdown-item.active {
    background: var(--primary-color);
}

/* ===================================
   Site Logo
   =================================== */

.site-logo {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.footer-logo-img {
    height: 60px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* ===================================
   Hero Carousel
   =================================== */

.hero-carousel {
    margin-top: 70px;
}

.hero-carousel .carousel-item {
    height: calc(100vh - 70px);
    min-height: 500px;
    max-height: 800px;
}

.hero-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-carousel .carousel-caption {
    bottom: 20%;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    text-align: left;
    width: 100%;
    max-width: var(--content-max-width);
    padding: 2rem 0;
    background: transparent;
    border-radius: 0;
    backdrop-filter: none;
}

.hero-carousel .carousel-indicators {
    bottom: 30px;
}

.hero-carousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 6px;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
}

.hero-carousel .carousel-indicators button.active {
    background-color: var(--accent-gold);
    width: 30px;
    border-radius: 6px;
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    width: 60px;
    opacity: 0.8;
}

.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-next:hover {
    opacity: 1;
}

/* ===================================
   Hero Section (Legacy - kept for compatibility)
   =================================== */

.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background: url('https://images.unsplash.com/photo-1536599018102-9f803c140fc1?w=1920') center center / cover no-repeat;
    display: flex;
    align-items: center;
    margin-top: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.85) 0%, rgba(13, 31, 60, 0.75) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    padding-top: 80px;
}

.hero-text {
    max-width: 700px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-subtitle-cn {
    font-size: 1.25rem;
    color: var(--text-white);
    margin-bottom: 1rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.hero-title-en {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    font-family: 'Playfair Display', serif;
    margin-bottom: 0.25rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.hero-subtitle-en {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.btn-cta {
    background: linear-gradient(135deg, var(--accent-gold), var(--secondary-color));
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
    color: white;
}

.hero-indicators {
    position: absolute;
    bottom: 50px;
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background: var(--accent-gold);
    width: 30px;
    border-radius: 6px;
}

/* ===================================
   Section Styles
   =================================== */

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #7B7E2E;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    display: none;
}

.section-subtitle {
    color: #807F7F;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.section-description {
    color: #807F7F;
    margin-bottom: 2rem;
}

/* ===================================
   About Section
   =================================== */

.about-section {
    padding: 80px 0;
    background: #fff;
}

.about-section .section-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: #7B7E2E;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    display: block;
}

.about-section .section-title::after {
    display: none;
}

.about-content {
    max-width: 100%;
    margin-top: 0;
}

.about-highlight {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #333;
    font-weight: 500;
}

.about-divider {
    height: 1px;
    background: var(--border-color);
    margin: 1.5rem 0;
}

.about-detail {
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 0;
    color: #807F7F;
}

/* ===================================
   Advantages Section
   =================================== */

.advantages-section {
    padding: 100px 0;
    background: white;
}

.advantages-grid {
    margin-top: 3rem;
}

.advantage-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
}

.advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.advantage-image {
    height: 200px;
    overflow: hidden;
}

.advantage-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.advantage-card:hover .advantage-image img {
    transform: scale(1.1);
}

.advantage-content {
    padding: 1.5rem;
}

.advantage-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-gold));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.advantage-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.advantage-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* New Advantages Grid Layout - 左2右1布局 */
.advantages-grid-new {
    display: flex;
    gap: 20px;
    margin-top: 2rem;
}

.advantages-left {
    flex: 1.5;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.advantages-right {
    flex: 0.8;
}

/* 左边卡片 - 图文左右排列 */
.advantage-card-horizontal {
    display: flex;
    background: #fff;
    border: 1px solid #e5e5e5;
    overflow: hidden;
    flex: 1;
}

.advantage-card-horizontal .advantage-image-h {
    width: 45%;
    min-height: 140px;
}

.advantage-card-horizontal .advantage-image-h img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.advantage-card-horizontal .advantage-content-h {
    width: 55%;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.advantage-content-h h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #7b7e2e;
    margin-bottom: 0.5rem;
}

.advantage-content-h p {
    color: #666666;
    font-size: 0.8rem;
    line-height: 1.5;
    margin: 0;
}

/* 右边卡片 - 图文上下排列 */
.advantage-card-vertical {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e5e5e5;
    height: 100%;
    overflow: hidden;
}

.advantage-card-vertical .advantage-image-v {
    height: 60%;
    min-height: 200px;
}

.advantage-card-vertical .advantage-image-v img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.advantage-card-vertical .advantage-content-v {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.advantage-content-v h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #7b7e2e;
    margin-bottom: 0.5rem;
}

.advantage-content-v p {
    color: #666666;
    font-size: 0.8rem;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 768px) {
    .advantages-grid-new {
        flex-direction: column;
    }
    
    .advantage-card-horizontal {
        flex-direction: column;
    }
    
    .advantage-card-horizontal .advantage-image-h,
    .advantage-card-horizontal .advantage-content-h {
        width: 100%;
    }
}

/* ===================================
   Stats Section
   =================================== */

.stats-section {
    padding: 80px 0;
    background: var(--primary-dark);
}

.stat-item {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--accent-gold);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.5rem;
    margin-left: 5px;
}

.stat-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

/* ===================================
   Services Section
   =================================== */

.services-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.services-list {
    margin-top: 3rem;
}

.service-card {
    display: flex;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.service-card.reverse {
    flex-direction: row-reverse;
}

.service-card.reverse .service-content {
    background-position: left center;
}

.service-image {
    flex: 0 0 35%;
    min-height: 220px;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-content {
    flex: 1;
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-image: url('../images/网站1-06.png');
    background-repeat: no-repeat;
    background-position: right center;
    background-size: contain;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #7b7e2e;
    margin-bottom: 1rem;
    padding-left: 0.75rem;
    border-left: 3px solid #7b7e2e;
}

.service-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-items li {
    padding: 0.25rem 0;
    color: #666666;
    position: relative;
    padding-left: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* ===================================
   Contact Section
   =================================== */

.contact-section {
    padding: 100px 0;
    background: var(--primary-dark);
}

.contact-section .section-title::after {
    background: var(--accent-gold);
}

.contact-info {
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: white;
}

.contact-item i {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
}

.contact-form-wrapper {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.contact-form .form-control {
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: var(--transition);
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-submit:hover {
    background: var(--primary-dark);
    color: white;
}

/* ===================================
   Footer
   =================================== */

.site-footer {
    background: var(--primary-dark);
}

.footer-main {
    padding: 60px 0 40px;
}

.footer-logo .logo-icon {
    background: rgba(255, 255, 255, 0.1);
}

.footer-logo .logo-main {
    color: white;
}

.footer-logo .logo-sub {
    color: rgba(255, 255, 255, 0.6);
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
    text-decoration: none;
}

.social-link:hover {
    background: var(--accent-gold);
    color: var(--primary-dark);
}

.footer-title {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-gold);
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.footer-contact li i {
    color: var(--accent-gold);
    width: 16px;
    text-align: center;
    flex-shrink: 0;
    margin-top: 3px;
}

.footer-contact li span {
    flex: 1;
    line-height: 1.5;
}

.footer-bottom {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* ===================================
   Page Header
   =================================== */

.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 140px 0 60px;
    text-align: center;
}

.page-header h1 {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-header .breadcrumb {
    justify-content: center;
    background: transparent;
    margin: 0;
}

.page-header .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.page-header .breadcrumb-item.active {
    color: var(--accent-gold);
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* ===================================
   About Page
   =================================== */

.about-page-section {
    padding: 80px 0;
}

.about-image img {
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.about-text {
    padding-left: 2rem;
}

.about-main-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-advantages-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.about-advantage-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-md);
    height: 100%;
    transition: var(--transition);
}

.about-advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.advantage-icon-large {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.about-advantage-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.about-advantage-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ===================================
   Services Page
   =================================== */

.services-intro-section {
    padding: 60px 0;
    background: white;
}

.services-intro-section .lead {
    font-size: 1.25rem;
    color: var(--text-dark);
}

.services-grid-section {
    padding: 0 0 80px;
}

.service-detail-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    height: 100%;
    transition: var(--transition);
}

.service-detail-card:hover {
    box-shadow: var(--shadow-lg);
}

.service-detail-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.service-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.7), rgba(139, 115, 85, 0.5));
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-overlay i {
    font-size: 3rem;
    color: white;
}

.service-detail-content {
    padding: 1.5rem;
}

.service-detail-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-detail-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-detail-content li {
    padding: 0.5rem 0;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.service-detail-content li i {
    color: var(--accent-gold);
}

.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.cta-content h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.btn-cta-large {
    background: var(--accent-gold);
    color: var(--primary-dark);
    padding: 1rem 3rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.btn-cta-large:hover {
    background: white;
    color: var(--primary-dark);
    transform: translateY(-3px);
}

/* ===================================
   Contact Page
   =================================== */

.contact-page-section {
    padding: 80px 0;
}

.contact-info-card {
    background: var(--primary-dark);
    padding: 2.5rem;
    border-radius: 12px;
    height: 100%;
}

.contact-info-card h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    color: var(--accent-gold);
    font-size: 1.25rem;
}

.contact-text h4 {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-text p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 0.95rem;
}

.contact-form-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.contact-form-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.contact-page-form .form-label {
    font-weight: 500;
    color: var(--text-dark);
}

.contact-page-form .form-control,
.contact-page-form .form-select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.contact-page-form .form-control:focus,
.contact-page-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

.btn-submit-large {
    background: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-submit-large:hover {
    background: var(--primary-dark);
    color: white;
}

.map-section {
    margin-top: 60px;
}

.map-wrapper {
    border-radius: 0;
    overflow: hidden;
}

/* ===================================
   Responsive Styles
   =================================== */

@media (max-width: 991px) {
    .hero-carousel .carousel-item {
        height: auto;
        min-height: unset;
        max-height: unset;
    }

    .hero-carousel .carousel-item img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 10;
        object-fit: cover;
        object-position: center center;
    }

    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-title-en {
        font-size: 1.25rem;
    }
    
    .service-card,
    .service-card.reverse {
        flex-direction: column;
    }
    
    .service-image {
        flex: none;
        height: 250px;
    }
    
    .navbar-collapse {
        background: white;
        padding: 1rem;
        margin-top: 1rem;
        border-radius: 8px;
        box-shadow: var(--shadow-md);
    }
    
    .hero-carousel .carousel-caption {
        bottom: 10%;
        left: 5%;
        right: 5%;
        transform: none;
        padding: 1.5rem;
    }
    
    .site-logo {
        height: 40px;
    }
}

@media (max-width: 767px) {
    .hero-carousel .carousel-item {
        height: auto;
        min-height: unset;
        max-height: unset;
    }

    .hero-carousel .carousel-item img {
        width: 100%;
        height: auto;
        aspect-ratio: 3 / 4;
        object-fit: cover;
        object-position: center center;
    }

    .hero-carousel .carousel-caption {
        bottom: 8%;
        left: 4%;
        right: 4%;
        transform: none;
        padding: 1rem;
        width: auto;
        max-width: none;
    }

    .hero-section {
        height: auto;
        min-height: 100vh;
        padding: 120px 0 60px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle-cn {
        font-size: 1rem;
    }
    
    .hero-title-en {
        font-size: 1rem;
    }
    
    .hero-subtitle-en {
        font-size: 0.85rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .stat-number {
        font-size: 3rem;
    }
    
    .about-text {
        padding-left: 0;
        margin-top: 2rem;
    }
    
    .site-logo {
        height: 35px;
    }
    
    .hero-carousel .carousel-item {
        height: 60vh;
        min-height: 400px;
    }
    
    .hero-carousel .carousel-caption {
        bottom: 5%;
        left: 3%;
        right: 3%;
        padding: 1rem;
    }
    
    .footer-logo-img {
        height: 45px;
    }
}

/* ===================================
   Animations
   =================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Smooth scroll offset for fixed header */
html {
    scroll-padding-top: 80px;
}