/* ============================================================
   Landing Page – 1 PAGE 個人品牌  |  Teal Theme
   ============================================================ */

:root {
    --primary:       #2AB5A0;
    --primary-dark:  #1E9E8B;
    --primary-light: #EAF8F6;
    --primary-mid:   #D0F0EC;
    --text:          #1F2D3A;
    --text-muted:    #5A6E7B;
    --border:        #C5E5E0;
    --white:         #fff;
    --radius-card:   16px;
    --radius-btn:    10px;
    --shadow-card:   0 4px 32px rgba(42, 181, 160, 0.10);
}

/* ── Reset / Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Noto Sans TC', 'Raleway', sans-serif;
    background: var(--primary-light);
    color: var(--text);
    line-height: 1.6;
}

a  { text-decoration: none; }
p  { margin: 0 0 .5rem; }
h1, h2, h3, h4 { margin: 0 0 .5rem; }
img { max-width: 100%; height: auto; display: block; }

/* ── Nav ──────────────────────────────────────────────────── */
.main-nav {
    background: var(--white);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border-bottom: 1px solid rgba(226,232,240,.9);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans TC", sans-serif;
    font-size: 16px;
    position: sticky;
    top: 0;
    z-index: 200;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}
.nav-right { display: flex; align-items: center; gap: 8px; }

/* Logo */
.logo-img-link { display: flex; align-items: center; flex-shrink: 0; margin-left: 8px; margin-right: 12px; }
.logo-img      { width: 130px; height: auto; display: block; }

/* Generic nav link */
.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #6b7280;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
    transition: color .18s, background .18s;
}
.nav-link:hover { color: var(--primary); background: var(--primary-light); }

/* CTA nav link */
.nav-link--cta {
    color: var(--white);
    background: var(--primary);
    font-weight: 700;
    padding: 8px 16px;
    border-radius: var(--radius-btn);
}
.nav-link--cta:hover { background: var(--primary-dark); color: var(--white); }

/* Section mode links */
.nav-modes {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 20px;
}
/* Active state: bgcolor + text color (same as hover) */
.nav-link--active {
    color: var(--primary);
    background: var(--primary-light);
}

/* ── Service Switcher ─────────────────────────────────────── */
.svc-switcher { position: relative; }

.svc-switcher__btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    width: 150px;
    background: transparent;
    border: 1px solid rgba(0,0,0,0.28);
    cursor: pointer;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    padding: 8px 12px;
    border-radius: 8px;
    transition: border-color .18s;
    white-space: nowrap;
}
.svc-switcher__btn:hover,
.svc-switcher__btn[aria-expanded="true"] { border-color: rgba(0,0,0,0.55); }

.svc-switcher__chevron {
    flex-shrink: 0;
    width: 12px;
    height: 7px;
    transition: transform .2s;
}
.svc-switcher__btn[aria-expanded="true"] .svc-switcher__chevron {
    transform: rotate(180deg);
}

/* Dropdown panel */
.svc-switcher__menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.11);
    z-index: 500;
    min-width: 200px;
    padding: 6px;
    overflow: hidden;
}
.svc-switcher__menu--open { display: flex; }

.svc-switcher__group-label {
    margin: 0 -6px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
    letter-spacing: 0.04em;
    white-space: nowrap;
    text-shadow: 0 1px 0 rgba(0,0,0,.12);
}
.svc-switcher__menu > .svc-switcher__group-label:first-child {
    margin-top: -6px;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}
.svc-switcher__menu > .svc-switcher__group-label:not(:first-child) {
    margin-top: 10px;
}
.svc-switcher__menu > .svc-switcher__group-label + a,
.svc-switcher__menu > .svc-switcher__group-label + span {
    margin-top: 6px;
}

.svc-switcher__item {
    display: block;
    padding: 8px 14px;
    border-radius: 7px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    transition: background .15s, color .15s;
    white-space: nowrap;
}
/* Active item: text color only, no bgcolor */
.svc-switcher__item--active { color: var(--primary); font-weight: 700; }

