/* =====================================================
   AaBore 安博力 - main.css
   Style B: Editorial Premium
   Fonts: Noto Sans TC (unified)
   Colors: Navy #1A2744 + Accent #4A6FA5 + Gold #E8B931
   ===================================================== */

/* ----- Google Fonts ----- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;700;900&display=swap');

/* =====================================================
   CSS Variables
   ===================================================== */
:root {
    --brand:       #1A2744;
    --brand-mid:   #243560;
    --brand-dark:  #0D1520;
    --accent:      #4A6FA5;
    --accent-lt:   #6B8FC4;
    --gold:        #E8B931;
    --gold-lt:     #F5D06A;
    --gold-dark:   #C49A1A;

    --c-white:     #FFFFFF;
    --bg:          #F5F6F8;
    --bg-card:     #FFFFFF;
    --c-gray-50:   #F5F6F8;
    --c-gray-100:  #EBEDF2;
    --c-gray-200:  #E2E6EE;
    --c-gray-300:  #D1D5DE;
    --c-gray-500:  #6B7280;
    --c-gray-700:  #374151;
    --c-gray-900:  #2A2A2A;

    --c-line:      #06C755;
    --c-danger:    #E74C3C;
    --c-success:   #27AE60;
    --c-info:      #3498DB;

    /* Legacy aliases (used in includes PHP) */
    --c-navy:       var(--brand);
    --c-navy-light: var(--brand-mid);
    --c-navy-dark:  var(--brand-dark);
    --c-gold:       var(--gold);
    --c-gold-light: var(--gold-lt);
    --c-gold-dark:  var(--gold-dark);

    /* Typography */
    --font-heading: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body:    'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-accent:  'Noto Sans TC', sans-serif;
    --font-main:    var(--font-body);

    /* Spacing */
    --space-xs:  0.5rem;
    --space-sm:  1rem;
    --space-md:  1.5rem;
    --space-lg:  2.5rem;
    --space-xl:  4rem;
    --space-2xl: 6rem;

    /* Layout */
    --container-max: 1280px;
    --container-narrow: 800px;
    --radius-sm:  8px;
    --radius-md:  16px;
    --radius-lg:  24px;
    --radius-pill: 100px;

    /* Shadows */
    --shadow-sm:    0 2px 8px rgba(26,39,68,0.06);
    --shadow-card:  0 4px 24px rgba(26,39,68,0.10);
    --shadow-hover: 0 12px 48px rgba(26,39,68,0.18);
    --shadow-xl:    0 20px 60px rgba(26,39,68,0.20);

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --duration: 0.3s;
}


/* =====================================================
   Reset & Base
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
    font-family: var(--font-body);
    color: var(--c-gray-900);
    background: var(--bg);
    line-height: 1.7;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--duration) var(--ease); }
a:hover { color: var(--gold); }
ul, ol { list-style: none; }

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.serif-italic, em {
    font-family: var(--font-heading);
    font-style: normal;
    font-weight: 900;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}
.container--narrow { max-width: var(--container-narrow); }


/* =====================================================
   Section Header (reusable)
   ===================================================== */
.section-header { text-align: center; margin-bottom: var(--space-xl); }

.section-eyebrow {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 900;
    color: var(--brand);
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}
.section-title em { color: var(--gold); }

.section-subtitle {
    font-size: 1.05rem;
    color: var(--c-gray-500);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}


/* =====================================================
   Buttons (pill-shaped)
   ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--duration) var(--ease);
    text-decoration: none;
    white-space: nowrap;
}
.btn--primary {
    background: var(--gold);
    color: var(--brand);
    box-shadow: 0 4px 20px rgba(232,185,49,0.35);
}
.btn--primary:hover {
    color: var(--brand);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(232,185,49,0.5);
}
.btn--line {
    background: var(--c-line);
    color: var(--c-white);
    box-shadow: 0 4px 20px rgba(6,199,85,0.3);
}
.btn--line:hover {
    background: #05B14A;
    color: var(--c-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(6,199,85,0.4);
}
.btn--outline {
    background: transparent;
    color: var(--brand);
    border-color: var(--brand);
}
.btn--outline:hover {
    background: var(--brand);
    color: var(--c-white);
}
.btn--ghost {
    background: transparent;
    color: rgba(255,255,255,0.8);
    border: 1px solid rgba(255,255,255,0.2);
}
.btn--ghost:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.4);
    color: #fff;
}
.btn--lg { padding: 16px 36px; font-size: 1rem; }
.btn--wrap {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
}


/* =====================================================
   HEADER (glass nav bar)
   ===================================================== */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(26, 39, 68, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.logo img { height: 44px; width: auto; }

/* Spacer for fixed header */
.site-main { padding-top: 72px; }

/* Nav */
.main-nav { display: flex; }
.nav-list { display: flex; align-items: center; gap: 0; }
.nav-item { position: relative; }
.nav-link {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: rgba(255,255,255,0.75);
    transition: color var(--duration) var(--ease);
    white-space: nowrap;
}
.nav-link:hover { color: #fff; }
.caret { font-size: 0.65em; opacity: 0.5; }

/* Active State — Header 導航 */
.nav-item.is-active > .nav-link {
    color: #fff;
    position: relative;
}
.nav-item.is-active > .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
}

/* Dropdown */
.dropdown, .mega-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--c-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-hover);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--duration) var(--ease);
    z-index: 999;
    min-width: 220px;
    padding: var(--space-sm) 0;
}
.nav-item:hover > .dropdown,
.nav-item:hover > .mega-dropdown {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown a {
    display: block;
    padding: 8px 20px;
    font-size: 0.88rem;
    color: var(--c-gray-700);
    font-family: var(--font-body);
}
.dropdown a:hover { background: var(--c-gray-50); color: var(--accent); }
.dropdown-label {
    display: block;
    padding: 10px 20px 4px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--c-gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    pointer-events: none;
}
.dropdown-label:not(:first-child) { border-top: 1px solid var(--c-gray-300); margin-top: 4px; padding-top: 10px; }
.dropdown--mega {
    min-width: 280px;
    max-height: 70vh;
    overflow-y: auto;
    padding: 8px 0;
}
@media (min-width: 768px) {
    .dropdown--mega {
        min-width: 520px;
        max-height: 80vh;
    }
    .dropdown--mega > ul {
        columns: 2;
        column-gap: 0;
    }
    .dropdown--mega > ul > li { break-inside: avoid; }
    .dropdown--mega .dropdown-label { column-span: none; }
}
.dropdown--wide {
    min-width: 380px;
    padding: 16px;
}
.dropdown--wide ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 16px;
}

/* Mega Dropdown */
.mega-dropdown {
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 840px;
    padding: var(--space-md);
}
.nav-item:hover > .mega-dropdown { transform: translateX(-50%) translateY(0); }
.mega-dropdown__inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}
.mega-col__title {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: var(--space-xs);
    padding: 0 8px;
}
.mega-col a {
    display: block;
    padding: 6px 8px;
    font-size: 0.88rem;
    color: var(--c-gray-700);
    border-radius: var(--radius-sm);
}
.mega-col a:hover { background: var(--c-gray-50); color: var(--accent); }
.mega-col__title--mt { margin-top: var(--space-md); }

/* Tools Mega Dropdown — wider for 8 groups */
.mega-dropdown--tools { width: 960px; }
.mega-dropdown__inner--tools {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md) var(--space-lg);
}

/* Header CTA */
.header-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--gold);
    color: var(--brand);
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    font-size: 0.88rem;
    font-weight: 700;
    transition: all var(--duration) var(--ease);
    flex-shrink: 0;
    text-decoration: none;
}
.header-cta:hover {
    color: var(--brand);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(232,185,49,0.4);
}
.header-cta__icon { flex-shrink: 0; }

/* Header Search */
.header-search {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    color: rgba(255,255,255,0.7);
    transition: color var(--duration) var(--ease), background var(--duration) var(--ease);
    text-decoration: none;
    flex-shrink: 0;
}
.header-search:hover { color: #fff; background: rgba(255,255,255,0.1); }

/* Hamburger */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle__bar {
    display: block; width: 24px; height: 2px;
    background: #fff; margin: 5px 0;
    transition: all var(--duration) var(--ease);
}

/* Nav Overlay (mobile) */
.nav-overlay { display: none; }


/* =====================================================
   HERO (editorial, with grid lines + geometric circles)
   ===================================================== */
.hero {
    background: var(--brand);
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 100px 24px 80px;
    position: relative;
    overflow: hidden;
}
/* Geometric circles */
.hero::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(74,111,165,0.3) 0%, transparent 70%);
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -60px;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232,185,49,0.12) 0%, transparent 70%);
    pointer-events: none;
}
.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
    max-width: var(--container-max);
}
.hero__title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 20px;
}
.hero__title--highlight {
    color: var(--gold);
    font-weight: 900;
}
.hero__subtitle {
    font-size: 1.08rem;
    color: rgba(255,255,255,0.65);
    margin-bottom: 40px;
    line-height: 1.8;
    max-width: 480px;
}
.hero__cta-group { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
.hero__trust {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
    font-weight: 500;
    letter-spacing: 0.03em;
}
.hero__visual { display: flex; justify-content: center; }
.hero__visual img {
    max-width: 480px; width: 100%;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
}


/* =====================================================
   SERVICES BENTO GRID
   ===================================================== */
.services-overview { padding: 96px 24px; background: #fff; }

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto auto;
    gap: 20px;
}

/* Hero card: spans left column, 2 rows tall */
.bento-card--hero {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

/* Wide card: spans all 3 columns at bottom */
.bento-card--wide {
    grid-column: 1 / -1;
}

/* Base card style */
.bento-card {
    background: var(--bg);
    border: 1px solid var(--c-gray-200);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    transition: all var(--duration) var(--ease);
    position: relative;
    overflow: hidden;
}
.bento-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-card);
    transform: translateY(-4px);
}

/* Hero card: dark theme */
.bento-card--hero {
    background: var(--brand);
    border-color: transparent;
    color: #fff;
    padding: 40px 32px;
    justify-content: space-between;
}
.bento-card--hero::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 220px; height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232,185,49,0.15) 0%, transparent 70%);
    pointer-events: none;
}
.bento-card--hero:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}
.bento-card--hero .bento-card__eyebrow { color: var(--gold); }
.bento-card--hero .bento-card__title a { color: #fff; }
.bento-card--hero .bento-card__title a:hover { color: var(--gold); }
.bento-card--hero .bento-card__desc { color: rgba(255,255,255,0.6); }
.bento-card--hero .bento-tag {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.75);
}
.bento-card--hero .bento-tag:hover {
    background: rgba(255,255,255,0.18);
    color: #fff;
}

/* Eyebrow label */
.bento-card__eyebrow {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

/* Card title */
.bento-card__title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 900;
    margin-bottom: 8px;
    line-height: 1.3;
}
.bento-card__title a {
    color: var(--brand);
    text-decoration: none;
    transition: color var(--duration) var(--ease);
}
.bento-card__title a:hover { color: var(--accent); }

/* Hero card title is bigger */
.bento-card--hero .bento-card__title {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

/* Card description */
.bento-card__desc {
    font-size: 0.92rem;
    color: var(--c-gray-500);
    line-height: 1.7;
    margin-bottom: 16px;
    flex: 1;
}

/* Sub-service tags */
.bento-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}
.bento-tag {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent);
    background: rgba(74,111,165,0.08);
    border: 1px solid rgba(74,111,165,0.15);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    transition: all var(--duration) var(--ease);
}
.bento-tag:hover {
    background: rgba(74,111,165,0.15);
    border-color: var(--accent);
    color: var(--brand);
}

/* Hero card stat (bottom-right) */
.bento-card__stat {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 24px;
}
.bento-card__stat-num {
    font-family: var(--font-body);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}
.bento-card__stat-label {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
}

/* Icon box (standard cards - top left) */
.bento-card__icon-box {
    width: 48px; height: 48px;
    background: rgba(74,111,165,0.08);
    border: 1px solid rgba(74,111,165,0.12);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    flex-shrink: 0;
    transition: all var(--duration) var(--ease);
}
.bento-card:hover .bento-card__icon-box {
    background: rgba(74,111,165,0.14);
    border-color: var(--accent);
    transform: scale(1.05);
}
.bento-card__icon-box--line {
    background: rgba(6,199,85,0.08);
    border-color: rgba(6,199,85,0.15);
}
.bento-card:hover .bento-card__icon-box--line {
    background: rgba(6,199,85,0.14);
    border-color: #06C755;
}

/* Icon float (hero + wide cards - decorative) */
.bento-card__icon-float {
    position: relative;
    z-index: 2;
    margin-bottom: 16px;
}

/* Corner accent line on standard cards */
.bento-card:not(.bento-card--hero):not(.bento-card--wide)::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 40px; height: 3px;
    background: var(--accent);
    border-radius: 0 0 3px 0;
    opacity: 0;
    transition: all var(--duration) var(--ease);
}
.bento-card:not(.bento-card--hero):not(.bento-card--wide):hover::after {
    opacity: 1;
    width: 60px;
}

/* Arrow indicator on card titles */
.bento-card__title a::after {
    content: ' →';
    opacity: 0;
    transition: opacity var(--duration) var(--ease);
    font-size: 0.9em;
}
.bento-card:hover .bento-card__title a::after {
    opacity: 0.5;
}

/* Bento tag icons */
.bento-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.bento-tag svg { flex-shrink: 0; }

/* Grid lines decoration on hero card */
.bento-card--hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    border-radius: inherit;
}

/* Wide card grid lines */
.bento-card--wide::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    border-radius: inherit;
}

/* Wide card link icons */
.bento-wide__link-icon {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--duration) var(--ease);
}
.bento-wide__link-icon svg { stroke: rgba(255,255,255,0.6); }
.bento-wide__link:hover .bento-wide__link-icon {
    background: rgba(232,185,49,0.15);
    border-color: rgba(232,185,49,0.3);
}
.bento-wide__link:hover .bento-wide__link-icon svg { stroke: var(--gold); }

/* Wide card (套餐方案) */
.bento-card--wide {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-mid) 100%);
    border-color: transparent;
    color: #fff;
    padding: 0;
}
.bento-card--wide:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}
.bento-card--wide .bento-card__eyebrow { color: var(--gold); }
.bento-card--wide .bento-card__title a { color: #fff; }
.bento-card--wide .bento-card__title a:hover { color: var(--gold); }
.bento-card--wide .bento-card__desc { color: rgba(255,255,255,0.6); }

.bento-wide__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 100%;
}
.bento-wide__main {
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.bento-wide__links {
    border-left: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
}
.bento-wide__link {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 28px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all var(--duration) var(--ease);
}
.bento-wide__link + .bento-wide__link {
    border-top: 1px solid rgba(255,255,255,0.08);
}
.bento-wide__link:hover {
    background: rgba(255,255,255,0.06);
    color: #fff;
}

.bento-wide__link small {
    display: block;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--gold);
    opacity: 0.7;
    margin-top: 2px;
}


