:root {
    --primary-color: #B8A38F;
    --text-color: #333333;
    --background-color: #FFFFFF;
    --secondary-bg: #F9F9F9;
    --footer-bg: #222222;
    --footer-text: #EEEEEE;
}

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

/* 定義自訂字型 */
@font-face {
    font-family: 'CustomFont';
    src: url('../fonts/custom-font.ttf') format('truetype'); /* 請確保檔名一致 */
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'CustomFont', 'M PLUS Rounded 1c', 'Noto Sans TC', sans-serif;
    font-weight: 300;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Navbar */
.navbar {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px; /* 根據你的 Logo 調整 */
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    padding: 80px 0;
    background-color: var(--secondary-bg);
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap; /* for mobile */
}

.hero-text {
    flex: 1;
    min-width: 300px;
}

.hero-text h1 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.hero-text h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-text p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: #666;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    background-color: var(--primary-color);
    color: white;
    font-weight: 500;
    transition: opacity 0.3s;
}

.btn:hover {
    opacity: 0.9;
}

/* Download Badges */
.download-badges {
    display: flex;
    gap: 24px;
    margin-top: 24px;
    align-items: flex-start;
}

.badge-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.store-badge {
    display: block;
    height: 40px;
    cursor: default;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.store-badge img {
    height: 40px;
    width: auto;
    display: block;
}

.badge-coming-soon {
    font-size: 0.75rem;
    color: #999;
    letter-spacing: 0.05em;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 300px;
    position: relative; /* 為了定位輪播按鈕 */
}

/* 輪播容器樣式 */
.slideshow-container {
    max-width: 320px; /* 手機畫面的適合寬度 */
    position: relative;
    margin: auto;
    padding: 0;
}

.mySlides {
    display: none;
    text-align: center;
    position: relative;
    z-index: 1;
}



.app-mockup {
    border-radius: 30px;
    /* 移除舊白色邊框與陰影，改由外層容器處理 */
    box-shadow: none;
    border: none;
    width: 100%;
    height: auto;
    display: block;
    /* 確保圖片圓角 */
    overflow: hidden;
}

/* 下一張/上一張 按鈕 */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: var(--primary-color);
    /* 移除背景色，讓它更乾淨，或者維持圓形 */
    background-color: transparent;
    font-weight: 500;
    font-size: 30px; /* 加大箭頭 */
    transition: 0.3s ease;
    user-select: none;
    line-height: 1;
    z-index: 10;
}

/* 位置調整：移到手機框外 */
.prev {
    left: -60px;
}
.next {
    right: -60px;
}

/* 滑鼠懸停效果 */
.prev:hover, .next:hover {
    transform: scale(1.2);
    color: #8B735B; /* 深一點的顏色 */
}


/* 圓點指示器 */
.dot {
    cursor: pointer;
    height: 10px;
    width: 10px;
    margin: 0 4px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active, .dot:hover {
    background-color: var(--primary-color);
}

/* 淡入動畫 */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}

/* RWD 調整 */
@media (max-width: 768px) {
    .slideshow-container {
        max-width: 250px; /* 手機版縮小一點，否則箭頭會被切掉 */
    }
    .prev { left: -40px; }
    .next { right: -40px; }
}

.placeholder-image {
    width: 300px;
    height: 600px;
    background-color: #e0e0e0;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #888;
    border: 2px dashed #ccc;
}

/* Features */
.features {
    padding: 120px 0 140px;
    background-color: var(--primary-color);
    background-image:
        radial-gradient(circle at 10% 30%, rgba(255,255,255,0.1) 0%, transparent 40%),
        radial-gradient(circle at 85% 70%, rgba(255,255,255,0.08) 0%, transparent 35%);
    position: relative;
}

.features .container {
    position: relative;
    z-index: 2;
    max-width: 1280px;
}

.features .section-title {
    color: #fff;
    font-size: 2.2rem;
}

.section-title {
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    letter-spacing: 0.05em;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 28px;
}

.feature-card {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    padding: 48px 24px 44px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.18);
    text-align: center;
    color: #fff;
    transition: transform 0.3s, background 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.2);
}

.feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 24px;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 16px;
    letter-spacing: 0.03em;
}

.feature-card p {
    font-size: 1rem;
    line-height: 1.8;
    opacity: 0.85;
}

.section-wave {
    position: absolute;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 1;
}

.section-wave-top {
    top: 0;
}

.section-wave-bottom {
    bottom: -1px;
}

.section-wave svg {
    width: 100%;
    height: 80px;
    display: block;
}

/* Security */
.security {
    background-color: var(--secondary-bg);
    padding: 60px 0;
    text-align: center;
}

.security p {
    max-width: 800px;
    margin: 0 auto;
}

/* Page Content (for Privacy & Contact) */
.page-content {
    padding: 60px 0;
    min-height: 60vh;
}

/* 知識指南區塊樣式 */
.guide-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.guide-article {
    background: #fff;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 5px 25px rgba(184, 163, 143, 0.1); /* 使用主色調的淡陰影 */
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid rgba(184, 163, 143, 0.2);
}

.guide-header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 20px;
}

.guide-header h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 5px;
}

.guide-subtitle {
    color: var(--primary-color);
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 500;
}

.guide-block {
    margin-bottom: 35px;
}

.guide-block:last-child {
    margin-bottom: 0;
}

.guide-block h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-left: 15px;
    border-left: 4px solid var(--primary-color);
}

.guide-block p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 1.05rem;
    text-align: justify; /* 讓長文章閱讀更整齊 */
}

/* RWD for Guide */
@media (max-width: 768px) {
    .guide-article {
        padding: 30px 20px;
    }
    .guide-header h3 {
        font-size: 1.5rem;
    }
}

.content-wrapper {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.content-wrapper h1 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 1rem;
}

.content-wrapper h2 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.content-wrapper ul {
    margin-left: 20px;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 40px 0;
    text-align: center;
}

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    color: #aaa;
    margin: 0 10px;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 1100px) {
    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
    }
    .download-badges {
        justify-content: center;
    }
    .placeholder-image {
        width: 100%;
        max-width: 300px;
        height: 500px;
    }
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .features {
        padding: 80px 0 100px;
    }
}

@media (max-width: 480px) {
    .feature-grid {
        grid-template-columns: 1fr;
        max-width: 280px;
        margin: 0 auto;
    }
}