/* ================================
   首頁專屬樣式
   ================================ */

/* 通用樣式 */
.homepage-section {
    position: relative;
    overflow: hidden;
}

.home-page {
    padding: 0;

}

/* ================================
   1. 大圖輪播圖區域
   ================================ */
.hero-section {
    position: relative;
    z-index: 1;
}

/* ================================
   2. 關於我們區域 (左70% 右30%)
   ================================ */
.about-section {
    padding: 0;
    background: #f8f9fa;
}

.about-us-banner {
    width: 100%;
    min-height: 500px;
}

.about-container {
    display: flex;
    width: 100%;
    min-height: 500px;
}

/* 左邊 70% - 可從後台管理 */
.about-left {
    width: 70%;
    position: relative;
}

.about-background {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    min-height: 500px;
}

.about-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-content {
    text-align: center;
    color: white;
    max-width: 600px;
    padding: 40px;
}

.about-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 30px;
    text-shadow: 0 3px 15px rgba(0,0,0,0.3);
}

.about-description {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 40px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.btn-about {
    background: white;
    color: #C41E3A;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.btn-about:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    color: #8B1538;
}

/* 右邊 30% - 專業製造 */
.about-right {
    width: 30%;
    background: linear-gradient(135deg, #C41E3A 0%, #8B1538 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 30px;
}

.manufacturing-list {
    color: white;
    text-align: center;
    width: 100%;
}

.manufacturing-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    text-shadow: 0 3px 15px rgba(0,0,0,0.3);
}

.manufacturing-items h3 {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 20px;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    padding: 0 10px;
}

.manufacturing-items h3:last-child {
    margin-bottom: 0;
}

/* ================================
   3. 產品介紹區域 (3x2 網格)
   ================================ */
.products-section {
    padding: 80px 0;
    background: white;
}

.product-categories-showcase {
    width: 100%;
}

.products-header {
    text-align: center;
    margin-bottom: 50px;
}

.products-header .section-title {
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    position: relative;
}

.products-header .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #C41E3A, #8B1538);
    border-radius: 2px;
}

.products-header .section-subtitle {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.categories-showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.category-showcase-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.category-showcase-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.category-showcase-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.category-showcase-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.category-showcase-card:hover .category-showcase-image img {
    transform: scale(1.1);
}

.category-showcase-content {
    padding: 30px;
    text-align: center;
}

.category-showcase-content h3 {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.category-showcase-content p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

.btn-learn-more {
    background: linear-gradient(135deg, #C41E3A 0%, #8B1538 100%);
    color: white;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 25px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
}

.btn-learn-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.4);
    color: white;
}

/* ================================
   4. 品質政策區域 (左30% 右70%)
   ================================ */
.quality-section {
    padding: 0;
    background: #f8f9fa;
}

.quality-policy-banner {
    width: 100%;
    min-height: 500px;
}

.quality-container {
    display: flex;
    width: 100%;
    min-height: 500px;
}

/* 左邊 30% - 品質政策文字 */
.quality-left {
    width: 30%;
    background: linear-gradient(135deg, #C41E3A 0%, #8B1538 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 30px;
}

.quality-content {
    color: white;
    text-align: center;
    width: 100%;
}

.quality-main-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 40px;
    text-shadow: 0 3px 15px rgba(0,0,0,0.3);
}

.quality-items h3 {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 25px;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    padding: 0 10px;
}

.quality-items h3:last-child {
    margin-bottom: 0;
}

/* 右邊 70% - 圖片區域 */
.quality-right {
    width: 70%;
    position: relative;
}

.quality-image {
    width: 100%;
    height: 100%;
    position: relative;
    min-height: 500px;
}

.quality-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.quality-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.quality-badge {
    position: relative;
}

.iso-badge {
    background: white;
    padding: 30px;
    border-radius: 50%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    width: 140px;
    height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 4px solid #C41E3A;
}

.iso-text {
    font-size: 24px;
    font-weight: 700;
    color: #C41E3A;
    display: block;
    line-height: 1;
}

.iso-number {
    font-size: 28px;
    font-weight: 900;
    color: #333;
    display: block;
    line-height: 1;
    margin: 5px 0;
}

.iso-certified {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    display: block;
    line-height: 1;
}

/* ================================
   5. 企業影片 (滿版)
   ================================ */
   .movie-section {
    padding: 80px 0;
    background: white;
}

    .movie-banner {
    width: 100%;
    min-height: 500px;
}

    .movie-container {
    display: flex;
    width: 100%;
    min-height: 500px;
}

/* ================================
   企業影片區域
   ================================ */
.video-section {
    background: #f8f9fa;
    padding: 80px 0;
}

.video-banner {
    width: 100%;
}

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

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #C41E3A, #8B1538);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
}

