@charset "UTF-8";
/* CSS Document */
/* 基礎設定 */
html { 
	scroll-behavior: smooth; 
}

body { 
	top: 0px !important;
	margin: 0; 
	font-family: "PingFang TC", "Microsoft JhengHei", sans-serif, Arial, sans-serif; 
	
	overflow-x: hidden; 
	background: #f5f3f0; 
}

/* Hero 區塊：確保故事跟著圖片縮放移動 */
.hero-scene {
  height: auto;
  position: relative;
}

.hero {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: relative;
  width: 100%;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  color: white;
  text-align: center;
  width: 90%;
  font-size: 4vw;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
}

/* Header */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: rgba(252, 250, 247, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.logo { font-weight: bold; letter-spacing: 0.2rem; font-size: 1.2rem; }

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    margin: 0 1rem;
    font-size: 0.9rem;
}


/* 進度條 */

.progress-bar { 
  position: fixed; 
  top: 0; 
  left: 0; 
  height: 4px; 
  background: #000; 
  z-index: 9999; /* 最高層級 */
  width: 0%; 
}

/* 漢堡選單按鈕 */
.menu-toggle { 
	position: fixed; 
	top: 20px; 
	right: 20px; 
	width: 30px; 
	height: 20px; 
	z-index: 2500; 
	cursor: pointer; 
	display: flex; 
	flex-direction: column; 
	justify-content: space-between; 
}
.menu-toggle.open span:nth-child(1) { 
	transform: translateY(8.5px) rotate(45deg); 
}
.menu-toggle.open span:nth-child(2) { 
	opacity: 0; 
}
.menu-toggle.open span:nth-child(3) { 
	transform: translateY(-8.5px) rotate(-45deg); 
}
.menu-toggle span { 
	display: block; 
	height: 3px; 
	width: 100%; 
	background: #333; 
	transition: 0.3s; 
}

/* 側邊選單本體 */
.side-menu { 
	position: fixed; 
	top: 0; right: 0; 
	width: 200px; 
	height: 100%; 
	background: #fff; 
	z-index: 2100; 
	transform: translateX(100%); 
	transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
	padding: 80px 20px; 
	box-shadow: -5px 0 15px rgba(0,0,0,0.1); 
}
.side-menu.active { 
	transform: translateX(0); 
}
.menu-overlay { 
	position: fixed; 
	inset: 0; 
	background: rgba(0,0,0,0.4); 
	z-index: 2000; 
	opacity: 0; 
	visibility: hidden; 
	transition: 0.3s; 
}
.menu-overlay.active { 
	opacity: 1; 
	visibility: visible; 
}

/* Banner */
.banner {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #f0ede9; /* 建議換成輕柔背景圖 */
}

.banner h1 { font-size: 15rem; margin: 1rem 0; font-weight: 400; }

.btn-primary {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.8rem 2.5rem;
    border: 1px solid var(--text-color);
    text-decoration: none;
    color: var(--text-color);
	background-color: dodgerblue;
    transition: var(--transition);
	border-radius: 20px;
}
.btn-primary:hover { 
	background: #000; 
	color: #fff;  
	border-radius: 20px;}

/* 佈局 */
.container { max-width: 1200px; margin: 0 auto; padding: 5rem 5%; }
.section { margin-bottom: 8rem; }
.section-title { font-size: 1.8rem; margin-bottom: 3rem; font-weight: normal; }
.section-title span { font-size: 1rem; color: #999; margin-left: 1rem; }

/* 卡片佈局 */
.single-featured-container {
    width: 100%;
    margin-bottom: 4rem;
}
.featured-products {
    margin-bottom: 5rem; /* 與下方所有產品區保持距離 */
}
.card-grid { display: grid; gap: 2rem; }
.col-3 { 
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
}
.col-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

/* 品牌故事卡片 */
.story-card { display: flex; flex-direction: column; gap: 1.5rem; }
.card-img { 
	
	border-radius: 15px; 
	padding: 20px;
}

/* 購物卡片 */
.product-card.featured-hero {
    width: 100%;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.product-card.featured-hero:hover {
    transform: translateY(-5px);
}
/* 圖片比例控制：隨寬度縮放 */
.product-img-hero {
    width: 100%;
    /* 在寬螢幕下使用較扁的比例，避免佔據過多垂直空間 */
    aspect-ratio: 21 / 9; 
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    background-color: #eee;
}

.product-info-hero {
    padding: 2rem 0;
    text-align: left;
}

.product-info-hero h3 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    letter-spacing: 0.1rem;
}

.product-info-hero p {
    font-size: 1.1rem;
    color: #666;
    max-width: 800px; /* 限制文字寬度增加閱讀舒適度 */
}
.product-card { text-align: center; cursor: pointer; }
.product-img { 
    height: 350px; background: #eee; margin-bottom: 1rem; 
    transition: var(--transition);}
.product-card:hover 
.product-img { transform: translateY(-10px); }

/* 新聞區條列式卡片 */
.news-card {
    display: flex;
    gap: 2rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
}

.section.has-bg {
    position: relative;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    padding: 8rem 0;
}

.overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5); /* 確保文字清晰 */
}

