﻿@charset "UTF-8";  

/* ============================================================
   首頁專用樣式 (s39-index) - 僅保留頁面內容樣式
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft JhengHei', Roboto, sans-serif;
}

body {
    background-color: #f0f6ff;
    color: #1e2a4a;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================================
   主視覺 Banner
   ============================================================ */
.hero {
    background: linear-gradient(135deg, #3a8fd4 0%, #6bb0e8 100%);
    color: white;
    padding: 60px 0 50px;
    position: relative;
    overflow: hidden;
}

.hero::after {
    
    font-size: 200px;
    opacity: 0.06;
    position: absolute;
    right: -20px;
    bottom: -40px;
    transform: rotate(12deg);
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.hero-text {
    flex: 1 1 55%;
}

.hero-text .badge {
    background: #ffe484;
    color: #1a5a96;
    display: inline-block;
    padding: 6px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
}

.hero-text h1 span {
    color: #ffe484;
}

.hero-text p {
    font-size: 20px;
    opacity: 0.92;
    max-width: 500px;
    margin-bottom: 24px;
}

.hero-cta a {
    background: #ffe484;
    color: #1a5a96;
    padding: 14px 36px;
    border-radius: 40px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    margin-right: 14px;
    transition: 0.2s;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
    font-size: 18px;
}

.hero-cta a:hover {
    background: #ffd95e;
    transform: translateY(-2px);
}

.hero-cta .btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
    box-shadow: none;
}

.hero-cta .btn-outline:hover {
    background: rgba(255,255,255,0.15);
}

.hero-image {
    flex: 1 1 35%;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    display: block;
    background: transparent;
}

/* ============================================================
   通用元件
   ============================================================ */
.section-title {
    font-size: 36px;
    font-weight: 700;
    color: #1a5a96;
    margin-bottom: 8px;
}

.section-sub {
    color: #4a6a8a;
    font-size: 20px;
    margin-bottom: 36px;
    border-bottom: 3px solid #6bb0e8;
    display: inline-block;
    padding-bottom: 6px;
}

.text-center {
    text-align: center;
}

.section-pad {
    padding: 60px 0;
}

.bg-light {
    background: white;
}

.bg-sky {
    background: #e8f2fc;
}

/* ============================================================
   產品系列
   ============================================================ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

.product-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(43, 123, 201, 0.06);
    transition: 0.25s;
    text-align: center;
    border: 1px solid #dce8f5;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(43, 123, 201, 0.12);
    border-color: #6bb0e8;
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background: #f5faff;
    padding: 18px;
}

.product-card .info {
    padding: 18px 14px 24px;
}

.product-card .info h3 {
    color: #1a5a96;
    font-size: 22px;
}

.product-card .info .more {
    display: inline-block;
    margin-top: 12px;
    color: #2b7bc9;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid #6bb0e8;
    padding-bottom: 2px;
    transition: 0.2s;
    font-size: 17px;
}

.product-card .info .more:hover {
    color: #1a5a96;
    border-bottom-color: #2b7bc9;
}

.product-card .info .more i {
    margin-left: 6px;
    font-size: 14px;
}

/* ============================================================
   CTA
   ============================================================ */
.cta-banner {
    background: linear-gradient(145deg, #3a8fd4, #5ba3db);
    color: white;
    padding: 50px 0;
    border-radius: 40px;
    margin: 20px 0 50px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(43, 123, 201, 0.20);
}

.cta-banner h2 {
    font-size: 36px;
    font-weight: 700;
}

.cta-banner p {
    font-size: 20px;
    opacity: 0.92;
    margin: 10px 0 24px;
}

.cta-banner a {
    background: #ffe484;
    color: #1a5a96;
    padding: 16px 48px;
    border-radius: 60px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    font-size: 20px;
    transition: 0.2s;
}

.cta-banner a:hover {
    background: #ffd95e;
    transform: scale(1.03);
}

/* ============================================================
   安裝實例
   ============================================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.gallery-grid .item {
    border-radius: 20px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 12px rgba(43, 123, 201, 0.06);
    transition: 0.2s;
    border: 1px solid #dce8f5;
}

.gallery-grid .item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 24px rgba(43, 123, 201, 0.10);
}

.gallery-grid .item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.gallery-grid .item .caption {
    padding: 14px 16px;
    font-weight: 500;
    color: #1a5a96;
    font-size: 17px;
    background: white;
}

/* ============================================================
   響應式設計
   ============================================================ */
@media (max-width: 992px) {
    .hero-text h1 { font-size: 38px; }
    .hero-image { flex: 1 1 100%; margin-top: 24px; }
    .hero-image img { max-width: 80%; margin: 0 auto; }
    .section-title { font-size: 32px; }
    .cta-banner h2 { font-size: 30px; }
}

@media (max-width: 768px) {
    .hero-text h1 { font-size: 30px; }
    .hero-text p { font-size: 18px; }
    .hero-cta a { font-size: 16px; padding: 12px 28px; margin-right: 8px; }
    .section-title { font-size: 28px; }
    .section-sub { font-size: 18px; }
    .cta-banner h2 { font-size: 26px; }
    .cta-banner p { font-size: 18px; }
    .cta-banner a { font-size: 18px; padding: 14px 36px; }
    .product-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
    .product-card img { height: 160px; }
    .gallery-grid { grid-template-columns: 1fr 1fr; }
    .hero-image img { max-width: 90%; margin: 0 auto; }
}

@media (max-width: 480px) {
    .hero-text h1 { font-size: 26px; }
    .hero-cta a { display: block; margin: 10px 0; text-align: center; }
    .hero-cta .btn-outline { margin-top: 0; }
    .product-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }
    .cta-banner { padding: 30px 16px; border-radius: 24px; }
    .cta-banner h2 { font-size: 22px; }
    .cta-banner a { font-size: 16px; padding: 12px 28px; }
    .hero-image img { max-width: 95%; margin: 0 auto; }
}