﻿/* ===== CSS 重置與基礎設定 ===== */
* {

    box-sizing: border-box;
    font-family: 'Microsoft JhengHei', Arial, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== CSS 變數定義 ===== */
:root {
    --text-color-primary: #555;
    --text-color-secondary: #666;
    --text-color-heading: #666;
    --text-color-subheading: #800080;
    --text-color-strong: #444;
    --text-color-strong-block: #AC3F26;
    --text-color-blue: blue;
    --text-color-white: #fff;
    --text-color-muted: #95a5a6;
    
    --bg-color-primary: #f8f9fa;
    --bg-color-secondary: #2c3e50;
    --bg-color-accent: #e74c3c;
    --bg-color-light: #fff;
    
    --font-size-base: 1rem;
    --line-height-base: 1.6;
    --line-height-heading: 1.4;
    
    --container-max-width: 1200px;
    --container-padding: 0 15px;
    
    --border-radius: 4px;
    --border-radius-lg: 6px;
    
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 600;
    --font-weight-bolder: 700;
}

/* ===== 通用容器樣式 ===== */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: var(--container-padding);
}

.main-content {
    flex: 1;
    padding: 40px 0;
}

/* ===== 標題層級樣式 ===== */
h1, h2, h3, h4, h5, h6 {
    margin-top: 20px;
    margin-bottom: 20px;
    line-height: var(--line-height-heading);
}

h1 {
    color: var(--text-color-heading);
    font-size: calc(var(--font-size-base) + 0.5rem);
    font-weight: var(--font-weight-bold);
}

h2 {
    color: var(--text-color-subheading);
    font-size: calc(var(--font-size-base) + 0.4rem);
    font-weight: var(--font-weight-bolder);
}

h3 {
    color: var(--text-color-subheading);
    font-size: calc(var(--font-size-base) + 0.3rem);
    font-weight: var(--font-weight-bold);
}

/* ===== 強調文字樣式 ===== */
strong {
    color: var(--text-color-strong);
    font-weight: var(--font-weight-bold);
}

strong.block {
    color: var(--text-color-strong-block);
    font-size: calc(var(--font-size-base) + 0.3rem);
    font-weight: var(--font-weight-bolder);
    margin-top: 20px;
    margin-bottom: 0px;
    display: block;
}

/* ===== 段落樣式 ===== */
p {
    line-height: var(--line-height-base);
    margin-top: 20px;
    margin-bottom: 20px;
    font-weight: var(--font-weight-normal);
}

/* ===== Head 大圖檔區域樣式 ===== */
.header-banner {
    width: 100%;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    margin-bottom: 0;
}

.header-banner .banner-image {
    width: 100%;
    height: auto;
    display: block;
}

.header-banner .desktop-img {
    display: block;
}

.header-banner .tablet-img {
    display: none;
}

.header-banner .mobile-img {
    display: none;
}

.header-banner.placeholder {
    min-height: 300px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-banner.placeholder::before {
    content: "圖片載入中...";
    color: #666;
    font-size: 1.2rem;
}

.header-banner.error {
    min-height: 200px;
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 40px 20px;
}

.header-banner.error::before {
    content: "🚚 專業貨車出租與搬家服務";
    font-size: 1.5rem;
    font-weight: bold;
}

.banner-caption {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.6);
    font-size: 1.1rem;
    font-weight: 500;
}

.banner-caption p {
    margin: 5px 0 0 0;
    font-size: 1rem;
    line-height: 1.4;
}

/* ===== 導航列樣式 ===== */
header {
    background-color: #2c3e50;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: 60px !important;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 0 !important;
    position: relative;
}

.logo {
    color: white;
    font-size: 22px;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.logo-icon {
    margin-right: 10px;
    font-size: 24px;
}

.logo span {
    color: #e74c3c;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: white;
    text-decoration: none !important;
    padding: 10px 15px !important;
    display: block;
    transition: all 0.3s ease;
    border-radius: 4px;
    font-weight: 500;
    font-size: 1rem;
}

.nav-link:hover {
    background-color: #e74c3c;
    color: white !important;
    text-decoration: none !important;
}

/* ===== 下拉選單樣式 ===== */
.dropdown-menu {
    position: absolute;
    background-color: white;
    min-width: 220px !important;
    width: auto !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border-radius: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(0) !important;
    transition: all 0.3s ease;
    list-style: none;
    z-index: 1001;
    padding: 10px 0;
    top: calc(100% + 2px) !important;
    left: 0 !important;
    right: auto !important;
    margin-top: 0 !important;
}

.dropdown-menu li {
    border-bottom: 1px solid #f0f0f0;
    white-space: nowrap !important;
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    color: #333;
    padding: 12px 20px;
    display: block;
    text-decoration: none !important;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    min-width: 180px !important;
}

.dropdown-menu a:hover {
    background-color: #f8f9fa;
    color: #e74c3c;
    padding-left: 25px;
    text-decoration: none !important;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) !important;
}