/* =====================================================
   LIFECYCLE (glass cards)
   ===================================================== */
.lifecycle { padding: 96px 24px; }
.lifecycle__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.lifecycle__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    background: var(--c-white);
    border: 1px solid var(--c-gray-200);
    transition: all var(--duration) var(--ease);
    text-decoration: none;
    color: var(--c-gray-900);
}
.lifecycle__card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
    color: var(--c-gray-900);
}
.lifecycle__icon { font-size: 2.5rem; margin-bottom: var(--space-sm); }
.lifecycle__title {
    font-family: var(--font-heading);
    font-size: 1.3rem; font-weight: 900;
    color: var(--brand); margin-bottom: 8px;
}
.lifecycle__desc { font-size: 0.92rem; color: var(--c-gray-500); line-height: 1.7; margin-bottom: var(--space-sm); flex: 1; }
.lifecycle__cta { font-size: 0.9rem; font-weight: 700; color: var(--accent); }
.lifecycle__card--new:hover { border-color: var(--accent); }
.lifecycle__card--crisis:hover { border-color: var(--c-danger); }


/* =====================================================
   TOOLS SHOWCASE (dark section with glass cards)
   ===================================================== */
.tools-showcase {
    padding: 96px 24px;
    background: var(--brand);
    color: #fff;
    position: relative;
    overflow: hidden;
}
/* Grid line decoration */
.tools-showcase::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}
.tools-showcase .section-title { color: #fff; }
.tools-showcase .section-subtitle { color: rgba(255,255,255,0.55); }
.tools-showcase__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
    z-index: 2;
}
.tool-card {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: all var(--duration) var(--ease);
    text-decoration: none;
    color: #fff;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.tool-card:hover {
    background: rgba(255,255,255,0.12);
    border-color: var(--gold);
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(232,185,49,0.15);
    color: #fff;
}
.tool-card__badge {
    position: absolute;
    top: -10px;
    background: var(--gold);
    color: var(--brand);
    font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase;
    padding: 4px 14px;
    border-radius: var(--radius-pill);
}
.tool-card__icon { font-size: 2rem; margin-bottom: var(--space-sm); }
.tool-card__title {
    font-family: var(--font-heading);
    font-size: 1.05rem; font-weight: 700;
    margin-bottom: 8px;
}
.tool-card__desc { font-size: 0.85rem; opacity: 0.6; line-height: 1.7; margin-bottom: var(--space-sm); flex: 1; }
.tool-card__cta { font-size: 0.88rem; font-weight: 700; color: var(--gold); }


/* =====================================================
   KNOWLEDGE CENTER
   ===================================================== */
.knowledge { padding: 96px 24px; background: #fff; }
.knowledge__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: var(--space-lg);
}
.knowledge__card {
    background: var(--bg);
    border-radius: var(--radius-md);
    padding: 32px;
    border: 1px solid var(--c-gray-200);
    transition: all var(--duration) var(--ease);
    text-decoration: none;
    color: var(--c-gray-900);
    display: flex;
    flex-direction: column;
}
.knowledge__card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-card);
    transform: translateY(-4px);
    color: var(--c-gray-900);
}
.knowledge__pillar-tag {
    display: inline-block;
    background: var(--brand);
    color: var(--gold);
    font-family: var(--font-body);
    font-size: 0.7rem; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-sm);
    align-self: flex-start;
}
.knowledge__title {
    font-family: var(--font-heading);
    font-size: 1.15rem; font-weight: 900;
    color: var(--brand); margin-bottom: 8px;
}
.knowledge__desc { font-size: 0.9rem; color: var(--c-gray-500); line-height: 1.7; flex: 1; margin-bottom: var(--space-sm); }
.knowledge__meta { font-size: 0.82rem; color: var(--c-success); font-weight: 600; }

/* Report Banner (data callout) */
.knowledge__report {
    background: var(--brand);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.knowledge__report::before {
    content: '"';
    position: absolute;
    top: -20px; right: 24px;
    font-family: Georgia, serif;
    font-size: 160px;
    color: rgba(255,255,255,0.04);
    line-height: 1;
}
.knowledge__report-inner {
    display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg);
    position: relative; z-index: 2;
}
.knowledge__report-badge {
    display: inline-block;
    background: rgba(232,185,49,0.15);
    border: 1px solid rgba(232,185,49,0.4);
    color: var(--gold);
    font-family: var(--font-body);
    font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase;
    padding: 4px 14px;
    border-radius: var(--radius-pill);
    margin-bottom: 12px;
}
.knowledge__report h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem; font-weight: 900; margin-bottom: 8px;
}
.knowledge__report p { font-size: 0.95rem; color: rgba(255,255,255,0.6); line-height: 1.7; }
.knowledge__report .btn--outline {
    color: #fff; border-color: rgba(255,255,255,0.25); flex-shrink: 0;
}
.knowledge__report .btn--outline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5); color: #fff; }


/* =====================================================
   INDUSTRIES
   ===================================================== */
.industries { padding: 96px 24px; }
.industries__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.industry-card {
    background: var(--c-white);
    border: 1px solid var(--c-gray-200);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    text-align: center;
    transition: all var(--duration) var(--ease);
    text-decoration: none;
    color: var(--c-gray-900);
}
.industry-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-card);
    transform: translateY(-4px);
    color: var(--c-gray-900);
}
.industry-card__icon { font-size: 2.25rem; margin-bottom: var(--space-sm); }
.industry-card__title {
    font-family: var(--font-heading);
    font-size: 1.05rem; font-weight: 700;
    color: var(--brand); margin-bottom: 6px;
}
.industry-card__desc { font-size: 0.82rem; color: var(--c-gray-500); line-height: 1.6; }


/* =====================================================
   WHY AABORE
   ===================================================== */
.why-aabore { padding: 96px 24px; background: #fff; }
.why-aabore__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto var(--space-lg);
}
.why-card {
    background: var(--bg);
    border-radius: var(--radius-md);
    padding: 32px 32px;
    border: 1px solid var(--c-gray-200);
    transition: all var(--duration) var(--ease);
    display: flex;
    gap: 24px;
    align-items: flex-start;
}
.why-card:hover { border-color: var(--accent); box-shadow: var(--shadow-card); transform: translateX(4px); }
.why-card__number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px; height: 48px;
    border-radius: var(--radius-sm);
    background: var(--brand);
    color: var(--gold);
    font-family: var(--font-body);
    font-size: 1.1rem; font-weight: 700;
    flex-shrink: 0;
}
.why-card__title {
    font-family: var(--font-heading);
    font-size: 1.1rem; font-weight: 900;
    color: var(--brand); margin-bottom: 8px;
}
.why-card__desc { font-size: 0.95rem; color: var(--c-gray-500); line-height: 1.8; }
.why-aabore__cta { text-align: center; }


/* =====================================================
   FINAL CTA
   ===================================================== */
.final-cta {
    padding: 96px 24px;
    background: var(--brand);
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.final-cta::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}
.final-cta__title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3.5vw, 2.4rem);
    font-weight: 900; margin-bottom: 16px;
    position: relative; z-index: 2;
}
.final-cta__title em { color: var(--gold); }
.final-cta__desc {
    font-size: 1.05rem; opacity: 0.6;
    margin-bottom: var(--space-lg);
    position: relative; z-index: 2;
}
.final-cta__buttons {
    display: flex; justify-content: center; gap: 16px; flex-wrap: wrap;
    position: relative; z-index: 2;
}


/* =====================================================
   CTA BLOCK (includes/cta-block.php)
   ===================================================== */
