/* ==================== 基礎設定與變數 ==================== */
:root {
    --primary-color: #1A365D;       /* 主要文字與品牌色：企業深藍 */
    --accent-color: #D4AF37;        /* 點綴色：經典純金 */
    --accent-hover-color: #B8860B;  /* 點綴色懸浮：暗金菊 */
    --bg-color-light: #f8f9fa;      /* 淺灰背景 */
    --border-color: #eaeaea;        
    --text-muted: #666666;          /* 內文深灰色 */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Helvetica Neue", Arial, "Noto Sans TC", sans-serif;
    color: var(--text-muted);
    line-height: 1.6;
    background-color: #ffffff;
    padding-top: 80px; 
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease, background-color 0.3s ease;
}

ul {
    list-style: none;
}

/* ==================== 頂部導覽列 (Header) ==================== */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    background-color: #ffffff; 
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.logo a {
    display: flex;
    align-items: center;
}

.header-logo-img {
    max-height: 45px; 
    width: auto;
    object-fit: contain;
}

.nav-list {
    display: flex;
    gap: 40px;
}

.nav-list a {
    font-size: 15px;
    font-weight: 500;
    color: var(--primary-color); 
}

.nav-list a:hover {
    color: var(--accent-color);
}

/* ==================== 共用頁面內容佈局 ==================== */
.page-content {
    padding-top: 100px; 
    padding-bottom: 100px;
}

.section-title {
    text-align: center;
    margin-bottom: 80px;
}

.section-title h2 {
    font-size: 32px;
    font-weight: normal;
    letter-spacing: 2px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.section-title p {
    font-size: 13px;
    letter-spacing: 3px;
    color: var(--text-muted);
}

/* ==================== 首頁 (Index) - 主視覺 ==================== */
.hero-split-section {
    min-height: calc(100vh - 80px - 97px); 
    display: flex;
    align-items: center;
    background-color: var(--bg-color-light);
    padding: 60px 0; 
}

.hero-split-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center; 
    padding: 0 40px;
    gap: 60px; 
}

.hero-image-wrapper {
    flex: 1; 
    display: flex;
    justify-content: center;
}

.hero-main-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px; 
    box-shadow: 0 15px 40px rgba(26, 54, 93, 0.08); 
}

.hero-text-wrapper {
    flex: 1; 
    display: flex;
    justify-content: flex-start;
    text-align: left; 
}

.hero-text-content {
    max-width: 500px; 
}

.hero-subtitle {
    font-size: 14px;
    letter-spacing: 4px;
    color: var(--accent-color); 
    font-weight: 600;
    margin-bottom: 15px;
    display: inline-block;
}

.hero-title {
    font-size: 40px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 1px;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.hero-description {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.8;
}

/* ==================== 業務項目頁面 (Services) ==================== */
.services-section {
    max-width: 1400px; /* 【變大關鍵 1】原本是 1200px，放寬到 1400px 讓卡片可以往左右長大 */
    margin: 0 auto;
    padding-left: 40px;
    padding-right: 40px;
}

.services-grid {
    display: flex;
    justify-content: space-between;
    gap: 60px; /* 【視覺優化】卡片變大後，把中間的間隔從 40px 拉寬到 60px，才不會覺得擠 */
}

.service-card {
    flex: 1;
    padding: 70px 60px; /* 【變大關鍵 2】原本是 50px 40px，增加卡片內部的上下左右空間，讓框框撐得更大 */
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--primary-color); 
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(26, 54, 93, 0.08);
}

/* 業務項目卡片內的圖片樣式 (已移出 RWD 括號) */
.service-img {
    width: 60%; /* 建議電腦版設定為 60% 到 80% 比較剛好 */
    max-width: 400px; 
    height: auto; 
    aspect-ratio: 16 / 9; 
    
    /* 關鍵修改：將 cover 改為 contain，讓超大圖完整顯示不被裁切 */
    object-fit: contain; 
    
    border-radius: 4px;
    display: block; 
    margin: 0 auto 25px auto; 
}

.service-card h3 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--accent-color); 
    padding-bottom: 15px;
    display: inline-block;
    color: var(--primary-color);
}

.service-card p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.9;
    text-align: justify;
}

/* ==================== 聯絡我們頁面 (Contact) ==================== */
.contact-section {
    max-width: 1000px;
    margin: 0 auto;
    padding-left: 40px;
    padding-right: 40px;
}

.contact-container {
    display: flex;
    gap: 60px;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 80px 60px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    font-size: 26px;
    font-weight: 500;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.8;
}

.info-list li {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 15px;
}

.contact-form-wrapper {
    flex: 1.3;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 14px;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #dddddd;
    background-color: var(--bg-color-light);
    font-family: inherit;
    font-size: 15px;
    border-radius: 4px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color); 
}

.submit-btn {
    background-color: var(--accent-color); 
    color: #ffffff;
    border: none;
    padding: 16px 30px;
    font-size: 15px;
    letter-spacing: 2px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: var(--accent-hover-color); 
}

/* ==================== 頁尾 (Footer) ==================== */
.footer {
    background-color: #ffffff;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    width: 100%;
}

.footer-content p {
    font-size: 12px;
    color: #999999;
    letter-spacing: 1px;
}

/* ==================== 響應式設計 (RWD 手機與平板) ==================== */

/* 平板尺寸 (992px 以下) */
@media screen and (max-width: 992px) {
    .hero-split-container {
        gap: 40px;
        padding: 0 30px;
    }
    .hero-title {
        font-size: 32px;
    }
    .contact-container {
        flex-direction: column;
        padding: 40px;
    }
}

/* 手機尺寸 (768px 以下) */
@media screen and (max-width: 768px) {
    .header {
        height: auto;
        padding: 15px 0;
    }
    .header-container {
        flex-direction: column;
        gap: 15px;
        padding: 0 20px;
    }
    .nav-list {
        gap: 20px;
    }
    
    body {
        padding-top: 110px;
    }

    .hero-split-section {
        padding: 40px 0;
    }
    .hero-split-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        padding: 0 20px;
    }
    .hero-text-wrapper {
        justify-content: center;
        text-align: center;
    }
    .hero-title {
        font-size: 28px;
    }

    .services-grid {
        flex-direction: column;
        gap: 30px;
    }
    .service-card {
        padding: 30px 20px;
    }
    /* 手機版時，讓圖片寬一點比較好看 */
    .service-img {
        width: 80%; 
    }

    .contact-container {
        padding: 30px 20px;
    }
}