:root {
    --primary-bg: #000000;
    --secondary-bg: #fbfbfd;
    --text-color: #1d1d1f;
    --link-color: #2997ff;
    --nav-height: 44px;
    --section-spacing: 80px;
    --grid-spacing: 30px;
    --card-radius: 18px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-primary: "SF Pro Display", "SF Pro Icons", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
    --font-secondary: "SF Pro Text", "SF Pro Icons", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
    --text-gradient: linear-gradient(180deg, #1d1d1f 0%, #434344 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-secondary);
}

body {
    background-color: var(--secondary-bg);
    color: var(--text-color);
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -.022em;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding-top: 50px; /* 為固定導航欄留出空間 */
}

/* 導航欄樣式 */
.top-nav {
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    height: 50px;
    position: fixed; 
    width: 100%;
    top: 0;
    left: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
    align-items: center;
}

.nav-logo {
    padding-left: 15px;
    display: flex;
    align-items: center;
    height: 50px;
    z-index: 1001;
}

.company-logo {
    display: flex;
    align-items: center;
    font-family: var(--font-primary);
    color: #fff;
    text-decoration: none;
    gap: 8px;
}

.logo-icon {
    position: relative;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(30, 136, 229, 0.3);
}

.logo-icon i {
    color: white;
    font-size: 18px;
    transform: translateY(-1px);
}

/* Logo 樣式 */
.logo-car {
    position: relative;
    display: flex;
    align-items: center;
    height: 40px;
    margin: 0 10px;
}

.car-letters {
    position: relative;
    display: flex;
    align-items: center;
}

/* C - 車頭弧線 */
.letter.c {
    position: absolute;
    left: 0;
    font-size: 32px;
    font-weight: 900;
    transform: scaleX(-1) rotate(-90deg);
    color: #1e88e5;
    text-shadow: 2px 0 0 #1565c0;
}

/* A - 車頂線條 */
.letter.a {
    position: absolute;
    left: 20px;
    top: -5px;
    font-size: 28px;
    font-weight: 900;
    transform: scaleX(1.8) rotate(180deg);
    color: #1e88e5;
}

/* R - 車身線條 */
.letter.r {
    position: absolute;
    right: 20px;
    font-size: 30px;
    font-weight: 900;
    transform: rotate(-90deg);
    color: #1e88e5;
}

/* S - 車尾曲線 */
.letter.s {
    position: absolute;
    right: 0;
    font-size: 32px;
    font-weight: 900;
    transform: rotate(90deg);
    color: #1e88e5;
    text-shadow: -2px 0 0 #1565c0;
}

/* 懸停動畫效果 */
.company-logo:hover .letter.c {
    transform: scaleX(-1.1) rotate(-90deg);
}

.company-logo:hover .letter.a {
    transform: scaleX(2) rotate(180deg);
}

.company-logo:hover .letter.r {
    transform: rotate(-85deg);
}

.company-logo:hover .letter.s {
    transform: rotate(95deg);
}

.letter {
    transition: all 0.3s ease;
}

/* 公司名稱 */
.company-name {
    font-size: 12px;
    color: #fff;
    opacity: 0.8;
    margin-top: 4px;
    text-align: center;
}

.nav-logo:hover .company-name {
    opacity: 1;
}

.nav-logo a {
    display: flex;
    align-items: center;
    opacity: 1 !important;
}

.nav-logo i {
    font-size: 16px;
    color: #2997ff;  /* 使用 Apple 風格的藍色 */
    transition: color 0.3s ease;
}

.nav-logo i:hover {
    color: #0077ed;  /* 懸停時顯示稍深的藍色 */
}

.nav-links a {
    color: #f5f5f7;
    text-decoration: none;
    font-size: 14px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 1;
}

/* 預設隱藏選單按鈕 */
.menu-toggle {
    display: none;
    width: 50px;
    height: 50px;
    padding: 0;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    background-color: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

/* 預設導航內容樣式 */
.nav-content {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* RWD 手機模式導航樣式 */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-content {
        position: fixed;
        top: 50px;
        left: 0;
        width: 100%;
        background-color: rgba(0,0,0,0.95);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease;
        flex-direction: column;
        justify-content: flex-start;
        z-index: 1000;
    }
    
    .nav-content.active {
        max-height: calc(100vh - 50px);
        overflow-y: auto;
    }
    
    .nav-links {
        flex-direction: column;
        width: 100%;
        align-items: flex-start;
    }
    
    .nav-links li {
        width: 100%;
        margin: 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-links a {
        display: block;
        padding: 12px 20px;
        width: 100%;
    }
    
    .language-selector {
        display: flex;
        padding: 12px 20px;
        border-bottom: none !important;
    }
}

/* 最小的螢幕優化樣式 */
@media (max-width: 480px) {
    .nav-links a {
        font-size: 16px;
        padding: 10px 20px;
    }
    
    .menu-toggle {
        padding: 0 10px;
    }
    
    .nav-logo {
        margin-right: 0;
    }
    
    .nav-logo img {
        height: 30px;
    }
}

@media (max-width: 360px) {
    .nav-logo img {
        height: 25px;
    }
    
    .language-switcher a {
        font-size: 15px;
    }
}

/* 平板和桌面樣式 */
@media (min-width: 769px) {
    .nav-content {
        display: flex;
        position: relative;
        transform: none;
        max-height: none;
        background-color: transparent;
        overflow: visible;
        transition: none;
        z-index: 1;
    }
    
    .nav-links {
        flex-direction: row;
        align-items: center;
        gap: 20px;
    }
    
    .nav-links li {
        width: auto;
        border-bottom: none;
    }
    
    .nav-links a {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .language-selector {
        padding: 0;
        display: flex;
        width: auto;
    }
    
    .menu-toggle {
        display: none;
    }
}



/* 更小螢幕的優化 */
@media (max-width: 480px) {
    .nav-links {
        gap: 0;
        padding: 0 5px;
    }

    .nav-links a {
        padding: 6px 4px;
        font-size: 16px;
    }
    
    .menu-toggle {
        padding: 0 10px;
    }
    
    .nav-logo {
        margin-right: 0;
    }
    
    .nav-logo img {
        height: 30px;
    }
    
    .nav-content.active {
        max-height: calc(100vh - 50px);
    }
    
    .nav-content .nav-links {
        padding: 5px 15px;
    }
    
    .nav-content .nav-links a {
        font-size: 16px;
    }
}

@media (max-width: 360px) {
    .nav-links a {
        font-size: 15px;
        padding: 6px 3px;
    }
    
    .nav-logo img {
        height: 25px;
    }
    
    .language-selector a {
        font-size: 15px;
    }
}

/* 主要內容區塊樣式 */
.section-wrapper {
    flex: 1;
    margin-top: var(--nav-height);
    text-align: center;
    background: var(--secondary-bg);
}

.hero-section {
    background-color: var(--primary-bg);
    color: #fff;
    padding: var(--section-spacing) 0;
    margin-bottom: var(--grid-spacing);
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 100%);
    pointer-events: none;
}

.hero-section h2 {
    font-family: var(--font-primary);
    font-size: 56px;
    line-height: 1.07143;
    font-weight: 600;
    letter-spacing: -.005em;
    margin-bottom: 6px;
    background: var(--text-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-section h3 {
    font-size: 28px;
    line-height: 1.10722;
    font-weight: 400;
    letter-spacing: .004em;
    margin-bottom: 12px;
}

/* 車輛展示區塊 */
.car-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 10px;
    max-width: 1200px;
    margin: 0 auto;
}

.car-item {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
}

.car-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* 按鈕樣式 */
.cta-links {
    display: flex;
    justify-content: center;
    gap: 35px;
    margin-top: 12px;
}

.cta-link {
    display: inline-flex;
    align-items: center;
    color: var(--link-color);
    font-size: 21px;
    line-height: 1.381;
    font-weight: 400;
    letter-spacing: .011em;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.cta-link:hover {
    color: #0077ed;
}

.cta-link:after {
    content: '>';
    margin-left: 6px;
}

/* 響應式設計 */
@media only screen and (max-width: 1068px) {
    .hero-section h2 {
        font-size: 48px;
    }
    
    .hero-section h3 {
        font-size: 24px;
    }
    
    .car-grid {
        grid-template-columns: 1fr;
    }
}

@media only screen and (max-width: 734px) {
    .hero-section h2 {
        font-size: 32px;
    }
    
    .hero-section h3 {
        font-size: 19px;
    }
}

/* 調整導航容器樣式 */
.nav-container {
    position: relative;
    z-index: 2;
    background-color: rgba(255,255,255,0.9);
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-image {
    height: 35px;
    width: auto;
}

.logo h1 {
    color: #333;
    font-size: 1.5rem;
}

.language-selector {
    position: relative;
    cursor: pointer;
}

.lang-options {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-text {
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.3s;
    color: #ffffff; /* 默認為白色 */
}

.lang-text:hover {
    color: #2997ff;
}

.lang-text.active {
    color: #2997ff; /* 選中時為藍色 */
    font-weight: bold;
}

.lang-divider {
    color: #f5f5f7;
    opacity: 0.5;
    font-size: 12px;
}

.language-selector::before {
    content: '';
    position: absolute;
    left: -20px;
    height: 20px;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.3);
}

.language-selector i {
    color: #f5f5f7;
    font-size: 14px;
    opacity: 0.8;
}

/* 語言為英文時的樣式 */
html[lang="en"] .nav-links a,
html[lang="en"] .language-selector select,
html[lang="en"] .logo h1 {
    text-transform: uppercase;
    letter-spacing: 1px;  /* 增加字母間距使大寫字母更易讀 */
}

/* Footer 樣式 */
.footer {
    background-color: #333;
    padding: 20px 0 10px;
    width: 100%;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between; /* 改用 space-between 來均勻分配空間 */
    align-items: flex-start;
}

/* 左側：社群媒體群組 */
.social-media-group {
    width: 220px; /* 稍微調整寬度 */
    margin-left: 20px; /* 增加左側邊距，使社群媒體向右偏移 */
}

.social-media-group h4 {
    color: #2997ff;
    font-size: 18px;  /* 加大字體 */
    margin-bottom: 15px;  /* 稍微增加下方間距 */
    font-weight: 500;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    font-size: 20px;
    text-decoration: none;
    transition: opacity 0.3s;
}

.social-icon:hover {
    opacity: 0.8;
}

/* 社群媒體圖標顏色 */
.social-icon.facebook { color: #1877f2; }
.social-icon.line { color: #00c300; }
.social-icon.threads { color: #ffffff; }
.social-icon.youtube { color: #FF0000; }
.social-icon.instagram {
    background: -webkit-linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 中間：連結群組 */
.footer-link-groups {
    flex: 0 1 auto; /* 改為不伸縮 */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 0 40px; /* 左右加上固定間距 */
    min-width: 500px; /* 設定最小寬度確保布局穩定 */
    justify-content: center; /* 將連結群組居中 */
}

.footer-links h4 {
    color: #2997ff;
    font-size: 18px;  /* 加大字體 */
    margin-bottom: 12px;  /* 稍微增加下方間距 */
    font-weight: 500;
}

.footer-link {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 5px;
    display: block;
    opacity: 0.8;
}

.footer-link:hover {
    opacity: 1;
}

/* 右側：QR Code 區塊 */
.qr-code-section {
    width: 220px; /* 與左側保持相同寬度 */
    text-align: left;  /* 改為左對齊 */
    margin-right: 20px; /* 增加右側邊距，使QR碼更靠右 */
}

.qr-code-section h4 {
    color: #2997ff;
    font-size: 18px;  /* 加大字體 */
    margin-bottom: 15px;  /* 稍微增加下方間距 */
    text-align: left;  /* 確保標題左對齊 */
}

.qr-code {
    display: flex;
    justify-content: flex-start;  /* 確保圖片左對齊 */
    align-items: center;
}

.qr-code img {
    width: 120px;
    height: 120px;
    margin: 0;  /* 移除可能的自動置中margin */
}

/* 版權信息 */
.copyright {
    text-align: center;
    color: #999;
    padding-top: 15px;
    margin-top: 20px;
    border-top: 1px solid #444;
    width: 100%;
}

/* RWD 適配 */
@media (max-width: 992px) {
    .footer-content {
        gap: 30px;
    }

    .footer-link-groups {
        min-width: 400px;
        margin: 0 30px;
    }
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .social-media-group {
        width: 100%;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }

    .footer-link-groups {
        width: 100%;
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
        margin: 20px 0;
    }

    .qr-code-section {
        margin: 20px 0;
    }
}

/* 公司資訊區塊樣式 */
.company-info {
    background-color: #f5f5f7;
    padding: 40px 0;
    margin-top: auto;
}

.info-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 0 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #1d1d1f;
}

.info-item i {
    font-size: 24px;
    color: #1877f2;  /* 改為 Facebook 藍色 */
    transition: color 0.3s ease;
}

/* 懸停效果 */
.info-item:hover i {
    color: #0d6efd;  /* 懸停時顯示稍深的藍色 */
}

.info-item span {
    font-size: 14px;
    line-height: 1.4;
}

/* 移動端適配 */
@media (max-width: 768px) {
    .info-container {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }

    .info-item {
        justify-content: center;
    }
}

/* Apple 風格的 CTA 按鈕樣式 */
.banner-cta {
    position: absolute;
    bottom: 80px;  /* 調整按鈕位置 */
    left: 50%;  /* 水平置中 */
    transform: translateX(-50%);  /* 確保完全置中 */
    z-index: 2;
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #000000;  /* 改為黑色 */
    color: #ffffff;
    text-decoration: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 150px;  /* 確保按鈕有最小寬度 */
    text-align: center;
}

.cta-button:hover {
    background-color: #333333;  /* 懸停時顯示稍淺的黑色 */
    transform: translateY(-2px);
}

/* 移動端適配 */
@media (max-width: 768px) {
    .banner-cta {
        margin-top: 25px;
    }
    
    .cta-button {
        padding: 14px 26px;
        font-size: 15px;
    }
}

/* 法律聲明頁面樣式 */
.legal-container {
    padding: 80px 20px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.legal-content section {
    margin-bottom: 2rem;
}

.legal-content h2 {
    margin-bottom: 1rem;
    color: #333;
}

/* 維修預約頁面樣式 */
.service-container {
    padding: 80px 20px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.service-form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.service-form .form-group {
    margin-bottom: 1.5rem;
}

.service-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
}

.service-form input,
.service-form select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.service-form button {
    width: 100%;
    padding: 1rem;
    background-color: #000;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.service-form button:hover {
    background-color: #333;
}

/* 圖片上傳相關樣式 */
.image-upload-container {
    position: relative;
    display: inline-block;
}

.image-upload-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 8px 15px;
}

.image-upload-container:hover .image-upload-btn {
    opacity: 1;
}

.image-upload-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}

.banner-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.banner-img:hover {
    transform: scale(1.02);
}

/* Banner 輪播樣式 */
.image-slider {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.banner-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.banner-img.active {
    opacity: 1;
}

.text-slider {
    position: relative;
    flex: 2;
    height: auto;
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
}

.text-slide {
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease-in-out;
    text-align: center;
}

.text-slide.active {
    opacity: 1;
    transform: translateY(0);
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: white;
}

/* Banner 區塊樣式 */
.banner-section {
    display: flex;
    flex-direction: row;
    gap: 20;
    padding-top: 20px;
    max-width: auto;
    margin: 0 auto;
    height: 450px;  /* 統一高度 */
    width: 100%;
    margin-top: 60px;
    justify-content: space-between;
    position: relative;
    overflow: hidden;  /* 控制溢出 */
}

.banner-content,
.banner-content-second,
.banner-content-third {
    width: 33.33%;
    transition: transform 0.3s ease-out;  /* 添加過渡效果 */
}

.banner-content.active,
.banner-content-second.active,
.banner-content-third.active {
    transform: scale(1.05);  /* 稍微減小放大效果 */
    z-index: 2;
}

/* 確保每個 banner 的內容都正確顯示 */
.banner-content,
.banner-content-second,
.banner-content-third {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: #f5f5f7;
}

.banner-content-second {
    position: relative;
    width: 33.33%;  /* 調整為三分之一寬度 */
    height: 600px;  /* 統一高度 */
    overflow: hidden;
    background: #f5f5f7;
}

.banner-content-second .banner-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: block;
}

.banner-content-second .banner-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;  /* 添加內邊距 */
    display: block;
}

.banner-text {
    padding: 40px;
    z-index: 1;
    color: #000000;
    margin-top: 200px;
}

.banner-text h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-align: left;  /* 標題靠左對齊 */
    word-wrap: break-word;
    max-width: 100%;
}

.banner-text p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #666;
    text-align: left;  /* 段落靠左對齊 */
    word-wrap: break-word;
    max-width: 100%;
    margin-bottom: 1rem;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

/* Banner2 文字覆蓋層樣式 */
.banner-text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #000000;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px 30px;  /* 縮小內邊距 */
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
    width: auto;
    min-width: 250px;  /* 縮小最小寬度 */
}

.banner-text-overlay h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    color: #333;
}

.banner-text-overlay p {
    font-size: 1.5rem;
    opacity: 0.9;
    color: #666;
    line-height: 1.6;
}

/* 輪播圖片容器 */
.image-slider,
.image-slider-second,
.image-slider-third {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.banner-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    border-radius: 8px;
}

.banner-img.active {
    opacity: 1;
}

.text-slide {
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease-in-out;
}

.text-slide.active {
    opacity: 1;
    transform: translateY(0);
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: white;
}

/* 響應式設計 */
@media (max-width: 992px) {
    .banner-section {
        flex-direction: column;
        height: auto;
    }

    .banner-content,
    .banner-content-second,
    .banner-content-third {
        padding: 0;
        width: 100%;
        height: 350px;  /* 統一手機版高度 */
        max-width: none;
    }

    .banner-text {
        width: 100%;
        max-width: 100%;
        text-align: center;
        flex-direction: column;
    }

    .text-slider {
        flex: none;
        margin-bottom: 20px;
    }

    .banner-cta {
        flex: none;
    }

    .banner-text h1 {
        font-size: 2rem;
    }

    .banner-text p {
        font-size: 1.1rem;
    }

    .banner-section {
        padding: 0;
    }

    .banner-text {
        order: 1;
    }

    .banner-image {
        order: 2;
    }

    .banner-content-second .banner-image img {
        padding: 0;
        object-fit: cover;
    }

    .banner-content-third {
        width: 100%;
        margin-left: 0;  /* 在手機版取消靠右 */
    }

    .banner-text-overlay {
        padding: 20px 30px;
    }

    .banner-text-overlay h2 {
        font-size: 1.8rem;
    }

    .banner-text-overlay p {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .banner-image {
        height: 250px;
    }

    .image-slider,
    .image-slider-second,
    .image-slider-third {
        height: 250px;
    }

    .banner-text h1 {
        font-size: 1.8rem;
    }

    .banner-text p {
        font-size: 1rem;
    }

    .banner-content-second .banner-image,
    .banner-content-second .image-slider-second {
        height: 200px;
    }

    .banner-content-third .banner-image,
    .banner-content-third .image-slider-third {
        height: 200px;
    }
}

/* 平板響應式設計 */
@media (min-width: 993px) and (max-width: 1200px) {
    .banner-content-second {
        height: 600px;
    }
}

/* 彈窗樣式 */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow-y: auto;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    position: relative;
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

/* 表單樣式 */
#tradeForm {
    margin-top: 20px;
}

#tradeForm .form-group {
    margin-bottom: 20px;
}

#tradeForm label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

#tradeForm input,
#tradeForm select,
#tradeForm textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

#tradeForm textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-btn {
    position: relative;
    width: 100%;
    padding: 20px 40px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 50%, #2868a5 100%);
    color: white;
    font-size: 1.3em;
    font-weight: 500;
    letter-spacing: 2px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.submit-btn i {
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.submit-btn:hover i {
    transform: translateX(5px);
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: all 0.8s ease;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.4);
    background: linear-gradient(135deg, #5a9ee8 0%, #4084d3 50%, #2d6db8 100%);
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.25);
}

.submit-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.1) 100%
    );
    pointer-events: none;
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.submit-btn:disabled::before {
    display: none;
}

.submit-btn:disabled::after {
    display: none;
}

/* 同業交易頁面樣式 */
.trade-container {
    padding: 50px 20px 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.trade-container h1 {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
}

.trade-content {
    display: grid;
    gap: 40px;
}

/* 合作優勢區塊 */
.trade-benefits {
    background: #f8f8f8;
    padding: 40px;
    border-radius: 12px;
}

.benefits-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
}

.benefit-item {
    background: #fff;
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 123, 255, 0.1);
    flex: 1;
    min-width: calc(33.333% - 20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 220px;
}

@media (max-width: 992px) {
    .benefit-item {
        min-width: calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .benefit-item {
        min-width: 100%;
    }
}

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

.benefit-item i {
    font-size: 40px;
    color: #333;
    margin-bottom: 20px;
}

/* 申請表單區塊 */
.trade-form-section {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.trade-form {
    margin-top: 30px;
}

/* QR Code 區塊樣式 */
.qr-code-section {
    flex: 1;
    text-align: left;  /* 改為左對齊 */
}

.qr-code-section h4 {
    color: #fff;
    margin-bottom: 15px;
    text-align: left;
    font-size: 1em;
}

.qr-code {
    display: flex;
    justify-content: flex-start;  /* 確保圖片左對齊 */
    align-items: center;
}

.qr-code img {
    width: 100px;
    height: 100px;
    margin: 0;  /* 移除可能的自動置中margin */
}

@media (max-width: 992px) {
    .footer-content {
        gap: 30px;
    }

    .footer-link-groups {
        margin: 0 20px;
    }
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .social-icons-group {
        width: 100%;
        justify-content: center;
        margin: 20px 0;
    }

    .footer-link-groups {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-links {
        text-align: center;
    }

    .qr-code-section {
        margin: 20px 0;
    }
}

/* 內容管理系統樣式 */
.content-management {
    padding: 50px 20px 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.management-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 30px;
    margin-bottom: 30px;
}

.banner-management,
.car-management {
    display: grid;
    gap: 30px;
}

.text-management,
.image-management {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 8px;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.image-grid img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

.car-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.car-list {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 8px;
}

.add-car-form {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 8px;
}

/* Master it 標題區塊 */
.master-it {
    position: absolute;
    top: 30px;
    right: 40px;  /* 調整右邊距 */
    background: #283593;
    padding: 15px 25px;
    border-radius: 20px;
    color: white;
    z-index: 2;  /* 確保在最上層 */
}

.master-it h2 {
    font-size: 24px;
    margin-bottom: 5px;
}

.master-it p {
    font-size: 14px;
    opacity: 0.8;
}

/* 第二個 banner 的按鈕樣式 */
.banner-content-second .banner-cta {
    /* 預留給未來樣式 */
}

.banner-content-second .cta-button {
    /* 預留給未來樣式 */
}

/* 圖片輪播樣式 */
.banner-content-second {
    position: relative;
    width: 33.33%;  /* 調整為三分之一寬度 */
    height: 600px;  /* 統一高度 */
    overflow: hidden;
    background: #f5f5f7;
}

.banner-content-second .banner-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: block;
}

.banner-content-second .banner-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;  /* 添加內邊距 */
    display: block;
}

/* 響應式設計調整 */
@media (max-width: 992px) {
    .banner-section {
        flex-direction: column;
        height: auto;
    }

    .banner-content-second {
        padding: 0;
        width: 100%;
        height: 350px;  /* 統一手機版高度 */
        max-width: none;
    }
}

/* Banner3 的特定樣式 */
.banner-content-third {
    position: relative;
    width: 33.33%;  /* 設定為三分之一寬度 */
    height: 800px;  /* 統一高度 */
    overflow: hidden;
    background: #f5f5f7;
    margin-left: auto;
}

.banner-content-third .banner-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: block;
}

.banner-content-third .banner-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
}

/* 響應式設計調整 */
@media (max-width: 992px) {
    .banner-section {
        flex-direction: column;
        height: auto;
    }

    .banner-content-third {
        width: 100%;
        margin-left: 0;  /* 在手機版取消靠右 */
    }
}

/* Cars 頁面主要樣式 */
.cars-container {
    padding: 60px 20px 20px;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;  /* 添加相對定位 */
}

/* 分類標籤樣式 */
.car-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;  /* 增加間距 */
    padding: 60px;  /* 增加內邊距 */
    max-width: 1400px;  /* 增加最大寬度 */
    margin: 0 auto;
    width: 100%;
}

.tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 30px;
    border: none;
    border-radius: 30px;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    box-shadow: 5px 5px 15px rgba(0,0,0,0.1),
                -5px -5px 15px rgba(255,255,255,0.8);
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    height: 300px;
    position: relative;
    /* 添加光暈效果 */
    filter: drop-shadow(0 0 20px rgba(41, 151, 255, 0.1));
}