/* Per-service hover theme colours */
.svc-switcher__item--personal:hover { background: var(--primary-light); color: var(--primary); }
.svc-switcher__item--line:hover { background: #E8F9E8; color: #00A300; }
.svc-switcher__item--poster:hover { background: #FFF3EF; color: #F55A2B; }
.svc-switcher__item--funnel:hover { background: #E3F2FD; color: #2196F3; }
.svc-switcher__item--xlead:hover { background: #FFF6E0; color: #E8941C; }

/* ── 模擬體驗 badge (shown next to LIVE DEMO) ──────────────── */
.nav-demo-badge {
    display: inline-flex; align-items: center;
    padding: 2px 8px; border-radius: 4px;
    margin-left: 6px; margin-bottom: -5px;
    font-size: 14px; font-weight: 300;
    background: var(--primary); color: #fff;
    white-space: nowrap; flex-shrink: 0; letter-spacing: 0.04em;
}

/* ── Dev environment badge ────────────────────────────────── */
.onepage-dev-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    background: #fef3c7;
    color: #92400e;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Mobile nav tweaks */
@media (max-width: 640px) {
    .nav-modes { display: none; }
    .svc-switcher__menu { min-width: 220px; }
}

/* ── Page wrapper ─────────────────────────────────────────── */
.main { }
.page { padding: 28px 16px 30px; }

/* ── Main card ────────────────────────────────────────────── */
.main-card {
    background: var(--white);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 36px 32px;
    max-width: 1060px;
    margin: 0 auto;
}

/* ── Two-column grid ──────────────────────────────────────── */
.body-row {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    align-items: flex-start;
}
.col-left  { flex: 1 1 340px; min-width: 0; }
.col-right { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 0; }

/* ── Title block ──────────────────────────────────────────── */
.main-title {
    text-align: center;
    margin-bottom: 28px;
}
.main-title h1 {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}
.brand-name        { color: var(--primary); }
.underline-emphasis {
    color: var(--text);
    text-decoration: underline;
    text-decoration-color: var(--primary);
    text-underline-offset: 4px;
}
.main-title h2 {
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--text-muted);
}

/* ── Badge ────────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 700;
    padding: 5px 15px;
    vertical-align: middle;
    line-height: 1;
}
.badge-primary { background: var(--primary); color: var(--white); }
.badge-ghost   { background: rgba(255,255,255,.25); color: var(--white); }

@keyframes shine {
    0%, 100% { opacity: 1; }
    50%       { opacity: .7; }
}
.shine-effect { animation: shine 2.5s infinite; }

/* ── Hero image block ─────────────────────────────────────── */
.hero-image-wrap {
    border-radius: 12px;
    overflow: hidden;
    background: var(--primary-light);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
}
.hero-image-wrap img {
    max-height: 320px;
    width: auto;
    margin: 0 auto;
    object-fit: contain;
    display: block;
}

/* ── Hero description under image ─────────────────────────── */
.hero-desc {
    text-align: center;
    padding: 12px 8px 0;
}
.hero-desc h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
}
.hero-desc p {
    font-size: .88rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0;
}

/* ── Feature icons ────────────────────────────────────────── */
.features {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 12px;
    margin: 20px 0 4px;
}
.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    font-size: .88rem;
    color: var(--text);
}
.feature-item i { font-size: 1.7rem; color: var(--primary); }
.feature-item p { margin: 0; }

/* ── Value props ──────────────────────────────────────────── */
.value-props {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}
.value-prop-item {
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 16px 18px 16px 48px;
    position: relative;
    background: var(--white);
    transition: border-color .2s, box-shadow .2s;
}
.value-prop-item:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 12px rgba(42,181,160,.12);
}
.value-prop-item::before {
    content: '\f058';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--primary);
    position: absolute;
    left: 16px;
    top: 16px;
    font-size: 1.1rem;
}
.value-prop-item h3 {
    font-size: .97rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text);
}
.value-prop-item p {
    font-size: .85rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0;
}

/* ── CTA button ───────────────────────────────────────────── */
.cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--primary);
    color: var(--white);
    padding: 17px 24px;
    border-radius: var(--radius-btn);
    font-size: 1.15rem;
    font-weight: 700;
    width: 100%;
    margin-top: auto;
    transition: background .2s;
}
.cta-button:hover { background: var(--primary-dark); color: var(--white); }

/* ── Footer ───────────────────────────────────────────────── */
.footer {
    background: var(--white);
    box-shadow: 0 -2px 10px rgba(0,0,0,.06);
    padding-top: 28px;
}
.footer-top {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    justify-content: center;
}
.footer-logo img   { height: 52px; width: auto; }
.footer-about {
    flex: 1;
    min-width: 220px;
    font-size: .86rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}
.footer-offices {
    background: #f5faf9;
    padding: 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}
.footer-office h5 {
    font-weight: 700;
    font-size: .9rem;
    margin-bottom: 4px;
    color: var(--text);
}
.footer-office p  { font-size: .84rem; color: var(--text-muted); margin: 0; line-height: 1.7; }
.footer-office a  { display: block; font-size: .84rem; color: var(--primary); }
.footer-office a:hover { text-decoration: underline; }
.footer-copy {
    background: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 10px 16px;
    font-size: .85rem;
}

/* ── Display helpers ──────────────────────────────────────── */
.d-none { display: none !important; }
@media (min-width: 768px)  { .d-md-inline { display: inline !important; } }
@media (min-width: 1200px) { .d-xl-block  { display: block  !important; } }

/* ── Mobile ───────────────────────────────────────────────── */
@media (max-width: 640px) {
    .main-card   { padding: 20px 14px; }
    .main-title h1 { font-size: 1.45rem; }
    .cta-button  { font-size: 1rem; padding: 15px 16px; }
    .footer-offices { flex-direction: column; gap: 24px; align-items: center; text-align: center; }
    .hero-image-wrap img { max-height: 220px; }
}
