/* ===== 色彩系統（規格書 2026-10-24-frontend-visual-design.md 第3節）===== */
:root {
    --color-primary: #66bb6a;
    --color-primary-dark: #4caf50;
    --color-warning: #ffa726;
    --color-error: #e57373;
    --color-bg: #ffffff;
    --color-bg-alt: #f9f9f9;
    --color-text: #333333;
    --color-text-muted: #888888;
    --color-border: #e0e0e0;
}

/* ===== 基礎重置與字體（規格書第4節）===== */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
    font-size: 16px;
    line-height: 1.6;
}

h1, h2, h3 {
    font-weight: 700;
    margin: 0 0 0.5em 0;
}

h1 { font-size: 1.75rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.15rem; }

p {
    font-size: 1rem;
    margin: 0 0 1em 0;
}

a {
    color: var(--color-primary-dark);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ===== 版面容器 ===== */
.page-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 16px;
}

/* ===== 導覽列 ===== */
.site-header {
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg);
}

.site-header-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-text);
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--color-text);
    font-weight: 500;
}

.nav-links a.nav-cta {
    background: var(--color-primary);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
}

.nav-links a.nav-cta:hover {
    background: var(--color-primary-dark);
    text-decoration: none;
}

/* 漢堡選單按鈕，預設隱藏，手機版才顯示 */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px 8px;
    color: var(--color-text);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        background: var(--color-bg);
        border-bottom: 1px solid var(--color-border);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 8px 0;
        z-index: 100;
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 12px 16px;
        width: 100%;
    }

    .nav-links a.nav-cta {
        margin: 8px 16px;
        text-align: center;
        border-radius: 20px;
    }

    .hamburger-btn {
        display: block;
    }

    .site-header-inner {
        position: relative;
    }
}

/* ===== 按鈕 ===== */
.btn {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 24px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    min-height: 44px;
    text-align: center;
}

.btn:hover {
    background: var(--color-primary-dark);
    text-decoration: none;
    color: white;
}

.btn-secondary {
    background: var(--color-bg-alt);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-border);
}

/* ===== 卡片 ===== */
.card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ===== 狀態標籤 ===== */
.status-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
}

.status-badge.status-confirmed { background: var(--color-primary); }
.status-badge.status-pending_payment,
.status-badge.status-pending_review,
.status-badge.status-pending_cancellation { background: var(--color-warning); }
.status-badge.status-cancelled { background: var(--color-error); }

/* ===== 表單 ===== */
.form-field {
    margin-bottom: 16px;
}

.form-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.form-field input[type="text"],
.form-field input[type="number"],
.form-field input[type="date"],
.form-field input[type="datetime-local"] {
    width: 100%;
    max-width: 320px;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 1rem;
    min-height: 44px;
}

/* ===== 工具類 ===== */
.text-muted { color: var(--color-text-muted); }
.text-error { color: var(--color-error); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