.cta-block { padding: var(--space-xl) 24px; background: var(--bg); }
.cta-block__inner--dual {
    display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
    max-width: var(--container-max); margin: 0 auto;
}
.cta-block__inner--single { max-width: 600px; margin: 0 auto; }
.cta-block__card {
    background: var(--c-white);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    border: 1px solid var(--c-gray-200);
}
.cta-block__card--tool { border-color: rgba(232,185,49,0.3); }
.cta-block__card--line { border-color: rgba(6,199,85,0.3); }
.cta-block__badge {
    display: inline-block;
    background: rgba(232,185,49,0.15);
    border: 1px solid rgba(232,185,49,0.4);
    color: var(--gold-dark);
    font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    padding: 4px 14px;
    border-radius: var(--radius-pill);
    margin-bottom: var(--space-sm);
}
.cta-block__title {
    font-family: var(--font-heading);
    font-size: 1.2rem; font-weight: 900;
    color: var(--brand); margin-bottom: 8px;
}
.cta-block__desc { font-size: 0.92rem; color: var(--c-gray-500); margin-bottom: var(--space-md); }
.cta-block__btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 28px; border-radius: var(--radius-pill);
    font-weight: 700; font-size: 0.95rem;
    transition: all var(--duration) var(--ease);
    text-decoration: none;
}
.cta-block__btn--tool { background: var(--gold); color: var(--brand); box-shadow: 0 4px 16px rgba(232,185,49,0.3); }
.cta-block__btn--tool:hover { color: var(--brand); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(232,185,49,0.45); }
.cta-block__btn--line { background: var(--c-line); color: #fff; box-shadow: 0 4px 16px rgba(6,199,85,0.3); }
.cta-block__btn--line:hover { background: #05B14A; color: #fff; }
.cta-block__line-icon { margin-bottom: var(--space-sm); }
.cta-block__note { font-size: 0.82rem; color: var(--c-gray-500); margin-top: var(--space-sm); }


/* =====================================================
   RELATED POSTS (v2 card design)
   ===================================================== */
.related-posts { padding: 80px 24px; background: var(--bg); }
.related-posts__grid {
    display: grid;
    /* min(…,100%)：窄手機（320 寬）卡片不超出容器，2026-10-06 */
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 24px;
    max-width: var(--container-max); margin: 0 auto;
}

/* Related Card */
.related-card {
    display: flex;
    flex-direction: column;
    background: var(--c-white);
    border: 1px solid var(--c-gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: var(--c-gray-900);
    transition: all var(--duration) var(--ease);
    position: relative;
}
.related-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-card);
    transform: translateY(-6px);
    color: var(--c-gray-900);
}

/* Decorative visual area */
.related-card__visual {
    position: relative;
    height: 100px;
    background: linear-gradient(135deg, var(--c-gray-50) 0%, rgba(74,111,165,0.04) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.related-card__visual::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(74,111,165,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(74,111,165,0.04) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}
.related-card__corner {
    position: absolute;
    top: 0; right: 0;
    pointer-events: none;
}
.related-card__icon-circle {
    width: 52px; height: 52px;
    background: var(--c-white);
    border: 1px solid var(--c-gray-200);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; z-index: 2;
    transition: all var(--duration) var(--ease);
}
.related-card__icon-circle svg { stroke: var(--accent); }
.related-card:hover .related-card__icon-circle {
    background: var(--brand);
    border-color: var(--brand);
    transform: scale(1.1);
}
.related-card:hover .related-card__icon-circle svg { stroke: var(--gold); }

/* Card body */
.related-card__body {
    padding: 20px 24px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Category tag */
.related-card__tag {
    display: inline-block;
    font-size: 0.7rem; font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    align-self: flex-start;
}
.related-card__tag--accent {
    background: rgba(74,111,165,0.08);
    color: var(--accent);
}
.related-card__tag--brand {
    background: var(--brand);
    color: var(--gold);
}

.related-card__title {
    font-family: var(--font-heading);
    font-size: 1.05rem; font-weight: 900;
    color: var(--brand);
    margin-bottom: 8px;
    line-height: 1.4;
}
.related-card__desc {
    font-size: 0.85rem;
    color: var(--c-gray-500);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 12px;
}
.related-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    transition: gap var(--duration) var(--ease);
}
.related-card__cta svg { transition: transform var(--duration) var(--ease); }
.related-card:hover .related-card__cta { gap: 10px; }
.related-card:hover .related-card__cta svg { transform: translateX(3px); }


/* =====================================================
   BREADCRUMB
   ===================================================== */
.breadcrumb {
    padding: var(--space-sm) 0;
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: 24px; padding-right: 24px;
}
.breadcrumb__list { display: flex; flex-wrap: wrap; align-items: center; }
.breadcrumb__item { display: flex; align-items: center; font-size: 0.82rem; }
.breadcrumb__link { color: var(--c-gray-500); }
.breadcrumb__link:hover { color: var(--accent); }
.breadcrumb__sep { margin: 0 8px; color: var(--c-gray-300); }
.breadcrumb__current { color: var(--c-gray-700); font-weight: 600; }


/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
    background: var(--brand-dark);
    color: rgba(255,255,255,0.6);
    padding-top: 80px;
}

/* 品牌橫幅 */
.footer-brand-banner {
    max-width: var(--container-max); margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; gap: var(--space-lg);
    padding-bottom: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand-banner__info { flex: 1; }
.footer-logo img { height: 36px; width: auto; }
.footer-tagline { font-weight: 700; color: var(--gold); font-size: 0.88rem; margin-bottom: 4px; }
.footer-desc { font-size: 0.82rem; line-height: 1.7; }
.footer-contact { display: flex; gap: var(--space-md); }
.footer-contact__item {
    display: flex; align-items: center; gap: 6px;
    font-size: 0.82rem; color: rgba(255,255,255,0.5);
    text-decoration: none; transition: color var(--duration) var(--ease);
    white-space: nowrap;
}
.footer-contact__item:hover { color: var(--gold); }

/* 5 欄導覽 */
.footer-inner {
    max-width: var(--container-max); margin: 0 auto; padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-lg);
    padding-bottom: 64px;
}
.footer-col__title {
    font-family: var(--font-heading);
    font-size: 0.88rem; font-weight: 900; color: #fff; margin-bottom: var(--space-sm);
}
.footer-col__title--mt { margin-top: var(--space-lg); }
.footer-links li { margin-bottom: 6px; }
.footer-links a { font-size: 0.82rem; color: rgba(255,255,255,0.5); }
.footer-links a:hover { color: var(--gold); }
.footer-links__more { margin-top: 8px; }
.footer-links__more a { color: var(--gold) !important; font-weight: 600; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 24px;
    max-width: var(--container-max); margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.78rem;
}
.footer-legal { display: flex; gap: var(--space-md); }
.footer-legal a { color: rgba(255,255,255,0.4); }
.footer-legal a:hover { color: var(--gold); }


/* =====================================================
   ANNOUNCEMENT BAR（八組件 header §6.3）
   ===================================================== */
.announcement-bar {
    background: var(--gold); color: var(--brand);
    font-size: 0.85rem; font-weight: 600;
    text-align: center; position: relative; z-index: 1100;
}
.announcement-bar__inner {
    max-width: 1200px; margin: 0 auto;
    padding: 8px 40px 8px 16px;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.announcement-bar__link {
    color: var(--brand); text-decoration: underline;
    text-underline-offset: 2px;
}
.announcement-bar__link:hover { color: var(--brand-dark); }
.announcement-bar__close {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    background: none; border: none; cursor: pointer;
    font-size: 1rem; color: var(--brand); opacity: 0.6;
    padding: 4px 8px; line-height: 1;
}
.announcement-bar__close:hover { opacity: 1; }

/* =====================================================
   READING PROGRESS BAR（競品：Falison + AMASA CARLO）
   ===================================================== */
.reading-progress {
    position: fixed; top: 0; left: 0; width: 0; height: 3px;
    background: var(--gold); z-index: 1200;
    transition: width 0.1s linear;
}

/* =====================================================
   LINE FLOAT CTA (all devices)
   桌面：右下角膠囊按鈕（圖示 + 文字）
   手機：右下角小圓形（僅圖示），位於底部列上方
   ===================================================== */
.float-line-cta {
    position: fixed; bottom: 24px; right: 24px; z-index: 900;
    display: flex; align-items: center; gap: 8px;
    background: var(--c-line); color: #fff;
    padding: 12px 20px; border-radius: var(--radius-pill);
    box-shadow: 0 4px 24px rgba(6,199,85,0.4);
    font-weight: 700; font-size: 0.92rem;
    transition: all var(--duration) var(--ease);
    text-decoration: none;
    opacity: 0; visibility: hidden; transform: translateY(20px);
}
.float-line-cta.is-visible {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.float-line-cta.is-expanded .float-line-cta__text { display: inline; }
.float-line-cta.is-urgent {
    box-shadow: 0 4px 32px rgba(6,199,85,0.6);
    animation: pulse-line 2s infinite;
}
@keyframes pulse-line {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
.float-line-cta:hover {
    background: #05B14A; color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(6,199,85,0.5);
}
.float-line-cta__text { white-space: nowrap; }


/* =====================================================
   CTA-MID 文中軟性CTA（八組件 §1）
   ===================================================== */
.cta-mid {
    max-width: 980px;
    margin: 2rem auto;
    padding-left: 1rem;
    padding-right: 1rem;
    border-left: 4px solid var(--gold);
    background: rgba(74,111,165,0.04);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.cta-mid__link {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 20px;
    color: var(--brand); text-decoration: none;
    font-weight: 500; font-size: 0.95rem;
    transition: background var(--duration) var(--ease);
}
.cta-mid__link:hover { background: rgba(74,111,165,0.08); color: var(--brand); }
.cta-mid__icon { font-size: 1.1rem; flex-shrink: 0; }
.cta-mid__text { flex: 1; }
.cta-mid__arrow { flex-shrink: 0; opacity: 0.5; transition: transform 0.2s; }
.cta-mid__link:hover .cta-mid__arrow { transform: translateX(4px); opacity: 1; }

/* =====================================================
   SIDEBAR 側邊欄（八組件 §4）
   ===================================================== */
.sidebar {
    display: flex; flex-direction: column; gap: 24px;
    position: sticky; top: 100px;
}
.sidebar__block {
    background: #fff; border-radius: var(--radius-md);
    padding: 20px; box-shadow: var(--shadow-card);
}
.sidebar__block--tools {
    background: linear-gradient(135deg, rgba(74,111,165,0.06), rgba(232,185,49,0.06));
    border: 1px solid rgba(74,111,165,0.1);
}
.sidebar__block--line {
    background: var(--brand); color: #fff; text-align: center;
}
.sidebar__block--line .sidebar__heading { color: #fff; }
.sidebar__block--line .sidebar__desc { color: rgba(255,255,255,0.8); }
.sidebar__heading {
    font-size: 0.9rem; font-weight: 700; color: var(--brand);
    margin: 0 0 12px 0; letter-spacing: 0.02em;
}
.sidebar__list { list-style: none; padding: 0; margin: 0; }
.sidebar__item {
    display: flex; align-items: flex-start; gap: 8px;
    padding: 8px 0; border-bottom: 1px solid rgba(0,0,0,0.05);
}
.sidebar__item:last-child { border-bottom: none; }
.sidebar__rank {
    flex-shrink: 0; width: 22px; height: 22px;
    display: flex; align-items: center; justify-content: center;
    background: var(--gold); color: var(--brand);
    font-size: 0.72rem; font-weight: 700; border-radius: 50%;
}
.sidebar__link {
    color: var(--brand); font-size: 0.85rem; font-weight: 500;
    text-decoration: none; line-height: 1.4;
}
.sidebar__link:hover { color: var(--accent); }
.sidebar__desc { font-size: 0.82rem; color: var(--text-light); margin: 0 0 12px 0; }
.sidebar__btn {
    display: block; text-align: center;
    padding: 10px 16px; border-radius: var(--radius-sm);
    font-size: 0.85rem; font-weight: 600;
    text-decoration: none; transition: all var(--duration) var(--ease);
    background: var(--brand); color: #fff;
}
.sidebar__btn:hover { background: var(--accent); color: #fff; transform: translateY(-1px); }
.sidebar__btn--line { background: var(--c-line); }
.sidebar__btn--line:hover { background: #05B14A; }

/* =====================================================
   RELATED-POSTS v3 三段式（八組件策略）
   ===================================================== */
.related-posts__group { margin-bottom: 2rem; }
.related-posts__group:last-child { margin-bottom: 0; }
.related-posts__group-title {
    font-size: 0.85rem; font-weight: 600; color: var(--text-light);
    text-transform: uppercase; letter-spacing: 0.08em;
    margin: 0 0 1rem 0; padding-bottom: 8px;
    border-bottom: 2px solid var(--gold);
    display: inline-block;
}
.related-posts__grid--compact {
    grid-template-columns: repeat(2, 1fr);
}
.related-card--compact { flex-direction: row; }
.related-card--compact .related-card__visual { display: none; }
.related-posts__action {
    display: flex; gap: 12px; flex-wrap: wrap;
    justify-content: center; padding: 1.5rem 0;
}
.related-posts__action-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px; border-radius: var(--radius-pill);
    font-weight: 600; font-size: 0.95rem;
    text-decoration: none; transition: all var(--duration) var(--ease);
}
.related-posts__action-btn--tool {
    background: var(--brand); color: #fff;
}
.related-posts__action-btn--tool:hover {
    background: var(--accent); color: #fff; transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(74,111,165,0.3);
}
.related-posts__action-btn--line {
    background: var(--c-line); color: #fff;
}
.related-posts__action-btn--line:hover {
    background: #05B14A; color: #fff; transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(6,199,85,0.3);
}
@media (max-width: 768px) {
    .related-posts__grid--compact { grid-template-columns: 1fr; }
    .related-posts__action { flex-direction: column; align-items: stretch; }
    .related-posts__action-btn { justify-content: center; }
    .sidebar { position: static; }
}

/* =====================================================
   BACK TO TOP
   ===================================================== */
.back-to-top {
    position: fixed; bottom: 90px; right: 24px; z-index: 800;
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px;
    background: var(--brand); color: #fff;
    border-radius: 50%; border: 1px solid rgba(255,255,255,0.12);
    box-shadow: var(--shadow-card);
    font-size: 1.2rem; line-height: 1; cursor: pointer;
    opacity: 0; visibility: hidden; transform: translateY(12px);
    transition: all var(--duration) var(--ease);
    text-decoration: none;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--accent); transform: translateY(-2px); }


/* =====================================================
   MOBILE BOTTOM NAV — 五大內容區
   服務 / 產業 / 知識 / 報告 / 工具
   ===================================================== */
.mobile-bottom-nav { display: none; }

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
        position: fixed; bottom: 0; left: 0; right: 0; z-index: 950;
        background: rgba(26,39,68,0.97);
        backdrop-filter: blur(12px);
        border-top: 1px solid rgba(255,255,255,0.08);
        height: 60px; align-items: stretch;
        padding-bottom: env(safe-area-inset-bottom, 0);
    }
    .mobile-bottom-nav__item {
        flex: 1; display: flex; flex-direction: column;
        align-items: center; justify-content: center; gap: 2px;
        text-decoration: none;
        color: rgba(255,255,255,0.5);
        font-size: 0.68rem; font-weight: 600;
        transition: color var(--duration) var(--ease);
    }
    .mobile-bottom-nav__item:hover,
    .mobile-bottom-nav__item:active { color: #fff; }
    .mobile-bottom-nav__icon { font-size: 1.2rem; line-height: 1; }
    .mobile-bottom-nav__label { white-space: nowrap; }

    /* Active State — 手機底部選單 */
    .mobile-bottom-nav__item.is-active {
        color: #fff;
    }
    .mobile-bottom-nav__item.is-active .mobile-bottom-nav__icon {
        color: var(--gold);
    }

    body { padding-bottom: 60px; }

    /* LINE 浮動按鈕：手機版縮小為圓形，位於底部列上方 */
    .float-line-cta {
        bottom: 72px; right: 16px;
        padding: 0;
        width: 48px; height: 48px;
        border-radius: 50%;
        justify-content: center;
        box-shadow: 0 2px 16px rgba(6,199,85,0.45);
    }
    .float-line-cta img { width: 24px; height: 24px; }
    .float-line-cta__text { display: none; }
    .float-line-cta.is-expanded .float-line-cta__text { display: none; }

    /* 返回頂部：位於 LINE 浮動按鈕上方 */
    .back-to-top { bottom: 132px; right: 16px; width: 40px; height: 40px; }
}


/* =====================================================
   SERVICE PAGE STYLES
   ===================================================== */
.service-hero {
    background: var(--brand);
    color: #fff; padding: 120px 24px 80px; text-align: center;
    position: relative; overflow: hidden;
}
.service-hero::before {
    content: '';
    position: absolute; top: -100px; right: -100px;
    width: 500px; height: 500px; border-radius: 50%;
    background: radial-gradient(circle, rgba(74,111,165,0.25) 0%, transparent 70%);
    pointer-events: none;
}
.service-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 900; margin-bottom: 16px;
    position: relative; z-index: 2;
}
.service-hero__subtitle { font-size: 1.1rem; opacity: 0.65; margin-bottom: var(--space-lg); position: relative; z-index: 2; }

/* =====================================================
   BLOGGER HERO (Layout C: left text + right dashboard)
   ===================================================== */
.blogger-hero {
    background: var(--brand);
    padding: 120px 24px 80px;
    position: relative;
    overflow: hidden;
}
.blogger-hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}
.blogger-hero::after {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232,185,49,0.1) 0%, transparent 70%);
    pointer-events: none;
}
.blogger-hero__grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Left: text */
.blogger-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(232,185,49,0.1);
    border: 1px solid rgba(232,185,49,0.25);
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    margin-bottom: 24px;
}
.blogger-hero__badge-dot {
    width: 6px; height: 6px;
    background: var(--gold);
    border-radius: 50%;
    display: inline-block;
}
.blogger-hero__title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 20px;
}
.blogger-hero__title em {
    color: var(--gold);
    font-style: normal;
    font-weight: 900;
}
.blogger-hero__subtitle {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.8;
    margin-bottom: 24px;
    max-width: 480px;
}
.blogger-hero__checks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-bottom: 28px;
}
.blogger-hero__check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.6);
    font-weight: 500;
}
.blogger-hero__check svg { flex-shrink: 0; }
.blogger-hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Right: dashboard card */
.blogger-hero__dashboard { display: flex; flex-direction: column; gap: 12px; }
.blogger-hero__card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 28px;
    position: relative;
    overflow: hidden;
}
.blogger-hero__card::before {
    content: '';
    position: absolute;
    bottom: -40px; right: -40px;
    width: 160px; height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(74,111,165,0.15) 0%, transparent 70%);
    pointer-events: none;
}
.blogger-hero__card-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    margin-bottom: 16px;
}
.blogger-hero__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}
.blogger-hero__stat {
    text-align: center;
    padding: 16px 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-md);
    position: relative;
    z-index: 2;
}
.blogger-hero__stat-num {
    display: block;
    font-family: var(--font-body);
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 6px;
}
.blogger-hero__stat-label {
    display: block;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.45);
    line-height: 1.4;
    margin-bottom: 4px;
}
.blogger-hero__stat-source {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    color: rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.04);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    letter-spacing: 0.03em;
}
.blogger-hero__result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--gold);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    position: relative;
    z-index: 2;
}
.blogger-hero__result-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    font-weight: 900;
    color: var(--brand);
}
.blogger-hero__result-source {
    font-size: 0.72rem;
    color: rgba(26,39,68,0.5);
    font-weight: 600;
}

/* Trust bar */
.blogger-hero__trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.blogger-hero__trust-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    font-weight: 500;
}
.blogger-hero__trust-item svg { stroke: rgba(255,255,255,0.3); }

/* Mobile */
@media (max-width: 768px) {
    .blogger-hero { padding: 80px 24px 48px; }
    .blogger-hero__grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    .blogger-hero__subtitle { margin: 0 auto 24px; }
    .blogger-hero__checks { justify-content: center; }
    .blogger-hero__ctas { justify-content: center; }
    .blogger-hero__trust { gap: 12px; }
}
@media (max-width: 480px) {
    .blogger-hero__title { font-size: 1.8rem; }
    .blogger-hero__ctas { flex-direction: column; align-items: center; }
    .blogger-hero__stats { grid-template-columns: 1fr 1fr; gap: 8px; }
    .blogger-hero__result { flex-direction: column; gap: 4px; text-align: center; }
}

/* 這兩頁的窄手機版：首屏與延伸閱讀卡片不可用內容最小寬度撐開單欄。 */
@media (max-width: 480px) {
    .page-gmb-setup .blogger-hero__grid { grid-template-columns: minmax(0, 1fr); }
    .page-gmb-setup .related-posts__grid,
    .page-license-checker .related-posts__grid { grid-template-columns: minmax(0, 1fr); }
    .page-license-checker .tool-form,
    .page-license-checker .tool-result { padding: 20px 16px; }
    .page-license-checker .tool-result__cta-box { padding: 20px 16px; }
    .page-license-checker .btn { padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 360px) {
    .page-gmb-setup .blogger-hero__stats { grid-template-columns: 1fr; }
}
.service-content { padding: 80px 24px; background: #fff; }
.service-content h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem; font-weight: 900; color: var(--brand);
    margin-bottom: var(--space-sm); margin-top: var(--space-xl);
}
.service-content p { margin-bottom: var(--space-sm); line-height: 1.8; }
.service-pricing {
    padding: 80px 24px;
    background: var(--c-white);
}

/* Pricing Grid (redesigned) */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1080px;
    margin: 0 auto;
    align-items: stretch;
}
.pricing-card {
    background: var(--c-white);
    border: 1px solid var(--c-gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all var(--duration) var(--ease);
    position: relative;
}
.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}
.pricing-card--featured {
    border: 2px solid var(--accent);
    box-shadow: 0 8px 40px rgba(74,111,165,0.15);
    transform: scale(1.03);
    z-index: 2;
}
.pricing-card--featured:hover { transform: scale(1.03) translateY(-8px); }
.pricing-card__badge {
    position: absolute;
    top: -1px; left: 50%; transform: translateX(-50%);
    background: var(--gold);
    color: var(--brand);
    font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 20px;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    z-index: 3;
}

