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

:root {
    --primary-gold: #d4a574;
    --accent-gold: #e8a735;
    --dark-gold: #b8935f;
    --primary-dark: #1a1a1a;
    --secondary-dark: #2a2a2a;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #fafafa;
    --bg-cream: #f5f2ed;
    --white: #ffffff;
    --shadow-light: rgba(0, 0, 0, 0.08);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --shadow-dark: rgba(0, 0, 0, 0.25);
}

body {
    font-family: 'Noto Sans TC', 'Raleway', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background-color: var(--primary-gold);
    color: var(--white);
}

/* Header with Hero Banner */
.header-hero {
    background: linear-gradient(to bottom, #ffffff, #fafafa);
    box-shadow: 0 4px 20px var(--shadow-light);
    position: relative;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.hero-content {
    text-align: center;
    padding: 30px 0;
    position: relative;
}

.site-title {
    font-family: 'Raleway', sans-serif;
    font-size: 3.5rem;
    font-weight: 300;
    letter-spacing: 0.35em;
    color: var(--primary-dark);
    margin-bottom: 15px;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--dark-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-tagline {
    font-size: 1.2rem;
    color: var(--primary-gold);
    letter-spacing: 0.25em;
    font-weight: 400;
    position: relative;
    display: inline-block;
    padding: 0 30px;
}

.site-tagline::before,
.site-tagline::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary-gold));
}

.site-tagline::before {
    left: 0;
}

.site-tagline::after {
    right: 0;
    background: linear-gradient(to left, transparent, var(--primary-gold));
}

.hero-qr {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.hero-qr:hover {
    opacity: 1;
}

.qr-code {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    box-shadow: 0 2px 10px var(--shadow-light);
}

/* Language Switcher */
.language-switcher {
    position: absolute;
    top: 20px;
    right: 130px;
    display: flex;
    gap: 8px;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--primary-gold);
    color: var(--text-dark);
    padding: 6px 18px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(5px);
}

.lang-btn:hover {
    background: var(--primary-gold);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.3);
}

.lang-btn.active {
    background: var(--primary-gold);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(212, 165, 116, 0.3);
}

/* Navigation */
.main-nav {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
    box-shadow: 0 2px 10px var(--shadow-medium);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    flex: 1;
    text-align: center;
}

.nav-menu a {
    display: block;
    color: var(--white);
    text-decoration: none;
    padding: 18px 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.nav-menu li:last-child a {
    border-right: none;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--primary-gold), transparent);
    transition: width 0.4s ease;
}

.nav-menu a:hover {
    color: var(--primary-gold);
    background-color: rgba(212, 165, 116, 0.1);
}

.nav-menu a:hover::before {
    width: 100%;
}

/* Hero Banner with Carousel */
.hero-banner {
    height: 500px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px var(--shadow-medium);
}

.hero-carousel {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1.05);
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-slide::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
}

.hero-slide.active {
    opacity: 1;
}

/* Carousel Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.indicator:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.indicator.active {
    background-color: var(--primary-gold);
    width: 25px;
    border-radius: 5px;
    box-shadow: 0 0 10px var(--primary-gold);
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-dark);
    font-weight: 300;
    letter-spacing: 0.15em;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--primary-gold), transparent);
}

.section-subtitle {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px;
    color: #666;
    line-height: 1.8;
}

/* About Section */
.about-section {
    padding: 60px 0;
    background-image: url('./images/2016-S-CLASS-S600-MAYBACH-SEDAN-BACKGROUND-BYO-D-01_edited.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    color: #fff;
}

/* 添加半透明遮罩以确保文字可读性 */
.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

/* 确保内容在遮罩之上 */
.about-section .container {
    position: relative;
    z-index: 2;
}

.about-section .section-title {
    color: #fff;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-text {
    padding-right: 20px;
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 0.95rem;
}

.about-text p:nth-child(2) {
    color: var(--primary-gold);
    font-size: 1.2rem;
    font-weight: 500;
    text-align: center;
    padding: 20px 0;
    position: relative;
}

.about-text p:nth-child(2)::before,
.about-text p:nth-child(2)::after {
    content: '◆';
    color: var(--primary-gold);
    margin: 0 15px;
    font-size: 0.8em;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

/* Fleet Section */
.fleet-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--primary-dark) 100%);
    color: var(--white);
    position: relative;
}

.fleet-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none" stroke="rgba(212, 165, 116, 0.1)" stroke-width="0.5"/><line x1="0" y1="0" x2="100" y2="100" stroke="rgba(212, 165, 116, 0.05)" stroke-width="0.5"/><line x1="100" y1="0" x2="0" y2="100" stroke="rgba(212, 165, 116, 0.05)" stroke-width="0.5"/></svg>');
    opacity: 0.3;
}

.fleet-section .section-title {
    color: #fff;
}

.fleet-section .section-subtitle {
    color: #ccc;
    font-size: 0.9rem;
}

.fleet-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 40px;
}

.fleet-item {
    overflow: hidden;
    border-radius: 10px;
    height: 220px;
    position: relative;
    box-shadow: 0 5px 20px var(--shadow-medium);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fleet-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.5));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.fleet-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-dark);
}

.fleet-item:hover::before {
    opacity: 1;
}

.fleet-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.fleet-item:hover img {
    transform: scale(1.1);
}

