/* ==========================================================================
   腕鎖柔術學院 Wristlock Jiu-Jitsu - 樣式表 (style.css)
   採用日式禪風侘寂美學 (Zen Wabi-Sabi Premium Style)
   主要色系：#E1D3AD (禪風麥金) | 主要字體：Zen Old Mincho (老明朝體)
   ========================================================================== */

/* --- 基礎變數與重設 --- */
:root {
    /* 侘寂日式禪風色彩系統 (Zen Wabi-Sabi Color System) */
    --primary: #E1D3AD;           /* 主色：侘寂禪風米金 (Wabi Gold) */
    --primary-dark: #C5B68F;      /* 主色深版：用於 hover 或 強調 */
    --primary-light: #F4EFEB;     /* 主色淺版：極淺米白，用於背景/hover */
    
    --secondary: #8E7A6B;         /* 輔助色：禪風枯木褐 (Zen Brown) - 柔和的木質大地色 */
    --accent: #5F6E65;            /* 強調色：禪風苔綠 (Zen Moss Green) - 沉穩、有生命力的苔蘚綠 */
    
    /* 基礎背景色與卡片色 */
    --bg-light: #FAF8F5;          /* 暖米白背景 (Warm Off-White) */
    --bg-dark: #1E1C18;           /* 炭黑褐背景 (Dark Charcoal Brown) */
    --bg-card: #FAF8F5;           /* 卡片亮背景 */
    --bg-card-hover: #F2EFEA;     /* 卡片亮背景 hover */
    
    /* 文字色彩 */
    --text-light: #23211D;        /* 亮背景下的主文字色：深墨褐 */
    --text-muted: #6E695F;        /* 亮背景下的次要文字色：竹灰色 */
    
    --border-color: rgba(35, 33, 29, 0.12); /* 亮色邊框 */
    
    /* 漸變與陰影 (禪風注重平實沉穩，減少過度花哨的漸層，改用純色或沉穩過渡) */
    --gradient-primary: linear-gradient(135deg, #E1D3AD 0%, #C5B68F 100%);
    --gradient-dark: linear-gradient(180deg, #1E1C18 0%, #151411 100%);
    --glow-shadow: 0 8px 30px rgba(35, 33, 29, 0.04);
    
    /* 字體設定：以 Zen Old Mincho (禪宋體) 與 Noto Serif TC (思源宋體) 為核心 */
    --font-heading: 'Zen Old Mincho', 'Noto Serif TC', 'Playfair Display', Georgia, serif;
    --font-body: 'Zen Old Mincho', 'Noto Serif TC', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* 收斂、具備武道場方正沉穩感的微圓角 (取代原本過度圓滑的設定) */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 12px;
    
    /* 動態過渡：禪意般的平滑柔和過渡 */
    --transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-light);
    color: var(--text-light);
    font-family: var(--font-body);
    line-height: 1.8; /* 優化行高，更符合明朝體的閱讀呼吸感 */
    letter-spacing: 0.5px; /* 適度調整字距 */
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- 按鈕樣式 (採用日式禪風微方正的微圓角設計) --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.85rem 2.2rem;
    border-radius: var(--radius-sm); /* 微方圓角，呈現道場剛毅質感 */
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--primary);
    color: #1E1C18; /* 淺金背景搭配深色炭黑字，完美符合無障礙對比與高奢感 */
    box-shadow: 0 4px 15px rgba(225, 211, 173, 0.15);
    border: 1px solid var(--primary-dark);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: var(--primary-dark);
    box-shadow: 0 6px 20px rgba(225, 211, 173, 0.25);
    color: #1E1C18;
}

.btn-outline {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--text-muted); /* 加深邊框對比度 */
}

