/* =========================================
   1. 全域變數與基礎設定
   ========================================= */
:root {
    --primary-red: #FF0040; /* 接近設計稿的紅色 */
    --text-dark: #333;
    --text-gray: #666;
    --brand-red: #ea2635; /* 補齊 HTML style 中用到的變數 */
}

body {
    font-family: 'Noto Sans TC', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
} /* 修正：原本這裡缺少結尾大括號 */

a {
    text-decoration: none;
}

/* 圖片自適應 */
.img-fluid {
    max-width: 100%;
    height: auto;
}

/* =========================================
   2. Hero Section (主視覺)
   ========================================= */
.hero-section {
    background: url('../images/shop-title-photo.png');
    background-size: cover;
    background-position: center;
    min-height: 300px; /* 改用 min-height 以適應不同內容長度 */
    display: flex;
    align-items: center;
    color: white;
    position: relative;
    padding: 40px 0;
}

/* 增加黑色遮罩讓文字更清楚 (可選) */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-text {
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero-text p {
    color: #e72d2d;
    font-size: 1.5rem;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* =========================================
   3. 共用組件 (標題、按鈕)
   ========================================= */

/* 左側紅線標題 */
.section-header {
    border-left: 6px solid var(--brand-red);
    padding-left: 15px;
    margin-bottom: 1rem;
    margin-top: 50px;
}

.section-header h2 {
    color: var(--brand-red);
    font-weight: 700;
    margin-bottom: 0.2rem;
    text-transform: capitalize;
    font-size: 2rem;
}

.section-header span {
    font-size: 1.2rem;
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
}

/* =========================================
   4. 各區塊專用樣式
   ========================================= */

/* --- Hero Section --- */
.service-intro {
    position: relative;
}

.main-heading {
    line-height: 1.5;
    font-size: 2rem;
    color: #000;
}

.service-text {
    line-height: 1.6;
}

.service-text p {
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-gray);
    text-align: justify;
}

/* Intro Section (Store) */
.section-title-group {
    border-left: 6px solid var(--primary-red);
    padding-left: 15px;
    margin-bottom: 20px;
    margin-top: 50px;
}

.section-title-cn {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-red);
    margin-bottom: 0.2rem;
    display: block;
    padding-bottom: 10px;
}

