/* ════════════════════════════════════════
   CSS 變數 & 全域重設
════════════════════════════════════════ */
:root {
    --bg: #f9fbf6;
    --surface: #ffffff;
    --ink: #000;
    --muted: #000;
    --brand: #10889b;
    --brand-deep: #000;
    --accent: #ffb703;
    --danger: #d83b01;
    --line: #d8e7df;
    --shadow: 0 16px 40px rgba(16, 42, 31, 0.12);
    --radius-xl: 15px;
    --radius-lg: 10px;
    --radius-sm: 5px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
    color: var(--ink);
    background: #e9eef4;
    scroll-behavior: smooth;
}

/* ════════════════════════════════════════
   版面容器
════════════════════════════════════════ */
.wrap {
    width: min(1120px, 92vw);
    margin: 0 auto;
}

/* ════════════════════════════════════════
   Hero：藍色背景圖主題
   （覆蓋原綠色泡泡設計）
════════════════════════════════════════ */
.hero {
    padding: 100px 0;
    background-image:url("../images/fastsign_quickguide/2026/bg.png");
    position: relative;
    overflow: hidden;
	margin-top: 3%;
}

/* 取消原綠色泡泡裝飾 */
.hero::before,
.hero::after { display: none; }

.hero h1 {
    color: #ffffff;
    text-align: center;
}

.hero > .container > p,
.hero .hero-desc {
    color: #fff;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.5rem;
}

/* ════════════════════════════════════════
   Kicker 標籤（橘金色主題）
════════════════════════════════════════ */
.kicker {
    display: inline-block;
    font-family: "Outfit", sans-serif;
    letter-spacing: 0.12em;
    font-weight: 700;
    font-size: 0.8rem;
    color: #F5A623;
    background: rgba(245, 166, 35, 0.15);
    border: 1px solid rgba(245, 166, 35, 0.4);
    border-radius: 999px;
    padding: 6px 14px;
    margin-bottom: 14px;
    animation: slideUp 0.6s ease both;
}

/* ════════════════════════════════════════
   H1 全域
════════════════════════════════════════ */
h1 {
    font-family: "Outfit", sans-serif;
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.1;
    letter-spacing: 0.01em;
    animation: slideUp 0.8s ease both;
}

.hero p {
    margin-top: 14px;
    color: var(--muted);
    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 760px;
    animation: slideUp 1s ease both;
}

/* ════════════════════════════════════════
   Tab 按鈕列（等寬藍色風格）
════════════════════════════════════════ */
.mode-panel {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    margin-top: 28px;
    animation: slideUp 1.2s ease both;
}

.mode-panel .col-btn {
    flex: 1 1 0;
    padding: 0 6px;
}

.mode-btn {
    width: 100%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    color: #ffffff;
    font-weight: 600;
    border-radius: 6px;
    padding: 12px 8px;
    cursor: pointer;
    font-family: "Noto Sans TC", sans-serif;
    font-size: 0.95rem;
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.mode-btn:hover,
.mode-btn:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    outline: none;
}

.mode-btn.active {
    background: #0a0d47;
    border-color: #1a6fbd;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(26, 111, 189, 0.45);
}

/* ════════════════════════════════════════
   Content Card
════════════════════════════════════════ */
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 6px 32px rgba(27, 46, 107, 0.1);
    padding: 32px 28px;
    margin: 24px 0 40px;
}

/* ════════════════════════════════════════
   Section 標題 / 說明
════════════════════════════════════════ */
.section-title {
    font-family: "Outfit", sans-serif;
    font-size: clamp(1.35rem, 3vw, 2rem);
    margin: 0 0 8px;
    color: #1B2E6B;
}

.section-note {
    margin-top: 0;
    color: var(--muted);
    margin-bottom: 20px;
}

/* ════════════════════════════════════════
   Submode 按鈕（圓形膠囊）
════════════════════════════════════════ */
.submode-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 18px;
}

.submode-btn {
    border: 1px solid #b8d8ca;
    background: #f4fff9;
    color: #205140;
    font-weight: 700;
    border-radius: 999px;
    padding: 10px 16px;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.submode-btn:hover,
.submode-btn:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15, 157, 114, 0.18);
    outline: none;
}

.submode-btn.active {
    background: #1B2E6B;
    border-color: #1B2E6B;
    color: #fff;
}

.submode-title {
    margin: 0 0 14px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--brand-deep);
}

/* ════════════════════════════════════════
   Step 卡片
════════════════════════════════════════ */
.steps {
    display: grid;
    gap: 16px;
    margin: 8px 0 0;
}

.step {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 18px;
    background: linear-gradient(180deg, #fff, #fcfefc);
    opacity: 0;
    transform: translateY(12px);
    animation: reveal 0.55s ease forwards;
    margin-bottom: 2%;
}

.step:nth-child(1) { animation-delay: 0.05s; }
.step:nth-child(2) { animation-delay: 0.12s; }
.step:nth-child(3) { animation-delay: 0.19s; }
.step:nth-child(4) { animation-delay: 0.26s; }
.step:nth-child(5) { animation-delay: 0.33s; }

.step-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

/* ── Step Badge（深藍色）── */
.badge {
    font-family: "Outfit", sans-serif;
    font-size: 0.84rem;
    background: #1B2E6B;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 4px 10px;
    font-weight: 700;
    flex-shrink: 0;
}

.step h3 {
    font-size: 1.4rem;
    line-height: 2rem;
    margin: 0;
}

.step-detail + .step-detail {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px dashed #d8e7df;
}

.step-note-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.step p,
.step-note {
    margin: 6px 0 0;
    color: var(--muted);
    line-height: 1.65;
}

.step-note { white-space: pre-line; }

.step-icon {
    display: inline-block;
    margin-top: 6px;
    max-width: 170px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.step-image {
    display: block;
    margin-top: 14px;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid #d8e7df;
}

/* ════════════════════════════════════════
   Tab / Subpanel 切換顯示
════════════════════════════════════════ */
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.subpanel { display: none; }
.subpanel.active { display: block; }

/* ════════════════════════════════════════
   Footer
════════════════════════════════════════ */
footer {
    padding: 34px 0 52px;
    color: #547366;
    font-size: 0.94rem;
    text-align: center;
}

/* ════════════════════════════════════════
   回到頂部按鈕
════════════════════════════════════════ */
.float-top {
    position: fixed;
    right: 18px;
    bottom: 22px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 0;
    background: #1B2E6B;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(22, 63, 49, 0.25);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    transform: translateY(8px);
}

.float-top.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.float-top:hover { background: #F5A623; color: #1B2E6B; }

/* ════════════════════════════════════════
   動畫
════════════════════════════════════════ */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes reveal {
    to { opacity: 1; transform: translateY(0); }
}

/* ════════════════════════════════════════
   RWD
════════════════════════════════════════ */
@media (max-width: 900px) {
    h1 { font-size: clamp(2rem, 4vw, 3.4rem); }
    .card { padding: 22px; }
}

@media (max-width: 575px) {
    .mode-panel { flex-wrap: wrap; }
    .mode-panel .col-btn { flex: 1 1 45%; margin-bottom: 8px; }
}

@media (max-width: 560px) {
    .hero { padding-top: 130px;	}
    .card { padding: 18px; border-radius: 16px; }
    .step { padding: 14px; }
}