.btn-outline:hover {
    border-color: var(--primary-dark);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* --- 輔助與排版工具 --- */
.highlight {
    color: var(--primary);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header .subtitle {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 3px;
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 800;
    display: block;
    margin-bottom: 0.5rem;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.header-line {
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 0 auto;
    border-radius: 2px;
}

/* ==========================================================================
   頂部導覽列 (Header & Navbar)
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(250, 248, 245, 0.85); /* 侘寂暖米白半透明背景 */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.header.scrolled {
    padding: 0.75rem 0;
    background: rgba(250, 248, 245, 0.98);
    box-shadow: 0 4px 30px rgba(35, 33, 29, 0.04); /* 精緻的微陰影 */
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    transition: var(--transition);
}

.header.scrolled .nav-container {
    height: 60px;
}

.logo {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
}

.logo-img {
    height: 52px;
    width: auto;
    display: block;
    object-fit: contain;
    border-radius: var(--radius-sm);
    background: #ffffff;
    padding: 3px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 10px rgba(35, 33, 29, 0.02);
    transition: var(--transition);
}

.logo-img:hover {
    transform: scale(1.05);
    box-shadow: var(--glow-shadow);
}

.header.scrolled .logo-img {
    height: 42px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-link:hover {
    color: var(--secondary); /* 亮色背景下使用枯木褐作為 hover，字體更清晰 */
}

.nav-btn {
    background: var(--primary);
    color: #1E1C18 !important; /* 淺金背景搭配深色炭黑字，完美對比 */
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-sm); /* 微方角 */
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid var(--primary-dark);
    box-shadow: 0 4px 12px rgba(225, 211, 173, 0.1);
}

.nav-btn:hover {
    transform: translateY(-2px);
    background: var(--primary-dark);
    box-shadow: 0 6px 15px rgba(225, 211, 173, 0.2);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==========================================================================
   首頁英雄區 (Hero Section)
   ========================================================================== */
.hero-section {
    position: relative;
    padding-top: 180px;
    padding-bottom: 120px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background-image: url('主視覺橫幅圖.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(250, 248, 245, 0.96) 40%, rgba(250, 248, 245, 0.75) 100%); /* 侘寂暖米白半透明過渡 */
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 10;
}

.hero-content {
    max-width: 650px;
}

.hero-badge {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    border-radius: var(--radius-sm); /* 微方角，凸顯道場印章感 */
    background: rgba(142, 122, 107, 0.08); /* 枯木褐半透明 */
    border: 1px solid rgba(142, 122, 107, 0.2);
    color: var(--secondary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 900; /* 老明朝體粗體蒼勁有力 */
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

/* 柔術腰帶卡片裝飾 */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.belt-card-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    max-width: 320px;
}

.belt-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md); /* 禪風收斂圓角 */
    padding: 2rem;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(35, 33, 29, 0.02);
}

.belt-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(225, 211, 173, 0.35); /* 亮金色微邊框 */
    box-shadow: var(--glow-shadow);
}

.belt-stripe {
    position: absolute;
    top: 0;
    left: 0;
    width: 8px;
    height: 100%;
}

.belt-black .belt-stripe {
    background: linear-gradient(180deg, #000 70%, #d92121 70%); /* 黑帶配紅色段 */
}

.belt-purple .belt-stripe {
    background: linear-gradient(180deg, #5c2c90 80%, #000 80%); /* 紫帶 */
}

.belt-card h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    padding-left: 0.75rem;
}

.belt-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    padding-left: 0.75rem;
}

/* ==========================================================================
   關於我們區段 (About Section)
   ========================================================================== */
.about-section {
    padding: 100px 0;
    background: #ffffff; /* 亮色交替背景，讓網頁富有禪意呼吸感 */
    border-bottom: 1px solid var(--border-color);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: center;
}

.about-img-box {
    position: relative;
}

.about-card-decor {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--secondary); /* 改為枯木褐細線 */
    border-radius: var(--radius-lg);
    z-index: 1;
}

.placeholder-visual {
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, #ffffff 0%, #FAF8F5 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    aspect-ratio: 4/3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    box-shadow: 0 10px 30px rgba(35, 33, 29, 0.02);
}

.visual-icon {
    font-size: 5rem;
    color: var(--secondary); /* 枯木褐 */
    filter: drop-shadow(0 4px 10px rgba(142, 122, 107, 0.15));
}

.placeholder-visual span {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 4px;
    color: var(--secondary);
}

.about-info h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    color: var(--text-light);
}

.about-info p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    color: var(--secondary); /* 採用枯木褐作為大字強調，對比度佳 */
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* ==========================================================================
   場館特色區段 (Features Section)
   ========================================================================== */
.features-section {
    padding: 100px 0;
    background: var(--bg-light); /* 使用侘寂暖米白背景 */
    border-bottom: 1px solid var(--border-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.feature-card {
    background: #ffffff; /* 卡片使用純白，在米白背景上形成極佳的層次 */
    border: 1px solid var(--border-color);
    padding: 3rem 2rem;
    border-radius: var(--radius-md); /* 禪風微方圓角 */
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(225, 211, 173, 0.12) 0%, rgba(142, 122, 107, 0.05) 100%);
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-dark);
    box-shadow: var(--glow-shadow);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon-box {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    background: rgba(95, 110, 101, 0.08); /* 苔綠半透明背景 */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--accent); /* 採用禪苔綠 */
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    color: var(--text-light);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   課程介紹區段 (Classes Section)
   ========================================================================== */
.classes-section {
    padding: 100px 0;
    background: var(--bg-dark); /* 採用深色炭黑褐背景，打造高奢對比區段 */
    color: #FAF8F5;
    border-bottom: 1px solid rgba(225, 211, 173, 0.08);
}

.classes-section .section-header h2 {
    color: #FAF8F5; /* 深色背景下使用暖白標題 */
}

.classes-section .section-header .subtitle {
    color: var(--primary); /* 米金副標題在深背景上格外耀眼 */
}

.classes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.class-card {
    background: var(--bg-card-dark); /* 深色卡片背景 */
    border: 1px solid rgba(225, 211, 173, 0.12); /* 侘寂米金超細邊框 */
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.class-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--primary); /* hover 時邊框亮起米金 */
    background: #2E2A25; /* hover 時背景微亮 */
}

.class-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--primary);
    color: #1E1C18; /* 淺金配深黑字 */
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-sm); /* 微方角 */
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 10;
    border: 1px solid var(--primary-dark);
}