.section-title-en {
    font-size: 1.2rem;
    color: #000;
    margin-bottom: 0.2rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.intro-text h2 {
    padding-top: 50px;
    font-size: 2.6rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.intro-text p {
    font-size: 1.1rem;
    color: var(--text-gray);
    line-height: 1.8;
}

/* Background pattern simulation */
.intro-bg {
    height: 700px;
    background-image: url("#");
    background-repeat: no-repeat;
    background-position: 0px 0px;
}

.intro-house {
    margin-top: 0px;
}

.isometric-img {
    max-width: 100%;
    height: auto;
}

/* Search Box */
.search-box {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-top: -450px;
    position: relative;
    z-index: 10;
    margin-bottom: 50px;
}

.search-header {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.search-header i {
    color: var(--primary-red);
    margin-right: 10px;
    font-size: 1.5rem;
}

.form-control,
.form-select {
    border-radius: 5px;
    padding: 10px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
}

.btn-search {
    background-color: var(--primary-red);
    color: white;
    border-radius: 30px;
    padding: 10px 30px;
    font-weight: bold;
    width: 100%;
    border: none;
}

.btn-search:hover {
    background-color: #d60036;
    color: white;
}

/* Statistics Banner */
.stats-banner {
    background-color: var(--primary-red);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
}

.stat-label {
    font-size: 1.2rem;
    margin-top: 30px;
}

/* Shop List Section & Filter Tabs */
/* 響應式調整 */
.filter-buttons .btn {
    width: 100%; /* 手機版：按鈕寬度佔滿 100% */
    padding: 12px 0; /* 手機版：增加上下留白 */
    font-size: 1.1rem;
    border-radius: 50px;
    border: 1px solid #ddd;
    color: var(--text-gray);
}

.filter-buttons .btn.active {
    background-color: var(--brand-red);
    color: #fff;
    border-color: var(--brand-red);
}

/* 電腦版 (螢幕大於 768px) 設定 */
@media (min-width: 768px) {
    .filter-buttons .btn {
        width: auto; /* 電腦版：寬度自動 */
        padding: 8px 30px;
        min-width: 160px;
        margin: 0 10px;
    }
}

.shop-card {
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s;
    height: 100%;
    background: #fff;
}

.shop-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.shop-img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.shop-body {
    padding: 20px;
}

.shop-title {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 10px; line-height: 24px;
}

.shop-desc {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 20px;
    min-height: 60px; line-height: 22px;
}

.btn-detail {
    background-color: var(--primary-red);
    color: white;
    border-radius: 20px;
    padding: 5px 20px;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-block;
}

.btn-detail:hover {
    background-color: #d60036;
    color: white;
}

/* --- 動態資訊 (News) --- */
.news-section {
    margin-bottom: 50px;
    position: relative;
}

.news-header h2 {
    color: white;
    font-family: 'Oswald', sans-serif;
}

.news-header span {
    display: block;
    color: white;
    font-size: 1.5rem;
}

.news-card {
    padding: 10px;
    border: 1px solid #c1c1c1;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s;
    height: 100%;
    background: #fff;
}

.news-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.news-img {
    height: auto;
    object-fit: cover;
    width: 100%;
}

.news-body {
    padding: 20px;
}

.news-title {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-family: "微軟正黑體", sans-serif;
    line-height: 24px;
}

.news-desc {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
    min-height: 60px;
    font-family: "微軟正黑體", sans-serif;
    line-height: 20px;
}

/* =========================================
   5. RWD 響應式設定 (手機版優化)
   ========================================= */
@media (min-width: 1200px) {
 /* 3. 品牌標語 (Slogan) - 背景1 */

.intro-bg {
    height: 1000px;
    background-image: url("../images/about-backgroud.png");
    background-repeat: no-repeat;
    background-position: 0px 0px;
}

.intro-house {
    margin-top: 0px;
}

.isometric-img {
    max-width: 100%;
    height: auto;
}

/* Search Box */
.search-box {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-top: -450px;
    position: relative;
    z-index: 10;
    margin-bottom: 50px;
}

.search-header {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.search-header i {
    color: var(--primary-red);
    margin-right: 10px;
    font-size: 1.5rem;
}

.form-control,
.form-select {
    border-radius: 5px;
    padding: 10px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
}
  }



@media (max-width: 767.98px) {

    /* --- 1. 全域與容器設定 --- */
    .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    /* --- 2. Hero 主視覺區塊 --- */
    .hero-section {
        min-height: 250px;
    }

    .hero-text h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .hero-text p {
        font-size: 1rem;
    }

    /* --- 3. 歡迎光臨/Intro 區塊 --- */
    .section-title-cn {
        font-size: 1.6rem;
    }

    .section-title-en {
        font-size: 1rem;
    }

    .intro-text h2 {
        font-size: 1.75rem;
        line-height: 1.4;
        padding-top: 20px;
    }

    .intro-text p {
        font-size: 1rem;
        text-align: left;
    }

    /* 修正手機版插圖與搜尋框的重疊問題 */
    .search-box {
        margin-top: 0;
        margin-bottom: 30px;
        padding: 20px;
    }

    /* --- 4. 數據統計區塊 (Stats) --- */
    .stat-number {
        font-size: 2.2rem;
    }

    .stat-label {
        font-size: 1rem;
        margin-top: 10px;
    }

    /* --- 5. 店鋪列表 (Shop Cards) --- */
    .shop-title {
        font-size: 1.2rem;
    }

    .shop-desc {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 15px;
    }

    .btn-detail {
        width: 100%;
        text-align: center;
        padding: 8px 0;
    }

    /* --- 6. 其他標題文字縮小 (共用類別) --- */
    .section-header h2 {
        font-size: 1.6rem;
    }

    .main-heading {
        font-size: 1.5rem;
    }

    .item-title {
        font-size: 1.3rem;
    }
	
}