/* --- 全局樣式 --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
}

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

/* --- 頁首與導航 --- */
header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #0056b3;
}

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

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

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
    color: #007bff;
}

/* --- 主要內容 --- */
main {
    padding-top: 20px;
}

/* --- 英雄區 (首頁) --- */
.hero {
    background: url("./img/index/banner.png");
    text-align: center;
    padding: 100px 0;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #fff;
}

.hero p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 30px auto;
    color: #fff;
}

.cta-button {
    background-color: #007bff;
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #0056b3;
}

/* --- 特性/優勢 (首頁) --- */
.features {
    padding: 80px 0;
    text-align: center;
}

.features h2 {
    font-size: 36px;
    margin-bottom: 50px;
}

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

.feature-item {
    text-align: left;
}

.feature-item h3 {
    margin-top: 20px;
    margin-bottom: 10px;
}

/* --- 通用頁面頁首 --- */
.page-header {
    background-color: #e9ecef;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 60px;
}

.page-header h1 {
    font-size: 40px;
    margin-bottom: 10px;
    color: #fff;
    text-shadow: 0px 4px 10px rgba(0,0,0,0.6);
}

.page-header p {
    font-size: 18px;
    color: #fff;
    text-shadow: 0px 4px 10px rgba(0,0,0,0.6);
}

/* --- 圖片佔位符 --- */
.placeholder-image {
    width: 100%;
    height: 200px;
    background-color: #dbe4f0; /* 柔和的藍色 */
    border-radius: 8px;
    overflow: hidden;
}

.large-placeholder {
    height: 300px;
    margin-bottom: 30px;
}

/* --- 技術細節頁 --- */
.tech-item {
    margin-bottom: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid #eee;
}

.tech-item:last-child {
    border-bottom: none;
}

.tech-item h3 {
    font-size: 28px;
    color: #003366;
}

/* --- 解決方案頁 --- */
.solutions-grid {
    padding-bottom: 80px;
}
.solutions-grid .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.solution-item {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
}
.solution-item .placeholder-image {
    height: 150px;
    margin-bottom: 20px;
}
.solution-item h3 {
    margin-bottom: 15px;
}

/* --- 關於我們頁 --- */
.about-content {
    padding-bottom: 80px;
}
.about-content .about-placeholder {
    float: left;
    width: 45%;
    margin-right: 40px;
    margin-bottom: 20px;
}
.about-content h2 {
    margin-top: 0;
    font-size: 32px;
}

/* --- 聯絡我們頁 --- */
.contact-info .container {
    display: flex;
    gap: 40px;
    padding-bottom: 80px;
}

.contact-details, .contact-form {
    flex: 1;
}

.contact-details p {
    font-size: 16px;
    margin-bottom: 15px;
}

.contact-form h3, .contact-details h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.contact-form form input,
.contact-form form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.contact-form form button {
    width: 100%;
    border: none;
}

/* --- 頁腳 --- */
footer {
    background-color: #343a40;
    color: #fff;
    text-align: center;
    padding: 30px 0;
}

/* --- 響應式設計 --- */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    nav ul {
        margin-top: 15px;
    }
    nav ul li {
        margin: 0 10px;
    }
    .about-content .about-placeholder {
        width: 100%;
        float: none;
        margin-right: 0;
    }
    .contact-info .container {
        flex-direction: column;
    }
}