.class-card-header {
    padding: 3rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
    border-bottom: 1px solid rgba(225, 211, 173, 0.08);
    position: relative;
}

.class-card-header i {
    font-size: 2.5rem;
}

.gi-theme i {
    color: var(--primary); /* 禪風米金 */
}

.nogi-theme i {
    color: #C5B68F; /* 稍深米金 */
}

.kids-theme i {
    color: var(--accent); /* 禪苔綠 */
}

.class-card-header h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: #FAF8F5;
}

.class-card-body {
    padding: 2rem;
}

.class-desc {
    color: #C4BFAF; /* 淺麥金文字 */
    font-size: 0.95rem;
    margin-bottom: 2rem;
    height: 72px; /* 固定高度保持卡片對齊 */
    overflow: hidden;
    line-height: 1.8;
}

.class-details {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.class-details li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: #FAF8F5;
}

.class-details li i {
    color: var(--primary);
    font-size: 1rem;
}

/* ==========================================================================
   師資團隊區段 (Coaches Section)
   ========================================================================== */
.coaches-section {
    padding: 100px 0;
    background: #ffffff; /* 亮白色底交替 */
    border-bottom: 1px solid var(--border-color);
}

.coaches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.coach-card {
    background: var(--bg-light); /* 卡片底色使用極淺暖米白 */
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3rem;
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 2.5rem;
    align-items: center;
    transition: var(--transition);
}

.coach-card:hover {
    transform: translateY(-5px);
    border-color: rgba(225, 211, 173, 0.45); /* hover 時米金邊框微亮 */
    box-shadow: var(--glow-shadow);
}