.relative { position: relative; z-index: 2; }

.glass-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2.5rem;
    border-radius: 12px;
    color: white;
}

/* 側邊圓點 */
.dot-nav { 
  position: fixed; 
  right: 20px; 
  top: 50%; 
  transform: translateY(-50%); 
  display: flex; 
  flex-direction: column; 
  gap: 15px; 
  z-index: 3000;
}
.dot { 
	width: 10px; 
	height: 10px; 
	border-radius: 50%; 
	background: rgba(0,0,0,0.2); 
	cursor: pointer; 
	transition: 0.3s; 
	position: relative; 
}
.dot.active { 
	background: #000; 
	transform: scale(1.4); 
}
.dot::after { 
	content: attr(data-label); 
	position: absolute; 
	right: 25px; 
	top: 50%; 
	transform: translateY(-50%); 
	background: #000; 
	color: #fff; 
	padding: 4px 8px; 
	border-radius: 4px; 
	font-size: 11px; 
	white-space: nowrap; 
	opacity: 0; 
	pointer-events: none; 
	transition: 0.2s; 
}
.dot:hover::after { 
	opacity: 1; 
}

/* 頁尾 */
.main-footer { 
	background: #2c2c2c; 
	color: #bbb; 
	padding: 40px 20px 20px 10px; 
	margin-top: 100px; 
}
.footer-container { 
	width: 90%; 
	max-width: 1100px; 
	margin: auto; 
	display: flex; 
	justify-content: space-between; 
	flex-wrap: wrap; gap: 40px; 
}
.footer-info h3 { 
	color: #fff; 
	margin-bottom: 15px; 
}
.footer-bottom { 
	text-align: center; 
	border-top: 1px solid #444; 
	margin-top: 40px; 
	padding-top: 20px; 
	font-size: 12px; 
}

/* 快速連結基礎樣式 */
.footer-links a {
    color: #bbb;               /* 預設灰色 */
    text-decoration: none;      /* 移除底線 */
    font-size: 15px;
    transition: color 0.3s ease; /* 讓顏色變換更平滑 */
}

/* 懸停 (Hover) 時的狀態 */
.footer-links a:hover {
    color: #ffffff;             /* 變為純白色 */
    text-decoration: none;      /* 確保懸停時也沒有底線 */
}

.side-menu ul li a {
    color: #888;                      /* 側邊選單底色較亮，使用稍深的灰色 */
    text-decoration: none;
    transition: 0.3s;
}

.side-menu ul li a:hover {
    color: #000;                      /* 因為側邊選單背景是白色，懸停建議變黑色較清楚 */
    background: #f0f0f0;              /* 加上輕微背景色提升質感 */
}

@media (max-width: 768px) {
	.dot-nav { 
		display: none; 
	} 
	.logo{
		width:100px;
	}
	.carousel {
        height: 70vw; /* 手機版比例調整為較接近正方形 */
    }
    .slide-content h1 {
        font-size: 1.5rem; /* 縮小手機版標題 */
    }
	.product-img-hero {
        /* 手機版改回較方的比例，視覺更飽滿 */
        aspect-ratio: 16 / 10; 
    }
    
    .product-info-hero h3 {
        font-size: 1.6rem;
    }
    
    .product-info-hero p {
        font-size: 0.95rem;
    }
}



/* 基礎圖示樣式 */
.social-icons {
  display: flex;
  gap: 12px;
  margin-top: 15px;
}