.brand-logos {
    text-align: center;
    padding: 30px;
    background-color: #fff;
    border-radius: 5px;
}

.brand-logos img {
    max-width: 100%;
    height: auto;
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, var(--bg-light), var(--bg-cream));
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.service-item {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow-light);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    display: block;
    position: relative;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 165, 116, 0) 0%, rgba(212, 165, 116, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px var(--shadow-medium);
}

.service-item:hover::before {
    opacity: 1;
}

.service-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-item h3 {
    padding: 18px 20px;
    text-align: center;
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    z-index: 2;
    background: var(--white);
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.service-item:hover h3 {
    color: var(--primary-gold);
}

/* Service Details */
.service-detail {
    display: none;
    padding: 60px 0;
    background-color: #f5f5f5;
    min-height: 400px;
}

.service-detail:target {
    display: block;
}

.service-detail h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.service-detail p {
    font-size: 1.2rem;
    line-height: 1.8;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px;
    color: #666;
}

.back-link {
    display: inline-block;
    background: #e8a735;
    color: #fff;
    padding: 10px 30px;
    border-radius: 25px;
    text-decoration: none;
    margin: 20px auto;
    transition: background 0.3s ease;
    text-align: center;
    display: block;
    width: fit-content;
}

.back-link:hover {
    background: #d09625;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 165, 116, 0.1) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(180deg); }
}

.contact-overlay {
    position: relative;
    z-index: 1;
}

.contact-section .section-title {
    color: #fff;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    color: #fff;
}

.contact-info {
    padding-right: 20px;
}

.company-name {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.contact-details {
    margin: 20px 0;
}

.contact-details p {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.email {
    color: var(--primary-gold);
    transition: color 0.3s ease;
}

.email:hover {
    color: var(--accent-gold);
}

.qr-codes {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.qr-item {
    text-align: center;
}

.qr-item img {
    width: 120px;
    height: 120px;
    margin-bottom: 15px;
    border-radius: 12px;
    box-shadow: 0 5px 20px var(--shadow-medium);
    transition: transform 0.3s ease;
}

.qr-item:hover img {
    transform: translateY(-5px);
}

.qr-item p {
    font-size: 0.9rem;
}

.map-container {
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-medium);
    position: relative;
}

.map-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid var(--primary-gold);
    border-radius: 12px;
    opacity: 0.3;
    pointer-events: none;
}

/* Partners Section */
.partners-section {
    padding: 60px 0;
    background: linear-gradient(to right, var(--primary-dark), var(--secondary-dark));
    position: relative;
}

.partners-section h3 {
    text-align: center;
    color: #fff;
    margin-bottom: 30px;
    font-size: 1.8rem;
    font-weight: 400;
}

.partners-logos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap; /* 确保不换行 */
    overflow-x: auto; /* 如果空间不够，允许水平滚动 */
}

.partner-logo {
    height: 60px;
    width: 150px;
    object-fit: contain;
    flex-shrink: 0;
    filter: brightness(0.7) grayscale(0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.partner-logo:hover {
    filter: brightness(1) grayscale(0);
    transform: scale(1.05);
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: #999;
    text-align: center;
    padding: 30px 0;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary-gold), transparent);
}

.footer p {
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

.animate-section {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-section.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Service Items Enhanced Hover */
.service-item {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.service-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(212, 165, 116, 0.1) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.service-item:hover::after {
    opacity: 1;
    animation: shimmer 1.5s infinite;
}

/* Fleet Grid Enhanced */
.fleet-grid {
    position: relative;
    z-index: 1;
}

/* Premium Button Styles */
.back-button,
.back-link {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.back-button::before,
.back-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.back-button:hover::before,
.back-link:hover::before {
    left: 100%;
}

/* Enhanced QR Code Hover */
.qr-item {
    position: relative;
}

.qr-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(212, 165, 116, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.qr-item:hover::after {
    opacity: 1;
}

/* Navigation Enhanced States */
.nav-menu a {
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: var(--primary-gold);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-menu a:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* Header Scroll Effect */
.header-hero.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 5px 30px var(--shadow-medium);
}

/* Loading Animation for Images */
.fleet-item img,
.service-item img {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.fleet-item img.loaded,
.service-item img.loaded {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .site-title {
        font-size: 2.5rem;
        letter-spacing: 0.2em;
    }
    
    .hero-qr {
        position: static;
        transform: none;
        margin-top: 20px;
    }
    
    .language-switcher {
        position: static;
        margin-top: 20px;
        justify-content: center;
    }
    
    .nav-menu {
        flex-direction: column;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        border-right: none;
        border-bottom: 1px solid #444;
    }
    
    .hero-banner {
        height: 300px;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    /* 移动端背景图片调整 */
    .about-section {
        background-attachment: scroll; /* 移动端不使用fixed */
        background-position: center top;
    }
    
    .about-section::before {
        background: rgba(0, 0, 0, 0.7); /* 移动端加深遮罩 */
    }
    
    .fleet-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .qr-codes {
        justify-content: center;
    }
    
    .partners-logos {
        gap: 15px;
        justify-content: flex-start; /* 移动端从左开始排列 */
        padding: 0 10px; /* 添加一些内边距 */
    }
    
    .partner-logo {
        height: 50px;
        width: 120px; /* 移动端稍微小一些 */
        min-width: 120px; /* 确保最小宽度 */
    }
}