/* 重置樣式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基本變數 */
:root {
    --primary-color: #0066cc;
    --secondary-color: #00a8ff;
    --accent-color: #00d4ff;
    --dark-color: #1a237e;
    --dark-blue: #0d1b3e;
    --dark-blue-black: #0a1429;
    --gold-color: #ffd700;
    --light-color: #f5f9ff;
    --text-color: #333;
    --text-light: #666;
    --gradient-bg: linear-gradient(135deg, #1a237e 0%, #0066cc 50%, #00a8ff 100%);
    --gradient-section: linear-gradient(to bottom, #f5f9ff, #e6f2ff);
    --footer-gradient: linear-gradient(135deg, #1a237e 0%, #0d1b3e 50%, #0a1429 100%);
    --shadow: 0 5px 15px rgba(0, 50, 150, 0.1);
    --shadow-strong: 0 10px 30px rgba(0, 50, 150, 0.2);
    --transition: all 0.3s ease;
}

/* 基本樣式 */
body {
    font-family: 'Noto Sans TC', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #f0f8ff;
    overflow-x: hidden;
}

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

/* 隱藏圖片區域 */
.hidden-images {
    display: none;
}

/* 頁首樣式 */
header {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-content h1 {
    font-size: 2.4rem; /* 加大字體 */
    font-weight: 1000; /* 加粗字體 */
    color: var(--dark-blue);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.15), 0 0 25px rgba(0, 102, 204, 0.1);
    letter-spacing: 3px; /* 加大間隔 */
    line-height: 1;
    margin-bottom: 8px;
    white-space: nowrap;
    display: inline-block;
    padding: 0;
    width: 100%;
    text-align: left;
}

.logo-content span {
    color: var(--primary-color);
    font-weight: 1000; /* 加粗字體 */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.slogan {
    font-size: 0.85rem;
    color: white;
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 0;
    text-align: left;
    background-color: var(--dark-blue);
    padding: 6px 16px; /* 調整內邊距 */
    border-radius: 4px;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    display: inline-block;
    line-height: 1.2;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
    width: 100%;
    box-sizing: border-box;
    position: relative;
    left: 0;
    transform: none; /* 移除之前的transform */
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    padding: 5px 10px;
    border-radius: 4px;
}

nav ul li a:hover {
    color: var(--primary-color);
    background-color: rgba(0, 102, 204, 0.05);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* 主內容區 */
main {
    margin-top: 80px;
}

/* 頁面區塊樣式 */
.page-section {
    padding: 80px 0;
    position: relative;
}

.page-section:not(.hero):not(.footer) {
    background: var(--gradient-section);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    display: inline-block;
    padding-bottom: 15px;
    position: relative;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gradient-bg);
    border-radius: 3px;
}

/* 首頁英雄區 */
.hero {
    height: 680px;
    background: url('banner.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    position: relative;
    margin-top: 0;
    padding: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    max-width: 700px;
}

.cta-button {
    display: inline-block;
    background-color: white;
    color: var(--primary-color);
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    background-color: var(--light-color);
}

/* 產品類別區 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-strong);
}

.service-img {
    height: 300px;
    width: 100%;
    background-color: #f0f8ff;
    position: relative;
    overflow: hidden;
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-image {
    transform: scale(1.05);
}

.service-tag {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    font-size: 0.8rem;
    text-align: center;
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover .service-tag {
    opacity: 1;
}

.service-content {
    padding: 25px;
}

.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.service-content p {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* 公司簡介區 */
.about-content {
    display: flex;
    align-items: flex-start;
    gap: 50px;
    margin-bottom: 50px;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.about-feature {
    margin-bottom: 25px;
    padding-left: 10px;
    border-left: 4px solid var(--primary-color);
}

.about-feature h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.about-feature h4 i {
    color: var(--primary-color);
    margin-right: 10px;
}

.about-image {
    flex: 1;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 400px;
    background-color: #e6f2ff;
}

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

/* 服務清單 */
.service-list {
    list-style: none;
    margin-top: 20px;
}

.service-list li {
    margin-bottom: 10px;
    padding-left: 30px;
    position: relative;
}

.service-list li i {
    position: absolute;
    left: 0;
    top: 5px;
    color: var(--primary-color);
}

/* 特色服務區 */
.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.feature-item {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

/* 服務詳情區 */
.service-detail {
    margin-bottom: 80px;
}

/* 聯絡我們頁面 */
.contact-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
}

.contact-info {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 50px;
    flex-shrink: 0;
}

.contact-details h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.map-container {
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background-color: #e6f2ff;
}

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

/* 頁尾樣式 - 已修正 */
footer {
    background: var(--footer-gradient);
    color: white;
    padding: 60px 0 30px;
    position: relative;
    overflow: hidden;
}

/* 移除右下角的深藍色塊 */
footer::before {
    content: none;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.footer-column h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: white;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-column ul {
    list-style: none;
    padding-left: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 20px;
}

.footer-column ul li::before {
    content: "•";
    color: var(--accent-color);
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: -2px;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    padding: 2px 0;
}

.footer-column ul li a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.footer-map {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

/* 頁面導航 */
.page-nav {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.nav-dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

.nav-dot:hover::after {
    content: attr(data-title);
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
}

/* 回到頂部按鈕 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 99;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

/* 響應式設計 */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .about-image {
        height: 300px;
    }
    
    .logo-content h1 {
        font-size: 2.0rem;
        letter-spacing: 2px;
    }
    
    .slogan {
        font-size: 0.8rem;
        padding: 5px 14px;
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }
    
    nav ul.show {
        display: flex;
    }
    
    nav ul li {
        margin: 10px 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .page-nav {
        display: none;
    }
    
    .hero {
        height: 500px;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .service-img {
        height: 250px;
    }
    
    .logo-content h1 {
        font-size: 1.8rem;
        letter-spacing: 1.5px;
    }
    
    .slogan {
        font-size: 0.75rem;
        padding: 4px 12px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .service-img {
        height: 200px;
    }
    
    .about-image {
        height: 250px;
    }
    
    .feature-item {
        padding: 20px;
    }
    
    .contact-info {
        padding: 25px;
    }
    
    .logo-content h1 {
        font-size: 1.6rem;
        letter-spacing: 1px;
    }
    
    .slogan {
        font-size: 0.7rem;
        padding: 3px 10px;
    }
}

/* 備用Banner樣式 */
.hero {
    /* 主背景圖 */
    background: url('banner.jpg') no-repeat center center;
    background-size: cover;
    
    /* 備用漸層背景 */
    background-image: 
        url('banner.jpg'),
        linear-gradient(135deg, #1a237e 0%, #0066cc 50%, #00a8ff 100%);
}