/* Card Header */
.pricing-card__header {
    padding: 32px 28px 24px;
    text-align: center;
    position: relative;
}
.pricing-card__header--dark {
    background: var(--brand);
    color: #fff;
}
.pricing-card__header--dark::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}
.pricing-card__header--dark .pricing-card__name { color: #fff; }
.pricing-card__header--dark .pricing-card__tagline { color: rgba(255,255,255,0.5); }
.pricing-card__header--dark .pricing-card__currency { color: var(--gold); }
.pricing-card__header--dark .pricing-card__amount { color: var(--gold); }
.pricing-card__header--dark .pricing-card__unit { color: rgba(255,255,255,0.4); }

.pricing-card__tier {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    position: relative; z-index: 2;
}
.pricing-card__tier-label {
    font-size: 0.65rem; font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    opacity: 0.7;
}
.pricing-card__header--dark .pricing-card__tier-label { color: var(--gold); opacity: 0.6; }
.pricing-card__name {
    font-family: var(--font-heading);
    font-size: 1.2rem; font-weight: 900;
    color: var(--brand);
    margin-bottom: 4px;
    position: relative; z-index: 2;
}
.pricing-card__tagline {
    font-size: 0.82rem;
    color: var(--c-gray-500);
    margin-bottom: 20px;
    position: relative; z-index: 2;
}
.pricing-card__price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    position: relative; z-index: 2;
}
.pricing-card__currency {
    font-size: 1rem; font-weight: 700;
    color: var(--accent);
}
.pricing-card__amount {
    font-family: var(--font-body);
    font-size: 2.6rem; font-weight: 900;
    color: var(--brand);
    line-height: 1;
    letter-spacing: -0.03em;
}
.pricing-card--featured .pricing-card__amount { color: var(--accent); }
.pricing-card__unit {
    font-size: 0.82rem;
    color: var(--c-gray-500);
    margin-left: 4px;
}

/* Card Body */
.pricing-card__body {
    padding: 24px 28px 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--c-gray-100);
}

/* Feature List */
.pricing-card__features {
    list-style: none; padding: 0; margin: 0 0 24px;
    display: flex; flex-direction: column; gap: 10px;
    flex: 1;
}
.pricing-card__feature {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--c-gray-700);
    line-height: 1.5;
}
.pricing-card__feature svg { flex-shrink: 0; margin-top: 2px; }
.pricing-card__feature--excluded {
    color: var(--c-gray-300);
    text-decoration: line-through;
}

/* CTA Button */
.pricing-card__cta {
    display: block;
    text-align: center;
    width: 100%;
    padding: 14px 24px;
}

/* ---- Industry Selector Pills ---- */
.industry-selector { margin-bottom: 24px; }
.industry-selector__label { font-size: 0.88rem; font-weight: 700; color: var(--brand); margin-bottom: 12px; }
.industry-selector__pills {
    display: flex; flex-wrap: wrap; gap: 8px;
}
.industry-pill {
    padding: 10px 18px; border: 1px solid var(--c-gray-200);
    border-radius: var(--radius-pill); font-size: 0.88rem; font-family: var(--font-body);
    background: var(--c-white); color: var(--c-gray-600); cursor: pointer;
    transition: all var(--duration) var(--ease); font-weight: 500;
}
.industry-pill:hover { border-color: var(--accent); color: var(--brand); }
.industry-pill--active {
    background: var(--brand); color: #fff; border-color: var(--brand);
}

/* ---- Industry Pricing Two-col layout ---- */
.industry-pricing__two-col {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px;
    padding: 0 24px 24px;
}
.industry-pricing__unified-cta {
    text-align: center; margin: 24px 0;
}

/* ---- Before/After Cards ---- */
.before-after-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 16px;
}
.before-after-card {
    border: 1px solid var(--c-gray-200); border-radius: var(--radius-lg);
    overflow: hidden; background: var(--c-white);
}
.before-after-card__label {
    padding: 10px 20px; font-size: 0.82rem; font-weight: 700;
    letter-spacing: 0.06em; text-transform: uppercase;
}
.before-after-card__label--before { background: var(--c-gray-100); color: var(--c-gray-500); }
.before-after-card__label--after { background: rgba(39,174,96,0.08); color: #27AE60; }
.before-after-card__body {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 20px;
}
.before-after-card__stat { text-align: center; }
.before-after-card__stat-num { display: block; font-size: 1.5rem; font-weight: 900; line-height: 1; margin-bottom: 4px; }
.before-after-card__stat-label { font-size: 0.75rem; color: var(--c-gray-500); }
.before-after-source { font-size: 0.75rem; color: var(--c-gray-400); text-align: center; }

/* ---- Industry-specific Pricing ---- */
.industry-pricing__entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: var(--c-white);
    border: 1px solid var(--c-gray-200);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    margin-bottom: 32px;
}
.industry-pricing__entry-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}
.industry-pricing__entry-icon {
    width: 48px; height: 48px;
    background: rgba(74,111,165,0.06);
    border: 1px solid rgba(74,111,165,0.1);
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.industry-pricing__entry-left h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem; font-weight: 900; color: var(--brand); margin: 0 0 4px;
}
.industry-pricing__entry-left p {
    font-size: 0.85rem; color: var(--c-gray-500); margin: 0; line-height: 1.5;
}
.industry-pricing__entry-right {
    display: flex; align-items: center; gap: 20px; flex-shrink: 0;
}
.industry-pricing__entry-price {
    display: flex; align-items: baseline; gap: 2px;
}

/* Grid: 3 columns for 6 cards */
.industry-pricing__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}
.industry-pricing__card {
    background: var(--c-white);
    border: 1px solid var(--c-gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all var(--duration) var(--ease);
    position: relative;
}
.industry-pricing__card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
}
.industry-pricing__card--featured {
    border: 2px solid var(--accent);
    box-shadow: 0 8px 40px rgba(74,111,165,0.12);
}
.industry-pricing__card-ribbon {
    position: absolute;
    top: 16px; right: -32px;
    background: var(--gold);
    color: var(--brand);
    font-size: 0.68rem; font-weight: 700;
    letter-spacing: 0.06em;
    padding: 4px 40px;
    transform: rotate(45deg);
    z-index: 3;
}
.industry-pricing__card-header {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 24px 24px 0;
}
.industry-pricing__card-icon {
    width: 48px; height: 48px;
    background: rgba(74,111,165,0.06);
    border: 1px solid rgba(74,111,165,0.1);
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.industry-pricing__card-header h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem; font-weight: 900; color: var(--brand); margin: 0 0 2px;
}
.industry-pricing__card-tagline {
    font-size: 0.82rem; color: var(--c-gray-500); margin: 0;
}
.industry-pricing__card-price {
    padding: 16px 24px;
    display: flex; align-items: baseline; gap: 2px;
}
.industry-pricing__card-price .pricing-card__amount {
    font-size: 2rem;
}
.industry-pricing__card-pain {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 24px;
    background: rgba(232,185,49,0.06);
    border-top: 1px solid rgba(232,185,49,0.12);
    border-bottom: 1px solid rgba(232,185,49,0.12);
    font-size: 0.78rem; color: var(--c-gray-600); font-weight: 600;
}
.industry-pricing__card-pain svg { flex-shrink: 0; }
.industry-pricing__features {
    list-style: none; padding: 16px 24px; margin: 0;
    display: flex; flex-direction: column; gap: 8px;
    flex: 1;
}
.industry-pricing__features li {
    font-size: 0.85rem; color: var(--c-gray-600); line-height: 1.5;
    padding-left: 22px; position: relative;
}
.industry-pricing__features li::before {
    content: '✓'; position: absolute; left: 0;
    color: #27AE60; font-weight: 700; font-size: 0.82rem;
}
.industry-pricing__cta {
    display: block;
    margin: 0 24px 24px;
    text-align: center;
}

/* Combo Banner */
.pricing-combo {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: var(--space-lg);
    background: var(--brand);
    border-radius: var(--radius-lg);
    padding: 24px 32px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.pricing-combo::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}
.pricing-combo__icon {
    width: 48px; height: 48px;
    background: rgba(232,185,49,0.12);
    border: 1px solid rgba(232,185,49,0.25);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    position: relative; z-index: 2;
}
.pricing-combo__text {
    flex: 1;
    position: relative; z-index: 2;
}
.pricing-combo__text strong {
    display: block;
    font-size: 1rem; font-weight: 900; color: #fff;
    margin-bottom: 4px;
}
.pricing-combo__text span {
    font-size: 0.88rem; color: rgba(255,255,255,0.55);
}
.pricing-combo .btn { position: relative; z-index: 2; }

/* Cross-sell box */

/* ---- Compare Grid (ads vs articles) ---- */
.compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: var(--space-lg);
}
.compare-card {
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1px solid var(--c-gray-200);
}
.compare-card--negative { background: var(--c-gray-50); }
.compare-card--positive { background: #F0F7FF; border-color: rgba(74,111,165,0.2); }
.compare-card__header {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 20px;
}
.compare-card__header h3 {
    font-family: var(--font-heading);
    font-size: 1rem; font-weight: 900; color: var(--brand); margin: 0;
}
.compare-card--negative .compare-card__header svg { stroke: var(--c-gray-500); }
.compare-card--positive .compare-card__header svg { stroke: var(--accent); }
.compare-list {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 10px;
}
.compare-list li {
    font-size: 0.92rem; color: var(--c-gray-700);
    padding-left: 24px; position: relative; line-height: 1.6;
}
.compare-card--negative .compare-list li::before {
    content: '✕'; position: absolute; left: 0;
    color: var(--c-gray-500); font-weight: 700; font-size: 0.82rem;
}
.compare-card--positive .compare-list li::before {
    content: '✓'; position: absolute; left: 0;
    color: var(--accent); font-weight: 700; font-size: 0.82rem;
}

/* ---- Stat Grid (4-col market data) ---- */
.stat-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.stat-card {
    background: var(--c-white);
    border: 1px solid var(--c-gray-200);
    border-radius: var(--radius-md);
    padding: 24px 20px;
    text-align: center;
}
.stat-card__num {
    font-family: var(--font-body);
    font-size: 2rem; font-weight: 900;
    color: var(--brand); display: block; margin-bottom: 8px;
    line-height: 1;
}
.stat-card__desc {
    font-size: 0.82rem; color: var(--c-gray-500); line-height: 1.6; margin: 0;
}

/* ---- Feature Grid (3-col service items) ---- */
.feature-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.feature-item {
    background: var(--bg);
    border: 1px solid var(--c-gray-200);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    transition: all var(--duration) var(--ease);
}
.feature-item:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.feature-item__icon {
    width: 48px; height: 48px;
    background: rgba(74,111,165,0.08);
    border: 1px solid rgba(74,111,165,0.12);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
}
.feature-item h3 {
    font-family: var(--font-heading);
    font-size: 1rem; font-weight: 900; color: var(--brand);
    margin-bottom: 8px;
}
.feature-item p {
    font-size: 0.88rem; color: var(--c-gray-500); line-height: 1.7; margin: 0;
}

/* ---- Industry Fit Grid ---- */
.industry-fit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.industry-fit-card {
    background: var(--c-white);
    border: 1px solid var(--c-gray-200);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    transition: all var(--duration) var(--ease);
}
.industry-fit-card:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.industry-fit-card__icon { display: block; margin-bottom: 12px; }
.industry-fit-card h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem; font-weight: 900; color: var(--brand);
    margin-bottom: 8px;
}
.industry-fit-card p {
    font-size: 0.88rem; color: var(--c-gray-500); line-height: 1.7; margin-bottom: 12px;
}
.industry-fit-card__kw {
    font-size: 0.78rem; color: var(--accent); font-weight: 600;
    background: rgba(74,111,165,0.06);
    padding: 4px 10px; border-radius: var(--radius-sm);
    display: inline-block;
}

/* ---- Process Steps ---- */
.process-steps {
    max-width: 800px; margin: 0 auto;
    display: flex; flex-direction: column; gap: 0;
    position: relative;
}
.process-steps::before {
    content: '';
    position: absolute; left: 24px; top: 40px; bottom: 40px;
    width: 2px; background: var(--c-gray-200);
}
.process-step {
    display: flex; gap: 24px; align-items: flex-start;
    padding: 20px 0;
    position: relative;
}
.process-step__num {
    width: 48px; height: 48px;
    background: var(--brand); color: var(--gold);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-body);
    font-size: 0.88rem; font-weight: 900;
    flex-shrink: 0; position: relative; z-index: 2;
}
.process-step__body h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem; font-weight: 900; color: var(--brand);
    margin-bottom: 6px;
}
.process-step__body p {
    font-size: 0.92rem; color: var(--c-gray-500); line-height: 1.7;
    margin-bottom: 8px;
}
.process-step__time {
    font-size: 0.78rem; font-weight: 700;
    color: var(--accent);
    background: rgba(74,111,165,0.08);
    padding: 3px 10px; border-radius: var(--radius-pill);
}

/* ---- Data Source Note ---- */
.data-source-note {
    background: var(--c-white);
    border-left: 3px solid var(--accent);
    border-radius: 0;
    padding: 12px 16px;
    font-size: 0.82rem;
    color: var(--c-gray-500);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}
.data-source-note strong { color: var(--brand); }

/* ---- Stat Card Source Tag ---- */
.stat-card__source {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent);
    background: rgba(74,111,165,0.06);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    letter-spacing: 0.03em;
}

/* ---- Industry Data Grid ---- */
.industry-data-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.industry-data-card {
    background: var(--c-white);
    border: 1px solid var(--c-gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--duration) var(--ease);
}
.industry-data-card:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.industry-data-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px 12px;
}
.industry-data-card__header h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem; font-weight: 900; color: var(--brand); margin: 0;
}
.industry-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.industry-data-table thead { background: var(--c-gray-50); }
.industry-data-table th {
    text-align: left;
    padding: 8px 24px;
    font-weight: 700;
    color: var(--c-gray-500);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--c-gray-200);
}
.industry-data-table td {
    padding: 8px 24px;
    border-bottom: 1px solid var(--c-gray-100);
    color: var(--c-gray-700);
}
.industry-data-table tr:last-child td { border-bottom: none; }
.competition-high { color: #E74C3C; font-weight: 700; }
.competition-mid { color: #E8B931; font-weight: 700; }
.competition-low { color: #27AE60; font-weight: 700; }
.industry-data-card__insight {
    padding: 16px 24px;
    background: var(--c-gray-50);
    font-size: 0.82rem;
    color: var(--c-gray-500);
    line-height: 1.7;
    border-top: 1px solid var(--c-gray-200);
}
.industry-data-card__insight strong { color: var(--brand); }

/* ---- Budget Table ---- */
.budget-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: var(--space-sm);
}
.budget-table {
    width: 100%;
    min-width: 800px;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.budget-table thead { background: var(--brand); }
.budget-table th {
    padding: 14px 16px;
    text-align: left;
    color: #fff;
    font-weight: 700;
    font-size: 0.82rem;
    white-space: nowrap;
}
.budget-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--c-gray-200);
    color: var(--c-gray-700);
    vertical-align: top;
}
.budget-table tbody tr:hover { background: var(--c-gray-50); }
.budget-table__featured {
    background: rgba(74,111,165,0.04);
}
.budget-table__featured td { font-weight: 600; color: var(--brand); }

/* Cross-sell box (original) */
.cross-sell-box {
    background: var(--bg); border: 1px solid var(--c-gray-200);
    border-radius: var(--radius-md); padding: 28px 24px; margin-top: var(--space-lg);
}
.cross-sell-box h3 {
    font-family: var(--font-body);
    font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--accent); margin-bottom: var(--space-sm);
}
.cross-sell-box li { margin-bottom: 6px; }
.cross-sell-box a { color: var(--brand); font-weight: 600; }
.cross-sell-box a:hover { color: var(--accent); }

