/* css/main.css */
/* Featured Section 容器 */
.featured-section { padding: 120px 0; background-color: #fff; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 5%; }
.section-intro { text-align: center; margin-bottom: 80px; }
.section-title { font-size: 2.5rem; letter-spacing: 0.5rem; color: var(--brand-color); margin-bottom: 15px; }
.section-subtitle { font-size: 2.5rem; font-weight: 300; color: var(--text-dark); }

/* 網格系統 (Featured Grid) */
.featured-grid { display: grid; grid-template-columns: repeat(2, 1fr); grid-gap: 30px; }
.featured-item { position: relative; overflow: hidden; height: 450px; background-color: #f0f0f0; }
.featured-item.large { grid-row: span 2; height: 930px; }
.item-image { width: 100%; height: 100%; position: relative; }
.item-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(0.2, 1, 0.3, 1); }
.featured-item:hover img { transform: scale(1.08); }
.item-overlay { position: absolute; bottom: 0; left: 0; width: 100%; padding: 50px; background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent); color: #fff; }

/* 藝術商店 (Shop Section) */
.shop-title {
	font-size: 2.5rem;
	margin-bottom: 60px;
	text-align: center;
	font-weight: 400;
	letter-spacing: 0.1em;
    color: var(--text-white);
}
.shop-des {
    font-size: 1.6rem;
	margin-bottom: 60px;
	text-align: center;
	font-weight: 400;
	letter-spacing: 0.1em;
    color: var(--text-white);
}


.section-shop { padding: 120px 8%; background-color: #8fb39e; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.shop-card { padding: 40px 20px; background: #fff; text-align: center; border: 1px solid #eee; transition: 0.3s; }
.shop-card:hover { background: var(--bg-dark); color: #fff; }

/* 故事與訂閱區塊 (Story & Subscription) */
.story-container { background: #f7f7f4; padding: 100px 15%; text-align: center; }
.content-section { background-color: var(--brand-color); padding: 130px 0; text-align: center; color: #fff; }
.input-container { border-bottom: 1.5px solid #fff; padding-bottom: 8px; display: flex; }
.input-container input { border: none; background: transparent; color: #fff; outline: none; flex: 1; }

/* 位於 main.css */

.content-section {
    background-color: var(--brand-color);
    padding: 130px 5%; /* 增加左右 padding 確保手機版不貼邊 */
    display: flex;
    justify-content: center; /* 水平置中容器 */
    align-items: center;
    text-align: center;
}

.footer-top {
    display: inline-block; /* 關鍵：寬度隨內部內容（標題）縮放 */
    text-align: left;      /* 讓文字與輸入框對齊 */
    max-width: 100%;       /* 避免手機版溢出 */
}

.promo-title {
    font-family: 'Noto Serif TC', serif;
    font-size: 2.5rem;
    color: var(--line-color);
    line-height: 1.4;
    margin-bottom: 30px;
    letter-spacing: 0.1em;
	text-align: center;
}

.subscribe-form {
    width: 100%; /* 跟隨 footer-top 的寬度 */
	text-align: center;
}

.input-container {
    display: flex;
    border-bottom: 1.5px solid #fff; /* 統一改為白色以利閱讀 */
    padding-bottom: 8px;
    align-items: center;
}

.input-container input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 16px;
    color: #fff;
    padding-right: 15px;
}

.input-container input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.subscribe-btn {
    background: none;
    border: none;
    color: #fff; /* 在深色背景下白色較顯眼 */
    cursor: pointer;
    font-weight: 700;
    letter-spacing: 0.1em;
    transition: 0.3s;
}

.subscribe-btn:hover {
    opacity: 0.7;
}

.cta-group {
	margin-top: 30px;
}

.more-action {
	text-align: center;
	margin-top: 60px;
}
.btn-secondary {
	text-decoration: none;
	color: #2C3333;
	font-size: 0.8rem;
	letter-spacing: 0.3rem;
	border: 1px solid #ddd;
	padding: 15px 50px;
	transition: 0.4s;
}
.btn-secondary:hover {
	background: #2C3333;
	color: #fff;
}

.btn-main {
	display: inline-block;
	padding: 15px 40px;
	border: 1px solid rgba(255, 255, 255, 0.4);
	color: #fff;
	text-decoration: none;
	letter-spacing: 0.2rem;
	backdrop-filter: blur(5px);
	transition: 0.4s;
}
.btn-main:hover {
	background: #fff;
	color: var(--text-dark);
}

/* 動畫與響應式 */
.section { transform: translateY(30px); opacity: 0; transition: 0.8s ease; }
.section.visible { opacity: 1; transform: translateY(0); }
@media (max-width: 992px) {
    .featured-grid { grid-template-columns: 1fr; }
    .featured-item.large { height: 450px; }

	.shop-grid {
		grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
	}
}




/* 關鍵渲染樣式 (Critical CSS) */
:root { --text-white: #ffffff; --text-dark: #353535; }

/* Logo & Nav 基礎補償 */
.logo a, .no { color: var(--text-white); }

/* Hero Section：必須內聯，確保首屏渲染即時 */
.hero {
    height: 100vh; width: 100%; position: relative;
    overflow: hidden; display: flex; align-items: center; justify-content: center;
    background-color: #1A1C1C; /* 圖片載入前的底色 */
}
.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    animation: slowZoom 20s infinite alternate;
}
@keyframes slowZoom { from { transform: scale(1); } to { transform: scale(1.15); } }

.hero-content {
    position: absolute; text-align: center; color: #fff;
    bottom: 10%; right: 8%; z-index: 2;
}
h1 { font-size: clamp(3rem, 8vw, 5.5rem); margin: 10px 0; letter-spacing: 1.5rem; font-weight: 800; line-height: 1.1; }
.chinese-title { font-size: 36px; margin-bottom: 10px; }
.tagline { font-size: 0.9rem; letter-spacing: 0.5rem; opacity: 0.8; }

.btn-main {
    display: inline-block; padding: 15px 40px; border: 1px solid rgba(255,255,255,0.4);
    color: #fff; text-decoration: none; backdrop-filter: blur(5px); transition: 0.4s;
}

@media (max-width: 1280px) {
    .hero-content { right: auto; bottom: 5%; width: 90%; }
    h1 { letter-spacing: 0.5rem; line-height: 1.2; }
}