/* 官網次頁共用：版頭／版權列（對齊首頁視覺） */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --primary-color: #1e40af;
    --secondary-color: #f59e0b;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
}
body {
    font-family: 'Noto Sans TC', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    background: var(--bg-light);
    min-height: 100vh;
}
h1, h2, h3 {
    font-family: 'Varela Round', 'Noto Sans TC', sans-serif;
    font-weight: 700;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.skip-link {
    position: absolute; left: -9999px; top: auto; z-index: 9999;
    padding: 12px 20px; background: var(--secondary-color); color: var(--white);
    font-weight: 700; text-decoration: none; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; top: 0; }

.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(255,255,255,.95); backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(30,64,175,.1);
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.site-header .container {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 14px; padding-bottom: 14px;
}
.site-logo {
    font-family: 'Varela Round', 'Noto Sans TC', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}
.site-logo img {
    width: 36px; height: 36px; object-fit: contain; flex-shrink: 0;
}
.site-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-nav a {
    color: var(--text-dark); text-decoration: none; font-size: 0.9rem;
    font-weight: 500; transition: color 0.2s;
}
.site-nav a:hover { color: var(--primary-color); }
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px; height: 44px;
    background: none; border: none; cursor: pointer;
    padding: 10px; border-radius: 8px;
}
.nav-toggle span {
    display: block; width: 22px; height: 2px;
    background: var(--primary-color); border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-overlay {
    display: none;
    position: fixed; inset: 0; z-index: 99;
    background: rgba(0,0,0,.4);
    opacity: 0; transition: opacity 0.3s ease;
}
.nav-overlay.is-visible { display: block; opacity: 1; }

.page-main {
    padding: 6.5rem 0 2rem;
    min-height: calc(100vh - 180px);
}

.footer { background: #1a1a1a; color: var(--white); padding: 40px 0; text-align: center; }
.footer-text { font-size: 1rem; margin-bottom: 8px; color: #ccc; }
.footer-text a { color: #fff; text-decoration: none; font-weight: 600; }
.footer-text a:hover { color: var(--secondary-color); text-decoration: underline; }
.footer-nav a { color: #999; margin: 0 8px; text-decoration: none; font-size: 0.85rem; }
.footer-nav a:hover { color: #fff; }

.float-actions {
    position: fixed; right: 18px; bottom: 20px; z-index: 90;
    display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}
.to-top-btn {
    width: 48px; height: 48px; border: none; border-radius: 14px;
    background: linear-gradient(135deg, #7c3aed, #6366f1);
    color: #fff; cursor: pointer; display: grid; place-items: center;
    box-shadow: 0 6px 18px rgba(124, 58, 237, 0.35);
    opacity: 0; pointer-events: none; transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.2s ease;
}
.to-top-btn.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top-btn:hover { box-shadow: 0 8px 22px rgba(124, 58, 237, 0.45); }
.to-top-btn svg { width: 22px; height: 22px; display: block; }
.line-consult-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 110px; height: 44px; padding: 0 16px;
    border-radius: 999px; background: #06c755; color: #fff;
    font-weight: 700; font-size: 0.95rem; text-decoration: none;
    box-shadow: 0 6px 18px rgba(6, 199, 85, 0.35);
}
.line-consult-btn:hover { filter: brightness(1.05); }

@media (max-width: 900px) {
    .nav-toggle { display: flex; }
    .site-nav {
        position: fixed; top: 0; right: 0; z-index: 101;
        width: min(280px, 85vw); height: 100vh;
        background: rgba(255,255,255,.98);
        backdrop-filter: blur(8px);
        flex-direction: column; align-items: stretch;
        padding: 72px 24px 32px; gap: 0;
        transform: translateX(100%);
        transition: transform 0.35s ease;
        box-shadow: -4px 0 24px rgba(0,0,0,.12);
        overflow-y: auto;
    }
    .site-nav.is-open { transform: translateX(0); }
    .site-nav a {
        padding: 14px 0;
        border-bottom: 1px solid #eef2ff;
        font-size: 1rem;
    }
    .container { padding: 0 16px; }
    .float-actions { right: 12px; bottom: 14px; }
    .to-top-btn { width: 44px; height: 44px; border-radius: 12px; }
    .line-consult-btn { min-width: 96px; height: 40px; font-size: 0.9rem; padding: 0 14px; }
}