.coach-avatar-box {
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #ffffff 0%, #FAF8F5 100%);
    border: 1px solid var(--border-color); /* 改為高雅實線 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
}

.coach-avatar-box i {
    font-size: 4rem;
    color: var(--text-muted);
}

.coach-avatar-box.main-coach {
    border-color: var(--primary-dark);
}

.coach-avatar-box.main-coach i {
    color: var(--secondary);
}

.coach-avatar-box.coach-brown {
    border-color: #8b5a2b;
}

.coach-avatar-box.coach-brown i {
    color: #8b5a2b;
}

.belt-label {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #d92121; /* 黑帶旁的紅色區域 */
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    text-align: center;
    padding: 0.25rem 0;
    letter-spacing: 1px;
}

.belt-label.belt-brown {
    background: #8b5a2b; /* 棕帶 */
}

.coach-avatar-box.coach-purple {
    border-color: #8b7ab6;
}

.coach-avatar-box.coach-purple i {
    color: #8b7ab6;
}

.belt-label.belt-purple {
    background: #8b7ab6; /* 紫帶 */
}

.coach-avatar-box.coach-blue {
    border-color: #7b97b0;
}

.coach-avatar-box.coach-blue i {
    color: #7b97b0;
}

.belt-label.belt-blue {
    background: #7b97b0; /* 藍帶 */
}

.coach-info h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    color: var(--text-light);
}

.coach-title {
    color: var(--secondary); /* 亮底改用枯木褐，提升文字對比與質感 */
    font-size: 0.9rem;
    font-weight: 600;
    display: block;
    margin-bottom: 1.25rem;
}

.coach-bio {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.8; /* 增加呼吸感 */
}

.coach-skills {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.skill-tag {
    background: rgba(225, 211, 173, 0.12); /* 侘寂米金超輕底色 */
    border: 1px solid rgba(225, 211, 173, 0.5); /* 顯著的細金邊 */
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-sm); /* 微方角 */
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ==========================================================================
   課表與常見問題區段 (Schedule & FAQ Section)
   ========================================================================== */
.schedule-section {
    padding: 100px 0;
    background: var(--bg-light); /* 使用暖米白背景 */
    border-bottom: 1px solid var(--border-color);
}

.tab-container {
    max-width: 1000px;
    margin: 0 auto;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3.5rem;
}

.tab-btn {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-color); /* 改為高雅細線 */
    padding: 0.75rem 2.5rem;
    border-radius: var(--radius-sm); /* 剛毅的微方角 */
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn.active, .tab-btn:hover {
    background: var(--primary);
    color: #1E1C18; /* 淺金背景配深黑字 */
    border-color: var(--primary-dark);
    box-shadow: 0 4px 15px rgba(225, 211, 173, 0.15);
}

.tab-content {
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.tab-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* 課程表圖片展示樣式 */
.schedule-image-container {
    position: relative;
    max-width: 1000px;
    margin: 2rem auto 0;
    border-radius: var(--radius-lg);
    padding: 1rem;
    background: #ffffff; /* 純白背景小框 */
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 30px rgba(35, 33, 29, 0.02);
    transition: var(--transition);
}

.schedule-image-container:hover {
    transform: translateY(-4px);
    border-color: rgba(225, 211, 173, 0.45);
    box-shadow: var(--glow-shadow);
}

.schedule-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
    border: 1px solid rgba(225, 211, 173, 0.15);
}

/* 常見問題 FAQ */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.faq-item {
    background: #ffffff; /* 卡片在米白底色上使用純白 */
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    transition: var(--transition);
    box-shadow: 0 8px 30px rgba(35, 33, 29, 0.02);
}

.faq-item:hover {
    transform: translateY(-4px);
    border-color: rgba(225, 211, 173, 0.45);
    box-shadow: var(--glow-shadow);
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.faq-icon {
    font-size: 1.4rem;
    color: var(--secondary); /* 使用禪風枯木褐作為圖示強調色 */
}

.faq-question h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-light);
}

.faq-answer p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================================================
   聯絡我們區段 (Contact Section)
   ========================================================================== */
.contact-section {
    padding: 100px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 5rem;
    align-items: center;
}

.contact-info-box .subtitle {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 3px;
    color: var(--secondary); /* 亮底改用枯木褐 */
    font-weight: 800;
    display: block;
    margin-bottom: 0.5rem;
}