/* ---- Combo Grid (rich cross-sell cards) ---- */
.combo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: var(--space-lg);
}
.combo-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--c-white);
    border: 1px solid var(--c-gray-200);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-decoration: none;
    color: var(--c-gray-900);
    transition: all var(--duration) var(--ease);
    position: relative;
    overflow: hidden;
}
.combo-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px; height: 0;
    background: var(--accent);
    transition: height var(--duration) var(--ease);
    border-radius: 0;
}
.combo-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-card);
    transform: translateY(-3px);
    color: var(--c-gray-900);
}
.combo-card:hover::before { height: 100%; }

.combo-card__icon {
    width: 52px; height: 52px;
    background: rgba(74,111,165,0.06);
    border: 1px solid rgba(74,111,165,0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--duration) var(--ease);
}
.combo-card:hover .combo-card__icon {
    background: var(--brand);
    border-color: var(--brand);
}
.combo-card:hover .combo-card__icon svg { stroke: var(--gold); }
.combo-card__body { flex: 1; min-width: 0; }
.combo-card__title {
    font-family: var(--font-heading);
    font-size: 1.05rem; font-weight: 900;
    color: var(--brand);
    margin-bottom: 6px;
}
.combo-card__desc {
    font-size: 0.85rem;
    color: var(--c-gray-500);
    line-height: 1.6;
    margin-bottom: 10px;
}
.combo-card__tag {
    display: inline-block;
    font-size: 0.72rem; font-weight: 700;
    color: var(--accent);
    background: rgba(74,111,165,0.06);
    border: 1px solid rgba(74,111,165,0.12);
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    letter-spacing: 0.03em;
}
.combo-card__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--c-gray-50);
    flex-shrink: 0;
    align-self: center;
    transition: all var(--duration) var(--ease);
    color: var(--c-gray-300);
}
.combo-card:hover .combo-card__arrow {
    background: rgba(74,111,165,0.08);
    color: var(--accent);
    transform: translateX(3px);
}

/* Combo Reads (延伸閱讀 mini bar) */
.combo-reads {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 16px 24px;
    background: var(--c-white);
    border: 1px solid var(--c-gray-200);
    border-radius: var(--radius-md);
}
.combo-reads__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem; font-weight: 700;
    color: var(--brand);
}
.combo-reads__label svg { stroke: var(--brand); flex-shrink: 0; }
.combo-reads__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem; font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    padding: 6px 14px;
    background: rgba(74,111,165,0.04);
    border: 1px solid rgba(74,111,165,0.08);
    border-radius: var(--radius-pill);
    transition: all var(--duration) var(--ease);
}
.combo-reads__link svg { flex-shrink: 0; stroke: var(--accent); }
.combo-reads__link:hover {
    background: rgba(74,111,165,0.1);
    border-color: var(--accent);
    color: var(--brand);
}

/* FAQ — 全站統一 <details>/<summary> */
.service-faq, .article-faq { padding: 80px 24px; background: #fff; }
.faq-item {
    border: 1px solid var(--c-gray-200);
    border-radius: var(--radius-md); margin-bottom: 12px; overflow: hidden; background: var(--bg);
}
.faq-item summary {
    padding: 20px 24px;
    font-family: var(--font-heading);
    font-weight: 700; font-size: 0.95rem;
    cursor: pointer; list-style: none;
    color: var(--brand);
    transition: background var(--duration) var(--ease);
    display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::after { content: '+'; font-size: 1.25rem; flex-shrink: 0; margin-left: 1rem; }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item summary:hover { background: var(--c-white); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] summary { border-bottom: 1px solid var(--c-gray-200); background: var(--c-white); }
.faq-item__answer { padding: 20px 24px; color: var(--c-gray-500); background: var(--c-white); }
.faq-item__answer p { font-size: 0.95rem; line-height: 1.8; }

/* Bottom CTA Banner */
.bottom-cta-banner { padding: 80px 24px; }
.bottom-cta-banner__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cta-item {
    background: var(--c-white); border: 1px solid var(--c-gray-200);
    border-radius: var(--radius-md); padding: 32px; text-align: center;
    transition: all var(--duration) var(--ease);
}
.cta-item:hover { border-color: var(--accent); box-shadow: var(--shadow-card); }
.cta-item h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem; font-weight: 900; color: var(--brand); margin-bottom: 8px;
}
.cta-item p { font-size: 0.88rem; color: var(--c-gray-500); margin-bottom: var(--space-sm); }


/* =====================================================
   ARTICLE PAGE
   ===================================================== */
.article-header { margin-bottom: var(--space-lg); padding-top: var(--space-sm); }
.article-meta { display: flex; align-items: center; gap: var(--space-sm); margin-bottom: var(--space-sm); }
.article-meta__pillar {
    background: var(--brand); color: var(--gold);
    font-family: var(--font-body);
    font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    padding: 4px 12px; border-radius: var(--radius-sm); text-decoration: none;
}
.article-meta__pillar:hover { background: var(--brand-mid); color: var(--gold); }
.article-meta__date { font-size: 0.82rem; color: var(--c-gray-500); }
.article-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 900;
    color: var(--brand); line-height: 1.35;
}
.article-body h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem; font-weight: 900; color: var(--brand);
    margin-top: var(--space-xl); margin-bottom: var(--space-sm);
}
.article-body p { margin-bottom: var(--space-sm); line-height: 1.85; }
.article-body a { color: var(--accent); text-decoration: underline; text-decoration-color: var(--accent-lt); }
.article-body a:hover { color: var(--gold); }


/* =====================================================
   LEGAL PAGES (privacy.php / terms.php)
   ===================================================== */
.legal-page {
    padding: 120px 24px 80px;
}
.legal-header {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--c-gray-200);
}
.legal-header h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 900;
    color: var(--brand);
    margin-bottom: 8px;
}
.legal-meta {
    font-size: 0.88rem;
    color: var(--c-gray-500);
}

.legal-body h2 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--brand);
    margin-top: 40px;
    margin-bottom: 12px;
    padding-top: 24px;
    border-top: 1px solid var(--c-gray-100);
}
.legal-body h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}
.legal-body p {
    font-size: 0.95rem;
    color: var(--c-gray-700);
    line-height: 1.9;
    margin-bottom: 12px;
}
.legal-body p:last-child { margin-bottom: 0; }
.legal-body strong { color: var(--brand); font-weight: 700; }
.legal-body a { color: var(--accent); text-decoration: underline; text-decoration-color: var(--accent-lt); }
.legal-body a:hover { color: var(--gold); }


/* =====================================================
   SERVICES INDEX PAGE
   ===================================================== */
.svc-index-hero {
    background: var(--brand);
    color: #fff;
    padding: 120px 24px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.svc-index-hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}
.svc-index-hero__title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    margin-bottom: 16px;
    position: relative; z-index: 2;
}
.svc-index-hero__title em { color: var(--gold); font-style: normal; font-weight: 900; }
.svc-index-hero__subtitle {
    font-size: 1.05rem; color: rgba(255,255,255,0.6);
    max-width: 640px; margin: 0 auto 32px; line-height: 1.8;
    position: relative; z-index: 2;
}
.svc-index-hero__cta { position: relative; z-index: 2; }

/* Body */
.svc-index-body { padding: 64px 24px 32px; }

/* Category block */
.svc-category {
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--c-gray-200);
}
.svc-category:last-child { border-bottom: none; margin-bottom: 0; }
.svc-category--featured {
    background: var(--brand);
    margin-left: -24px;
    margin-right: -24px;
    padding: 48px 24px;
    border-radius: var(--radius-lg);
    border-bottom: none;
    margin-bottom: 0;
}

.svc-category__header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
}
.svc-category__icon {
    width: 52px; height: 52px;
    background: rgba(74,111,165,0.08);
    border: 1px solid rgba(74,111,165,0.12);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.svc-category--featured .svc-category__icon {
    background: rgba(232,185,49,0.12);
    border-color: rgba(232,185,49,0.2);
}
.svc-category__title {
    font-family: var(--font-heading);
    font-size: 1.4rem; font-weight: 900;
    color: var(--brand); margin-bottom: 4px;
}
.svc-category--featured .svc-category__title { color: #fff; }
.svc-category__subtitle {
    font-size: 0.92rem; color: var(--c-gray-500); line-height: 1.6;
}
.svc-category--featured .svc-category__subtitle { color: rgba(255,255,255,0.5); }

/* Service item cards */
.svc-category__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}
.svc-category__grid--plans {
    grid-template-columns: repeat(3, 1fr);
}

.svc-item {
    display: flex;
    flex-direction: column;
    background: var(--c-white);
    border: 1px solid var(--c-gray-200);
    border-radius: var(--radius-md);
    padding: 24px;
    text-decoration: none;
    color: var(--c-gray-900);
    transition: all var(--duration) var(--ease);
    position: relative;
}
.svc-item:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-card);
    transform: translateY(-3px);
    color: var(--c-gray-900);
}
.svc-category--featured .svc-item {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.1);
    color: #fff;
}
.svc-category--featured .svc-item:hover {
    background: rgba(255,255,255,0.12);
    border-color: var(--gold);
    color: #fff;
}

.svc-item__title {
    font-family: var(--font-heading);
    font-size: 1.1rem; font-weight: 900;
    color: var(--brand); margin-bottom: 6px;
}
.svc-category--featured .svc-item__title { color: #fff; }

.svc-item__desc {
    font-size: 0.88rem; color: var(--c-gray-500); line-height: 1.6;
    flex: 1; margin-bottom: 12px;
}
.svc-category--featured .svc-item__desc { color: rgba(255,255,255,0.5); }

.svc-item__price {
    font-family: var(--font-body);
    font-size: 0.82rem; font-weight: 700;
    color: var(--accent);
    background: rgba(74,111,165,0.08);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    align-self: flex-start;
    margin-bottom: 4px;
}
.svc-category--featured .svc-item__price {
    color: var(--gold);
    background: rgba(232,185,49,0.12);
}

.svc-item__arrow {
    position: absolute;
    top: 24px; right: 24px;
    font-size: 1.1rem;
    color: var(--c-gray-300);
    transition: all var(--duration) var(--ease);
}
.svc-item:hover .svc-item__arrow { color: var(--accent); transform: translateX(4px); }
.svc-category--featured .svc-item__arrow { color: rgba(255,255,255,0.2); }
.svc-category--featured .svc-item:hover .svc-item__arrow { color: var(--gold); }

.svc-item--highlight {
    border: 2px solid var(--gold);
}
.svc-item__badge {
    display: inline-block;
    background: var(--gold);
    color: var(--brand);
    font-size: 0.7rem; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase;
    padding: 3px 12px;
    border-radius: var(--radius-pill);
    margin-bottom: 10px;
    align-self: flex-start;
}

/* Footer note */
.svc-index-footer { padding: 48px 24px 0; }
.svc-index-note {
    background: var(--bg);
    border: 1px solid var(--c-gray-200);
    border-radius: var(--radius-md);
    padding: 32px;
}
.svc-index-note h2 {
    font-family: var(--font-heading);
    font-size: 1.1rem; font-weight: 900;
    color: var(--brand); margin-bottom: 12px;
}
.svc-index-note p {
    font-size: 0.92rem; color: var(--c-gray-500); line-height: 1.8; margin-bottom: 8px;
}
.svc-index-note p:last-child { margin-bottom: 0; }


/* =====================================================
   ABOUT PAGE
   ===================================================== */
.about-hero {
    background: var(--brand);
    color: #fff;
    padding: 120px 24px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.about-hero::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(74,111,165,0.25) 0%, transparent 70%);
    pointer-events: none;
}
.about-hero__title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    margin-bottom: 20px;
    position: relative; z-index: 2;
}
.about-hero__title em { color: var(--gold); font-style: normal; font-weight: 900; }
.about-hero__subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.6);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.8;
    position: relative; z-index: 2;
}

.about-section { padding: 80px 24px; }
.about-section--alt { background: var(--bg); }
.about-section h2:not(.section-title) {
    font-family: var(--font-heading);
    font-size: 1.5rem; font-weight: 900;
    color: var(--brand); margin-bottom: 20px;
}
.about-section p { font-size: 1rem; line-height: 1.85; color: var(--c-gray-700); margin-bottom: 16px; }

/* Founder section */
.about-founder {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}
.about-founder__info { flex: 1; }
.about-founder__name {
    font-family: var(--font-heading);
    font-size: 1.75rem; font-weight: 900;
    color: var(--brand); margin: 8px 0 4px;
}
.about-founder__title {
    font-size: 0.9rem; font-weight: 500;
    color: var(--c-gray-500); margin-bottom: 20px;
    letter-spacing: 0.03em;
}
.about-founder__linkedin {
    display: inline-flex; align-items: center; gap: 8px;
    color: #0A66C2; font-size: 0.9rem; font-weight: 500;
    text-decoration: none; margin-top: 8px;
    transition: opacity .2s;
}
.about-founder__linkedin:hover { opacity: .75; }

/* Differentiator grid */
.about-diff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.about-diff-card {
    background: var(--c-white);
    border: 1px solid var(--c-gray-200);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: all var(--duration) var(--ease);
}
.about-diff-card:hover { border-color: var(--accent); box-shadow: var(--shadow-card); transform: translateY(-4px); }
.about-diff-card--featured {
    background: var(--brand);
    border-color: transparent;
    color: #fff;
}
.about-diff-card--featured h3 { color: #fff; }
.about-diff-card--featured p { color: rgba(255,255,255,0.6); }
.about-diff-card__icon { margin-bottom: 16px; }
.about-diff-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem; font-weight: 900;
    color: var(--brand); margin-bottom: 10px;
}
.about-diff-card p { font-size: 0.92rem; color: var(--c-gray-500); line-height: 1.7; margin-bottom: 0; }