.tab-btn:hover {
    transform: translateY(-8px);
    box-shadow: 8px 8px 25px rgba(0,0,0,0.15),
                -8px -8px 25px rgba(255,255,255,0.9);
    /* 懸停時增強光暈效果 */
    filter: drop-shadow(0 0 30px rgba(41, 151, 255, 0.2));
}

.tab-btn i {
    font-size: 56px;
    margin-bottom: 25px;
    color: #2997ff;
    transition: all 0.3s ease;
}

.tab-btn span {
    font-size: 28px;
    font-weight: 500;
    color: #333;
    margin-bottom: 25px;  /* 為搜尋按鈕留出空間 */
}

/* 搜尋按鈕樣式 */
.search-btn {
    margin-top: 20px;
    padding: 12px 30px;
    border-radius: 20px;
    background: #2997ff;
    color: white;
    font-size: 16px;
    border: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-btn i {
    font-size: 16px;
    margin: 0;
    color: white;
}

.tab-btn:hover .search-btn {
    opacity: 1;
    transform: translateY(0);
}

.search-btn:hover {
    background: #0077ed;
    transform: scale(1.05);
}

/* 響應式設計 */
@media (max-width: 1200px) {
    .car-tabs {
        gap: 40px;
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .car-tabs {
        grid-template-columns: 1fr;
        padding: 30px;
        gap: 30px;
    }

    .tab-btn {
        height: 250px;
        padding: 30px 20px;
    }

    .tab-btn i {
        font-size: 42px;
    }

    .tab-btn span {
        font-size: 24px;
    }

    .search-btn {
        padding: 10px 25px;
        font-size: 14px;
    }
}

.explore-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: #fff;
    padding: 10px 25px;
    border-radius: 30px;
    font-size: 14px;
    width: auto;
    min-width: 140px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.explore-btn i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.explore-btn:hover {
    transform: translateX(-50%) translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
    background: linear-gradient(135deg, #0056b3, #003d80);
}

.explore-btn:hover i {
    transform: translateX(3px);
}

/* 確保按鈕文字在按鈕內置中 */
.explore-btn span {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* 篩選區域樣式 */
.filter-section {
    padding: 30px 50px;
    background-color: #f8f9fa;
    border-radius: 12px;
    margin: 20px auto;
    max-width: 1200px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.filter-group {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.filter-group label {
    display: inline-block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 0.95em;
}

.filter-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9em;
    background-color: white;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-group select:hover {
    border-color: #007bff;
}

.filter-group select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
    outline: none;
}

/* 篩選按鈕樣式 */
.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.filter-submit {
    padding: 12px 30px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-reset {
    padding: 12px 30px;
    background: #f8f9fa;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.2);
}

.filter-reset:hover {
    background: #e9ecef;
}

/* 響應式設計 */
@media (max-width: 1200px) {
    .filter-group {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .filter-group {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .filter-group {
        grid-template-columns: 1fr;
    }
    
    .filter-section {
        padding: 20px;
    }
}

/* 車輛卡片樣式 */
.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* 手機模式卡片佈局 */
@media (max-width: 768px) {
    .cars-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .cars-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
}

.car-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    cursor: pointer;
}

.car-card:hover {
    transform: translateY(-5px);
}

/* 彈窗樣式 */
.car-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
}

.car-modal-content {
    position: relative;
    background: white;
    margin: 5% auto;
    padding: 20px;
    width: 90%;
    max-width: 1000px;
    border-radius: 10px;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #333;
}

.car-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.car-images-slider {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
}

.car-info-details {
    padding: 20px;
}

/* 無結果提示 */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    font-size: 1.2rem;
    color: #666;
}

/* 圖片輪播樣式 */
.slider-container {
    display: flex;
    transition: transform 0.3s ease;
    width: 100%;
    height: 100%;
}

.slide {
    flex: 0 0 100%;
    height: 100%;
}

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

.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 18px;
}

.slider-prev { left: 10px; }
.slider-next { right: 10px; }

/* 預約按鈕樣式 */
.inquiry-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: #1e88e5;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    margin-top: 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.inquiry-btn:hover {
    background: #1565c0;
}

/* 車輛表格樣式 */
.cars-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.cars-table th,
.cars-table td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.cars-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.cars-table tr:hover {
    background: #f5f5f5;
}

.table-car-image {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
}

.details-btn {
    padding: 6px 12px;
    background: #1e88e5;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.details-btn:hover {
    background: #1565c0;
}

.result-count {
    margin: 20px 0;
    padding: 10px;
    background: #e3f2fd;
    border-radius: 4px;
    color: #1565c0;
    font-weight: 500;
}

/* 無結果提示樣式優化 */
.no-results {
    text-align: center;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

.no-results i {
    font-size: 48px;
    color: #bdbdbd;
    margin-bottom: 16px;
}

.no-results p {
    color: #757575;
    margin: 8px 0;
}

/* 載入中提示樣式 */
.loading-indicator {
    text-align: center;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

.loading-indicator i {
    font-size: 48px;
    color: #1e88e5;
    margin-bottom: 16px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 錯誤訊息樣式 */
.error-message {
    text-align: center;
    padding: 40px;
    background: #fee;
    border-radius: 8px;
    margin: 20px 0;
}

.error-message i {
    font-size: 48px;
    color: #e53935;
    margin-bottom: 16px;
}

.retry-btn {
    margin-top: 20px;
    padding: 10px 30px;
    background: #1e88e5;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.retry-btn:hover {
    background: #1565c0;
}

/* Banner 輪播樣式 */
.banner-container {
    position: relative;
    width: 100%;
    height: 400px;  /* 降低高度 */
    overflow: hidden;
    margin: 0;
    margin-top: -40px;
    z-index: 1;
}

/* 調整 banner 內容的位置和大小 */
.banner-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    z-index: 2;
}

.banner-content h1 {
    font-size: 36px;  /* 調整標題大小 */
    margin-bottom: 20px;
    font-weight: 700;
}

.banner-content p {
    font-size: 18px;  /* 調整內文大小 */
    margin-bottom: 30px;
}

/* 手機版響應式設計 */
@media screen and (max-width: 768px) {
    .banner-container {
        height: 300px;  /* 手機版更低的高度 */
    }
    
    .banner-content h1 {
        font-size: 28px;
    }
    
    .banner-content p {
        font-size: 16px;
    }
}

/* 輪播控制項樣式 */
.banner-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
}

.prev-btn, .next-btn {
    background: rgba(255,255,255,0.3);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.prev-btn:hover, .next-btn:hover {
    background: rgba(255,255,255,0.5);
}

.banner-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: #fff;
}

/* 第二個 banner 的特殊樣式 */
.banner-container-second {
    height: 400px; /* 較小的高度 */
    margin-top: 30px;
}

.banner-slider {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.banner-slide {
    position: relative;
    width: 33.333%;
    height: 100%;
}

/* 搜尋區塊樣式 */
.search-container {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    margin-bottom: 20px;  /* 添加底部間距 */
}

.search-title {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
    font-size: 24px;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.search-row {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 10px;
}

.search-select {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #fff;
    font-size: 14px;
    cursor: pointer;
}

.search-select:hover {
    border-color: #1e88e5;
}

.search-select:focus {
    outline: none;
    border-color: #1e88e5;
    box-shadow: 0 0 0 2px rgba(30,136,229,0.1);
}

.search-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.separator {
    color: #666;
    font-weight: bold;
}

.search-options {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.search-options label {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #333;
    font-size: 14px;
}

.search-button {
    background: #000000;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
    margin: 0 auto;
    display: block;
    width: 200px;
}

.search-button:hover {
    background: #333333;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .search-container {
        width: 95%;
        padding: 15px;
    }

    .search-row {
        flex-direction: column;
    }

    .search-select, 
    .search-input {
        width: 100%;
    }

    .search-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* 主標題樣式 */
.main-title-container {
    padding: 3rem 0;
    text-align: center;
    background-color: #f9f9f9;
}

.main-title {
    font-size: 3rem;
    font-weight: bold;
    color: #333;
    margin: 0;
    padding: 0 20px;
}

/* Slogan 區域樣式 */
.slogan-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.slogan-item {
    font-size: 2.2rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.4;
    padding: 0.5rem 1rem;
    border-left: 5px solid #2997ff;
    background-color: rgba(41, 151, 255, 0.05);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.slogan-item:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 響應式調整 */
@media (max-width: 768px) {
    .slogan-item {
        font-size: 1.8rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .slogan-item {
        font-size: 1.5rem;
        padding: 0.3rem 0.6rem;
    }
}

/* 手機版 QR Code 位置調整 */
@media screen and (max-width: 768px) {
    .qr-code-section {
        margin: 20px auto;
        width: 100%;
        max-width: 200px;
        padding: 20px;
        order: 2;
        text-align: center; /* 在手機版中置中顯示 */
    }
    
    .qr-code-section h4 {
        text-align: center; /* 在手機版中標題置中 */
    }
    
    .qr-code {
        justify-content: center; /* 在手機版中圖片置中 */
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-links-container {
        flex-direction: column;
        width: 100%;
        order: 1;  /* 確保連結區塊在上方 */
    }

    .social-media {
        order: 1;  /* 社群媒體放在最上方 */
        margin-bottom: 20px;
    }

    .footer-links {
        order: 3;  /* 其他連結放在最下方 */
        margin: 10px 0;
    }
}

@media screen and (max-width: 480px) {
    .qr-code-section {
        max-width: 180px;
        padding: 15px;
    }
}

/* 直列式內容樣式 */
.about-content-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    gap: 30px;
}

.about-image-vertical {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.about-content-vertical p {
    text-align: justify;
    line-height: 1.8;
    color: #666;
    padding: 0 20px;
}

/* 手機版適配 */
@media (max-width: 768px) {
    .about-content-vertical {
        gap: 20px;
    }

    .about-image-vertical {
        max-width: 100%;
    }
}

/* 流程步驟樣式 */
.process-step {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.process-image {
    flex: 1;
    max-width: 500px;
}

.process-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.process-text {
    flex: 1;
}

.process-text p {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
}

/* 手機版適配 */
@media (max-width: 768px) {
    .process-step {
        flex-direction: column;
        gap: 20px;
        padding: 15px;
    }

    .process-image {
        max-width: 100%;
    }
}

/* 垂直排列內容樣式 */
.content-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 20px;
}

.text-block {
    max-width: 800px;
    text-align: justify;
    line-height: 1.8;
    color: #666;
}

.benefit-item,
.stat-item {
    width: 100%;
    max-width: 400px;
    text-align: center;
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Banner 影片樣式 */
.video-slide {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.banner-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.banner-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 確保影片上的文字內容可見 */
.banner-slide {
    position: relative;
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 2;
}

/* Banner 影片樣式 */
.video-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.banner-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.banner-slide {
    position: relative;
    height: 100vh;  /* 或設定具體高度，例如 600px */
    overflow: hidden;
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);  /* 增加文字陰影提高可讀性 */
}

.banner-container {
    display: flex;
    height: calc(100vh - var(--nav-height));
}

/* 左側影片 Banner */
.banner-left {
    flex: 1;
    position: relative;
    overflow: hidden;
}

/* 右側圖片 Banner */
.banner-right {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.video-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.banner-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* 手機版適配 */
@media (max-width: 768px) {
    .banner-container {
        flex-direction: column;
    }

    .banner-left,
    .banner-right {
        height: 50vh;
    }
}

/* 雙 Banner 區塊樣式 */
.dual-banner-container {
    display: flex;
    gap: 20px;
    padding: 0 40px;
    margin-top: 30px;
    margin-bottom: 30px;
    height: 500px;
}

/* 左側影片 Banner */
.dual-banner-left {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    height: 100%;
}

.video-container {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #000;
}

.banner-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 右側圖片 Banner */
.dual-banner-right {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* 輪播容器 */
.dual-banner-right .banner-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.dual-banner-right .banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    z-index: 0;
}

.dual-banner-right .banner-slide.active {
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 2 !important;
}

.dual-banner-right .banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 輪播控制按鈕 */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    color: #333;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* 手機版適配 */
@media (max-width: 768px) {
    .dual-banner-container {
        flex-direction: column;
        height: auto;
        padding: 0 20px;
        gap: 15px;
    }

    .dual-banner-left,
    .dual-banner-right {
        height: 200px;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .prev-btn {
        left: 10px;
    }
    
    .next-btn {
        right: 10px;
    }
}

.process-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    min-height: calc(100vh - 60px - 300px);
    overflow-y: auto;
}

.page-title {
    text-align: center;
    font-size: 2.8em;
    margin-bottom: 60px;
    color: #333;
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
}

.process-content {
    display: flex;
    flex-direction: column;
    gap: 80px;
    max-width: 1000px;
    margin: 0 auto;
}

.process-section {
    background: #fff;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.section-title {
    text-align: center;
    font-size: 1.8em;
    margin-bottom: 50px;
    color: #444;
    font-weight: 500;
}

.process-steps {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

/* 中央垂直線 */
.process-steps::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #007bff 0%, #00d2ff 100%);
    border-radius: 2px;
}

.step {
    align-items: center;
    position: relative;
    margin-bottom: 50px;
    width: 100%;
    min-height: 100px;
    display: flex;
}

.step:nth-child(even) {
    flex-direction: row-reverse;
}

/* 水平連接線 */
.step::before {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 70px);
    height: 3px;
    background: linear-gradient(to right, #007bff, #00d2ff);
    z-index: 1;
}

/* 奇數步驟的水平線在右側 */
.step:nth-child(odd)::before {
    right: 50%;
    background: linear-gradient(to right, #00d2ff, #007bff);
}

/* 偶數步驟的水平線在左側 */
.step:nth-child(even)::before {
    left: 50%;
}

.step:last-child {
    margin-bottom: 0;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #007bff, #00d2ff);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4em;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    border: 4px solid #fff;
}

.step-content {
    width: 45%;
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    position: relative;
    transition: transform 0.3s ease;
    z-index: 2;
}

.step-content::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    background: #fff;
    transform: translateY(-50%) rotate(45deg);
}

.step:nth-child(odd) .step-content::after {
    right: -10px;
}

.step:nth-child(even) .step-content::after {
    left: -10px;
}

.step-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.step-content h3 {
    margin: 0 0 12px 0;
    color: #333;
    font-size: 1.2em;
    font-weight: 500;
}

.step-content p {
    margin: 0;
    color: #666;
    line-height: 1.6;
    font-size: 0.95em;
}

@media (max-width: 768px) {
    .process-container {
        padding: 40px 15px;
    }

    .page-title {
        font-size: 2.2em;
    }

    .process-steps::before {
        left: 30px;
        transform: none;
    }

    .step {
        flex-direction: row !important;
        margin-left: 50px;
    }

    .step-number {
        left: 30px;
        width: 50px;
        height: 50px;
        font-size: 1.2em;
        border-width: 3px;
    }

    .step-content {
        width: calc(100% - 80px);
        margin-left: 30px;
        z-index: 1;
    }

    .step-content::after {
        display: none;
    }

    .process-section {
        padding: 30px 20px;
    }

    .section-title {
        font-size: 1.5em;
    }

    /* 移動端垂直線調整 */
    .process-steps::before {
        left: 30px;
        transform: none;
    }

    /* 移動端水平線調整 */
    .step::before {
        width: 30px;
        left: 55px !important;
        right: auto !important;
    }
}

/* About 頁面樣式 */
.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px 30px;  /* 增加上方間距 */
}

.about-container h1 {
    margin-bottom: 50px;  /* 增加標題下方間距 */
    font-size: 2.5em;
    color: #333;
    text-align: center;
    position: relative;
}

/* 為標題添加裝飾性底線 */
.about-container h1:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, #2997ff, #0077ed);
    border-radius: 2px;
}

.about-content {
    margin-top: 0;  /* 因為標題已有下方間距，這裡可以移除 */
}

/* 關於我們區塊共用樣式 */
.about-section {
    margin-bottom: 60px;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.about-section h2 {
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #4a90e2;
}

.about-section h2:after {
    display: none; /* 隱藏底線 */
}

/* 為什麼選擇維鑫和公司成就標題共用樣式 */
.benefits-section h2, .records-section h2, .employee-benefits-section h2 {
    color: #333;
    margin-bottom: 30px;
    padding-bottom: 15px;
    text-align: left; /* 文字左對齊 */
    margin-left: 15px; /* 添加統一的左邊距 */
    font-size: 24px;
    font-weight: 600;
    position: relative;
}

.benefits-section h2:after, .records-section h2:after, .employee-benefits-section h2:after {
    display: none; /* 隱藏after元素的底線 */
}

/* 員工福利和公司成就區塊共用樣式 */
.benefits-section, .records-section, .employee-benefits-section {
    padding: 40px 0;
    background-color: #fff;
    margin: 40px 0;
}

/* 員工福利區塊 */
.benefits-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.benefit-item {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 123, 255, 0.1);
}

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

.benefit-item i {
    font-size: 2.5em;
    background: linear-gradient(135deg, #007bff, #00d2ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.benefit-item h3 {
    font-size: 1.3em;
    color: #1a1a1a;
    margin-bottom: 15px;
    font-weight: 600;
}

.benefit-item p {
    color: #666;
    line-height: 1.6;
    font-size: 1em;
}

/* 響應式設計 */
@media (max-width: 992px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

/* 數字計數器樣式 */
.counter-number {
    font-size: 2.5em;
    font-weight: 700;
    color: #007bff;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.counter {
    background: linear-gradient(135deg, #007bff, #00d2ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.plus {
    color: #007bff;
    font-size: 0.8em;
    margin-top: -10px;
}

/* 數字計數器樣式 */
.counter-number {
    font-size: 2.5em;
    font-weight: 700;
    color: #007bff;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.counter {
    background: linear-gradient(135deg, #007bff, #00d2ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.plus {
    color: #007bff;
    font-size: 0.8em;
    margin-top: -10px;
}

/* 數字動畫效果 */
@keyframes countUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.counter.animate {
    animation: countUp 0.5s ease forwards;
}

.plus,
.percentage {
    color: #007bff;
    font-size: 1.5em;
    font-weight: 600;
    margin-left: 5px;
    background: linear-gradient(135deg, #007bff, #00d2ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 數字計數器樣式 */
.counter-number {
    font-size: 2.5em;
    font-weight: 700;
    color: #007bff;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.counter {
    font-size: 3.5em;
    background: linear-gradient(135deg, #007bff, #00d2ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    transition: all 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
}

.counter.visible {
    transform: translateY(0);
    opacity: 1;
}

.plus,
.percentage {
    color: #007bff;
    font-size: 1.5em;
    font-weight: 600;
    margin-left: 5px;
    display: inline-block;
}

/* 稅金試算器樣式 */
.calculator-container {
    max-width: 800px;
    margin: 100px auto;
    padding: 40px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.calculator-container h1 {
    text-align: center;
    color: #1a1a1a;
    margin-bottom: 40px;
}

.calculator-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-group label {
    font-size: 1.1em;
    color: #333;
    font-weight: 500;
}

.input-group input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1.1em;
    transition: border-color 0.3s;
}

.input-group input:focus {
    border-color: #007bff;
    outline: none;
}

.calculate-btn {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    transition: transform 0.3s;
}

.calculate-btn:hover {
    transform: translateY(-2px);
}

.result-container {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    display: none;
}

.result-container.show {
    display: block;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.result-item.total {
    border-bottom: none;
    margin-top: 10px;
    padding-top: 20px;
    border-top: 2px solid #007bff;
    font-weight: bold;
    font-size: 1.2em;
}

.result-label {
    color: #666;
}

.result-value {
    color: #007bff;
    font-weight: 600;
}

/* 員工登入頁面樣式 */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    position: relative;
    overflow: hidden;
}

.login-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #00d2ff);
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-header h1 {
    font-size: 2em;
    color: #1a1a1a;
    margin-bottom: 10px;
    font-weight: 600;
}

.login-header p {
    color: #666;
    font-size: 0.95em;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 0.95em;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-group input:focus {
    border-color: #007bff;
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    outline: none;
}

.form-group i {
    position: absolute;
    right: 15px;
    top: 38px;
    color: #666;
}

.login-btn {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    background: linear-gradient(135deg, #0056b3, #003d80);
}

.forgot-password {
    text-align: center;
    margin-top: 20px;
}

.forgot-password a {
    color: #007bff;
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.3s;
}

.forgot-password a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* 響應式設計 */
@media (max-width: 480px) {
    .login-box {
        padding: 30px 20px;
    }

    .login-header h1 {
        font-size: 1.8em;
    }

    .form-group input {
        padding: 10px 12px;
    }

    .login-btn {
        padding: 12px;
        font-size: 1em;
    }
}

/* 登入頁面返回首頁按鈕樣式 */
.login-container .back-home-container {
    text-align: center;
    margin-top: 30px;
}

.login-container .back-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: #f8f9fa;
    color: #007bff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s ease;
    border: 1px solid #007bff;
}

.login-container .back-home-btn:hover {
    background: #007bff;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

.login-container .back-home-btn i {
    font-size: 1.2em;
}

/* 合作申請表單樣式 */
.trade-form-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.trade-form-header {
    text-align: center;
    margin-bottom: 40px;
}

.trade-form-header h2 {
    font-size: 2.2em;
    color: #1a1a1a;
    margin-bottom: 15px;
    font-weight: 600;
}

.trade-form-header p {
    color: #666;
    font-size: 1.1em;
    line-height: 1.6;
}

.trade-form {
    display: grid;
    gap: 25px;
}

.trade-form-group {
    position: relative;
}

.trade-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 1em;
}

.trade-form-group input,
.trade-form-group select,
.trade-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.trade-form-group input:focus,
.trade-form-group select:focus,
.trade-form-group textarea:focus {
    border-color: #007bff;
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    outline: none;
}

.trade-form-group textarea {
    height: 150px;
    resize: vertical;
}

.trade-form-group.required label::after {
    content: '*';
    color: #dc3545;
    margin-left: 4px;
}

.trade-form-submit {
    margin-top: 20px;
    padding: 15px 30px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.trade-form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    background: linear-gradient(135deg, #0056b3, #003d80);
}

/* 表單分隔線 */
.trade-form-divider {
    margin: 30px 0;
    border-top: 1px solid #eee;
    position: relative;
}

.trade-form-divider span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 0 15px;
    color: #666;
    font-size: 0.9em;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .trade-form-container {
        padding: 30px 20px;
        margin: 20px;
    }

    .trade-form-header h2 {
        font-size: 1.8em;
    }

    .trade-form-group input,
    .trade-form-group select,
    .trade-form-group textarea {
        padding: 10px 12px;
    }

    .trade-form-submit {
        padding: 12px 25px;
        font-size: 1em;
    }
}

/* 中古車回收頁面樣式 */
.recycle-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

.recycle-header {
    text-align: center;
    margin-bottom: 60px;
}

.recycle-header h1 {
    font-size: 2.5em;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.recycle-header p {
    font-size: 1.2em;
    color: #666;
}

/* 服務特色樣式 */
.recycle-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 80px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.feature-item {
    text-align: center;
    padding: 30px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    width: 100%;
}

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

.feature-item i {
    font-size: 2.5em;
    color: #007bff;
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 1.3em;
    color: #333;
    margin-bottom: 15px;
}

.feature-item p {
    color: #666;
    line-height: 1.6;
}

/* 回收流程樣式 */
.recycle-process {
    margin: 100px auto;
    padding: 60px 40px;
    max-width: 1200px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.recycle-process h2 {
    text-align: center;
    font-size: 2em;
    color: #1a1a1a;
    margin-bottom: 60px;
    position: relative;
}

.process-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
}

/* 時間軸連接線 */
.process-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, 
        transparent,
        #007bff 10%,
        #007bff 90%,
        transparent
    );
}

.timeline-step {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 50px;
    position: relative;
}

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

.timeline-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #007bff, #00d2ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
    z-index: 2;
    transition: transform 0.3s ease;
}

.timeline-icon i {
    font-size: 2em;
    color: white;
}

.timeline-content {
    width: calc(50% - 60px);
    padding: 30px;
    background: #f8f9fa;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: transform 0.3s ease;
}

/* 偶數步驟靠右 */
.timeline-step:nth-child(even) {
    flex-direction: row-reverse;
}

/* 內容連接線 */
.timeline-content::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 2px;
    background: #007bff;
}

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

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

.timeline-content h3 {
    font-size: 1.4em;
    color: #1a1a1a;
    margin-bottom: 10px;
    font-weight: 600;
}

.timeline-content p {
    color: #666;
    line-height: 1.6;
    font-size: 1.1em;
    margin: 0;
}

/* 懸停效果 */
.timeline-step:hover .timeline-icon {
    transform: scale(1.1);
}

.timeline-step:hover .timeline-content {
    transform: translateY(-5px);
}

/* 響應式設計 */
@media (max-width: 992px) {
    .process-timeline::before {
        left: 40px;
    }

    .timeline-step {
        justify-content: flex-start;
        margin-left: 40px;
    }

    .timeline-step:nth-child(even) {
        flex-direction: row;
    }

    .timeline-content {
        width: calc(100% - 120px);
    }

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

@media (max-width: 768px) {
    .recycle-process {
        padding: 40px 20px;
        margin: 60px 20px;
    }

    .timeline-icon {
        width: 60px;
        height: 60px;
    }

    .timeline-icon i {
        font-size: 1.5em;
    }

    .timeline-content {
        padding: 20px;
    }

    .timeline-content h3 {
        font-size: 1.2em;
    }

    .timeline-content p {
        font-size: 1em;
    }
}

/* 預約表單樣式 */
.recycle-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.recycle-form-header {
    text-align: center;
    margin-bottom: 40px;
}

.recycle-form-header h2 {
    font-size: 2em;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.recycle-form-header p {
    color: #666;
}

.recycle-form {
    display: grid;
    gap: 20px;
}

.recycle-form .form-group {
    margin-bottom: 20px;
}

.recycle-form .form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.recycle-form .form-group input,
.recycle-form .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s ease;
}

.recycle-form .form-group input:focus,
.recycle-form .form-group textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    outline: none;
}

.recycle-submit-btn {
    background: linear-gradient(135deg, #2c2c2c, #1a1a1a);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 30px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.recycle-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #1a1a1a, #000000);
}

.recycle-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: all 0.6s ease;
}

.recycle-submit-btn:hover::before {
    left: 100%;
}

.recycle-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* 響應式設計 */
@media (max-width: 992px) {
    .recycle-features,
    .process-timeline {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .recycle-container {
        padding: 60px 20px;
    }

    .recycle-header h1 {
        font-size: 2em;
    }

    .recycle-features {
        grid-template-columns: 1fr;
    }

    .process-timeline {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .recycle-form-container {
        padding: 30px 20px;
    }
}

/* 文件上傳區域樣式 */
.file-upload-wrapper {
    position: relative;
    width: 100%;
    height: 120px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.file-upload-wrapper:hover {
    border-color: #007bff;
    background: #f0f7ff;
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-text {
    color: #666;
    font-size: 1em;
    text-align: center;
    pointer-events: none;
}

.file-hint {
    margin-top: 8px;
    font-size: 0.9em;
    color: #666;
    text-align: left;
}

/* 當有文件被選擇時的樣式 */
.file-upload-wrapper.has-file {
    border-color: #28a745;
    background: #f0fff4;
}

.file-upload-wrapper.has-file .file-upload-text {
    color: #28a745;
}

/* Staff Area 主要內容區域樣式 */
.staff-container {
    padding-top: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

/* 保固保養區塊樣式 */
.after-sales-section {
    background: #ffffff;
    padding: 4rem 0;
    margin-top: 2rem;
}

.after-sales-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
    max-width: 1200px;
    margin: 2rem auto 0;
}

.after-sales-item {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.after-sales-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.after-sales-icon {
    font-size: 2.5rem;
    color: #4a90e2;
    margin-bottom: 1.5rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(74, 144, 226, 0.1);
    border-radius: 50%;
}

.after-sales-item h3 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.after-sales-list {
    list-style: none;
    padding: 0;
    text-align: left;
    width: 100%;
}

.after-sales-list li {
    padding: 0.5rem 0;
    color: #666;
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.after-sales-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4a90e2;
    font-weight: bold;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .after-sales-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    
    .after-sales-item {
        padding: 1.5rem;
    }
    .after-sales-section {
        padding: 2rem 0;
    }
    
    .after-sales-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
}

.record-number {
    animation: countUp 0.5s ease-out forwards;
}

.counter {
    opacity: 0;
    transform: translateY(20px);
}

.counter.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

.counter.animate {
    animation: countUp 0.5s ease-out forwards;
}

.plus,
.percentage {
    color: #007bff;
    font-size: 1.5em;
    font-weight: 600;
    margin-left: 5px;
    background: linear-gradient(135deg, #007bff, #00d2ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.counter-number {
    font-size: 2.5em;
    font-weight: 700;
    color: #007bff;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.counter {
    background: linear-gradient(135deg, #007bff, #00d2ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.plus {
    color: #007bff;
    font-size: 0.8em;
    margin-top: -10px;
}

/* 移除所有其他的動畫相關樣式 */
.counter {
    opacity: 0;
    transform: translateY(20px);
    font-size: 36px;
    color: #2997ff;
    font-weight: 700;
    margin-top: 15px;
}

.counter.visible {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease;
}

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

.counter.animate {
    animation: countUp 0.8s ease-out forwards;
}

/* 成交紀錄數字樣式 */
.record-number {
    font-size: 36px;
    color: #2997ff;
    font-weight: 700;
    margin-top: 15px;
}

/* 搜尋結果提示樣式 */
.search-result {
    margin-top: 20px;
    padding: 20px;
    text-align: center;
}

.no-results {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.no-results i {
    font-size: 40px;
    color: #dc3545;
    margin-bottom: 15px;
}

.no-results p {
    color: #666;
    margin-bottom: 20px;
}

.reset-btn {
    background-color: #2997ff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.reset-btn:hover {
    background-color: #0077ed;
}

/* 搜尋區塊樣式 */
.advanced-search {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 20px;
}

.search-panel {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.search-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.search-field {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.search-field label {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.search-field select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    background-color: white;
    transition: all 0.3s ease;
}

.search-field select:hover {
    border-color: #2997ff;
}

.search-field select:focus {
    outline: none;
    border-color: #2997ff;
    box-shadow: 0 0 0 2px rgba(41, 151, 255, 0.1);
}

.search-field select:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.search-button-container {
    text-align: center;
    margin-top: 20px;
}

.search-button {
    background-color: #2997ff;
    color: white;
    border: none;
    padding: 12px 40px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.search-button:hover {
    background-color: #0077ed;
}

.search-button i {
    font-size: 18px;
}

/* 搜尋結果提示樣式 */
.search-results {
    margin-top: 20px;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.no-results {
    text-align: center;
    padding: 40px 20px;
}

.no-results i {
    font-size: 48px;
    color: #dc3545;
    margin-bottom: 16px;
}

.no-results p {
    color: #666;
    font-size: 16px;
    margin-bottom: 20px;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .search-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-field {
        width: 100%;
    }
    
    .search-button {
        width: 100%;
        justify-content: center;
    }
}

.story-section, .mission-section {
    margin-bottom: 50px;
}

.about-section p {
    line-height: 1.8;
    color: #666;
    text-align: justify;
}

/* 添加響應式設計 */
@media (max-width: 768px) {
    .about-section {
        margin-bottom: 40px;
        padding: 20px;
    }

    .story-section, .mission-section {
        margin-bottom: 30px;
    }
}

/* 成交紀錄數字動畫 */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.record-number {
    font-size: 3em;
    color: #2997ff;
    font-weight: bold;
    margin: 15px 0;
    animation: countUp 1s ease-out forwards;
    opacity: 0;
}

/* 為每個數字設置不同的延遲時間 */
.record-number:nth-child(1) {
    animation-delay: 0.2s;
}

.record-number:nth-child(2) {
    animation-delay: 0.4s;
}

.record-number:nth-child(3) {
    animation-delay: 0.6s;
}

@property --num {
    syntax: '<integer>';
    initial-value: 0;
    inherits: false;
}

.record-number {
    font-size: 3em;
    color: #2997ff;
    font-weight: bold;
    margin: 15px 0;
    counter-reset: num var(--num);
    animation: counter 2s ease-out forwards infinite;
    animation-delay: 0s;
    animation-direction: alternate;
    animation-iteration-count: 1;
    opacity: 1;
}

.record-number::before {
    content: '';
}

/* 百分比符號的處理 */
.record-number.percentage::after {
    content: '%';
}

/* 加號的處理 */
.record-number.plus::after {
    content: '+';
}

@keyframes counter {
    from {
        --num: 0;
    }
    to {
        --num: var(--value);
    }
}

/* 等級分類標籤樣式 */
.grade-tabs {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 15px;
    width: 100%;
    background: var(--secondary-bg);
}

/* 車輛列表頁面標題樣式 */
.cars-list-container h1 {
    text-align: center;
    font-size: 42px;  /* 增加字體大小 */
    font-weight: 700;  /* 加粗字體 */
    color: #1d1d1f;
    margin: 50px 0;  /* 增加上下間距 */
    padding: 0 20px;
    font-family: var(--font-primary);
    position: relative;
    letter-spacing: -0.5px;  /* 調整字距 */
    line-height: 1.2;  /* 調整行高 */
}

/* 添加底部裝飾線 */
.cars-list-container h1::after {
    content: '';
    position: absolute;
    bottom: -15px;  /* 調整裝飾線位置 */
    left: 50%;
    transform: translateX(-50%);
    width: 80px;  /* 增加裝飾線寬度 */
    height: 4px;  /* 增加裝飾線高度 */
    background: #2997ff;
    border-radius: 2px;
}

/* 子標題樣式 */
.cars-list-container h2 {
    text-align: center;
    font-size: 32px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 30px 0;
    font-family: var(--font-primary);
}

/* 響應式設計 */
@media (max-width: 768px) {
    .cars-list-container h1 {
        font-size: 32px;  /* 調整手機版字體大小 */
        margin: 40px 0;
    }
    
    .cars-list-container h2 {
        font-size: 24px;
    }
}

.announcement-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.announcement-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.announcement-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    color: #2997ff;
}

.announcement-date i {
    font-size: 24px;
    margin-bottom: 5px;
}

.announcement-content {
    flex: 1;
}

.announcement-content h3 {
    margin-bottom: 10px;
    color: #1d1d1f;
}

.announcement-content p {
    color: #666;
    display: flex;
    align-items: center;
    gap: 15px;
}

.announcement-content i {
    color: #2997ff;
}

.ml-3 {
    margin-left: 15px;
}

.customer-query input {
    flex: 1;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 20px !important;  /* 強制使用更大的字體大小 */
    font-weight: 600 !important;  /* 強制使用更粗的字體 */
    color: #1a1a1a !important;   /* 強制使用更深的顏色 */
    transition: border-color 0.3s ease;
}

.customer-query input::placeholder {
    color: #666666;
    font-size: 18px;
    font-weight: 500;
}

.customer-query input:focus {
    border-color: #4a90e2;
    outline: none;
    color: #000000 !important;  /* 聚焦時文字顏色更深 */
}

/* 確保樣式優先級 */
#customerInput {
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
}

/* 移動端更明顯的菜單按鈕樣式 */
@media (max-width: 768px) {
    .menu-toggle {
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        color: #fff;
        background-color: transparent;
        border: none;
        cursor: pointer;
        transition: all 0.3s ease;
        z-index: 1001;
    }
    
    .menu-toggle i {
        transition: all 0.3s ease;
    }
    
    .nav-content.active + .menu-toggle i {
        transform: rotate(90deg);
    }
}

/* 手機橫屏時的調整 */
@media (max-width: 896px) and (orientation: landscape) {
    body {
        padding-top: 50px;
    }
    
    .nav-content.active {
        max-height: calc(100vh - 50px);
        overflow-y: auto;
    }
    
    .nav-links {
        padding: 10px 0;
    }
    
    .nav-links a {
        padding: 8px 20px;
    }
}

.dual-banner-right .banner-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.dual-banner-right .banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.dual-banner-right .banner-slide.active {
    opacity: 1;
    z-index: 1;
}

/* 車價分析工具按鈕 */
.price-analyzer-container {
    text-align: center;
    padding: 50px 20px;
    margin: 30px auto;
    background-color: #f8f9fa;
    border-radius: 8px;
    max-width: 800px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.price-analyzer-container h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 28px;
}

.price-analyzer-container p {
    color: #666;
    margin-bottom: 25px;
    font-size: 16px;
}

.price-analyzer-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.price-analyzer-btn:hover {
    background-color: #0056b3;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.price-analyzer-btn i {
    margin-right: 10px;
    font-size: 22px;
}

/* 適配移動設備 */
@media (max-width: 768px) {
    .price-analyzer-container {
        padding: 30px 15px;
    }
    
    .price-analyzer-container h2 {
        font-size: 24px;
    }
    
    .price-analyzer-btn {
        padding: 12px 25px;
        font-size: 16px;
    }
}

.dual-banner-right .banner-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.dual-banner-right .banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
    transform: scale(1.05);
}

.dual-banner-right .banner-slide.active {
    opacity: 1;
    z-index: 2;
    transform: scale(1);
}

.dual-banner-right .banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 添加打字指示器樣式 */
.typing-indicator {
    display: flex;
    gap: 5px;
    padding: 8px 12px;
    background: #e3f2fd;
    border-radius: 10px;
    width: fit-content;
    margin-top: 5px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: #4a90e2;
    border-radius: 50%;
    animation: typing 1s infinite ease-in-out;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* 快速回覆按鈕樣式 */
.quick-reply-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.quick-reply-btn {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 14px;
    text-align: left;
}

.quick-reply-btn:hover {
    background-color: #0056b3;
}

.quick-reply-btn:active {
    transform: scale(0.98);
}

/* AI 聊天助手樣式 */
.chat-input-container {
    display: flex;
    padding: 15px;
    background: white;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.message-input {
    flex: 1;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    margin-right: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.message-input:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74,144,226,0.2);
}

.send-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #4a90e2;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.send-button:hover {
    background: #357abd;
    transform: scale(1.05);
}

.chat-message {
    display: flex;
    margin-bottom: 15px;
    opacity: 0;
    transform: translateY(20px);
    animation: messageIn 0.5s forwards;
}

@keyframes messageIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-bubble {
    padding: 12px 16px;
    border-radius: 18px;
    max-width: 80%;
    word-wrap: break-word;
}

.ai-message .message-bubble {
    background: #f0f2f5;
    margin-right: auto;
}

.user-message {
    flex-direction: row-reverse;
}

.user-message .message-bubble {
    background: #4a90e2;
    color: white;
    margin-left: auto;
}

.bot-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #4a90e2;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    color: white;
    transition: all 0.3s ease;
}

/* 機器人表情動畫 */
@keyframes thinking {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
    100% { transform: rotate(0deg); }
}

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

@keyframes wave {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(-20deg); }
    75% { transform: rotate(20deg); }
    100% { transform: rotate(0deg); }
}

.quick-reply-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.quick-reply-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    background: #4a90e2;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.quick-reply-btn:hover {
    background: #357abd;
    transform: scale(1.05);
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background: #f0f2f5;
    border-radius: 18px;
    margin-bottom: 15px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: #90a4ae;
    border-radius: 50%;
    animation: typing 1s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* 消息時間樣式 */
.message-time {
    font-size: 12px;
    color: #90a4ae;
    margin-top: 4px;
}

/* 聊天容器滾動條樣式 */
.chat-container::-webkit-scrollbar {
    width: 6px;
}

.chat-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.chat-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.chat-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* AI助手容器樣式 */
.ai-assistant {
    width: 100%;
    max-width: 400px;
    height: 600px;
    background: #1a1a1a;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.ai-header {
    padding: 15px;
    background: #4a90e2;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.chat-container {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f8f9fa;
}

/* AI 聊天助手基本樣式 */
.ai-assistant {
    width: 350px;
    height: 500px;
    background: #1a1a1a;
    border-radius: 20px;
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    z-index: 1000;
}

.ai-header {
    padding: 15px;
    background: #2a2a2a;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* 可愛機器人頭像樣式 */
.bot-avatar {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 25px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.bot-face {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* 機器人護目鏡 */
.bot-goggles {
    width: 35px;
    height: 15px;
    background: #1a1a1a;
    border-radius: 10px;
    position: relative;
    margin-top: 8px;
}

.bot-goggles::before,
.bot-goggles::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.bot-goggles::before {
    left: 8px;
}

.bot-goggles::after {
    right: 8px;
}

/* 機器人微笑 */
.bot-smile {
    width: 20px;
    height: 10px;
    border: 2px solid #1a1a1a;
    border-radius: 0 0 10px 10px;
    border-top: 0;
    margin-top: 8px;
}

.ai-title {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

/* 聊天容器 */
.chat-container {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #1a1a1a;
}

/* 輸入框容器 */
.chat-input-container {
    padding: 15px;
    background: #2a2a2a;
    display: flex;
    gap: 10px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.message-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    background: #333;
    color: white;
    font-size: 14px;
}

.message-input::placeholder {
    color: rgba(255,255,255,0.5);
}

.send-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #4a90e2;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.send-button:hover {
    transform: scale(1.05);
}

/* 聊天消息樣式 */
.chat-message {
    display: flex;
    margin-bottom: 15px;
    align-items: flex-start;
}

.message-bubble {
    padding: 10px 15px;
    border-radius: 15px;
    max-width: 80%;
    background: #2a2a2a;
    color: white;
    margin: 0 10px;
}

.user-message {
    flex-direction: row-reverse;
}

.user-message .message-bubble {
    background: #4a90e2;
}

/* 快速回覆按鈕 */
.quick-reply-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.quick-reply-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 15px;
    background: #4a90e2;
    color: white;
    cursor: pointer;
    font-size: 14px;
    transition: transform 0.2s;
}

.quick-reply-btn:hover {
    transform: scale(1.05);
}

.chat-assistant {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 360px;
    background: #1a1a1a;
    border-radius: 15px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1000;
}

.chat-assistant.minimized {
    width: 80px;
    height: 80px;
    background: #4A90E2;
    border-radius: 50%;
}

.chat-header {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #4A90E2;
    border-radius: 15px 15px 0 0;
    cursor: pointer;
}

.bot-icon {
    width: 50px;
    height: 50px;
    position: relative;
    margin-right: 10px;
}

.bot-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: white;
    padding: 2px;
    object-fit: contain;
}

.toggle-chat {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: #4A90E2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    cursor: pointer;
    border: 2px solid white;
    z-index: 2;
}

.chat-title {
    color: white;
    font-size: 16px;
    font-weight: 500;
}

.chat-messages {
    height: 400px;
    padding: 15px;
    overflow-y: auto;
    background: #1a1a1a;
}

.chat-input {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #2a2a2a;
    border-radius: 0 0 15px 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.message-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    background: #333;
    color: white;
    font-size: 14px;
    margin-right: 10px;
}

.message-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.send-button {
    width: 40px;
    height: 40px;
    background: #4A90E2;
    border: none;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.send-button:hover {
    background: #357abd;
}

/* 最小化狀態樣式 */
.chat-assistant.minimized .chat-messages,
.chat-assistant.minimized .chat-input,
.chat-assistant.minimized .chat-title {
    display: none;
}

.chat-assistant.minimized .chat-header {
    padding: 10px;
    border-radius: 50%;
    background: transparent;
}

.chat-assistant.minimized .bot-icon {
    margin: 0;
    width: 60px;
    height: 60px;
}

.chat-assistant.minimized .bot-image {
    width: 100%;
    height: 100%;
    padding: 0;
}

/* 消息樣式 */
.message {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.message.bot {
    flex-direction: row;
}

.message.user {
    flex-direction: row-reverse;
}

.message-bubble {
    max-width: 70%;
    padding: 12px 15px;
    border-radius: 15px;
    font-size: 14px;
    line-height: 1.4;
    color: white;
}

.message.bot .message-bubble {
    background: #4A90E2;
    border-radius: 0 15px 15px 15px;
}

.message.user .message-bubble {
    background: #2a2a2a;
    border-radius: 15px 0 15px 15px;
}

/* 移除所有聊天助手相關的樣式代碼 */
.chat-assistant,
.bot-icon,
.bot-image,
.toggle-chat,
.chat-header,
.chat-title,
.chat-messages,
.chat-input,
.message-input,
.send-button,
.message,
.message-bubble,
.bot-message,
.user-message {
    display: none;
}

/* Slogan 部分樣式 */
.slogan-section {
    margin: 30px auto;
    padding: 30px;
    background: linear-gradient(to right, #f8f9fa, #e9ecef);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
}

.slogan-container {
    flex: 1;
    min-width: 300px;
    padding: 20px;
    margin: 10px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.slogan-container h2 {
    color: #333;
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 600;
    text-align: center;
    border-bottom: 2px solid #4A90E2;
    padding-bottom: 10px;
}

.slogan-text {
    padding: 10px;
}

.slogan-text p {
    font-size: 22px;
    color: #444;
    margin-bottom: 15px;
    line-height: 1.6;
    font-weight: 500;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slogan-text p:last-child {
    margin-bottom: 0;
}

.en-slogan .slogan-text p {
    font-style: italic;
}

@media (max-width: 768px) {
    .slogan-section {
        flex-direction: column;
        padding: 20px;
    }
    
    .slogan-container {
        margin: 10px 0;
    }
    
    .slogan-text p {
        font-size: 18px;
    }
}

.slogan-letter {
    font-size: 28px;
    font-weight: 700;
    color: #4A90E2;
    margin-right: 5px;
    display: inline-block;
    background: -webkit-linear-gradient(#4A90E2, #1A5BB0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.slogan-text p {
    font-size: 22px;
    color: #444;
    margin-bottom: 15px;
    line-height: 1.6;
    font-weight: 500;
    text-align: left;
    display: flex;
    align-items: center;
}

.slogan-divider {
    max-width: 800px;
    margin: 30px auto;
    border: 0;
    height: 2px;
    background: linear-gradient(to right, rgba(74, 144, 226, 0), rgba(74, 144, 226, 0.8), rgba(74, 144, 226, 0));
}

.first-letter {
    font-size: 28px;
    font-weight: 700;
    color: #4A90E2;
    margin-right: 1px;
    display: inline-block;
    background: -webkit-linear-gradient(#4A90E2, #1A5BB0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.first-letter-text::first-letter {
    font-size: 28px;
    font-weight: 700;
    color: #4A90E2;
    margin-right: 1px;
    display: inline-block;
    background: -webkit-linear-gradient(#4A90E2, #1A5BB0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
}

/* 原有的 slogan-letter 樣式可以保留，但不再使用 */

.first-letter-text {
    text-align: center;
    display: block;
}

.slogan-text p {
    font-size: 22px;
    color: #444;
    margin-bottom: 15px;
    line-height: 1.6;
    font-weight: 500;
    text-align: center !important;
    display: flex;
    align-items: center;
    justify-content: center !important;
}

.first-letter-text {
    text-align: center !important;
    display: inline-block;
    width: auto;
}

/* 確保第一個字母樣式 */
.first-letter-text::first-letter {
    font-size: 28px;
    font-weight: 700;
    color: #4A90E2;
    margin-right: 1px;
    background: -webkit-linear-gradient(#4A90E2, #1A5BB0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
}

/* 中文版第一個字母樣式 */
.first-letter-text::first-letter {
    font-size: 28px;
    font-weight: 700;
    color: #4A90E2;
    margin-right: 1px;
    background: -webkit-linear-gradient(#4A90E2, #1A5BB0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
}

/* 英文版第一個單字樣式 */
html[lang="en"] .first-letter-text {
    display: inline-block;
    position: relative;
    text-align: left;
}

html[lang="en"] .first-letter-text .first-word {
    font-size: 28px;
    font-weight: 700;
    color: #4A90E2;
    background: -webkit-linear-gradient(#4A90E2, #1A5BB0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
}

/* 確保所有 slogan 文本對齊樣式一致 */
.slogan-text p {
    font-size: 22px;
    color: #444;
    margin-bottom: 15px;
    line-height: 1.6;
    font-weight: 500;
    text-align: left !important;
    display: flex;
    align-items: center;
    justify-content: flex-start !important;
}

.first-letter-text {
    text-align: left !important;
    display: inline-block;
    width: auto;
}

/* 移除任何可能導致不對齊的內外邊距 */
.slogan-text, 
.slogan-container,
.slogan-section {
    margin: 0 auto;
    padding: 0;
    text-align: left;
    max-width: 100%;
}

/* 標語和圖標樣式 */
.slogan-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    gap: 30px;
}

.slogan-logo {
    width: 100px;
    height: auto;
    margin-right: 10px;
}

.slogan-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
}

.slogan-item {
    font-size: 1.8em;
    font-weight: 600;
    color: #2997ff;
    margin: 0;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 15px;
    border-left: 3px solid #2997ff;
}

.slogan-item:hover {
    transform: translateX(5px);
    color: #1d76c7;
}

/* 確保英文模式下的slogan也是左對齊 */
html[lang="en"] .slogan-list {
    text-align: left;
}

html[lang="en"] .slogan-item {
    text-align: left;
    padding-left: 15px;
    border-left: 3px solid #2997ff;
    border-bottom: none;
    padding-bottom: 0;
}

/* 確保英文模式下的slogan左對齊 */
html[lang="en"] .slogan-list {
    text-align: left !important;
}

html[lang="en"] .slogan-item {
    text-align: left !important;
    padding-left: 15px !important;
    border-left: 3px solid #2997ff !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

/* 確保響應式設計下英文slogan仍然左對齊 */
@media (max-width: 768px) {
    html[lang="en"] .slogan-list {
        text-align: left !important;
    }
    
    html[lang="en"] .slogan-item {
        text-align: left !important;
        font-size: 1.4em;
        padding-left: 15px !important;
        border-left: 3px solid #2997ff !important;
        border-bottom: none !important;
        padding-bottom: 0 !important;
    }
}

/* 標題共用樣式 */
.section-heading {
    color: #333;
    margin-bottom: 30px;
    padding-bottom: 15px;
    text-align: left;
    margin-left: 15px;
    font-size: 24px;
    font-weight: 600;
    position: relative;
}

/* 成交紀錄區塊 */
.records-section {
    background-color: #fff;
    margin: 60px 0;
}

.records-section .benefit-item {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
}

.records-section .benefit-item h1 {
    font-size: 36px;
    color: #2997ff;
    font-weight: 700;
    margin-top: 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.records-section .benefit-item h1.animate {
    opacity: 1;
    transform: translateY(0);
}

/* 添加數字跳動動畫 */
@keyframes countUp {
    0% {
        transform: translateY(20px);
        opacity: 0.3;
        color: #a0c8ff;
    }
    50% {
        color: #2997ff;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
        color: #1d76c7;
    }
}

.records-section .benefit-item h1.counting {
    animation: countUp 0.5s ease-out forwards;
}

/* 為跳動數字添加強調效果 */
.repeating-counter {
    text-shadow: 0 0 1px rgba(41, 151, 255, 0.5);
    position: relative;
    display: inline-block;
}

.repeating-counter::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #2997ff;
    transition: width 0.3s ease;
}

.repeating-counter.counting::after {
    width: 80%;
}

/* 確保公司成就區塊的樣式與為什麼選擇維鑫一致 */
.records-section {
    margin-top: 40px; /* 調整公司成就區塊上邊距與為什麼選擇維鑫一致 */
    background-color: #fff;
}

.records-section .benefit-item {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.records-section .benefit-item i {
    margin-bottom: 15px;
    font-size: 42px;
}

.records-section .benefit-item h3 {
    margin-bottom: 10px;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.records-section .benefit-item h1 {
    font-size: 36px;
    color: #2997ff;
    font-weight: 700;
    margin-top: 5px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.records-section .benefit-item h1.animate {
    opacity: 1;
    transform: translateY(0);
}

/* 員工福利區塊特殊樣式 */
.employee-benefits-section .benefit-item i.fa-certificate {
    color: #2997ff;
}

.employee-benefits-section .benefit-item i.fa-comment-dots {
    color: #28a745;
}

.employee-benefits-section .benefit-item i.fa-calendar-alt {
    color: #fd7e14;
}

.employee-benefits-section .benefit-item i.fa-shield-alt {
    color: #3498db; /* 藍色，代表保險和安全 */
}

.employee-benefits-section .benefit-item i.fa-money-bill-wave {
    color: #f39c12; /* 橙色，代表獎金 */
}

.employee-benefits-section .benefit-item i.fa-calendar-alt {
    color: #2ecc71; /* 綠色 */
}

/* 法律聲明頁面樣式 */
.legal-content {
    max-width: 900px;
    margin: 2rem auto 4rem;
    padding: 0 1.5rem;
}

.legal-content h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.8rem;
    position: relative;
    padding-bottom: 10px;
}

.legal-content h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

.legal-section {
    margin-bottom: 2.5rem;
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

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

.legal-section h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--accent-color);
    padding-left: 10px;
}

.legal-section p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.legal-subsection {
    margin: 1.5rem 0;
    padding: 1.2rem;
    background-color: #f0f8ff;
    border-radius: 6px;
    border-left: 3px solid var(--accent-color);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.legal-subsection h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.legal-subsection p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .legal-content {
        margin: 1rem auto 3rem;
    }
    
    .legal-section {
        padding: 1.2rem;
    }
    
    .legal-content h2 {
        font-size: 1.6rem;
    }
    
    .legal-section h3 {
        font-size: 1.2rem;
    }

    .legal-subsection {
        padding: 1rem;
        margin: 1.2rem 0;
    }

    .legal-subsection h4 {
        font-size: 1.1rem;
    }
}

/* 法律聲明頁面 - 聯絡方式列表樣式 */
.contact-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.contact-list li {
    padding: 10px 0;
    margin-bottom: 5px;
    font-size: 16px;
    display: flex;
    align-items: flex-start;
}

.contact-list li strong {
    min-width: 100px;
    display: inline-block;
    color: #333;
}

.contact-list li a {
    color: #2997ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-list li a:hover {
    color: #0071e3;
    text-decoration: underline;
}

.contact-info p {
    margin-bottom: 10px;
}

/* 公司資訊區塊 */
.company-info {
    background-color: #f5f5f7;
    padding: 30px 0;
}

.info-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.info-item {
    margin: 10px;
    display: flex;
    align-items: center;
}

.info-item i {
    font-size: 18px;
    color: #1e88e5;
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.info-item:hover i {
    transform: scale(1.2);
}

.info-item span {
    font-size: 14px;
    color: #1d1d1f;
}

/* 地址鏈接樣式 */
.address-link {
    text-decoration: none;
    color: #000000;
}

.address-link:hover {
    color: #000000;
}

@media (max-width: 768px) {
    .info-container {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 20px;
    }
    .info-item {
        margin: 10px 0;
    }
}

/* 員工儀表板樣式 */
.welcome-dashboard {
    padding: 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.welcome-dashboard h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.welcome-dashboard h2 i {
    color: #2997ff;
}

.welcome-dashboard p {
    color: #666;
    margin-bottom: 25px;
}

.dashboard-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-item {
    background-color: #f8fafc;
    padding: 25px;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
}

.dashboard-item:hover {
    background-color: #edf5ff;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.dashboard-item i {
    font-size: 2.5rem;
    color: #2997ff;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.dashboard-item:hover i {
    transform: scale(1.1);
}

.dashboard-item h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 10px;
}

.dashboard-item p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.system-notice {
    background-color: #fff8e7;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #ffbb33;
}

.system-notice h3 {
    color: #e69500;
    font-size: 1.2rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.system-notice i {
    color: #ffbb33;
}

.notice-content {
    color: #666;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .dashboard-menu {
        grid-template-columns: 1fr;
    }
    
    .welcome-dashboard h2 {
        font-size: 1.5rem;
    }
    
    .dashboard-item {
        padding: 20px;
    }
}

/* 員工專區登入按鈕 */
.login-redirect {
    text-align: center;
    margin: 30px 0;
}

.login-btn-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #2997ff;
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(41, 151, 255, 0.3);
}

.login-btn-large:hover {
    background-color: #1b7fdf;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(41, 151, 255, 0.4);
}

.login-btn-large i {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .login-btn-large {
        width: 100%;
        padding: 12px 20px;
        font-size: 1rem;
    }
}

/* 搜尋結果區域樣式 */
.search-results {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin: 20px auto;
    max-width: 1200px;
}

.results-header {
    border-bottom: 1px solid rgba(0,0,0,0.1);
    margin-bottom: 20px;
    padding-bottom: 15px;
}

.car-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.car-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

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

.car-header {
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: white;
    padding: 15px 20px;
    border-radius: 10px 10px 0 0;
}

.car-content {
    padding: 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    background: white;
}

.car-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    background: white;
    padding: 15px;
    border-radius: 8px;
}

.car-image-container {
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.car-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.car-image:hover {
    transform: scale(1.05);
}

.car-details {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-section {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.info-title {
    font-weight: bold;
    color: #2997ff;
    margin-bottom: 10px;
}

.info-content {
    color: #333;
    line-height: 1.6;
}

.car-price {
    text-align: right;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.price-tag {
    font-size: 2em;
    color: #e53935;
    font-weight: bold;
}

/* 響應式設計 */
@media (max-width: 1024px) {
    .car-content {
        grid-template-columns: 1.5fr 1fr;
    }
}

@media (max-width: 768px) {
    .car-content {
        grid-template-columns: 1fr;
    }

    .car-images {
        grid-template-columns: repeat(2, 1fr);
    }

    .car-image {
        height: 200px;
    }

    .search-results {
        margin: 10px;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .car-images {
        grid-template-columns: 1fr;
    }

    .car-image {
        height: 250px;
    }

    .price-tag {
        font-size: 1.5em;
    }
}