/* 全局樣式 */
:root {
    --primary: #0077cc;
    --secondary: #00a8e8;
    --dark: #003459;
    --light: #f7f9fc;
    --gray: #718096;
    --success: #48bb78;
    --warning: #ed8936;
    --danger: #e53e3e;
}

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

body {
    font-family: "微軟正黑體", "Microsoft JhengHei", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: var(--light);
}

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

a {
    text-decoration: none;
    color: var(--primary);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary);
}

ul {
    list-style: none;
}

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

.btn {
    display: inline-block;
    background-color: var(--primary);
    color: #fff;
    padding: 12px 30px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--secondary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 32px;
    text-align: center;
    margin-bottom: 40px;
    color: var(--dark);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--primary);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* 頭部導航欄 */
header {
    background-color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

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

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
}

nav ul {
    display: flex;
}

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

nav ul li a {
    color: var(--dark);
    font-weight: 500;
    font-size: 16px;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

/* 主頁橫幅 */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                linear-gradient(135deg, #0077cc, #003459) !important;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: #fff;
    margin-top: 70px;
}

/* 確保背景不被動態修改 */
.hero:before, .hero:after {
    display: none !important;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
}

/* 服務部分 */
.services {
    padding: 60px 0;
    background-color: var(--light);
}

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

@media (max-width: 1280px) {
    .services .container {
        max-width: 100%;
        padding: 0 30px;
    }
}

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

@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

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

.service-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-icon {
    margin-bottom: 20px;
}

.service-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--dark);
}

.service-card p {
    color: var(--gray);
}

/* 服務案例部分 */
.cases-examples {
    padding: 80px 0;
    background-color: var(--light);
}

.cases-examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.example-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.example-img-container {
    height: 250px;
    position: relative;
    overflow: hidden;
}

.example-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.example-card:hover .example-img {
    transform: scale(1.05);
}

.example-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    transition: all 0.3s ease;
}

.example-tag {
    display: inline-block;
    background-color: var(--primary);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.example-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.example-info h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--dark);
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.example-details {
    flex-grow: 1;
}

.example-details p {
    margin-bottom: 10px;
    color: var(--gray);
    font-size: 15px;
    line-height: 1.5;
}

.example-details strong {
    color: var(--dark);
    font-weight: 600;
}

@media screen and (max-width: 768px) {
    .cases-examples-grid {
        grid-template-columns: 1fr;
    }
    
    .example-img-container {
        height: 200px;
    }
}

/* 關於我們部分 */
.about {
    padding: 80px 0;
    background-color: var(--light);
}

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

.about-text p {
    margin-bottom: 20px;
    color: var(--gray);
}

.about-features {
    margin-top: 30px;
}

.about-features li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    color: var(--gray);
}

.about-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* 案例部分 */
.cases {
    padding: 80px 0;
    background-color: #fff;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.case-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.case-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.case-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

/* 新增Unsplash圖片樣式 */
.case-img-container {
    width: 100%;
    height: 250px;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    position: relative;
}

.case-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-card:hover .case-img {
    transform: scale(1.05);
}

.case-info {
    padding: 20px;
}

.case-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--dark);
}

.case-info p {
    color: var(--gray);
}

/* 聯絡部分 - 更新版 */
.contact {
    padding: 80px 0;
    background-color: var(--light);
}

.contact-content-centered {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-info-large {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    text-align: center;
}

.contact-item-focus {
    margin-bottom: 30px;
    padding-bottom: 30px;
}

.contact-item h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--dark);
    position: relative;
    display: inline-block;
}

.contact-item h3:after {
    content: '';
    position: absolute;
    width: 60%;
    height: 3px;
    background-color: var(--primary);
    bottom: -5px;
    left: 20%;
}

.email-large {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary);
    margin: 20px 0;
    letter-spacing: 0.5px;
    padding: 10px;
    background-color: rgba(0, 119, 204, 0.05);
    border-radius: 4px;
}

.contact-note-large {
    margin: 20px auto;
    padding: 15px 20px;
    background-color: rgba(0, 119, 204, 0.1);
    border-left: 4px solid var(--primary);
    border-radius: 0 4px 4px 0;
    font-size: 17px;
    max-width: 600px;
    text-align: left;
}

.contact-divider {
    height: 1px;
    background-color: #eee;
    margin: 20px 0;
}

.social-link {
    display: inline-flex;
    align-items: center;
    font-size: 18px;
    transition: all 0.3s ease;
    padding: 8px 16px;
    background-color: #f7f7f7;
    border-radius: 30px;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: #f0f0f0;
}

.social-icon {
    margin-left: 8px;
    font-family: "Font Awesome 5 Brands";
}

/* 頁腳部分 */
footer {
    background-color: var(--dark);
    color: #fff;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links h4,
.footer-contact h4 {
    font-size: 18px;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background-color: var(--secondary);
    bottom: 0;
    left: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.footer-links ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.footer-contact p i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.footer-note {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 4px;
    margin-top: 15px;
    font-weight: bold;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* 響應式設計 */
@media screen and (max-width: 992px) {
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        margin-top: 30px;
    }
}

@media screen and (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 20px;
    }
    
    nav ul li {
        margin-left: 15px;
        margin-right: 15px;
    }
    
    .hero-content h2 {
        font-size: 36px;
    }
    
    .hero-content p {
        font-size: 18px;
    }
    
    .contact-info-large {
        padding: 25px;
    }
    
    .email-large {
        font-size: 18px;
    }
    
    .contact-note-large {
        font-size: 15px;
        padding: 12px 15px;
    }
}

@media screen and (max-width: 576px) {
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
    
    .section-title {
        font-size: 28px;
    }
} 