/* M1-M9 grid */
.about-method-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: var(--space-lg);
}
.about-method {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--c-white);
    border: 1px solid var(--c-gray-200);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    font-size: 0.92rem;
    color: var(--c-gray-700);
    transition: all var(--duration) var(--ease);
}
.about-method:hover { border-color: var(--accent); background: var(--bg); }
a.about-method { text-decoration: none; color: var(--c-gray-700); }
a.about-method:hover { color: var(--c-navy); }
.about-method__id {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    background: var(--brand);
    color: var(--gold);
    font-size: 0.78rem; font-weight: 700;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}
.about-method-cta { text-align: center; }

/* About link cards */
.about-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.about-link-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--c-white);
    border: 1px solid var(--c-gray-200);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    text-decoration: none;
    color: var(--c-gray-900);
    transition: all var(--duration) var(--ease);
}
.about-link-card:hover { border-color: var(--accent); box-shadow: var(--shadow-card); transform: translateY(-3px); color: var(--c-gray-900); }
.about-link-card h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem; font-weight: 900; color: var(--brand); margin: 0;
}
.about-link-card p { font-size: 0.88rem; color: var(--c-gray-500); line-height: 1.6; margin: 0; }


/* =====================================================
   CONTACT PAGE
   ===================================================== */
.contact-hero {
    background: var(--brand);
    color: #fff;
    padding: 120px 24px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.contact-hero::before {
    content: '';
    position: absolute;
    bottom: -60px; left: -60px;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232,185,49,0.12) 0%, transparent 70%);
    pointer-events: none;
}
.contact-hero__title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    margin-bottom: 16px;
    position: relative; z-index: 2;
}
.contact-hero__title em { color: var(--gold); font-style: normal; font-weight: 900; }
.contact-hero__subtitle {
    font-size: 1.1rem; color: rgba(255,255,255,0.6);
    max-width: 560px; margin: 0 auto; line-height: 1.8;
    position: relative; z-index: 2;
}

.contact-body { padding: 80px 24px; }

/* Three-card contact layout */
.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}
.contact-card {
    background: var(--c-white);
    border: 1px solid var(--c-gray-200);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    display: flex; flex-direction: column; align-items: center;
    transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.contact-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 24px rgba(74,111,165,0.1);
}
.contact-card--line:hover { border-color: #06C755; box-shadow: 0 4px 24px rgba(6,199,85,0.12); }
.contact-card__icon { margin-bottom: 20px; }
.contact-card h2 {
    font-family: var(--font-heading);
    font-size: 1.2rem; font-weight: 900; color: var(--brand);
    margin-bottom: 10px;
}
.contact-card p {
    font-size: 0.92rem; color: var(--c-gray-500); line-height: 1.7;
    margin-bottom: 24px; flex: 1;
}
.contact-card .btn { width: 100%; }
.contact-card__note {
    display: block; font-size: 0.8rem; color: var(--c-gray-500);
    margin-top: 14px;
}

/* Info row */
.contact-info-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.contact-info-panel {
    background: var(--bg);
    border: 1px solid var(--c-gray-200);
    border-radius: var(--radius-lg);
    padding: 32px;
}
.contact-info-panel h3 {
    font-family: var(--font-heading);
    font-size: 1rem; font-weight: 900; color: var(--brand); margin-bottom: 20px;
}
.contact-info-list {
    list-style: none; padding: 0; margin: 0 0 24px;
    display: flex; flex-direction: column; gap: 14px;
}
.contact-info-list li {
    display: flex; align-items: center; gap: 10px;
    font-size: 0.92rem; color: var(--c-gray-700);
}
.contact-info-list svg { flex-shrink: 0; stroke: var(--accent); }
.contact-social-links {
    display: flex; gap: 16px;
}
.contact-social-links a {
    color: var(--c-gray-500);
    transition: color var(--duration) var(--ease);
}
.contact-social-links a:hover { color: var(--accent); }

.contact-quick-links {
    background: var(--bg);
    border: 1px solid var(--c-gray-200);
    border-radius: var(--radius-lg);
    padding: 32px;
}
.contact-quick-links h3 {
    font-family: var(--font-heading);
    font-size: 1rem; font-weight: 900; color: var(--brand); margin-bottom: 16px;
}
.contact-quick-link {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--c-gray-200);
    text-decoration: none; color: var(--c-gray-700);
    font-size: 0.92rem; font-weight: 600;
    transition: color var(--duration) var(--ease);
}
.contact-quick-link:last-child { border-bottom: none; }
.contact-quick-link:hover { color: var(--accent); }
.contact-quick-link svg { flex-shrink: 0; stroke: var(--accent); }


/* =====================================================
   404 ERROR PAGE
   ===================================================== */
.error-page {
    padding: 120px 24px 80px;
    text-align: center;
    min-height: 70vh;
    display: flex;
    align-items: center;
}
.error-page__inner { max-width: 700px; margin: 0 auto; }
.error-page__visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
}
.error-page__num {
    font-family: var(--font-heading);
    font-size: clamp(4rem, 10vw, 7rem);
    font-weight: 900;
    color: var(--c-gray-200);
    line-height: 1;
}
.error-page__icon { flex-shrink: 0; }
.error-page__title {
    font-family: var(--font-heading);
    font-size: 1.8rem; font-weight: 900;
    color: var(--brand); margin-bottom: 12px;
}
.error-page__desc {
    font-size: 1.05rem; color: var(--c-gray-500);
    line-height: 1.8; margin-bottom: 32px;
}
.error-page__links {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}
.error-page__popular { text-align: left; }
.error-page__popular h2 {
    font-family: var(--font-heading);
    font-size: 1rem; font-weight: 900;
    color: var(--brand); margin-bottom: 16px;
    text-align: center;
}
.error-page__popular-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.error-page__popular-grid a {
    display: block;
    padding: 12px 16px;
    background: var(--bg);
    border: 1px solid var(--c-gray-200);
    border-radius: var(--radius-sm);
    font-size: 0.92rem; font-weight: 600;
    color: var(--c-gray-700);
    text-decoration: none;
    transition: all var(--duration) var(--ease);
}
.error-page__popular-grid a:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--c-white);
}


/* =====================================================
   TOOL INDEX PAGE
   ===================================================== */
.tools-index__grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.tools-index__card {
    display: flex; align-items: center; gap: 16px;
    padding: 24px; background: var(--c-white);
    border: 1px solid var(--c-gray-200); border-radius: var(--radius-lg);
    text-decoration: none; color: var(--c-gray-700);
    transition: all var(--duration) var(--ease);
}
.tools-index__card:hover {
    border-color: var(--accent); transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}
.tools-index__card--featured {
    border: 2px solid var(--gold);
    box-shadow: 0 4px 20px rgba(232,185,49,0.1);
}
.tools-index__card--soon {
    opacity: 0.55; pointer-events: none;
}
.tools-index__card--soon::after {
    content: 'SOON'; position: absolute; top: 12px; right: 12px;
    font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em;
    background: var(--c-gray-100); color: var(--c-gray-400);
    padding: 2px 8px; border-radius: var(--radius-pill);
}
.tools-index__card--soon { position: relative; }
.tools-index__card-icon {
    width: 56px; height: 56px; flex-shrink: 0;
    background: rgba(74,111,165,0.06); border: 1px solid rgba(74,111,165,0.1);
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
}
.tools-index__card-icon--gold {
    background: rgba(232,185,49,0.08); border-color: rgba(232,185,49,0.15);
}
.tools-index__card-body { flex: 1; min-width: 0; }
.tools-index__card-body h3 {
    font-family: var(--font-heading); font-size: 1rem;
    font-weight: 900; color: var(--brand); margin: 0 0 6px;
}
.tools-index__card-body p {
    font-size: 0.85rem; color: var(--c-gray-500); margin: 0 0 8px; line-height: 1.5;
}
.tools-index__card-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tools-index__tag {
    font-size: 0.72rem; font-weight: 600; padding: 2px 10px;
    border-radius: var(--radius-pill);
    background: rgba(74,111,165,0.06); color: var(--accent);
}
.tools-index__tag--hot {
    background: rgba(232,185,49,0.1); color: #B8941F;
}
.tools-index__time {
    font-size: 0.72rem; color: var(--c-gray-400); font-weight: 500;
}
.tools-index__card-arrow {
    flex-shrink: 0; color: var(--c-gray-300);
    transition: all var(--duration) var(--ease);
}
.tools-index__card:hover .tools-index__card-arrow {
    color: var(--accent); transform: translateX(4px);
}

/* =====================================================
   TOOL PAGES
   ===================================================== */
.tool-hero {
    background: var(--brand); color: #fff;
    padding: 120px 24px 60px; text-align: center;
    position: relative; overflow: hidden;
}
.tool-hero::before {
    content: ''; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 50px 50px; pointer-events: none;
}
.tool-hero__badge {
    display: inline-block; background: rgba(232,185,49,0.15);
    border: 1px solid rgba(232,185,49,0.3); color: var(--gold);
    font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em;
    padding: 5px 16px; border-radius: var(--radius-pill); margin-bottom: 16px;
    position: relative; z-index: 2;
}
.tool-hero__title {
    font-family: var(--font-heading); font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 900; line-height: 1.3; margin-bottom: 12px; position: relative; z-index: 2;
}
.tool-hero__title em { color: var(--gold); font-style: normal; }
.tool-hero__subtitle {
    font-size: 1rem; opacity: 0.9; max-width: 560px; margin: 0 auto;
    line-height: 1.7; position: relative; z-index: 2;
}

/* Tool Body */
.tool-body { padding: 60px 24px 80px; }
.tool-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
    max-width: 1000px; margin: 0 auto; align-items: start;
}
.tool-grid--full { grid-template-columns: 1fr; max-width: 720px; }

/* Tool Form */
.tool-form {
    background: var(--c-white); border: 1px solid var(--c-gray-200);
    border-radius: var(--radius-lg); padding: 32px; position: sticky; top: 100px;
}
.tool-form__instruction { font-size: 0.92rem; color: var(--c-gray-500); margin-bottom: 20px; }
.tool-form__group { margin-bottom: 20px; }
.tool-form__label {
    display: block; font-size: 0.85rem; font-weight: 700;
    color: var(--brand); margin-bottom: 8px;
}
.tool-form__input, .tool-form__select {
    width: 100%; padding: 12px 16px; border: 1px solid var(--c-gray-200);
    border-radius: var(--radius-md); font-size: 0.95rem; font-family: var(--font-body);
    color: var(--c-gray-900); background: var(--bg); transition: border-color var(--duration) var(--ease);
}
.tool-form__input:focus, .tool-form__select:focus {
    outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(74,111,165,0.1);
}
.tool-form__range { width: 100%; accent-color: var(--accent); }
.tool-form__star-input { display: flex; align-items: center; gap: 12px; }
.tool-form__range-val {
    font-size: 1.4rem; font-weight: 900; color: var(--accent); min-width: 40px;
}
.tool-form__submit { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; }