.contact-info-box h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.contact-info-box p {
    color: var(--text-muted);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3.5rem;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--secondary); /* 大地枯木褐圖示 */
    width: 24px;
}

.info-item h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.info-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.social-links {
    display: flex;
    gap: 1.25rem;
}

.social-links a {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm); /* 改為方圓印章造型 */
    background: #ffffff;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-light);
}

.social-links a:hover {
    color: #1E1C18;
    background: var(--primary);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(225, 211, 173, 0.3);
}

/* 預約表單 */
.contact-form-box {
    background: #ffffff; /* 純白表單卡片 */
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3.5rem 3rem;
    box-shadow: 0 8px 30px rgba(35, 33, 29, 0.02);
}

.contact-form-box h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.form-sub {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.required {
    color: var(--error); /* 改為硃砂紅做必填標記，典雅大氣 */
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    background: var(--bg-light); /* 表單輸入框改為暖米白背景 */
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm); /* 微方角 */
    padding: 0.85rem 1.25rem;
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: var(--primary-dark);
    box-shadow: 0 0 10px rgba(225, 211, 173, 0.35); /* 溫潤的米金色 focus 陰影 */
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%232d2a28' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    background-repeat: no-repeat;
    background-position: right 1.25rem center;
    background-size: 1.2rem;
}

/* ==========================================================================
   頁尾 (Footer)
   ========================================================================== */
.footer {
    background: var(--bg-dark); /* 頁尾採用與 Hero 對比的深炭黑褐，沉穩大氣 */
    border-top: 1px solid rgba(225, 211, 173, 0.08);
    padding: 80px 0 40px;
    color: #FAF8F5;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 5rem;
    margin-bottom: 5px;
}

.footer-brand .logo {
    margin-bottom: 1.5rem;
}

.footer-brand p {
    color: #C4BFAF; /* 淺麥金 */
    font-size: 0.95rem;
    line-height: 1.8;
    max-width: 320px;
}

.footer-links h4, .footer-hours h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--primary); /* 侘寂米金 */
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: #C4BFAF;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 0.25rem;
}

.footer-hours p {
    color: #C4BFAF;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    margin-top: 5rem;
    border-top: 1px solid rgba(225, 211, 173, 0.08);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ==========================================================================
   彈出視窗 (Modal Backdrop & Success Dialog)
   ========================================================================== */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 28, 24, 0.65); /* 稍深的半透明遮罩 */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.success-modal {
    background: #ffffff;
    border: 1px solid rgba(225, 211, 173, 0.5); /* 米金超細邊框 */
    border-radius: var(--radius-lg);
    padding: 3.5rem 3rem;
    width: 90%;
    max-width: 480px;
    text-align: center;
    transform: scale(0.8) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 50px rgba(30, 28, 24, 0.15), var(--glow-shadow);
}

.modal-backdrop.active .success-modal {
    transform: scale(1) translateY(0);
}

.success-icon {
    font-size: 4rem;
    color: var(--secondary); /* 枯木褐 */
    margin-bottom: 1.5rem;
    animation: pulseIcon 2s infinite;
}

@keyframes pulseIcon {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 15px rgba(225, 211, 173, 0.5)); }
    100% { transform: scale(1); }
}

.success-modal h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.success-modal p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* ==========================================================================
   響應式設計 (Responsive Design)
   ========================================================================== */

@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-content h1 {
        font-size: 3.2rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .about-img-box {
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .classes-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .coaches-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .price-card.popular {
        transform: scale(1);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        z-index: 1001;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--bg-light); /* 手機版選單同步為米白禪風 background */
        border-left: 1px solid var(--border-color);
        flex-direction: column;
        justify-content: center;
        gap: 2.5rem;
        transition: right 0.4s ease;
        z-index: 1000;
        padding: 2rem;
        box-shadow: -10px 0 30px rgba(35, 33, 29, 0.05);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .coach-card {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2rem;
    }
    
    .coach-avatar-box {
        width: 140px;
        margin: 0 auto;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
