/* 全局設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

body {
    background-color: #f8f9fa;
    color: #333;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 導覽列 */
header {
    background-color: #003366; /* 威創專業藍 */
    color: white;
    padding: 1rem 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
} /* 補上這個括號，解救整個網頁！ */

header nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

header nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

header nav ul li a:hover {
    color: #ffcc00;
}

/* 橫幅區域 */
.hero {
    background-color: #e9ecef;
    padding: 60px 20px;
    text-align: center;
    border-bottom: 2px solid #dee2e6;
}

.hero h2 {
    font-size: 2.5rem;
    color: #003366;
    margin-bottom: 10px;
}

/* 服務區域 */
.services, .about-us {
    padding: 50px 0;
}

.services h2, .about-us h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #003366;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.service-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    color: #00509e;
    margin-bottom: 10px;
}

/* 優勢列表 */
.about-us ul {
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
}

.about-us li {
    background: white;
    margin-bottom: 10px;
    padding: 15px;
    border-left: 5px solid #003366;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* --- 合作夥伴區域樣式 (充滿自信與質感的置中設計) --- */
.partners-section {
    padding: 80px 20px;
    background-color: #f8f9fa; 
    border-top: 1px solid #eaeaea;
    border-bottom: 1px solid #eaeaea;
    /* 使用 Flexbox 確保內部所有元素絕對置中 */
    display: flex;
    flex-direction: column;
    align-items: center; 
    text-align: center;
}

/* 🏆 主標題：自信跳出特效 */
.partners-section h2 {
    font-size: 2.8rem;
    font-weight: 900; 
    letter-spacing: 3px;
    margin-bottom: 20px;
    /* 漸層金屬光澤文字 */
    background: linear-gradient(90deg, #003366 0%, #00b050 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(3px 5px 5px rgba(0, 0, 0, 0.15));
}

/* 📜 副標題：穩重與質感 */
.partners-section p {
    color: #555555;
    font-size: 1.2rem;
    font-weight: 500;
    max-width: 700px; 
    margin: 0 auto 40px auto;
    line-height: 1.6;
}

/* 🖼️ 圖片外框設定 */
.partners-image-wrapper {
    max-width: 750px;
    width: 100%;
    background: #ffffff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 51, 102, 0.08); 
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.partners-image-wrapper:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 51, 102, 0.15);
}

.partners-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(100%) opacity(0.7);
    transition: all 0.5s ease;
}

.partners-image-wrapper img:hover {
    filter: grayscale(0%) opacity(1);
}

/* --- 頁尾與聯絡資訊樣式 (終極高質感版) --- */
footer {
    background-color: #222831; 
    color: #e3e6f3;
    padding: 60px 0 30px;
    margin-top: 60px;
}

/* 標題與裝飾線 */
footer h2 {
    color: #ffffff;
    font-size: 2.2rem;
    letter-spacing: 4px;
    margin-bottom: 40px;
    position: relative;
    text-align: center;
}

footer h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: #00b050; 
    margin: 15px auto 0;
    border-radius: 2px;
}

/* 立體半透明卡片設定 */
.contact-info {
    max-width: 800px; 
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05); 
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); 
    
    /* 啟動左右分欄排版 */
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-around;
}

.info-block {
    flex: 1;
    min-width: 280px;
}

.info-block h3 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2); 
}

.info-block p {
    font-size: 1.05rem;
    margin-bottom: 12px;
}

/* 超連結顏色與互動 */
.info-block a {
    color: #4da6ff; 
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    margin-left: 5px;
}

.info-block a:hover {
    color: #ffcc00; 
}

.footer-bottom {
    text-align: center;
    margin-top: 50px;
    font-size: 0.9rem;
    color: #777777;
}