/* Checklist */
.tool-checklist { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.tool-check {
    display: flex; align-items: center; gap: 12px; cursor: pointer;
    padding: 12px 16px; border: 1px solid var(--c-gray-200); border-radius: var(--radius-md);
    transition: all var(--duration) var(--ease); font-size: 0.92rem;
}
.tool-check:hover { border-color: var(--accent); background: rgba(74,111,165,0.02); }
.tool-check input { display: none; }
.tool-check__box {
    width: 22px; height: 22px; border: 2px solid var(--c-gray-300);
    border-radius: 4px; flex-shrink: 0; display: flex; align-items: center;
    justify-content: center; transition: all var(--duration) var(--ease);
}
.tool-check input:checked ~ .tool-check__box {
    background: var(--accent); border-color: var(--accent);
}
.tool-check input:checked ~ .tool-check__box::after {
    content: '✓'; color: #fff; font-size: 14px; font-weight: 700;
}
.tool-check input:checked ~ .tool-check__text { color: var(--brand); font-weight: 600; }

/* Tool Result */
.tool-result {
    background: var(--c-white); border: 1px solid var(--c-gray-200);
    border-radius: var(--radius-lg); padding: 32px; text-align: center;
}
.tool-result--wide { max-width: 720px; margin: 0 auto; }

/* 證照查詢：結果與長按鈕依容器換行，不讓 grid 的內容最小寬度撐開手機畫面。 */
.page-license-checker .tool-grid--full { grid-template-columns: minmax(0, 1fr); }
.page-license-checker .tool-result--wide { width: 100%; min-width: 0; }
.page-license-checker .btn {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
}

.tool-result__score-ring { width: 140px; height: 140px; margin: 0 auto 20px; position: relative; }
.tool-result__ring-svg { width: 100%; height: 100%; }
.tool-result__score-text {
    position: absolute; inset: 0; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
}
.tool-result__score-num { font-size: 2.2rem; font-weight: 900; color: var(--brand); line-height: 1; }
.tool-result__score-label { font-size: 0.75rem; color: var(--c-gray-500); margin-top: 4px; }
.tool-result__grade { margin-bottom: 20px; }
.tool-result__grade-badge {
    display: inline-block; padding: 6px 20px; border-radius: var(--radius-pill);
    font-size: 0.88rem; font-weight: 700;
}
.tool-result__grade-badge--excellent { background: rgba(39,174,96,0.1); color: #27AE60; }
.tool-result__grade-badge--good { background: rgba(74,111,165,0.1); color: #4A6FA5; }
.tool-result__grade-badge--warning { background: rgba(232,185,49,0.1); color: #B8941F; }
.tool-result__grade-badge--danger { background: rgba(231,76,60,0.1); color: #E74C3C; }
.tool-result__result-title { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 900; color: var(--brand); margin-bottom: 24px; }
.tool-result__headline { margin-bottom: 24px; }
.tool-result__hero-stat {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.tool-result__big-num { display: block; font-size: 1.6rem; font-weight: 900; color: var(--accent); }
.tool-result__big-label { display: block; font-size: 0.75rem; color: var(--c-gray-500); margin-top: 4px; }

/* Detail Grid */
.tool-result__detail-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
    margin-bottom: 20px; text-align: left;
}
.tool-result__detail-item {
    padding: 14px; background: var(--bg); border-radius: var(--radius-md);
}
.tool-result__detail-label { display: block; font-size: 0.75rem; color: var(--c-gray-500); margin-bottom: 4px; }
.tool-result__detail-value { display: block; font-size: 1.1rem; font-weight: 900; color: var(--brand); }
.tool-result__detail-note { display: block; font-size: 0.75rem; color: var(--c-gray-400); margin-top: 2px; }

/* Recommendations */
.tool-result__reco { text-align: left; margin-top: 20px; padding: 20px; background: var(--bg); border-radius: var(--radius-md); }
.tool-result__reco h4 { font-size: 0.88rem; font-weight: 900; color: var(--brand); margin-bottom: 10px; }
.tool-result__reco ul { padding-left: 20px; margin: 0; }
.tool-result__reco li { font-size: 0.88rem; color: var(--c-gray-600); line-height: 1.7; margin-bottom: 6px; }
.tool-result__reco a { color: var(--accent); font-weight: 600; }
.tool-result__source { font-size: 0.75rem; color: var(--c-gray-400); margin-top: 16px; text-align: left; }

/* CTA */
.tool-result__cta-box {
    margin-top: 24px; padding: 24px; background: var(--bg);
    border-radius: var(--radius-md); display: flex; flex-direction: column; gap: 10px; align-items: center;
}
.tool-result__cta-box p { font-size: 0.92rem; font-weight: 700; color: var(--brand); margin: 0 0 8px; }
.tool-result__line-cta { margin-top: 16px; }

/* Quiz (priority-sorter) */
.tool-quiz {
    background: var(--c-white); border: 1px solid var(--c-gray-200);
    border-radius: var(--radius-lg); padding: 40px 32px;
}
.tool-quiz__progress {
    height: 6px; background: var(--c-gray-100); border-radius: 3px;
    margin-bottom: 20px; overflow: hidden;
}
.tool-quiz__progress-bar {
    height: 100%; background: var(--accent); border-radius: 3px;
    transition: width 0.4s ease;
}
.tool-quiz__step { font-size: 0.78rem; font-weight: 700; color: var(--c-gray-400); margin-bottom: 12px; letter-spacing: 0.05em; }
.tool-quiz__question { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 900; color: var(--brand); margin-bottom: 24px; line-height: 1.4; }
.tool-quiz__options { display: flex; flex-direction: column; gap: 10px; }
.tool-quiz__option {
    display: block; width: 100%; text-align: left; padding: 16px 20px;
    border: 1px solid var(--c-gray-200); border-radius: var(--radius-md);
    background: var(--bg); font-size: 0.95rem; color: var(--c-gray-700);
    cursor: pointer; transition: all var(--duration) var(--ease); font-family: var(--font-body);
}
.tool-quiz__option:hover {
    border-color: var(--accent); background: rgba(74,111,165,0.04);
    color: var(--brand); transform: translateX(4px);
}

/* Priority Cards */
.tool-result__priority-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.tool-priority-card {
    display: flex; align-items: center; gap: 16px; padding: 16px 20px;
    border: 1px solid var(--c-gray-200); border-radius: var(--radius-md);
    text-decoration: none; color: var(--c-gray-700); background: var(--c-white);
    transition: all var(--duration) var(--ease); text-align: left;
}
.tool-priority-card:hover { border-color: var(--accent); transform: translateX(4px); box-shadow: var(--shadow-sm); }
.tool-priority-card--high { border-left: 3px solid #E74C3C; }
.tool-priority-card--mid { border-left: 3px solid #E8B931; }
.tool-priority-card--low { border-left: 3px solid #27AE60; }
.tool-priority-card__rank { font-size: 1.1rem; font-weight: 900; color: var(--accent); min-width: 30px; }
.tool-priority-card__icon { font-size: 1.4rem; }
.tool-priority-card__body { flex: 1; min-width: 0; }
.tool-priority-card__body h4 { font-size: 0.95rem; font-weight: 900; color: var(--brand); margin: 0 0 3px; }
.tool-priority-card__body p { font-size: 0.82rem; color: var(--c-gray-500); margin: 0 0 6px; }
.tool-priority-card__bar { height: 4px; background: var(--c-gray-100); border-radius: 2px; overflow: hidden; }
.tool-priority-card__bar-fill { height: 100%; background: var(--accent); border-radius: 2px; transition: width 0.6s ease; }
.tool-priority-card__urgency { font-size: 0.72rem; font-weight: 700; white-space: nowrap; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero__cta-group { justify-content: center; }
    .hero__subtitle { margin: 0 auto 40px; }
    .hero__visual { display: none; }

    .mega-dropdown { width: 600px; }
    .mega-dropdown__inner { grid-template-columns: repeat(2, 1fr); }
    .mega-dropdown--tools { width: 600px; }
    .mega-dropdown__inner--tools { grid-template-columns: repeat(2, 1fr); }

    .tools-showcase__grid { grid-template-columns: repeat(2, 1fr); }
    .knowledge__grid { grid-template-columns: repeat(2, 1fr); }
    .industries__grid { grid-template-columns: repeat(2, 1fr); }
    .footer-brand-banner { flex-direction: column; align-items: flex-start; gap: var(--space-sm); }
    .footer-contact { flex-direction: column; gap: 6px; }
    .footer-inner { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    /* Header Mobile: logo left + hamburger right */
    .header-cta { display: none; }
    .header-inner { height: 56px; justify-content: space-between; }
    .logo img { height: 36px; }

    /* Search icon on mobile: smaller, near hamburger */
    .header-search {
        width: 36px; height: 36px;
        margin-left: auto; margin-right: 4px;
    }

    /* Hamburger button */
    .nav-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        background: none; border: none; cursor: pointer;
        padding: 8px;
        z-index: 1010;
    }
    .nav-toggle__bar {
        display: block; width: 22px; height: 2px;
        background: #fff; border-radius: 2px;
        transition: transform 0.3s ease, opacity 0.2s ease;
    }
    .nav-toggle.is-open .nav-toggle__bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .nav-toggle.is-open .nav-toggle__bar:nth-child(2) { opacity: 0; }
    .nav-toggle.is-open .nav-toggle__bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Slide-out panel */
    .main-nav {
        display: block !important;
        position: fixed;
        top: 56px; right: -300px;
        width: 280px; height: calc(100vh - 56px);
        background: rgba(26,39,68,0.99);
        backdrop-filter: blur(16px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        transition: right 0.3s cubic-bezier(0.4,0,0.2,1);
        z-index: 999;
        padding: 16px 0 100px;
        border-left: 1px solid rgba(255,255,255,0.08);
    }
    .main-nav.is-open { right: 0; }

    /* Overlay */
    .nav-overlay {
        display: none;
        position: fixed; inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 998;
    }
    .nav-overlay.is-visible { display: block; }

    /* Mobile nav layout */
    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    .nav-item { position: relative; }
    .nav-link {
        padding: 14px 24px;
        font-size: 0.95rem;
        color: rgba(255,255,255,0.8);
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }
    .nav-link:hover,
    .nav-link:active { color: #fff; background: rgba(255,255,255,0.04); }
    .nav-item.is-active > .nav-link { color: var(--gold); }
    .nav-item.is-active > .nav-link::after { display: none; }
    .caret { display: none; }

    /* Hide mega/dropdown menus in slide-out — use direct links instead */
    .dropdown, .mega-dropdown {
        display: none !important;
    }

    /* Mobile panel LINE CTA at bottom */
    .main-nav::after {
        content: '';
        display: block;
        height: 60px;
    }

    .site-main { padding-top: 56px; }
    .hero { min-height: auto; padding: 48px 24px; }

    .lifecycle__grid { grid-template-columns: 1fr; }
    .tools-showcase__grid { grid-template-columns: 1fr; }
    .knowledge__grid { grid-template-columns: 1fr; }
    .knowledge__report-inner { flex-direction: column; text-align: center; }
    .industries__grid { grid-template-columns: 1fr 1fr; }
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .bento-card--hero {
        grid-column: auto;
        grid-row: auto;
    }
    .bento-card--wide {
        grid-column: auto;
    }
    .bento-wide__inner {
        grid-template-columns: 1fr;
    }
    .bento-wide__links {
        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.08);
    }
    .bento-wide__link + .bento-wide__link {
        border-top: 1px solid rgba(255,255,255,0.08);
    }
    .cta-block__inner--dual { grid-template-columns: 1fr; }
    .bottom-cta-banner__grid { grid-template-columns: 1fr; }
    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
    .footer-brand-banner {
        flex-direction: column; align-items: center; text-align: center;
        gap: var(--space-sm); padding-bottom: 28px; margin-bottom: 28px;
    }
    .footer-contact { flex-direction: column; align-items: center; gap: 6px; }
    .footer-bottom { flex-direction: column-reverse; gap: var(--space-xs); text-align: center; }
    .footer-bottom p { font-size: 0.72rem; }
    .footer-legal { flex-wrap: wrap; justify-content: center; gap: 4px 12px; font-size: 0.72rem; }

    /* About page mobile */
    .about-hero { padding: 80px 24px 60px; }
    .about-diff-grid { grid-template-columns: 1fr; }
    .about-method-grid { grid-template-columns: 1fr; }
    .about-links-grid { grid-template-columns: 1fr; }

    /* Services index mobile */
    .svc-index-hero { padding: 80px 24px 60px; }
    .svc-category__grid { grid-template-columns: 1fr; }
    .svc-category__grid--plans { grid-template-columns: 1fr; }
    .svc-category--featured { margin-left: -16px; margin-right: -16px; padding: 32px 16px; }

    /* Pricing cards mobile */
    .pricing-grid { grid-template-columns: 1fr; max-width: 420px; }
    .pricing-card--featured { transform: none; }
    .pricing-card--featured:hover { transform: translateY(-8px); }
    .pricing-combo { flex-direction: column; text-align: center; padding: 24px 20px; }
    .pricing-combo .btn { width: 100%; }

    /* Deep service page components mobile */
    .compare-grid { grid-template-columns: 1fr; }
    .stat-grid-4 { grid-template-columns: 1fr 1fr; }
    .feature-grid-3 { grid-template-columns: 1fr; }
    .industry-fit-grid { grid-template-columns: 1fr; }
    .industry-data-grid { grid-template-columns: 1fr; }
    .combo-grid { grid-template-columns: 1fr; }
    .combo-reads { flex-direction: column; align-items: flex-start; }
    .process-steps::before { left: 23px; }

    /* Tool pages mobile */
    .tool-hero { padding: 80px 24px 48px; }
    .tools-index__grid { grid-template-columns: 1fr; }
    .tool-grid { grid-template-columns: 1fr; gap: 24px; }
    .tool-form { position: static; }
    .tool-result__detail-grid { grid-template-columns: 1fr; }
    .tool-result__hero-stat { grid-template-columns: 1fr; gap: 8px; }
    .tool-priority-card { flex-wrap: wrap; }
    .tool-priority-card__urgency { width: 100%; text-align: right; }

    /* Industry pricing mobile */
    .industry-pricing__entry { flex-direction: column; text-align: center; }
    .industry-pricing__entry-left { flex-direction: column; }
    .industry-pricing__entry-right { flex-direction: column; width: 100%; }
    .industry-pricing__entry-right .btn { width: 100%; }
    .industry-pricing__grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto 32px; }
    .industry-pricing__card-ribbon { display: none; }
    .industry-pricing__two-col { grid-template-columns: 1fr; }
    .industry-selector__pills { justify-content: center; }

    /* Before/After mobile */
    .before-after-grid { grid-template-columns: 1fr; }

    /* Contact page mobile */
    .contact-hero { padding: 80px 24px 60px; }
    .contact-cards-grid { grid-template-columns: 1fr; gap: 16px; }
    .contact-info-row { grid-template-columns: 1fr; }

    /* 404 page mobile */
    .error-page { padding: 80px 24px 60px; }
    .error-page__popular-grid { grid-template-columns: 1fr; }

    /* Legal pages mobile */
    .legal-page { padding: 80px 24px 60px; }

    /* Why AaBore: card stacks vertically on mobile */
    .why-card {
        flex-direction: column;
        gap: 12px;
        padding: 24px 20px;
    }
    .why-card__number {
        width: 40px; height: 40px;
        font-size: 0.95rem;
    }
    .why-card__title { font-size: 1.05rem; }
    .why-card__desc { font-size: 0.92rem; }
}

@media (max-width: 480px) {
    .hero__title { font-size: 1.8rem; }
    .hero__cta-group { flex-direction: column; align-items: center; }
    .industries__grid { grid-template-columns: 1fr; }
}


/* =====================================================
   HOMEPAGE REBUILD v4 — New Sections
   首頁全面重建版新增樣式 (2026-03-22)
   ===================================================== */

/* --- Pain Point Section --- */
.hp-pain {
    padding: 80px 24px;
    background: #fff;
}
.hp-pain__grid {
    display: grid;
    grid-template-columns: 0.45fr 0.55fr;
    gap: 60px;
    align-items: center;
}
.hp-pain__stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.hp-pain__stat-item {
    background: var(--bg);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    border-left: 4px solid var(--gold);
    transition: transform var(--duration) var(--ease);
}
.hp-pain__stat-item:hover {
    transform: translateX(6px);
}
.hp-pain__stat-big {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--brand);
    line-height: 1;
    margin-bottom: 6px;
}
.hp-pain__stat-big small {
    font-size: 1.2rem;
    color: var(--gold);
    font-weight: 700;
}
.hp-pain__stat-desc {
    display: block;
    font-size: 0.88rem;
    color: var(--c-gray-500);
    line-height: 1.5;
}


/* --- Homepage Services Grid --- */
.hp-services {
    padding: 96px 24px;
    background: var(--bg);
}
.hp-svc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.hp-svc-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 28px 24px;
    border: 1px solid var(--c-gray-200);
    transition: all var(--duration) var(--ease);
}
.hp-svc-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-card);
    transform: translateY(-4px);
}
.hp-svc-card--featured {
    border-color: rgba(232,185,49,0.3);
    background: linear-gradient(135deg, #fff 0%, rgba(232,185,49,0.04) 100%);
}
.hp-svc-card--featured:hover {
    border-color: var(--gold);
}
.hp-svc-card__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.hp-svc-card__head h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--brand);
    margin: 0;
}
.hp-svc-card > p {
    font-size: 0.88rem;
    color: var(--c-gray-500);
    line-height: 1.7;
    margin-bottom: 16px;
}
.hp-svc-card__links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.hp-svc-card__links a {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent);
    background: rgba(74,111,165,0.06);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    transition: all var(--duration) var(--ease);
}
.hp-svc-card__links a:hover {
    background: var(--accent);
    color: #fff;
}


/* --- Case Studies / Social Proof --- */
.hp-cases {
    padding: 96px 24px;
    background: #fff;
}
.hp-cases__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.hp-case-card {
    display: flex;
    flex-direction: column;
    background: var(--bg);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    border: 1px solid var(--c-gray-200);
    text-decoration: none;
    color: var(--c-gray-900);
    transition: all var(--duration) var(--ease);
    position: relative;
}
.hp-case-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-card);
    transform: translateY(-4px);
    color: var(--c-gray-900);
}
.hp-case-card__badge {
    display: inline-block;
    background: var(--brand);
    color: var(--gold);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    margin-bottom: 16px;
    align-self: flex-start;
}
.hp-case-card__metrics {
    margin-bottom: 16px;
}
.hp-case-card__metric {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 900;
}
.hp-case-card__before {
    font-size: 1.1rem;
    color: var(--c-gray-500);
    text-decoration: line-through;
    text-decoration-color: var(--c-danger);
}
.hp-case-card__arrow {
    font-size: 1.2rem;
    color: var(--c-gray-300);
}
.hp-case-card__after {
    font-size: 1.4rem;
    color: var(--c-success);
}
.hp-case-card h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 900;
    color: var(--brand);
    margin-bottom: 8px;
}
.hp-case-card > p {
    font-size: 0.88rem;
    color: var(--c-gray-500);
    line-height: 1.7;
    flex: 1;
    margin-bottom: 12px;
}
.hp-case-card__cta {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
}