/* ===== 移動設備導航樣式 ===== */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    z-index: 1002;
    width: 40px;
    height: 40px;
    position: relative;
    transition: all 0.3s ease;
}

.mobile-toggle .hamburger {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 18px;
    transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.mobile-toggle .hamburger span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: white;
    border-radius: 2px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.mobile-toggle .hamburger span:nth-child(1) {
    top: 0px;
    transform-origin: left center;
}

.mobile-toggle .hamburger span:nth-child(2) {
    top: 8px;
    transform-origin: left center;
}

.mobile-toggle .hamburger span:nth-child(3) {
    top: 16px;
    transform-origin: left center;
}

.mobile-toggle.active .hamburger span:nth-child(1) {
    top: 0px;
    left: 3px;
    transform: rotate(45deg);
}

.mobile-toggle.active .hamburger span:nth-child(2) {
    width: 0%;
    opacity: 0;
}

.mobile-toggle.active .hamburger span:nth-child(3) {
    top: 16px;
    left: 3px;
    transform: rotate(-45deg);
}

.mobile-menu-container {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #2c3e50;
    z-index: 1001;
    max-height: 80vh;
    overflow-y: auto;
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mobile-menu-container.active {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu {
    background-color: #2c3e50;
    transform: translateX(0);
    transition: transform 0.3s ease 0.1s;
    width: 100%;
}

.mobile-menu-container.active .mobile-menu {
    transform: translateX(0);
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.mobile-menu ul li {
    border-bottom: 2px solid rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.mobile-menu ul li:not(.has-submenu) {
    background-color: #2c3e50;
}

.mobile-menu ul li.has-submenu {
    background-color: #34495e;
}

.mobile-menu ul li a {
    color: #fff;
    display: block;
    font-size: 18px;
    padding: 18px 20px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.mobile-menu ul li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.mobile-menu ul li a:hover::before {
    left: 100%;
}

.mobile-menu ul li a:hover, .mobile-menu ul li a:active {
    background-color: #e74c3c;
    padding-left: 25px;
}

.mobile-menu ul li i {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    display: block;
    width: 24px;
    height: 24px;
    overflow: hidden;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    line-height: 24px;
    color: white;
    transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
}

.mobile-menu ul li i.touch-arrow-down::before {
    content: "+";
    display: block;
    transition: transform 0.4s ease;
}

.mobile-menu ul li i.touch-arrow-up::before {
    content: "-";
    display: block;
    transform: rotate(180deg);
}

.mobile-menu ul li a:hover i {
    background-color: rgba(255,255,255,0.2);
    transform: translateY(-50%) scale(1.1);
}

.mobile-menu ul ul {
    display: none;
    margin: 0;
    padding: 0;
    background-color: #34495e;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), padding 0.3s ease;
    width: 100%;
}

.mobile-menu ul ul.active {
    display: block;
    max-height: 500px;
    padding: 10px 0;
}

.mobile-menu ul ul li {
    border-bottom: none;
    margin: 0;
    background-color: #34495e;
    transform: translateX(0);
    opacity: 0;
    transition: all 0.4s ease;
    width: 100%;
}

.mobile-menu ul ul.active li {
    transform: translateX(0);
    opacity: 1;
}

.mobile-menu ul ul li:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu ul ul li:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu ul ul li:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu ul ul li:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu ul ul li:nth-child(5) { transition-delay: 0.25s; }
.mobile-menu ul ul li:nth-child(6) { transition-delay: 0.3s; }
.mobile-menu ul ul li:nth-child(7) { transition-delay: 0.35s; }
.mobile-menu ul ul li:nth-child(8) { transition-delay: 0.4s; }

.mobile-menu ul ul li a {
    padding: 16px 20px 16px 30px;
    font-size: 16px;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.mobile-menu ul ul li a:hover {
    background-color: #e74c3c;
    padding-left: 35px;
}

/* ===== 主視覺區樣式 ===== */
.hero {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 20px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    color: white !important;
    font-weight: var(--font-weight-bolder);
}

.hero p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.7;
    color: rgba(255,255,255,0.9) !important;
}

.cta-button {
    display: inline-block;
    background: var(--bg-color-accent);
    color: white;
    padding: 16px 40px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: var(--font-weight-bold);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
    border: 2px solid rgba(255,255,255,0.3);
}

.cta-button:hover {
    background: #c0392b;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.6);
    color: white;
    text-decoration: none;
}

/* ===== 區塊樣式 ===== */
.section {
    padding: 10px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2rem;
    color: #2c3e50;
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: #e74c3c;
    margin: 15px auto 0;
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.5s ease;
}

.section-title:hover:after {
    transform: scaleX(1);
}

/* ===== 服務卡片樣式 ===== */
.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.service-card {
    background: var(--bg-color-light);
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius-lg);
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--bg-color-accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    border-color: var(--bg-color-accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

/* ===== 車輛網格樣式 ===== */
.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.vehicle-card {
    background: var(--bg-color-light);
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
}

.vehicle-card:hover {
    border-color: var(--bg-color-accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(231, 76, 60, 0.1);
}

.vehicle-image {
    height: 200px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color-muted);
}

.image-placeholder {
    color: var(--text-color-muted);
    font-size: 1rem;
}

.vehicle-details {
    padding: 15px;
}

.specs {
    margin-bottom: 20px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.pricing {
    background: #f8f9fa;
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.price-note {
    font-size: 0.85rem;
    color: var(--text-color-muted);
    margin-top: 10px;
}

.vehicle-button {
    display: block;
    width: 100%;
    background: var(--bg-color-accent);
    color: white;
    padding: 12px;
    border-radius: var(--border-radius);
    text-decoration: none;
    text-align: center;
    font-weight: var(--font-weight-bold);
    transition: all 0.3s ease;
}

.vehicle-button:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

/* ===== 關於我們樣式 ===== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-text h3 {
    color: var(--text-color-strong);
    margin-bottom: 20px;
    font-size: calc(var(--font-size-base) + 0.4rem);
}

.about-image {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

/* 修正圖片自適應問題 */
.about-image .image-placeholder {
    width: 100%;
    height: auto;
    display: block;
}

.about-image .image-placeholder img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
    transition: transform 0.3s ease;
}

.about-image:hover .image-placeholder img {
    transform: scale(1.05);
}

.experience-badge {
    background: linear-gradient(135deg, var(--bg-color-accent) 0%, #c0392b 100%);
    color: white;
    padding: 20px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    margin-top: 30px;
}

.experience-badge h4 {
    color: white;
    margin: 0;
    font-size: calc(var(--font-size-base) + 0.2rem);
}

/* 車輛圖片也做同樣的修正 */
.vehicle-image {
    height: 200px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color-muted);
    overflow: hidden;
    position: relative;
}

.vehicle-image .image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vehicle-image .image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.vehicle-card:hover .vehicle-image .image-placeholder img {
    transform: scale(1.1);
}

/* 響應式設計修正 */
@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-image {
        order: -1; /* 圖片移到上方 */
    }
    
    .about-image .image-placeholder img {
        max-height: 300px; /* 限制圖片最大高度 */
    }
    
    .vehicle-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .vehicle-image {
        height: 180px; /* 小螢幕時調整高度 */
    }
}

@media (max-width: 576px) {
    .about-image .image-placeholder img {
        max-height: 250px;
    }
    
    .vehicle-image {
        height: 160px;
    }
}

/* 確保所有圖片都有響應式 */
img {
    max-width: 100%;
    height: auto;
}

.image-placeholder img {
    max-width: 100%;
    height: auto;
    display: block;
}

.experience-badge {
    background: linear-gradient(135deg, var(--bg-color-accent) 0%, #c0392b 100%);
    color: white;
    padding: 20px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    margin-top: 30px;
}

.experience-badge h4 {
    color: white;
    margin: 0;
    font-size: calc(var(--font-size-base) + 0.2rem);
}

/* ===== 聯絡網格樣式 ===== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.contact-info-card {
    background: var(--bg-color-light);
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius-lg);
    padding: 30px;
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    border-color: var(--bg-color-accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-color-accent);
    color: white;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ===== 頁尾導航列樣式 ===== */
.footer-nav {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 60px 0 25px;
    margin-top: auto;
}

.footer-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    color: #e74c3c;
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 4px;
    background: #e74c3c;
    border-radius: 2px;
}

/* 原始CSS中的圖示樣式 - 修改為圓角矩形 */
.footer-column h3 .icon {
    font-size: 1.6rem;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 10px; /* 改為圓角矩形 */
    border: 2px solid rgba(231, 76, 60, 0.3);
    overflow: hidden; /* 新增：確保圖片不會超出圓角邊界 */
}



/* 新增：圖示內的圖片樣式 */
.footer-column h3 .icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    border-radius: 6px; /* 圖片內部也使用圓角 */
}

.footer-column:hover h3 .icon {
    transform: scale(1.1);
    background: rgba(231, 76, 60, 0.2);
    border-color: rgba(231, 76, 60, 0.5);
}



.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    padding: 8px 0;
    font-size: 1rem;
}

.footer-links a::before {
    content: '➤';
    margin-right: 15px;
    color: #e74c3c;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 50%;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.footer-links a:hover {
    color: white;
    transform: translateX(10px);
}

.footer-links a:hover::before {
    transform: scale(1.3);
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.2);
    border-color: rgba(255, 107, 107, 0.5);
}


.contact-info {
    margin-top: 20px;
    background-color: #f8f4ff; /* 淡紫色 */
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e8e0ff; /* 淡紫色邊框 */
    box-shadow: 0 2px 8px rgba(0,0,0,0.05); /* 輕微陰影 */
}
.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    color: #2c3e50; /* 深色文字在淡紫背景上更清晰 */
    padding: 10px 0;
    border-bottom: 1px solid rgba(232, 224, 255, 0.5); /* 半透明淡紫分隔線 */
}


.contact-item .icon {
    margin-right: 15px;
    color: #e74c3c;
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 8px;
    font-size: 1.3rem;
    border: 2px solid rgba(231, 76, 60, 0.2);
}

.contact-item:hover .icon {
    background: rgba(231, 76, 60, 0.2);
    transform: scale(1.1);
    border-color: rgba(231, 76, 60, 0.4);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-size: 1.3rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.social-link:hover::before {
    left: 100%;
}

.social-link:hover {
    background: #e74c3c;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.5);
    border-color: rgba(231, 76, 60, 0.5);
}

.footer-bottom {
    border-top: 2px solid rgba(255, 255, 255, 0.15);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.copyright {
    color: #95a5a6;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.copyright::before {
    content: '©';
    font-size: 1.2rem;
    color: #e74c3c;
}

.footer-bottom-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.footer-bottom-links a {
    color: #95a5a6;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-bottom-links a::before {
    content: '•';
    color: #e74c3c;
    font-size: 1.2rem;
}

.footer-bottom-links a:hover {
    color: #e74c3c;
    transform: translateY(-2px);
}

/* ===== 頁尾底部工具列樣式 ===== */
.footer-toolbar {
    background: linear-gradient(135deg, #1a2a3a 0%, #2c3e50 100%);
    color: white;
    padding: 15px 0;
    border-top: 3px solid rgba(231, 76, 60, 0.3);
    display: none;
}

.footer-toolbar-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-toolbar-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    align-items: center;
}

.footer-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    color: #bdc3c7;
    font-size: 0.95rem;
    text-align: left;
}

.footer-info a {
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.footer-info a:hover {
    color: #e74c3c;
    transform: translateY(-2px);
}

.footer-info .separator {
    color: #7f8c8d;
    margin: 0 3px;
}

.update-info, .visit-count {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ===== 行動裝置工具列樣式 ===== */
.mobile-toolbar {
    display: none;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    padding: 8px 0;
    border-top: 2px solid rgba(231, 76, 60, 0.3);
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    box-shadow: 0 -3px 10px rgba(0,0,0,0.2);
}

.mobile-toolbar-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

.mobile-toolbar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    align-items: center;
}

.mobile-tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    padding: 5px 3px;
    border-radius: 6px;
}

.mobile-tool-item:hover {
    background-color: rgba(231, 76, 60, 0.2);
    transform: translateY(-2px);
}

.mobile-tool-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 3px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
}

.mobile-tool-item:hover .mobile-tool-icon {
    transform: scale(1.1);
}

.mobile-tool-label {
    font-size: 0.7rem;
    text-align: center;
    font-weight: 500;
    line-height: 1.1;
}

/* ===== LINE 右側按鈕 ===== */
.floating-line-widget {
    position: fixed;
    right: 10px;
    bottom: 250px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.widget-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.floating-line-widget a {
    display: inline-block;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.floating-line-widget img {
    width: 60px;
    height: 60px;
    transition: all 0.3s ease;
    border-radius: 12px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.floating-line-widget img:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.3)) brightness(1.1);
    animation: none;
}

.widget-text {
    text-align: center;
    font-weight: 900;
    padding: 8px 16px;
    background: linear-gradient(135deg, #06c755 0%, #05a344 100%);
    color: white;
    border-radius: 20px;
    font-size: 14px;
    margin-top: 5px;
    box-shadow: 0 2px 8px rgba(6, 199, 85, 0.4);
    border: 2px solid white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.widget-text:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #05a344 0%, #048c3a 100%);
    box-shadow: 0 4px 12px rgba(6, 199, 85, 0.6);
}

/* ===== 回到頂部按鈕 ===== */
#topcontrol {
    position: fixed;
    right: 18px;
    bottom: 120px;
    z-index: 1000;
    transition: all 0.3s ease;
}

#topcontrol img {
    width: 70px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    border-radius: 12px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    cursor: pointer;
}

#topcontrol img:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.3)) brightness(1.1);
}

/* ===== 響應式設計 ===== */
@media (max-width: 1199px) and (min-width: 768px) {
    .header-banner .desktop-img {
        display: none;
    }
    
    .header-banner .tablet-img {
        display: block;
    }
}

@media (max-width: 767px) {
    .header-banner .desktop-img {
        display: none;
    }
    
    .header-banner .tablet-img {
        display: none;
    }
    
    .header-banner .mobile-img {
        display: block;
    }
    
    .banner-caption {
        bottom: 15px;
        padding: 10px 15px;
        font-size: 1rem;
    }
    
    .banner-caption p {
        font-size: 0.9rem;
    }
}

@media (max-width: 992px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .navbar {
        padding: 15px 0 !important;
    }
    
    .hero {
        padding: 20px 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }
    
    .footer-bottom-links {
        justify-content: center;
    }
    
    .mobile-toolbar {
        display: block;
    }
    
    .footer-toolbar {
        display: none;
    }
}

@media (max-width: 768px) {
    .service-cards,
    .vehicle-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    
    .footer-nav {
        padding: 50px 0 20px;
    }
    
    .floating-line-widget {
        right: 10px;
        bottom: 220px;
    }
    
    .floating-line-widget img {
        width: 50px;
        height: 50px;
    }
    
    .widget-text {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    #topcontrol {
        bottom: 100px;
        right: 10px;
    }
    
    #topcontrol img {
        width: 60px;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 20px 0;
    }
    
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .mobile-menu ul li a {
        font-size: 16px;
        padding: 16px 20px;
    }
    
    .mobile-menu ul ul li a {
        padding: 14px 20px 14px 30px;
        font-size: 14px;
    }
    
    .mobile-menu ul li i {
        right: 15px;
    }
    
    .footer-nav {
        padding: 40px 0 15px;
    }
    
    .footer-bottom-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .widget-text {
        font-size: 10px;
        padding: 4px 8px;
    }
    
    .floating-line-widget {
        bottom: 200px;
    }
    
    #topcontrol {
        bottom: 90px;
    }
    
    #topcontrol img {
        width: 55px;
    }
    
    .mobile-toolbar {
        padding: 6px 0;
    }
    
    .mobile-toolbar-container {
        padding: 0 8px;
    }
    
    .mobile-toolbar-grid {
        gap: 6px;
    }
    
    .mobile-tool-item {
        padding: 4px 2px;
    }
    
    .mobile-tool-icon {
        width: 32px;
        height: 32px;
        margin-bottom: 2px;
    }
    
    .mobile-tool-label {
        font-size: 0.65rem;
    }
}

@media (min-width: 993px) {
    .footer-toolbar {
        display: block;
    }
}

/* ===== 連結樣式 ===== */
a {
    color: var(--text-color-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--text-color-strong-block);
    text-decoration: underline;
}

.banner-caption {
  display: block;
}


@media (max-width: 768px) {
  .banner-caption {
    display: none;
  }
}