.social-icons .icon {
  width: 45px;
  height: 45px;
  background: #444; /* 預設深灰色 */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  font-size: 13px;
  transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 各平台品牌配色 */
.social-icons .fb:hover { background: #1877F2; transform: translateY(-5px); }
.social-icons .line:hover { background: #06C755; transform: translateY(-5px); }
.social-icons .ig:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); transform: translateY(-5px); }
.social-icons .x:hover { background: #000000; transform: translateY(-5px); }


/* 說明連結樣式：遵循預設灰色、無底線、Hover 變色 */
#modalDesc {
    white-space: pre-wrap;    /* 關鍵：讓 \n 產生換行效果 */
    word-break: break-all;    /* 避免長英文單字撐破視窗 */
    line-height: 1.6;         /* 增加行高，閱讀更舒適 */
}

.modal-trigger {
  display: inline-block;
  width: fit-content;
  margin-top: 12px;
  
  /* 按鈕基礎樣式 */
  padding: 8px 16px;
  border-radius: 20px; /* 橢圓形 */
  text-decoration: none; /* 無底線 */
  font-size: 14px;
  transition: all 0.3s ease;
  cursor: pointer;
  
  /* 白色有橢圓細框的配色 */
  background: #fff;       /* 白色背景 */
  color: #333;            /* 文字與邊框為深灰色 */
  border: 1px solid #ccc; /* 細灰色橢圓框 */
}

/* 懸停 (Hover) 時的反轉狀態 */
.modal-trigger:hover {
  background: #333;       /* 反轉為深灰色背景 */
  color: #fff;            /* 文字與邊框變白色 */
  border-color: #333;
}

.modal-overlay {
    display: flex; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* height: 100%; */ /* 註解掉原本的 */
    
    /* [iOS 修正] 使用 JS 計算出的自定義高度變數 */
    height: 100vh; /* 回退方案 */
    height: calc(var(--vh, 1vh) * 100); 
    
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.4s ease;
}

.modal-overlay.active {
    /* 顯示狀態 */
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-window {
    background: white;
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    max-height: 85vh; /* 限制最高高度 */
    overflow-y: auto; /* 內容過長時出現捲軸 */
    /* 初始狀態：縮小並往下偏 */
    transform: scale(0.7) translateY(40px);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#modalImg {
    border-radius: 10px;
    background: #f9f9f9;
    padding: 10px;
}

.modal-overlay.active .modal-window {
    /* 啟動動畫：回到原大小並移至中心 */
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    color: #aaa;
    cursor: pointer;
    transition: 0.3s;
}

.modal-close:hover {
    color: #000;
}

.modal-window h2 {
    margin-top: 0;
    font-size: 24px;
    color: #333;
}

.modal-body {
    line-height: 1.6;
    color: #666;
}

.modal-body p {
    white-space: pre-wrap; /* 關鍵：保留換行符號並允許自動折行 */
    word-break: break-all; /* 防止長英文單字撐破內容 */
	line-height: 0.5;
}

/* 輪播 Banner */
.carousel {
    position: relative;
    height: 50vw;
    width: 100%;
	
    min-height: 300px; /* 設定手機版最小高度，避免太扁 */
    max-height: 80vh;  /* 設定大螢幕最大高度，避免佔據太多空間 */
    overflow: hidden;
}
.slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
	
    background-size: cover;
    background-position: center;
	background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.slide.active { opacity: 1; z-index: 1; }
.slide-content { 
	color: #fff; 
	z-index: 2; 
	
	font-size: 2vw;
    text-shadow: 2px 2px 3px rgba(0,0,0,0.8);
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 1px solid rgba(255,255,255,0.5);
    color: white;
    padding: 1rem;
    cursor: pointer;
    z-index: 10;
}
.next { right: 2rem; }
.prev { left: 2rem; }

/* 背景圖區塊 */
.section.has-bg {
    position: relative;
    background-attachment: fixed; /* 視差滾動效果 */
    background-size: cover;
    padding: 8rem 0;
}
.overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4); /* 暗色遮罩 */
}
.overlay.light { background: rgba(252, 250, 247, 0.85); } /* 亮色遮罩 */
.relative { position: relative; z-index: 2; }

/* 毛玻璃卡片佈局 */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2.5rem;
    border-radius: 8px;
    color: white;
}
.overlay.light ~ .container .glass-card {
    background: rgba(255, 255, 255, 0.6);
    color: #333;
}

/* 購物卡片背景圖 */
.product-img {
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    transition: 0.5s;
}

.headline1{
	text-align: center;
	font-size: 6em;
}