/* --- Client Testimonials --- */
.hp-testimonials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 32px;
}
.hp-testimonial {
    background: var(--bg);
    border-radius: var(--radius-md);
    padding: 24px 20px;
    border: 1px solid var(--c-gray-200);
    position: relative;
}
.hp-testimonial::before {
    content: '\201C';
    font-family: Georgia, serif;
    font-size: 3rem;
    color: var(--gold);
    opacity: 0.3;
    position: absolute;
    top: 8px;
    left: 16px;
    line-height: 1;
}
.hp-testimonial__quote {
    font-size: 0.88rem;
    color: var(--c-gray-700);
    line-height: 1.7;
    margin: 0 0 12px;
    padding-top: 8px;
}
.hp-testimonial__author {
    display: flex;
    align-items: center;
    gap: 8px;
}
.hp-testimonial__name {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--c-gray-900);
}
.hp-testimonial__role {
    font-size: 0.78rem;
    color: var(--c-gray-500);
}
.hp-testimonial__role::before {
    content: '—';
    margin-right: 4px;
}


/* --- Reports Showcase --- */
.hp-reports {
    padding: 96px 24px;
    background: var(--bg);
}
.hp-reports__featured {
    margin-bottom: 24px;
}
.hp-report-hero {
    display: block;
    background: var(--brand);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    color: #fff;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all var(--duration) var(--ease);
}
.hp-report-hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}
.hp-report-hero:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-3px);
    color: #fff;
}
.hp-report-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(232,185,49,0.15);
    border: 1px solid rgba(232,185,49,0.3);
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}
.hp-report-hero h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
}
.hp-report-hero p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.55);
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
}
.hp-reports__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.hp-report-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: var(--radius-md);
    padding: 24px 20px;
    border: 1px solid var(--c-gray-200);
    text-decoration: none;
    color: var(--c-gray-900);
    transition: all var(--duration) var(--ease);
}
.hp-report-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-card);
    transform: translateY(-3px);
    color: var(--c-gray-900);
}
.hp-report-card i {
    margin-bottom: 12px;
}
.hp-report-card h3 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 900;
    color: var(--brand);
    margin-bottom: 6px;
}
.hp-report-card p {
    font-size: 0.82rem;
    color: var(--c-gray-500);
    line-height: 1.6;
}


/* --- Homepage Rebuild Responsive --- */
@media (max-width: 1024px) {
    .hp-pain__grid { grid-template-columns: 1fr; gap: 40px; }
    .hp-pain__stats { flex-direction: row; flex-wrap: wrap; }
    .hp-pain__stat-item { flex: 1; min-width: 180px; }
    .hp-svc-grid { grid-template-columns: repeat(2, 1fr); }
    .hp-cases__grid { grid-template-columns: repeat(2, 1fr); }
    .hp-testimonials { grid-template-columns: repeat(2, 1fr); }
    .hp-reports__grid { grid-template-columns: repeat(2, 1fr); }
    .knowledge__grid[style] { grid-template-columns: repeat(2, 1fr) !important; }
    .industries__grid[style] { grid-template-columns: repeat(3, 1fr) !important; }
}

@media (max-width: 768px) {
    .hp-pain__stats { flex-direction: column; }
    .hp-pain__stat-item { min-width: auto; }
    .hp-svc-grid { grid-template-columns: 1fr; }
    .hp-cases__grid { grid-template-columns: 1fr; }
    .hp-testimonials { grid-template-columns: 1fr; }
    .hp-reports__grid { grid-template-columns: 1fr 1fr; }
    .hp-report-hero { padding: 28px 24px; }
    .hp-report-hero h3 { font-size: 1.2rem; }
    .knowledge__grid[style] { grid-template-columns: 1fr !important; }
    .industries__grid[style] { grid-template-columns: 1fr 1fr !important; }
}

@media (max-width: 480px) {
    .hp-reports__grid { grid-template-columns: 1fr; }
    .industries__grid[style] { grid-template-columns: 1fr !important; }
}


/* =====================================================
   Article-Wrap Template (45 articles)
   Used by: P2/P5/P7/P8 cluster articles
   Matches v2 (service-content) visual style
   ===================================================== */

/* --- Article Layout (with sidebar) --- */
.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;  /* minmax(0,…)：欄寬不被內文最小寬度撐開 */
    gap: 2.5rem;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}
.article-layout .article-wrap {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
    /* 網格項目若保留 .article-wrap 的 margin:0 auto，就不會撐滿格子而改用內容寬度，
       手機版被內文撐到 984px、整頁橫向溢出（2026-09-15 修） */
    margin-left: 0;
    margin-right: 0;
    min-width: 0;
    padding-bottom: 0;   /* 白底欄底部留白 3rem 在 cta-block、related-posts 之後露出一條白條，2026-09-17 收掉 */
}
@media (max-width: 1024px) {
    .article-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* --- Container --- */
.article-wrap {
    max-width: 980px;
    margin: 0 auto;
    padding: 2rem 24px 3rem;
    background: #fff;
}

/* --- Article Title --- */
.article-wrap h1 {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    color: var(--brand);
    line-height: 1.35;
    margin-bottom: 1rem;
}

/* --- Meta Line (date / reading time) --- */
.article-wrap .meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    font-size: 0.85rem;
    color: var(--c-gray-500);
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--c-gray-200);
}

/* --- Table of Contents --- */
.article-wrap .toc {
    background: var(--bg);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin-bottom: 2.5rem;
}
.article-wrap .toc h3 {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1rem;
    color: var(--brand);
    margin-bottom: 0.75rem;
}
.article-wrap .toc ol {
    padding-left: 1.25rem;
    margin: 0;
}
.article-wrap .toc li {
    padding: 0.3rem 0;
    font-size: 0.9rem;
    line-height: 1.5;
}
.article-wrap .toc a {
    color: var(--brand);
    text-decoration: none;
    font-weight: 500;
}
.article-wrap .toc a:hover {
    color: var(--accent);
}

/* --- Section Headings --- */
.article-wrap h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--brand);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-sm);
    line-height: 1.4;
}
.article-wrap h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--brand);
    margin-top: var(--space-md);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

/* --- Paragraphs & Lists --- */
.article-wrap p {
    color: var(--c-gray-700);
    line-height: 1.8;
    margin-bottom: var(--space-sm);
    font-size: 1rem;
}
.article-wrap ul,
.article-wrap ol {
    color: var(--c-gray-700);
    line-height: 1.8;
    margin-bottom: var(--space-sm);
    padding-left: 1.5rem;
}
.article-wrap li {
    margin-bottom: 0.5rem;
}
.article-wrap strong {
    color: var(--brand);
    font-weight: 700;
}
.article-wrap a {
    color: var(--accent);
    font-weight: 500;
    text-decoration: none;
    transition: color var(--duration) var(--ease);
}
.article-wrap a:hover {
    color: var(--gold-dark);
}

/* --- Tables --- */
.article-wrap table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--space-md);
    font-size: 0.92rem;
}
.article-wrap th {
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    text-align: left;
    padding: 12px 16px;
    font-size: 0.85rem;
}
.article-wrap td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--c-gray-200);
    color: var(--c-gray-700);
    line-height: 1.6;
}
.article-wrap tr:nth-child(even) td {
    background: var(--bg);
}
.article-wrap code {
    background: var(--bg);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.88em;
    color: var(--accent);
    overflow-wrap: anywhere;   /* 長網址（如 UTM 參數）在手機上換行，不撐破版面 */
}
.article-wrap pre {
    max-width: 100%;
    overflow-x: auto;          /* 程式碼範本（JSON-LD）保留原排版，在區塊內橫向捲動 */
}

/* --- Data Box --- */
.data-box {
    background: var(--bg);
    border: 1px solid var(--c-gray-200);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin-bottom: var(--space-md);
}
.data-box .label {
    font-weight: 900;
    font-size: 0.9rem;
    color: var(--brand);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--gold);
}
.data-box p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}
.data-box table {
    margin-top: 0.75rem;
}

/* --- CTA Inline --- */
.cta-inline {
    background: var(--bg);
    border-left: 4px solid var(--gold);
    border-radius: 0 12px 12px 0;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
}
.cta-inline h3 {
    font-size: 1.05rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
}
.cta-inline p {
    font-size: 0.92rem;
    margin-bottom: 1rem;
}
.cta-inline a {
    display: inline-block;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--accent);
    margin-right: 1.5rem;
    margin-bottom: 0.5rem;
}
.cta-inline a:hover {
    color: var(--gold-dark);
}

/* --- FAQ (article-wrap version) --- */
.article-wrap .faq {
    margin-bottom: var(--space-md);
}
.article-wrap .faq details {
    border: 1px solid var(--c-gray-200);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    background: var(--bg);
}
.article-wrap .faq summary {
    padding: 16px 24px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--brand);
    cursor: pointer;
    list-style: none;
    transition: background var(--duration) var(--ease);
}
.article-wrap .faq summary::-webkit-details-marker { display: none; }
.article-wrap .faq summary::before {
    content: '+';
    display: inline-block;
    width: 20px;
    font-weight: 400;
    color: var(--c-gray-500);
    margin-right: 8px;
}
.article-wrap .faq details[open] summary::before { content: '−'; }
.article-wrap .faq summary:hover { background: var(--c-white); }
.article-wrap .faq details[open] summary {
    border-bottom: 1px solid var(--c-gray-200);
    background: var(--c-white);
}
.article-wrap .faq .answer {
    padding: 16px 24px;
    color: var(--c-gray-500);
    line-height: 1.7;
    font-size: 0.92rem;
    background: var(--c-white);
}

/* =====================================================
   Exit Intent 滑入卡片（2026-08-21 取代全螢幕彈窗）
   右下角、不遮蔽內容、位於 LINE 浮動鈕上方
   ===================================================== */
.exit-slide {
    position: fixed; bottom: 88px; right: 24px; z-index: 899;
    width: 340px; max-width: calc(100vw - 48px);
    background: #fff; border: 1px solid var(--c-gray-300);
    border-radius: 14px; padding: 1.15rem 1.25rem;
    box-shadow: 0 12px 40px rgba(26,39,68,.16);
    opacity: 0; visibility: hidden; transform: translateY(16px);
    transition: opacity .35s ease, transform .35s ease, visibility .35s;
    pointer-events: none;
}
.exit-slide.is-active { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.exit-slide__close {
    position: absolute; top: 6px; right: 10px;
    background: none; border: none; font-size: 1.35rem; line-height: 1;
    color: var(--c-gray-400); cursor: pointer; padding: 4px;
}
.exit-slide__close:hover { color: var(--c-gray-900); }
.exit-slide__body { display: flex; gap: .85rem; align-items: flex-start; }
.exit-slide__icon { flex-shrink: 0; margin-top: 2px; }
.exit-slide__text {
    font-size: .92rem; font-weight: 700; color: var(--c-navy);
    margin: 0 0 .65rem; line-height: 1.5;
}
.exit-slide__btn {
    display: inline-block; background: var(--c-line); color: #fff;
    padding: .5rem 1.1rem; border-radius: var(--radius-pill);
    font-size: .85rem; font-weight: 700; text-decoration: none;
    transition: background .2s, transform .2s;
}
.exit-slide__btn:hover { background: #05B14A; color: #fff; transform: translateY(-1px); }
.exit-slide__note { margin: .6rem 0 0; font-size: .72rem; color: var(--c-gray-500); }
@media (max-width: 900px) { .exit-slide { display: none; } }

/* 舊全螢幕彈窗樣式（.exit-popup）已於 2026-08-21 移除 */


/* =====================================================
   Content Upgrade CTA（鉛磁鐵下載）
   ===================================================== */
.content-upgrade {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8edf8 100%);
    border: 2px solid var(--accent-lt);
    border-radius: 12px; padding: 2rem;
    margin: 2rem 0; text-align: center;
}
.content-upgrade__badge {
    display: inline-block; background: var(--accent);
    color: #fff; font-size: .75rem; font-weight: 700;
    padding: 4px 12px; border-radius: 20px;
    margin-bottom: .75rem; letter-spacing: .02em;
}
.content-upgrade__title {
    font-size: 1.25rem; font-weight: 700; color: var(--brand);
    margin: 0 0 .5rem;
}
.content-upgrade__desc {
    font-size: .95rem; color: var(--c-gray-700);
    margin: 0 0 1.25rem; line-height: 1.6;
}
.content-upgrade__btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--c-line); color: #fff;
    padding: 12px 24px; border-radius: 8px;
    font-size: 1rem; font-weight: 700;
    text-decoration: none; transition: background .2s, transform .2s;
}
.content-upgrade__btn:hover {
    background: #05B14A; color: #fff; transform: translateY(-1px);
}
.content-upgrade__note {
    margin: .5rem 0 0; font-size: .8rem; color: var(--c-gray-500);
}

/* =====================================================
   Partner City Showcase
   ===================================================== */
.partner-showcase { padding: 4rem 0; background: var(--bg); }
.partner-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem; margin-top: 2rem;
}
.partner-card {
    background: #fff; border-radius: 12px;
    padding: 1.5rem; border: 1px solid var(--c-gray-200);
    transition: box-shadow .2s, transform .2s;
}
.partner-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,.08);
    transform: translateY(-2px);
}
.partner-card__type {
    display: inline-block; background: var(--gold-lt);
    color: var(--brand); font-size: .75rem; font-weight: 700;
    padding: 2px 10px; border-radius: 12px;
    margin-bottom: .75rem;
}
.partner-card__name {
    font-size: 1.1rem; font-weight: 700; color: var(--brand);
    margin: 0 0 .5rem;
}
.partner-card__result {
    font-size: .9rem; color: var(--c-gray-700);
    line-height: 1.6; margin: 0 0 1rem;
}
.partner-card__services { display: flex; flex-wrap: wrap; gap: 6px; }
.partner-card__tag {
    font-size: .75rem; color: var(--accent);
    border: 1px solid var(--accent-lt); border-radius: 4px;
    padding: 2px 8px; text-decoration: none;
    transition: background .2s;
}
.partner-card__tag:hover {
    background: var(--accent); color: #fff;
}

/* --- Article-Wrap Responsive --- */
@media (max-width: 768px) {
    .article-wrap {
        padding: 1.5rem 16px 2rem;
    }
    .article-wrap h1 {
        font-size: 1.5rem;
    }
    .article-wrap h2 {
        font-size: 1.25rem;
        margin-top: 2.5rem;
    }
    .article-wrap .toc {
        padding: 1.25rem 1.5rem;
    }
    .article-wrap table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .data-box {
        padding: 1.25rem 1.5rem;
    }
    .cta-inline {
        padding: 1.25rem 1.5rem;
    }
    .article-wrap .faq summary {
        padding: 14px 16px;
        font-size: 0.9rem;
    }
    .article-wrap .faq .answer {
        padding: 14px 16px;
    }
}
