/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;500;700&display=swap');

:root {
    --bg-primary: #FAF6F0;
    --text-primary: #3a2e2b;
    --color-gold: #c99f70;
    --color-gold-dark: #a87e51;
    --color-accent: #c48b71;
    --color-white: #ffffff;
    --shadow-soft: 0 10px 30px rgba(58, 46, 43, 0.08);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --font-sans: 'Noto Sans TC', sans-serif;
}

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

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.8;
    overflow-x: hidden;
}

/* Header & Logo */
header {
    background-color: rgba(250, 246, 240, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(201, 159, 112, 0.15);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    max-width: 800px;
    margin: 0 auto;
}

.logo img {
    height: 45px;
    object-fit: contain;
}

/* Button UI */
.btn {
    display: inline-block;
    padding: 16px 40px;
    background-color: var(--color-gold);
    color: var(--color-white);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(201, 159, 112, 0.35);
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    background-color: var(--color-gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 159, 112, 0.45);
}

.btn-secondary {
    background-color: var(--color-accent);
    box-shadow: 0 4px 15px rgba(196, 139, 113, 0.3);
}

.btn-secondary:hover {
    background-color: #b0785f;
    box-shadow: 0 6px 20px rgba(196, 139, 113, 0.4);
}

/* Stacked Image Landing Page */
.page-wrapper {
    width: 100%;
    max-width: 800px; /* Match standard mobile/tablet width for image landing pages */
    margin: 0 auto;
    background-color: var(--color-white);
    box-shadow: 0 0 50px rgba(0,0,0,0.05);
}

.image-section {
    width: 100%;
    display: block;
    line-height: 0; /* Remove gaps between sliced images */
}

.image-section img {
    width: 100%;
    height: auto;
    display: block;
}

/* Registration Form Section */
.registration-section {
    background-color: var(--bg-primary);
    padding: 60px 20px;
    border-top: 1px solid rgba(201, 159, 112, 0.15);
}

.registration-container {
    max-width: 600px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--text-primary);
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.reg-form-wrapper {
    background-color: var(--color-white);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(201, 159, 112, 0.15);
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border-radius: 10px;
    border: 1px solid rgba(201, 159, 112, 0.3);
    background-color: var(--bg-primary);
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--text-primary);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-accent);
    background-color: var(--color-white);
    box-shadow: 0 0 0 3px rgba(196, 139, 113, 0.15);
}

/* Sticky CTA Bar on Mobile */
.sticky-cta {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 500px;
    z-index: 99;
    text-align: center;
    display: none;
}

.sticky-cta .btn {
    width: 100%;
    box-shadow: 0 10px 25px rgba(196, 139, 113, 0.45);
}

@media (max-width: 768px) {
    .sticky-cta {
        display: block;
    }
    .registration-section {
        padding-bottom: 100px; /* Space for sticky button */
    }
}

/* Footer */
footer {
    background-color: #27201e;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    padding: 50px 20px;
    font-size: 0.85rem;
}

footer p {
    margin-top: 15px;
}

/* ── 手機版專屬排版優化 (電腦版不受影響) ─────────────────── */
@media (max-width: 640px) {
  .header-container {
    padding: 10px 12px !important;
    gap: 8px !important;
  }
  .logo img {
    height: 32px !important; /* 縮小手機版 Logo 圖片高度 */
  }
  .back-home-link span {
    display: none !important; /* 隱藏返回首頁文字，只留 🏠 */
  }
  .back-home-link {
    font-size: 1.2rem !important; /* 讓 🏠 更利於手指點按 */
    color: var(--text-primary) !important;
    padding: 4px !important;
  }
  header .btn-secondary {
    padding: 6px 12px !important; /* 縮小按鈕內距 */
    font-size: 0.72rem !important; /* 縮小按鈕文字大小 */
    border-radius: 20px !important;
    white-space: nowrap !important;
    box-shadow: none !important;
  }
}
