:root {
    --bg: #f5f0e8;
    --ink: #1a1a1a;
    --muted: #666;
    --brand: #16352b;     /* 品牌深綠色 */
    --accent: #be6a2f;    /* 橘色強調色 */
    --wa-green: #25D366;  /* WhatsApp 標準綠 */
}

/* 基礎設定 */
html {
    scroll-behavior: smooth;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
}

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

/* --- Header --- */
header {
    padding: 20px 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    background: rgba(245, 240, 232, 0.95);
    backdrop-filter: blur(8px);
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--ink);
}

.logo strong { font-size: 1.1rem; }
.logo span { font-size: 0.85rem; color: var(--muted); }

nav a {
    margin-left: 24px;
    text-decoration: none;
    color: var(--muted);
    font-size: 0.95rem;
    transition: color 0.2s;
}

nav a:hover { color: var(--brand); }

nav .btn-app {
    background: var(--brand);
    color: white !important;
    padding: 8px 16px;
    border-radius: 6px;
}

/* --- Hero Section --- */
.hero {
    padding: 80px 0 60px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--brand);
}

.hero p {
    font-size: 1.15rem;
    color: var(--muted);
    margin-bottom: 32px;
}

.video-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #e9e4dc;
    border-radius: 20px;
    border: 2px dashed rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

/* --- Buttons --- */
.btn-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.98); }

.btn-primary { 
    background: var(--brand); 
    color: white; 
    box-shadow: 0 4px 12px rgba(22,53,43,0.2);
}

.btn-secondary { 
    background: white; 
    color: var(--ink); 
    border: 1px solid rgba(0,0,0,0.12); 
}

/* --- Sections & Cards --- */
.section { 
    padding: 100px 0; 
    border-top: 1px solid rgba(0,0,0,0.05); 
}

.section h2 { 
    font-size: 2.2rem; 
    margin-bottom: 12px; 
    color: var(--brand);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.05);
}

.card .num {
    display: inline-block;
    width: 36px;
    height: 36px;
    background: rgba(22,53,43,0.08);
    color: var(--brand);
    border-radius: 10px;
    text-align: center;
    line-height: 36px;
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 20px;
}

/* --- Contact & WhatsApp --- */
.contact-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.05);
    text-align: center;
    transition: border 0.3s ease;
}

.contact-card:hover {
    border-color: var(--brand);
}

.contact-card i {
    font-size: 1.5rem;
    margin-bottom: 12px;
    display: block;
}

.contact-card small { 
    color: var(--muted); 
    text-transform: uppercase; 
    letter-spacing: 1px;
    font-size: 0.75rem;
    margin-bottom: 8px;
}

.contact-card h3 a { 
    color: var(--ink); 
    text-decoration: none; 
    font-weight: 700; 
}

/* 漂浮 WhatsApp 按鈕 */
.floating-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--wa-green);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.floating-wa:hover {
    transform: scale(1.1) rotate(5deg);
    color: white;
}

/* --- Footer --- */
footer {
    padding: 60px 0;
    text-align: center;
    color: var(--muted);
    font-size: 0.95rem;
    background: #eeeae3;
}

/* --- RWD 手機版適配 --- */
@media (max-width: 850px) {
    .header-inner { flex-direction: column; gap: 20px; }
    nav a { margin: 0 8px; font-size: 0.85rem; }
    
    .hero { padding: 40px 0; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero h1 { font-size: 2.2rem; }
    .btn-group { justify-content: center; }
    
    .section { padding: 60px 0; }
    .card { padding: 30px; }
    
    .floating-wa {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 26px;
    }
}