.video-wrapper {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

/* 移除紅色上邊條，保持純白色+陰影效果 */

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    border-radius: 10px;
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ================================
   響應式設計
   ================================ */

/* 平板版 */
@media (max-width: 980px) {
    /* 關於我們區域 */
    .about-container {
        flex-direction: column;
        min-height: auto;
    }
    
    .about-left,
    .about-right {
        width: 100%;
    }
    
    .about-background {
        min-height: 400px;
    }
    
    .about-title {
        font-size: 36px;
    }
    
    .manufacturing-title {
        font-size: 26px;
        margin-bottom: 30px;
    }
    
    .manufacturing-items h3 {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    /* 產品介紹 */
    .categories-showcase-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    /* 品質政策 */
    .quality-container {
        flex-direction: column;
        min-height: auto;
    }
    
    .quality-left,
    .quality-right {
        width: 100%;
    }
    
    .quality-image {
        min-height: 400px;
    }
    
    .quality-main-title {
        font-size: 24px;
    }
    
    .quality-items h3 {
        font-size: 15px;
    }
}

/* 手機版 */
@media (max-width: 767px) {
    .products-section {
        padding: 60px 0;
    }
    
    /* 關於我們區域 */
    .about-background {
        min-height: 350px;
    }
    
    .about-content {
        padding: 30px 20px;
    }
    
    .about-title {
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .about-description {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .about-right {
        padding: 40px 20px;
    }
    
    .manufacturing-title {
        font-size: 22px;
        margin-bottom: 25px;
    }
    
    .manufacturing-items h3 {
        font-size: 15px;
        margin-bottom: 12px;
    }
    
    /* 產品介紹 */
    .products-header .section-title {
        font-size: 28px;
    }
    
    .products-header .section-subtitle {
        font-size: 16px;
    }
    
    .categories-showcase-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .category-showcase-image {
        height: 200px;
    }
    
    .category-showcase-content {
        padding: 25px 20px;
    }
    
    .category-showcase-content h3 {
        font-size: 20px;
    }
    
    /* 品質政策 */
    .quality-image {
        min-height: 300px;
    }
    
    .quality-left {
        padding: 40px 20px;
    }
    
    .quality-main-title {
        font-size: 20px;
        margin-bottom: 25px;
    }
    
    .quality-items h3 {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .iso-badge {
        width: 120px;
        height: 120px;
        padding: 25px;
    }
    
    .iso-text {
        font-size: 20px;
    }
    
    .iso-number {
        font-size: 24px;
    }
    
    .iso-certified {
        font-size: 11px;
    }
    
    /* 企業影片區域 */
    .video-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
    
    .video-wrapper {
        padding: 20px;
    }
}

/* 小螢幕手機 */
@media (max-width: 480px) {
    .about-background {
        min-height: 300px;
    }
    
    .about-content {
        padding: 20px 15px;
    }
    
    .about-title {
        font-size: 24px;
    }
    
    .about-description {
        font-size: 15px;
    }
    
    .btn-about {
        padding: 12px 30px;
        font-size: 16px;
    }
    
    .manufacturing-title {
        font-size: 20px;
    }
    
    .manufacturing-items h3 {
        font-size: 14px;
    }
    
    /* 產品介紹 */
    .products-header .section-title {
        font-size: 24px;
    }
    
    .products-header .section-subtitle {
        font-size: 15px;
        margin-bottom: 30px;
    }
    
    .quality-main-title {
        font-size: 18px;
    }
    
    .iso-badge {
        width: 100px;
        height: 100px;
        padding: 20px;
    }
    
    .iso-text {
        font-size: 18px;
    }
    
    .iso-number {
        font-size: 20px;
    }
    
    /* 企業影片區域 */
    .video-section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .section-subtitle {
        font-size: 15px;
        margin-bottom: 30px;
    }
    
    .video-wrapper {
        padding: 15px;
    }
}
