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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.7;
    color: #333;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

/* 容器 */
.container {
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 40px;
    padding-right: 40px;
}

/* 區塊間距 */
section {
    padding-top: 60px;
    padding-bottom: 60px;
}

.section-title {
    text-align: center;
    font-size: 2.25rem;
    margin-bottom: 40px;
}

/* ==========================================================================
   Header 頁首
   ========================================================================== */
.site-header {
    padding: 15px 0;
    border-bottom: 1px solid #eaeaea;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-branding img {
    max-height: 50px;
    width: auto;
    display: block;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: 500;
}

/* ==========================================================================
   首頁 Hero 區域
   ========================================================================== */
.hero-section {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-content,
.hero-image {
    flex: 1;
    min-width: 0;
}

.hero-title {
    font-size: 2.8rem;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-top: 20px;
    margin-bottom: 30px;
}

.hero-button, .cta-button {
    display: inline-block;
    background-color: #3d5a80;
    color: #fff !important;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.hero-button:hover, .cta-button:hover {
    background-color: #293d56;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* ==========================================================================
   服務項目網格
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.service-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.service-title {
    font-size: 1.5rem;
}

/* ==========================================================================
   品牌理念頁
   ========================================================================== */
.page-intro-header {
    text-align: center;
    padding-top: 40px;
    padding-bottom: 40px;
}

.page-hero-title {
    font-size: 2.5rem;
}

.page-hero-subtitle {
    font-size: 1.2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.full-width-visual img {
    width: 100%;
    height: auto;
    display: block;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.philosophy-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.philosophy-title {
    font-size: 1.5rem;
}

/* 創辦人區塊 - 新增 */
.founder-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.founder-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* 推薦文網格 - 新增 */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.8;
}

.testimonial-author {
    font-weight: 600;
    color: #3d5a80;
}

/* Footer */
.site-footer {
    background-color: #333;
    color: #fff;
    padding: 30px 0;
    text-align: center;
}

/* ==========================================================================
   響應式設計
   ========================================================================== */
@media (max-width: 768px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }

    .hero-section {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }

    /* 所有三欄佈局都改為單欄 */
    .services-grid,
    .philosophy-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .site-header {
        flex-direction: column;
        gap: 20px;
    }

    .main-navigation ul {
        flex-direction: column;
        text-align: center;
    }
    
    /* 創辦人區塊手機版 - 新增 */
    .founder-grid {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }
    
    .founder-image img {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        display: block;
    }
}
