/* ==========================================================
   品萱國際時尚美學 - 關於頁專用 (about.css)
   ========================================================== */

/* --- 1. 內頁結構基礎 (延續 Services 規格) --- */
.inner-page-main {
    position: relative;
    width: 100%;
    padding: 60px 0 100px;
}

.inner-page-main section {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto 100px; /* 增加章節間距，提升呼吸感 */
    clear: both;
}

/* --- 2. 大圖區 (Hero Section) --- */
.about-hero {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 550px;
    background: url("../images/about-bg.jpg") center / cover no-repeat;
    overflow: hidden;
}

.page-hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.2); /* 輕微壓暗以突顯文字 */
}

.hero-content {
    position: absolute;
    top: 42%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    z-index: 2;
}

.hero-content h1 {
    font-family: "Cactus Classical Serif", serif;
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 400;
    color: var(--white);
    margin-bottom: 10px;
    letter-spacing: 0.15em;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4), 0px 0px 10px rgba(0, 0, 0, 0.2);
}

.hero-content p {
       font-family: "Cactus Classical Serif", serif;
    font-size: clamp(16px, 2vw, 20px);
    color: var(--white);
    letter-spacing: 0.1em;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6), 0px 0px 10px rgba(0, 0, 0, 0.4);
    opacity: 1;
}

.hero-title {
    font-family: "Cactus Classical Serif", serif;
    font-size: 42px;
    letter-spacing: 0.2em;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 14px;
    opacity: 0.8;
    letter-spacing: 0.3em;
}

/* --- 3. 品牌故事佈局 --- */
.about-flex-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-top: 40px;
}

.about-flex-row.reverse { flex-direction: row-reverse; }

.about-image-box { flex: 1; }
.about-image-box img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.about-text-box { flex: 1.2; }
.about-text-box h3 {
    font-family: "Cactus Classical Serif", serif;
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-text-box p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* --- 4. 核心特色卡片 (強化陰影與圖片修正) --- */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.about-card {
    text-align: center;
    padding: 40px 25px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03); /* 初始淡陰影 */
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
                box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.about-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(72, 98, 90, 0.12); /* 移入強化陰影 */
}

/* 核心：修正圓形圖片裁切 */
.card-img-circle {
    width: 200px;
    height: 200px;
    margin: 0 auto 25px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--bg-light);
    transition: border-color 0.3s ease;
}

.card-img-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 關鍵：確保填滿且不變形 */
    object-position: center;
    transition: transform 0.5s ease;
}

.about-card:hover .card-img-circle { border-color: var(--accent-color); }
.about-card:hover .card-img-circle img { transform: scale(1.1); }

/* --- 5. 品牌價值觀清單 --- */
.value-list { list-style: none; padding: 0; }
.value-list li {
    padding: 15px 0;
    border-bottom: 1px dashed #ddb8b8;
    color: #555;
    position: relative;
    padding-left: 25px;
}

.value-list li::before {
    content: "✦";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* --- 6. 店面實境 (加大間距版) --- */
#store-gallery {
    margin-top: 100px;
    margin-bottom: 150px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px; /* 加大間距至 40px */
    margin-top: 50px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.06);
    background-color: var(--bg-light);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: block;
}

.gallery-item:hover img { transform: scale(1.1); }


/* --- 7. RWD 手機版調整 --- */
@media (max-width: 768px) {
    .inner-page-main section { width: 92%; margin-bottom: 60px; }
    
    .about-flex-row, .about-flex-row.reverse {
        flex-direction: column;
        gap: 30px;
    }

    .about-grid, .gallery-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-title { font-size: 32px; }
    .about-text-box { text-align: left; }
    
	.gallery-grid {
        /* 將兩欄改為單欄 (1fr)，照片就會一張一張垂直排列 */
        grid-template-columns: 1fr; 
        
        /* 增加上下照片之間的間距，讓排版不擁擠 */
        gap: 30px; 
        
        /* 稍微縮小圖片組的左右邊距，讓照片在手機上更顯眼 */
        padding: 0 5px; 
    }

    .gallery-item {
        /* 如果希望手機版照片長一點，可以調整比例 (例如 3:2 或回歸原始) */
        aspect-ratio: 4 / 3; 
    }
}