/* ============================================================
   Hikari Theme — main.css v5.1
   暖色質感 Warm Craftsman Design System
   YAMAHA 光創機車 — hikari.tw
   ============================================================ */

/* ==========================================================
   1. CSS Custom Properties (Design Tokens)
   ========================================================== */
:root {
    /* Backgrounds — Warm Craftsman */
    --bg-primary: #faf8f6;
    --bg-secondary: #ede9e3;
    --bg-card: #ffffff;
    /* Accent — refined energetic orange */
    --accent: #f75a00;
    --accent-light: #ff8533;
    --accent-dark: #c94500;

    /* Metal / Warm Silver */
    --metal: #8b8680;
    --metal-light: #aaa39d;

    /* Text — Warm tones */
    --text-primary: #2a2420;
    --text-muted: #7a7570;

    /* Borders */
    --border: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(247, 90, 0, 0.35);

    /* Fonts */
    --font-display: 'Bebas Neue', 'Noto Sans TC', cursive;
    --font-body: 'Inter', 'Noto Sans TC', sans-serif;
    --font-chinese: 'Noto Sans TC', sans-serif;

    /* Spacing */
    --container-max: 1200px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-pill: 50px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.6s ease;

    /* Shadows — Warm */
    --shadow-lift: 0 12px 32px rgba(0, 0, 0, 0.06);
    --shadow-glow: 0 0 24px rgba(247, 90, 0, 0.08);

    /* Typography Scale */
    --font-size-sm: 0.85rem;
    --font-size-lg: 1.125rem;

    /* Layout */
    --header-h: 70px;

    /* Spacing Scale */
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;

    /* Additional Text */
    --text-secondary: #7a7570;

    /* LINE Brand Colors */
    --color-line: #06C755;
    --color-line-hover: #05a847;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    background-image: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

ul, ol {
    list-style: none;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    border: none;
    outline: none;
    background: none;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

button {
    cursor: pointer;
}

/* ==========================================================
   3. Utility Classes
   ========================================================== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

/* .text-center, .text-accent, .mt-xl — full definitions in section 57 */

.no-results {
    text-align: center;
    color: var(--text-muted);
    padding: 3rem 0;
    font-size: 1rem;
}

/* ==========================================================
   4. Typography Base
   ========================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: var(--text-primary);
}

p {
    margin-bottom: 1rem;
}

strong {
    font-weight: 700;
}

/* ==========================================================
   5. Site Header
   ========================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 248, 246, 0.92);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 1rem 0;
    transition:
        padding var(--transition-base),
        background var(--transition-base),
        border-color var(--transition-base),
        box-shadow var(--transition-base);
}

.site-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 106, 0, 0.0) 20%,
        rgba(255, 106, 0, 0.0) 80%,
        transparent 100%
    );
    transition: background var(--transition-base);
}

.site-header.scrolled {
    padding: 0.5rem 0;
    background: rgba(250, 248, 246, 0.97);
    border-bottom-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.site-header.scrolled::after {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 106, 0, 0.25) 30%,
        rgba(255, 106, 0, 0.25) 70%,
        transparent 100%
    );
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Logo --- */
.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 0.5rem;
}

.logo--glow:hover {
    filter: drop-shadow(0 0 8px rgba(255, 106, 0, 0.4));
}

.site-logo img {
    height: 40px;
    width: auto;
}

/* Header logo: invert white image to dark */
.logo-img {
    height: 36px;
    width: auto;
    filter: invert(1);
}

/* Footer logo: keep white (on dark bg) */
.site-footer .logo-img {
    filter: none;
}

/* Logo text/dot — full definitions in section 47 */

/* --- Main Nav --- */
.main-nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.main-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    position: relative;
    padding-bottom: 4px;
    transition:
        color var(--transition-fast);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width var(--transition-base);
}

.main-nav a:hover,
.main-nav a:focus {
    color: var(--text-primary);
}

.main-nav a:hover::after,
.main-nav a:focus::after {
    width: 100%;
}

.main-nav .current-menu-item a,
.main-nav .current_page_item a {
    color: var(--text-primary);
}

.main-nav .current-menu-item a::after,
.main-nav .current_page_item a::after {
    width: 100%;
}

/* --- Header CTA --- */
.header-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--accent);
    color: #000;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition:
        background-color var(--transition-fast),
        transform var(--transition-fast),
        box-shadow var(--transition-fast);
}

.header-cta:hover {
    background-color: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255, 106, 0, 0.3);
}

.header-cta:active {
    transform: scale(0.97);
}

.header-cta svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.header-line-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: var(--color-line);
    color: #fff;
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.header-line-btn:hover {
    background: var(--color-line-hover);
    transform: translateY(-1px);
}

.header-line-btn svg {
    flex-shrink: 0;
}

/* --- Hamburger Nav Toggle (mobile) --- */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;  /* WCAG 2.5.5 觸控目標最小尺寸 44px */
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1003; /* 高於 nav overlay (1002)，確保 X 按鈕可點擊 */
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition:
        transform var(--transition-base),
        opacity var(--transition-base);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ==========================================================
   6. Hero Section (front-page.php)
   ========================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(180deg, #0d1520 0%, #1a1a2e 100%);
}

/* Warm gradient bridge from hero to content */
.hero + .section {
    position: relative;
}

.hero + .section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(180deg, rgba(42,36,32,0.15) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

/* 微光粒子感背景裝飾 */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 15% 20%, rgba(255, 106, 0, 0.5) 0%, transparent 100%),
        radial-gradient(1px 1px at 85% 15%, rgba(255, 255, 255, 0.3) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 30% 70%, rgba(255, 106, 0, 0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 70% 80%, rgba(255, 255, 255, 0.2) 0%, transparent 100%),
        radial-gradient(2px 2px at 50% 30%, rgba(255, 106, 0, 0.2) 0%, transparent 100%),
        radial-gradient(1px 1px at 10% 55%, rgba(168, 176, 192, 0.25) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 90% 60%, rgba(255, 140, 51, 0.2) 0%, transparent 100%),
        radial-gradient(1px 1px at 45% 90%, rgba(255, 255, 255, 0.15) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
    animation: heroParticles 8s ease-in-out infinite alternate;
}

/* 掃光裝飾線 */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(105deg, transparent 35%, rgba(255, 106, 0, 0.03) 50%, transparent 65%),
        linear-gradient(285deg, transparent 35%, rgba(168, 176, 192, 0.03) 50%, transparent 65%);
    pointer-events: none;
    z-index: 1;
}

@keyframes heroParticles {
    0%   { opacity: 0.6; transform: translateY(0px); }
    100% { opacity: 1;   transform: translateY(-6px); }
}

.hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(26, 31, 46, 0.4) 0%,
        rgba(26, 31, 46, 0.65) 50%,
        rgba(26, 31, 46, 0.92) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
}

.hero__tagline {
    display: inline-block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: 1rem;
    font-weight: 600;
    max-width: 100%;
    word-break: keep-all;
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 5rem);
    color: #fff;
    line-height: 1.05;
    margin-bottom: 1.25rem;
    letter-spacing: 0.02em;
}

.hero__title em {
    font-style: normal;
    color: var(--accent);
}

.hero__desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    word-break: keep-all;
}

/* Hero Full-screen Slideshow */
.hero__slideshow {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__slide {
    position: absolute;
    inset: -20px;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    animation: heroKenBurns 12s ease-in-out infinite alternate;
}

.hero__slide.active {
    opacity: 1;
}

@keyframes heroKenBurns {
    0%   { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.08) translate(-10px, -5px); }
}

.hero__slide:nth-child(even) {
    animation-direction: alternate-reverse;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center, rgba(13,21,32,0.15) 0%, rgba(13,21,32,0.35) 70%),
        linear-gradient(180deg, rgba(13,21,32,0.05) 0%, rgba(13,21,32,0.25) 50%, rgba(13,21,32,0.7) 100%);
    z-index: 1;
}

.hero__center {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    width: 100%;
    padding: 0 2rem;
    pointer-events: auto;
    box-sizing: border-box;
}

/* Hero Service Cards */
.hero__services {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.hero__service-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    color: #fff;
    text-decoration: none;
    transition: all 0.35s ease;
    flex: 1;
    max-width: 300px;
}

.hero__service-card:hover {
    background: rgba(247, 90, 0, 0.15);
    border-color: rgba(247, 90, 0, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(247, 90, 0, 0.2);
}

.hero__service-icon {
    color: var(--accent);
    flex-shrink: 0;
    display: flex;
}

.hero__service-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.4;
}

.hero__service-text strong {
    font-size: 0.95rem;
    font-weight: 700;
}

.hero__service-text small {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
}

.hero__service-arrow {
    margin-left: auto;
    font-size: 1.2rem;
    color: var(--accent);
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.3s ease;
}

.hero__service-card:hover .hero__service-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Scroll Indicator */
.hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.35);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.hero__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, rgba(247,90,0,0.6), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50%      { opacity: 1;   transform: scaleY(1); }
}

/* ==========================================================
   7. Sections (generic)
   ========================================================== */
.section {
    padding: 5rem 0;
}

.section--alt {
    background-color: var(--bg-secondary);
    border-top: 1px solid rgba(247, 90, 0, 0.08);
    border-bottom: 1px solid rgba(247, 90, 0, 0.08);
}

.section__header {
    text-align: center;
    margin-bottom: 3rem;
}

.section__title {
    font-family: var(--font-display);
    font-size: 2.25rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: 0.04em;
}

.section__subtitle {
    color: var(--text-muted);
    font-size: 1rem;
}

.section__icon {
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: center;
}

/* ==========================================================
   8. Split Layout (front-page repair section)
   — full definitions in sections 38 and 56
   ========================================================== */

/* ==========================================================
   9. Vehicle Grid & Cards
   ========================================================== */
.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.vehicle-grid.stagger > * {
    opacity: 1;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vehicle-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition:
        border-color var(--transition-base),
        transform var(--transition-base),
        box-shadow var(--transition-base);
}

.vehicle-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    transform: scaleX(0);
    transition: transform var(--transition-base);
    z-index: 2;
}

.vehicle-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1), var(--shadow-glow);
    transform: translateY(-2px);
}

.vehicle-card:hover::before {
    transform: scaleX(1);
}

/* Stretched link — 整張卡片可點 */
.vehicle-card__title a::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}

.vehicle-card__image {
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3; /* 車款圖片為正方形，4:3 比 16:9 更適合，減少裁切量 */
    position: relative;
    z-index: 0;
}

.vehicle-card__image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 40%,
        rgba(26, 31, 46, 0.5) 100%
    );
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 1;
}

.vehicle-card:hover .vehicle-card__image::after {
    opacity: 1;
}

.vehicle-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.vehicle-card:hover .vehicle-card__image img {
    transform: scale(1.07);
}

.vehicle-card__body {
    padding: 1.25rem;
}

.vehicle-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--font-body);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.vehicle-card__title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.vehicle-card__title a:hover {
    color: var(--accent);
}

.vehicle-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 0.75rem;
    margin-top: 0.75rem;
}

.vehicle-card__cc {
    font-size: 0.78rem;
    color: var(--metal);
    background: rgba(168, 176, 192, 0.08);
    border: 1px solid rgba(168, 176, 192, 0.2);
    border-radius: var(--radius-sm);
    padding: 0.2rem 0.65rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 500;
    transition: border-color var(--transition-fast), color var(--transition-fast);
}

.vehicle-card:hover .vehicle-card__cc {
    border-color: rgba(255, 106, 0, 0.3);
    color: var(--accent-light);
}

.vehicle-card__price {
    font-family: var(--font-display);
    color: var(--accent);
    font-size: 1.15rem;
    letter-spacing: 0.03em;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 8px rgba(255, 106, 0, 0.25));
}

.vehicle-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.4;
    backdrop-filter: blur(8px);
}

.vehicle-card__badge--preorder {
    background: rgba(255, 106, 0, 0.9);
    color: #fff;
    animation: badge-pulse 2s ease-in-out infinite;
}

.vehicle-card__badge--new {
    background: rgba(74, 222, 128, 0.9);
    color: #111;
}

.vehicle-card__badge--sold_out {
    background: rgba(248, 113, 113, 0.85);
    color: #fff;
}

@keyframes badge-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ==========================================================
   10. Filter Bar
   ========================================================== */
.filter-bar {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.3rem;
    min-height: 44px;
    background: rgba(168, 176, 192, 0.05);
    border: 1px solid rgba(168, 176, 192, 0.2);
    border-radius: var(--radius-pill);
    color: var(--metal);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition:
        border-color var(--transition-fast),
        color var(--transition-fast),
        background-color var(--transition-fast),
        box-shadow var(--transition-fast),
        transform var(--transition-fast);
}

.filter-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(255, 106, 0, 0.06);
    transform: translateY(-1px);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: #fff;
    border-color: var(--accent);
    font-weight: 700;
    box-shadow:
        0 4px 12px rgba(255, 106, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: none;
}

.filter-btn:active {
    transform: scale(0.97);
}

/* ==========================================================
   11. Post Cards (News Section) — full definitions in section 49
   ========================================================== */
.posts-grid.stagger > * {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.posts-grid.stagger > *:nth-child(1) { animation-delay: 0.05s; }
.posts-grid.stagger > *:nth-child(2) { animation-delay: 0.10s; }
.posts-grid.stagger > *:nth-child(3) { animation-delay: 0.15s; }
.posts-grid.stagger > *:nth-child(4) { animation-delay: 0.20s; }
.posts-grid.stagger > *:nth-child(5) { animation-delay: 0.25s; }
.posts-grid.stagger > *:nth-child(6) { animation-delay: 0.30s; }

/* ==========================================================
   12. Page Hero (inner pages)
   ========================================================== */
.page-hero {
    padding: 8rem 0 3rem;
    background: linear-gradient(180deg, #ffffff 0%, var(--bg-secondary) 100%);
    text-align: center;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, transparent, var(--accent), transparent) 1;
    position: relative;
}

.page-hero--small {
    padding: 7rem 0 2rem;
}

.page-hero-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

/* .page-title and .page-subtitle — full definitions in section 37 */

/* ==========================================================
   13. Section Title (page-repairs, page-about)
   ========================================================== */
.section-title {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: 0.04em;
}

/* section-block — full definition in section 50 */

/* ==========================================================
   14. Glass Card — Glassmorphism with backdrop-filter blur
   ========================================================== */
.glass-card {
    background: #ffffff;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition:
        border-color var(--transition-base),
        box-shadow var(--transition-base),
        transform var(--transition-base);
}

.glass-card:hover {
    border-color: rgba(255, 106, 0, 0.35);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 106, 0, 0.1);
}

/* ==========================================================
   15. Buttons
   ========================================================== */

/* --- Base .btn --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    min-height: 44px; /* WCAG 2.5.5 觸控目標最小尺寸 */
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition:
        background-color var(--transition-fast),
        color var(--transition-fast),
        transform var(--transition-fast),
        box-shadow var(--transition-fast),
        border-color var(--transition-fast);
}

.btn:active,
.btn.is-pressed {
    transform: scale(0.97);
}

.btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* --- Primary / Accent --- */
.btn--primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: #fff;
    font-weight: 700;
    position: relative;
    overflow: hidden;
}

.btn--primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.18),
        transparent
    );
    transition: left 0.5s ease;
}

.btn--primary:hover::before {
    left: 100%;
}

.btn--primary:hover {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
    transform: translateY(-2px);
    box-shadow:
        0 8px 24px rgba(255, 106, 0, 0.4),
        0 2px 8px rgba(255, 106, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn--primary:active {
    transform: scale(0.97);
    box-shadow: 0 4px 12px rgba(255, 106, 0, 0.3);
}

/* --- Outline --- */
.btn--outline {
    border: 2px solid var(--accent);
    color: var(--accent);
    background: transparent;
    position: relative;
    overflow: hidden;
}

.btn--outline::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    opacity: 0;
    transition: opacity var(--transition-fast);
    z-index: 0;
}

.btn--outline > * {
    position: relative;
    z-index: 1;
}

.btn--outline:hover {
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 6px 20px rgba(255, 106, 0, 0.3);
    transform: translateY(-2px);
}

.btn--outline:hover::before {
    opacity: 1;
}

.btn--outline:active {
    transform: scale(0.97);
}

/* --- Ghost --- */
.btn--ghost {
    border: 1px solid rgba(168, 176, 192, 0.5);
    color: var(--text-muted);
    background: transparent;
}

.btn--ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(255, 106, 0, 0.06);
    box-shadow: 0 4px 12px rgba(255, 106, 0, 0.12);
}

.btn--ghost:active {
    transform: scale(0.97);
}

/* --- Small --- */
.btn--sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
}

/* ==========================================================
   16. Repair Page Specifics
   ========================================================== */

/* --- Intro Card / Repair Highlight — full definitions in section 41 --- */
/* --- Services Grid / Service Card / Service Icon — full definitions in sections 34 & 52 --- */
/* --- Pricing Card / Table / Price Cell — full definitions in section 42 --- */
/* --- CTA Card / CTA Buttons — full definitions in section 36 --- */

.pricing-card {
    padding: 3rem;
    max-width: 600px;
    margin: 0 auto;
}

.pricing-note {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* ==========================================================
   17. Repair Grid & Cards
   ========================================================== */
.repair-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.repair-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition:
        transform var(--transition-base),
        border-color var(--transition-base),
        box-shadow var(--transition-base);
}

.repair-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lift);
}

.repair-card__image {
    display: block;
    overflow: hidden;
}

.repair-card__image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.repair-card:hover .repair-card__image img {
    transform: scale(1.05);
}

.repair-card__body {
    padding: 1.5rem;
}

.repair-card__brand {
    display: inline-block;
    padding: 0.2rem 0.75rem;
    border-radius: var(--radius-pill);
    background-color: rgba(255, 106, 0, 0.15);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem;
}

.repair-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--font-body);
    margin-bottom: 0.5rem;
}

.repair-card__title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.repair-card__title a:hover {
    color: var(--accent);
}

.repair-card__info {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.repair-card__placeholder {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-secondary);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==========================================================
   18. About Page
   ========================================================== */

/* --- About Grid / About Text — full definitions in sections 40, 55 --- */
/* --- Stats / Stat Card — full definitions in section 35 --- */
/* --- Why Section / Why Grid / Why Item — full definitions in sections 33, 53 --- */
/* --- Contact Grid / Contact Info / Contact Map — full definitions in sections 39, 54 --- */
/* --- Info List — full definitions in section 51 --- */

.stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Why Section --- */
.why-content {
    padding: 3rem;
}

.why-item h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-family: var(--font-body);
    font-weight: 700;
}

.why-item p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

.contact-map iframe {
    width: 100%;
    height: 350px; /* 固定高度防止 CLS；手機端於 media query 調整 */
    border: 0;
    display: block;
}

/* ==========================================================
   19. Single Vehicle Page
   ========================================================== */

/* --- Specs Grid — full definitions in section 45 --- */
.vehicle-specs-wrap {
    margin-bottom: 2rem;
}

/* --- Single Content (Prose) --- */
.single-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.single-content p {
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.single-content h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.single-content h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.single-content ul,
.single-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.single-content ul {
    list-style: disc;
}

.single-content ol {
    list-style: decimal;
}

.single-content li {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.single-content img {
    max-width: 100%;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    margin: 1.5rem 0;
}

.single-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.single-content a:hover {
    color: var(--accent-light);
}

.single-content blockquote {
    border-left: 3px solid var(--accent);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background-color: var(--bg-card);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-muted);
    font-style: italic;
}

/* --- Vehicle Gallery — full definitions in section 46 --- */

/* ==========================================================
   20. Single Repair Page
   ========================================================== */
.repair-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.repair-comparison__item {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
}

.repair-comparison__item img {
    width: 100%;
    display: block;
}

.repair-comparison__label {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    display: inline-block;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    background-color: var(--accent);
    color: #000;
}

/* ==========================================================
   21. Footer
   ========================================================== */
.site-footer {
    background: #1a1a2e;
    color: #e0e0e0;
    border-top: 1px solid transparent;
    border-image: linear-gradient(90deg, transparent, var(--accent), transparent) 1;
    padding: 4rem 0 2rem;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: radial-gradient(ellipse at 50% 0%, rgba(255, 106, 0, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.footer-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
}

/* --- Footer Brand --- */
.footer-brand .site-logo {
    margin-bottom: 1rem;
}

.site-footer .logo-top {
    color: #fff;
}

.site-footer .logo-bottom {
    color: rgba(255, 255, 255, 0.6);
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* --- Footer Info --- */
.footer-info h4,
.footer-links h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--metal-light);
    margin-bottom: 1.25rem;
    font-family: var(--font-body);
    font-weight: 700;
}

.footer-info ul {
    list-style: none;
    padding: 0;
}

.footer-info li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    color: var(--text-muted);
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.footer-info li svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--accent);
    margin-top: 3px;
}

/* --- Footer Links --- */
.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    padding: 0.4rem 0;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent);
}

/* --- Footer Bottom --- */
.footer-bottom {
    border-top: 1px solid var(--border);
    margin-top: 3rem;
    padding-top: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.footer-bottom a {
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.footer-bottom a:hover {
    color: var(--accent);
}

.footer-slogan {
    font-size: 0.82rem;
    color: var(--accent);
    margin-top: 0.5rem;
    letter-spacing: 0.05em;
}

.footer-credit {
    font-size: 0.72rem;
    color: var(--text-muted);
    opacity: 0.6;
    margin-left: auto;
}

/* ==========================================================
   22. Promotions Page
   ========================================================== */
.promo-banner {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 3rem;
    text-align: center;
}

.promo-banner h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.promo-banner p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* ==========================================================
   23. Pagination
   ========================================================== */
.pagination {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-size: 1rem;
    border: 1px solid var(--border);
    color: var(--text-muted);
    text-decoration: none;
    transition:
        border-color var(--transition-fast),
        color var(--transition-fast),
        background-color var(--transition-fast);
}

.pagination a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.pagination .current,
.pagination span.current {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #000;
    font-weight: 600;
}

.pagination .dots {
    border: none;
    color: var(--text-muted);
}

/* ==========================================================
   24. Scroll Reveal Animations
   — fade-in/left/right/reveal full definitions in section 58
   ========================================================== */

/* --- Stagger Children --- */
.stagger > * {
    transition-delay: calc(var(--i, 0) * 0.08s);
}

.stagger > *:nth-child(1) { --i: 1; }
.stagger > *:nth-child(2) { --i: 2; }
.stagger > *:nth-child(3) { --i: 3; }
.stagger > *:nth-child(4) { --i: 4; }
.stagger > *:nth-child(5) { --i: 5; }
.stagger > *:nth-child(6) { --i: 6; }
.stagger > *:nth-child(7) { --i: 7; }
.stagger > *:nth-child(8) { --i: 8; }
.stagger > *:nth-child(9) { --i: 9; }
.stagger > *:nth-child(10) { --i: 10; }
.stagger > *:nth-child(11) { --i: 11; }
.stagger > *:nth-child(12) { --i: 12; }

/* ==========================================================
   25. Responsive — Tablet (max-width: 768px)
   ========================================================== */
@media (max-width: 768px) {

    /* --- Header Mobile Nav --- */
    .nav-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100dvh;
        background-color: rgba(250, 248, 246, 0.98);
        z-index: 1002;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition:
            opacity var(--transition-base),
            visibility var(--transition-base);
    }

    .main-nav.active {
        opacity: 1;
        visibility: visible;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .main-nav a {
        font-size: 1.5rem;
        font-family: var(--font-display);
        letter-spacing: 0.06em;
        padding: 0.5rem 1rem;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    .header-cta {
        display: none;
    }

    .header-line-btn {
        display: none;
    }

    /* --- Hero --- */
    .hero {
        min-height: 100vh;
        overflow-x: hidden;
    }

    .hero__center {
        padding: 2rem 1.25rem;
        max-width: 100%;
        box-sizing: border-box;
    }

    .hero__title {
        font-size: clamp(1.5rem, 5vw, 2.25rem);
        line-height: 1.3;
        word-break: keep-all;
        overflow-wrap: break-word;
    }

    .hero__desc {
        font-size: 0.85rem;
        word-break: keep-all;
    }

    .hero__services {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .hero__service-card {
        max-width: 100%;
        padding: 0.85rem 1.15rem;
    }

    .hero__service-icon svg {
        width: 28px;
        height: 28px;
    }

    .hero__service-arrow {
        opacity: 1;
        transform: translateX(0);
    }

    .hero__scroll {
        display: none;
    }

    /* --- 營業狀態列手機 --- */
    .hero__status {
        font-size: 0.75rem;
        padding: 0.4rem 0.9rem;
        gap: 0.35rem;
        white-space: nowrap;
        max-width: calc(100vw - 2.5rem);
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .hero__status-extra {
        display: none;
    }

    /* --- Social bar --- */
    .hero__social {
        font-size: 0.8rem;
        gap: 0.5rem;
    }

    /* --- Vehicle grid 2 col → 手機更寬鬆 --- */
    .vehicle-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .vehicle-card__body {
        padding: 0.85rem;
    }

    .vehicle-card__title a {
        font-size: 0.85rem;
    }

    .vehicle-card__cc {
        font-size: 0.68rem;
    }

    .vehicle-card__badge {
        font-size: 0.62rem;
        padding: 3px 8px;
    }

    .repair-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }

    /* --- Footer to 1 col --- */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* --- Repair comparison to 1 col --- */
    .repair-comparison {
        grid-template-columns: 1fr;
    }

    /* --- Page Hero spacing --- */
    .page-hero {
        padding: 6rem 0 2rem;
    }

    .page-title {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }

    /* --- Sections --- */
    .section {
        padding: 2rem 0;
    }

    .section__title {
        font-size: 1.5rem;
    }

    /* --- Container padding --- */
    .container {
        padding: 0 1rem;
    }

    .header-inner {
        padding: 0 1rem;
    }

    .footer-inner {
        padding: 0 1rem;
    }

    .page-hero-inner {
        padding: 0 1rem;
    }

    /* CTA */
    .cta-card {
        padding: 1.5rem 1.25rem;
    }

    /* Vehicle specs */
    .vehicle-specs {
        grid-template-columns: repeat(2, 1fr);
    }

    .vehicle-specs-grid {
        grid-template-columns: repeat(3, 1fr);
        padding: 0.75rem;
        gap: 0.5rem;
    }

    .vehicle-specs-grid .vehicle-spec {
        padding: 0.75rem 0.5rem;
    }

    .vehicle-specs-grid .vehicle-spec__label {
        font-size: 0.6rem;
        margin-bottom: 0.25rem;
    }

    .vehicle-specs-grid .vehicle-spec__value {
        font-size: 0.75rem;
    }

    /* Vehicle hero (single page) */
    .vehicle-hero {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .vehicle-main-img {
        position: static;
    }

    .vehicle-main-img img {
        max-height: none;
        width: 100%;
    }

    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
    }

    /* Why */
    .why-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Split */
    .split {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Services */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    /* Posts */
    .posts-grid {
        grid-template-columns: 1fr;
    }

    /* Repair intro */
    .repair-intro-card {
        padding: 1.5rem 1.25rem;
    }

    /* Gallery */
    .vehicle-detail__gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    /* Section block */
    .section-block {
        padding: 2.5rem 0;
    }

    /* Features tags */
    .features-tags {
        gap: 0.5rem;
    }

    .feature-tag {
        font-size: 0.75rem;
        padding: 0.3rem 0.7rem;
    }

    /* Filter bar horizontal scroll */
    .filter-bar {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.5rem;
        gap: 0.5rem;
    }

    .filter-btn {
        white-space: nowrap;
        flex-shrink: 0;
        min-height: 40px;
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }

    /* Buttons touch-friendly */
    .btn {
        min-height: 44px;
        padding: 0.6rem 1.5rem;
        font-size: 0.85rem;
    }

    /* FAB adjust */
    .fab-container {
        right: 0.75rem;
        gap: 0.5rem;
    }

    .fab-btn {
        padding: 0.6rem 0.9rem;
        font-size: 0.8rem;
    }

    /* Related vehicles */
    .related-vehicles .vehicle-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
}

/* ==========================================================
   26. Responsive — Small Mobile (max-width: 480px)
   ========================================================== */
@media (max-width: 480px) {

    /* --- Vehicle grid: 2 col 保持但更緊湊 --- */
    .vehicle-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }

    .vehicle-card {
        border-radius: 10px;
    }

    .vehicle-card__body {
        padding: 0.65rem;
    }

    .vehicle-card__title a {
        font-size: 0.78rem;
        line-height: 1.3;
    }

    .vehicle-card__cc {
        font-size: 0.62rem;
    }

    .vehicle-card__image {
        aspect-ratio: 4 / 3;
    }

    /* --- Other grids single col --- */
    .posts-grid {
        grid-template-columns: 1fr;
    }

    .repair-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .vehicle-specs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
        padding: 0.85rem;
    }

    .vehicle-detail__gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.4rem;
    }

    /* --- Typography --- */
    .hero__title {
        font-size: clamp(1.5rem, 7vw, 2.25rem);
        line-height: 1.25;
    }

    .hero__desc {
        font-size: 0.85rem;
    }

    .section__title {
        font-size: 1.35rem;
    }

    .page-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .page-subtitle {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.35rem;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    /* --- Buttons full width --- */
    .btn {
        width: 100%;
        justify-content: center;
        min-height: 48px;
        font-size: 0.85rem;
    }

    .hero__actions {
        width: 100%;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    /* --- Hero adjust --- */
    .hero {
        min-height: 100vh;
    }

    .hero__center {
        padding: 1.5rem 1rem;
    }

    .hero__content {
        padding: 0 0.75rem;
    }

    /* --- 營業狀態列 --- */
    .hero__status {
        font-size: 0.68rem;
        padding: 0.3rem 0.65rem;
        gap: 0.25rem;
        max-width: calc(100vw - 2rem);
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .hero__status-dot {
        width: 6px;
        height: 6px;
    }

    .hero__status-sep {
        font-size: 0.6rem;
    }

    /* --- Hero center 480 --- */
    .hero__center {
        padding: 1rem 1.25rem 0.5rem;
    }

    .hero__title {
        font-size: clamp(1.4rem, 5vw, 2rem);
    }

    .hero__desc {
        font-size: 0.8rem;
    }

    .hero__tagline {
        font-size: 0.62rem;
        letter-spacing: 0.03em;
        white-space: normal;
        word-break: keep-all;
    }

    .hero__social {
        font-size: 0.72rem;
        gap: 0.4rem;
    }

    /* --- Cards padding --- */
    .pricing-card,
    .why-content,
    .repair-intro-card,
    .cta-card,
    .contact-info {
        padding: 1.25rem 1rem;
    }

    .service-card {
        padding: 1.25rem 1rem;
    }

    .service-card h3 {
        font-size: 0.95rem;
    }

    .service-card p {
        font-size: 0.82rem;
    }

    /* --- Pagination --- */
    .pagination a,
    .pagination span {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }

    /* --- Footer --- */
    .site-footer {
        padding: 2rem 0 5.5rem;
    }

    .footer-grid {
        gap: 1.5rem;
    }

    .footer-grid h4 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .footer-bottom {
        margin-top: 1.25rem;
        padding-top: 1rem;
        font-size: 0.7rem;
    }

    .footer-info li {
        font-size: 0.8rem;
    }

    .footer-links li a {
        font-size: 0.82rem;
    }

    .footer-tagline,
    .footer-slogan {
        font-size: 0.75rem;
    }

    /* --- Google 地圖 --- */
    .contact-map iframe {
        height: 220px;
    }

    /* --- Logo 480 --- */
    .logo-top {
        font-size: 1.1rem;
    }

    .logo-bottom {
        font-size: 0.72rem;
    }

    /* --- FAB compact 480 --- */
    .fab-container {
        right: 0.5rem;
        bottom: 0.5rem;
        gap: 0.4rem;
    }

    .fab-btn {
        padding: 0.45rem 0.65rem;
        font-size: 0.72rem;
        min-height: 38px;
        border-radius: 10px;
    }

    .fab-btn svg {
        width: 14px;
        height: 14px;
    }

    /* Hide phone text on small mobile, keep icon */
    .fab-btn--phone {
        font-size: 0;
        padding: 0.5rem;
        min-width: 38px;
        justify-content: center;
    }

    .fab-btn--phone svg {
        width: 18px;
        height: 18px;
    }

    /* --- Vehicle specs (single page) 480 --- */
    .vehicle-specs-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.4rem;
        padding: 0.5rem;
    }

    .vehicle-specs-grid .vehicle-spec {
        padding: 0.6rem 0.35rem;
    }

    .vehicle-specs-grid .vehicle-spec__value {
        font-size: 0.7rem;
    }

    .vehicle-specs-grid .vehicle-spec__label {
        font-size: 0.55rem;
    }

    /* --- About page 480 --- */
    .about-stats {
        gap: 0.75rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.72rem;
    }

    .why-item h4 {
        font-size: 0.95rem;
    }

    .why-item p {
        font-size: 0.82rem;
    }

    /* --- Cat-nav 480 --- */
    .cat-nav__btn {
        font-size: 12px;
        padding: 6px 14px;
        min-height: 38px;
    }

    /* --- Pricing table 480 --- */
    .pricing-card__price {
        font-size: 1.1rem;
    }

    .pricing-card__title {
        font-size: 0.9rem;
    }

    /* --- Related vehicles --- */
    .related-vehicles .vehicle-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }

    .related-vehicles__title {
        font-size: 1.1rem;
    }

    /* --- Breadcrumb --- */
    .breadcrumb {
        font-size: 0.72rem;
    }

    /* --- Container extra tight --- */
    .container {
        padding: 0 0.75rem;
    }

    .header-inner {
        padding: 0 0.75rem;
    }

    .footer-inner {
        padding: 0 0.75rem;
    }

    /* --- Nav toggle touch target --- */
    .nav-toggle {
        width: 40px;
        height: 40px;
    }

    /* --- Split section 480 --- */
    .split__content h2 {
        font-size: 1.35rem;
    }

    .split__content p {
        font-size: 0.88rem;
    }

    /* --- Repair model card 480 --- */
    .repair-model-card {
        padding: 1rem;
    }
}

/* ==========================================================
   26b. Responsive — Ultra-Small (max-width: 360px)
   ========================================================== */
@media (max-width: 360px) {
    .hero__title {
        font-size: 1.35rem;
    }

    .hero__desc {
        font-size: 0.78rem;
    }

    .hero__status {
        font-size: 0.62rem;
        padding: 0.25rem 0.5rem;
    }

    .vehicle-grid {
        gap: 0.4rem;
    }

    .vehicle-card__body {
        padding: 0.5rem;
    }

    .vehicle-card__title a {
        font-size: 0.72rem;
    }

    .section__title {
        font-size: 1.15rem;
    }

    .page-title {
        font-size: 1.35rem;
    }

    .btn {
        font-size: 0.78rem;
        padding: 0.5rem 1rem;
    }

    .model-name {
        font-size: 20px;
    }

    .model-info {
        padding: 16px 12px 24px;
    }

    .spec-val {
        font-size: 16px;
    }

    .logo-top {
        font-size: 1rem;
    }

    .logo-bottom {
        font-size: 0.65rem;
    }
}

/* ==========================================================
   27. Print Styles
   ========================================================== */
@media print {
    *,
    *::before,
    *::after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    body {
        background: #fff !important;
        color: #000 !important;
        font-size: 12pt;
        line-height: 1.5;
    }

    .site-header,
    .site-footer,
    .nav-toggle,
    .header-cta,
    .hero__overlay,
    .hero__bg,
    .filter-bar,
    .btn,
    .cta-card,
    .cta-buttons,
    .pagination {
        display: none !important;
    }

    .hero {
        min-height: auto;
        padding: 2rem 0;
    }

    .hero__content {
        position: static;
    }

    .fade-in,
    .fade-in-left,
    .fade-in-right,
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }

    a {
        text-decoration: underline;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #555;
    }

    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }

    h2, h3, h4 {
        page-break-after: avoid;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    .section {
        padding: 1.5rem 0;
    }

    .page-hero {
        padding: 1rem 0;
        border-bottom: 1px solid #ccc;
    }
}

/* ==========================================================
   28. Accessibility
   ========================================================== */

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .fade-in,
    .fade-in-left,
    .fade-in-right,
    .reveal {
        opacity: 1;
        transform: none;
    }

    .vehicle-card:hover,
    .post-card:hover,
    .repair-card:hover,
    .service-card:hover {
        transform: none;
    }
}

/* --- Focus Visible --- */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.filter-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* --- Skip Link (if present) --- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--accent);
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    z-index: 10000;
    font-weight: 600;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 1rem;
}

/* --- Screen Reader Only --- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================
   29. Scrollbar Styling (Webkit)
   ========================================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.12);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 106, 0, 0.4);
}

/* Firefox scrollbar */
html {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.12) var(--bg-primary);
}

/* ==========================================================
   30. Selection Highlight
   ========================================================== */
::selection {
    background-color: rgba(255, 106, 0, 0.2);
    color: var(--text-primary);
}

::-moz-selection {
    background-color: rgba(255, 106, 0, 0.2);
    color: var(--text-primary);
}

/* ==========================================================
   31. Repair Model Index
   ========================================================== */
.repair-index .section__header {
    margin-bottom: 2rem;
}

/* filter-count — full definitions in section 48 */
/* brand-section, brand-section__title, brand-section__count — full definitions in section 43 */
/* repair-model-grid, repair-model-card (and sub-selectors) — full definitions in section 44 */

/* Brand filter JS: hide/show brand sections */
.brand-section.hidden {
    display: none;
}

/* .mt-lg — full definition in section 57 */

/* ==========================================================
   33. Why Grid — 強化版（帶 icon accent 裝飾線）
   ========================================================== */
.why-item {
    padding: 1.5rem;
    background: rgba(37, 45, 66, 0.5);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    position: relative;
    transition:
        border-color var(--transition-base),
        background var(--transition-base),
        transform var(--transition-base);
}

.why-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1.5rem;
    width: 2rem;
    height: 2px;
    background: var(--accent);
    border-radius: 0 0 2px 2px;
}

.why-item:hover {
    border-color: var(--border-hover);
    background: rgba(46, 55, 80, 0.6);
    transform: translateY(-2px);
}

/* ==========================================================
   34. Service Card — 強化版（帶漸層 icon 容器）
   ========================================================== */
.service-icon {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin-left: auto;
    margin-right: auto;
    border-radius: var(--radius-md);
    background: radial-gradient(circle at 50% 30%, rgba(255, 106, 0, 0.18) 0%, rgba(255, 106, 0, 0.04) 70%);
    border: 1px solid rgba(255, 106, 0, 0.2);
    transition:
        background var(--transition-base),
        border-color var(--transition-base),
        transform var(--transition-base),
        box-shadow var(--transition-base);
}

.service-card:hover .service-icon {
    background: radial-gradient(circle at 50% 30%, rgba(255, 106, 0, 0.3) 0%, rgba(255, 106, 0, 0.08) 70%);
    border-color: rgba(255, 106, 0, 0.45);
    transform: scale(1.08) rotate(-2deg);
    box-shadow: 0 0 20px rgba(255, 106, 0, 0.2);
}

/* ==========================================================
   35. Stat Card — 強化版
   ========================================================== */
.stat-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    transition:
        transform var(--transition-base),
        border-color var(--transition-base),
        box-shadow var(--transition-base);
}

.stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 106, 0, 0.25);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08), var(--shadow-glow);
}

.stat-card:hover::after {
    opacity: 1;
}

/* ==========================================================
   36. CTA Card — 強化版
   ========================================================== */
.cta-card {
    padding: 3.5rem 3rem;
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 106, 0, 0.6) 50%,
        transparent 100%
    );
}

.cta-card::after {
    content: '';
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 160px;
    background: radial-gradient(ellipse, rgba(255, 106, 0, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.cta-card h2,
.cta-card h3 {
    position: relative;
    z-index: 1;
}

.cta-card p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* ==========================================================
   37. Page Hero — 強化版（帶斜線背景紋理）
   ========================================================== */
.page-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: 0.04em;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ==========================================================
   38. Split Layout — 強化版
   ========================================================== */
.split__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.split__content h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: 0.03em;
    line-height: 1.15;
}

.split__content p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* ==========================================================
   39. Contact Grid — 強化版
   ========================================================== */
.contact-info {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lift);
}

.contact-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lift);
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.contact-map:hover {
    border-color: rgba(255, 106, 0, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), var(--shadow-glow);
}

/* ==========================================================
   40. About Grid — 強化版
   ========================================================== */
.about-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-text h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    letter-spacing: 0.03em;
}

.about-text p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* ==========================================================
   41. Repair Intro Card — 強化版
   ========================================================== */
.repair-intro-card {
    padding: 3.5rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.repair-intro-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.repair-intro-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.85;
    position: relative;
    z-index: 1;
}

.repair-highlight {
    color: var(--text-primary);
    font-size: 1.1rem;
    line-height: 1.75;
}

.repair-highlight strong {
    color: var(--accent);
    font-weight: 700;
}

/* ==========================================================
   42. Pricing Table — 強化版
   ========================================================== */
.pricing-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.pricing-table th {
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    font-weight: 700;
    text-align: left;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-secondary);
}

.pricing-table td {
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--border);
    font-size: 1.1rem;
    color: var(--text-primary);
    transition: background var(--transition-fast);
}

.pricing-table tr:hover td {
    background: rgba(255, 106, 0, 0.04);
}

.pricing-table tr:last-child td {
    border-bottom: none;
}

.price-cell {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--accent);
    letter-spacing: 0.03em;
}

/* ==========================================================
   43. Brand Section — 強化版
   ========================================================== */
.brand-section {
    margin-bottom: 3.5rem;
    transition: opacity 0.3s ease, transform 0.4s ease;
}

.brand-section__title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.75rem;
    padding-bottom: 0.85rem;
    border-bottom: none;
    position: relative;
}

.brand-section__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), rgba(255, 106, 0, 0.1) 60%, transparent);
}

.brand-section__count {
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 400;
    padding: 0.2rem 0.6rem;
    background: rgba(168, 176, 192, 0.08);
    border-radius: var(--radius-pill);
    border: 1px solid rgba(168, 176, 192, 0.15);
}

/* ==========================================================
   44. Repair Model Card — 強化版
   ========================================================== */
.repair-model-card {
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition:
        transform var(--transition-base),
        border-color var(--transition-base),
        box-shadow var(--transition-base);
    position: relative;
}

.repair-model-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    transform: scaleX(0);
    transition: transform var(--transition-base);
    z-index: 2;
}

.repair-model-card:hover::before {
    transform: scaleX(1);
}

.repair-model-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 106, 0, 0.08);
}

.repair-model-card__image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--bg-secondary);
    position: relative;
}

.repair-model-card__image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(26, 31, 46, 0.4) 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.repair-model-card:hover .repair-model-card__image::after {
    opacity: 1;
}

.repair-model-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.repair-model-card:hover .repair-model-card__image img {
    transform: scale(1.06);
}

.repair-model-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.repair-model-card__body {
    padding: 1.25rem;
}

.repair-model-card__name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    transition: color var(--transition-fast);
}

.repair-model-card:hover .repair-model-card__name {
    color: var(--accent);
}

.repair-model-card__issues {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 0.85rem;
}

.repair-model-card__badge {
    display: inline-block;
    padding: 0.25rem 0.85rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    border-radius: var(--radius-pill);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(255, 106, 0, 0.3);
}

/* ==========================================================
   45. Vehicle Specs — 強化版
   ========================================================== */
.vehicle-specs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.vehicle-spec {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem 1.25rem;
    text-align: center;
    transition:
        border-color var(--transition-base),
        transform var(--transition-base),
        box-shadow var(--transition-base);
    position: relative;
    overflow: hidden;
}

.vehicle-spec::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 2px 2px 0 0;
    transition: width var(--transition-base);
}

.vehicle-spec:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.vehicle-spec:hover::before {
    width: 60%;
}

.vehicle-spec__label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.vehicle-spec__value {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.02em;
}

/* ==========================================================
   46. Vehicle Detail Gallery — 強化版
   ========================================================== */
.vehicle-detail__gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.vehicle-detail__gallery img {
    width: 100%;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition:
        border-color var(--transition-base),
        box-shadow var(--transition-base),
        transform var(--transition-base);
    cursor: pointer;
}

.vehicle-detail__gallery img:hover {
    border-color: rgba(255, 106, 0, 0.4);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.08),
        var(--shadow-glow);
    transform: scale(1.02);
}

/* ==========================================================
   47. Logo Text — 強化版
   ========================================================== */
.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-top {
    font-family: var(--font-display);
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-primary);
    font-weight: 700;
}

.logo-bottom {
    font-size: 0.95rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
}

.logo-dot {
    color: var(--accent);
    font-weight: 900;
}

/* ==========================================================
   48. Filter Count Badge — 強化版
   ========================================================== */
.filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5em;
    height: 1.5em;
    padding: 0 0.35em;
    margin-left: 0.45em;
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.05);
    color: var(--metal-light);
    border-radius: 10px;
    line-height: 1;
    border: 1px solid var(--border);
    transition:
        background var(--transition-fast),
        color var(--transition-fast),
        border-color var(--transition-fast);
}

.filter-btn:hover .filter-count {
    background: rgba(255, 106, 0, 0.15);
    color: var(--accent-light);
    border-color: rgba(255, 106, 0, 0.25);
}

.filter-btn.active .filter-count {
    background: rgba(0, 0, 0, 0.25);
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.2);
}

/* ==========================================================
   49. Posts Grid — 強化版（已有但補強 hover 細節）
   ========================================================== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

.post-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    transition:
        transform var(--transition-base),
        border-color var(--transition-base),
        box-shadow var(--transition-base);
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    transform: scaleX(0);
    transition: transform var(--transition-base);
    z-index: 2;
}

.post-card:hover::before {
    transform: scaleX(1);
}

.post-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow:
        0 14px 36px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 106, 0, 0.08);
}

.post-card__image {
    display: block;
    height: 210px;
    overflow: hidden;
    position: relative;
}

.post-card__image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(26, 31, 46, 0.45) 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.post-card:hover .post-card__image::after {
    opacity: 1;
}

.post-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.post-card:hover .post-card__image img {
    transform: scale(1.06);
}

.post-card__body {
    padding: 1.5rem;
}

.post-card__date {
    display: inline-block;
    font-size: 0.78rem;
    color: var(--accent);
    letter-spacing: 0.14em;
    margin-bottom: 0.6rem;
    text-transform: uppercase;
    font-weight: 600;
}

.post-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--font-body);
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.post-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.post-card__title a:hover {
    color: var(--accent);
}

.post-card__excerpt {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================
   50. Section Block — 補強版
   ========================================================== */
.section-block {
    padding: 4.5rem 0;
}

.section-block + .section-block {
    padding-top: 0;
}

/* ==========================================================
   51. Info List — 強化版
   ========================================================== */
.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    border-bottom: 1px solid var(--border);
    padding: 1.1rem 0;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.55;
    transition: color var(--transition-fast);
}

.info-list li:first-child {
    padding-top: 0;
}

.info-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-list li:hover {
    color: var(--text-primary);
}

.info-list svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--accent);
    margin-top: 2px;
    filter: drop-shadow(0 0 4px rgba(255, 106, 0, 0.3));
}

.info-list a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.info-list a:hover {
    color: var(--accent);
}

/* ==========================================================
   52. Services Grid — 強化版 border 卡片
   ========================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2rem;
}

.service-card {
    text-align: center;
    padding: 2.5rem 1.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    transition:
        transform var(--transition-base),
        border-color var(--transition-base),
        box-shadow var(--transition-base);
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 106, 0, 0.25);
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.1),
        var(--shadow-glow);
}

.service-card:hover::after {
    transform: scaleX(1);
}

.service-card h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.65;
}

/* ==========================================================
   53. Why Grid — 佈局定義
   ========================================================== */
.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* ==========================================================
   54. Contact Grid 佈局
   ========================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* ==========================================================
   55. About Grid 佈局
   ========================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

/* ==========================================================
   55b. About Top Grid — 日曆左 / 資訊右
   ========================================================== */
.about-top-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.about-top-calendar .mhc {
    max-width: 100%;
}

.about-top-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-top-info__title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

.about-top-info .info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.about-top-info .info-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.about-top-info .info-list li svg {
    flex-shrink: 0;
    color: var(--accent);
    margin-top: 2px;
}

.about-top-info .info-list li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.about-top-info .info-list li a:hover {
    color: var(--accent);
}

@media (max-width: 768px) {
    .about-top-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-top-info {
        padding: 1.5rem;
    }

    .about-top-info__title {
        font-size: 1.25rem;
    }

    .about-top-info .info-list li {
        font-size: 0.88rem;
    }
}

/* ==========================================================
   56. Split 佈局
   ========================================================== */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    overflow: hidden;
}

.split__image {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lift);
    transition:
        box-shadow var(--transition-base),
        border-color var(--transition-base);
}

.split__image:hover {
    border-color: rgba(255, 106, 0, 0.25);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.1), var(--shadow-glow);
}

.split__image img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3; /* 防止圖片載入前高度為 0 造成 CLS */
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
}

.split__image:hover img {
    transform: scale(1.03);
}

/* ==========================================================
   57. Text Utilities — 強化版
   ========================================================== */
.text-center {
    text-align: center;
}

.text-accent {
    color: var(--accent);
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mt-xl {
    margin-top: var(--space-xl);
}

.mt-lg {
    margin-top: var(--space-lg);
}

/* ==========================================================
   58. Fade-in / Revealed — 動畫系 class 確認
   ========================================================== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.revealed {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-32px);
    transition:
        opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(32px);
    transition:
        opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.revealed {
    opacity: 1 !important;
    transform: none !important;
}

/* ============================================================
   VEHICLE PAGE — Full-Width Alternating Model Rows
   ============================================================ */

/* Category Navigation */
.cat-nav {
    position: sticky;
    top: var(--header-h, 70px);
    z-index: 50;
    background: rgba(250,248,246,.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    padding: 0;
}
.cat-nav .container {
    display: flex;
    gap: 8px;
    padding: 12px 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.cat-nav .container::-webkit-scrollbar { display: none; }

.cat-nav__btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-secondary, #999);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    padding: 8px 20px;
    min-height: 44px;
    cursor: pointer;
    transition: all .3s ease;
    white-space: nowrap;
    font-family: inherit;
}
.cat-nav__btn:hover {
    border-color: var(--accent);
    color: var(--text-primary);
    background: rgba(232, 93, 0, 0.05);
}
.cat-nav__btn.active {
    background: var(--accent, #e85d00);
    border-color: var(--accent, #e85d00);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(232, 93, 0, 0.25);
}
.cat-nav__count {
    font-size: 11px;
    opacity: .6;
    margin-left: 4px;
}

/* Category Section */
.cat-section {
    border-bottom: 1px solid var(--border);
    transition: opacity 0.3s ease, transform 0.4s ease;
}
.cat-section.hidden { display: none; }

/* Category Header */
.cat-header {
    padding: 56px 48px 28px;
    display: flex;
    align-items: baseline;
    gap: 16px;
    border-bottom: 1px solid var(--border);
}
.cat-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #fff;
    padding: 5px 14px;
    background: var(--accent, #ff6a00);
}
.cat-title {
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 900;
    letter-spacing: -0.5px;
    color: var(--text-primary, #eee);
}
.cat-count {
    font-size: 13px;
    color: var(--text-muted, #666);
}

/* Model Row — Full Width Alternating */
.model {
    display: flex;
    min-height: 420px;
    border-bottom: 1px solid var(--border);
    transition: background .3s ease;
    position: relative;
    overflow: hidden;
}
.model:hover {
    background: var(--bg-secondary);
}
.model:nth-child(odd) {
    flex-direction: row-reverse;
}

/* Model Image */
.model-img {
    flex: 0 0 55%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
}
.model-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(255,106,0,.04), transparent 60%);
    pointer-events: none;
}
.model-img img {
    max-width: 100%;
    max-height: 340px;
    object-fit: contain;
    transition: transform .5s ease;
    filter: drop-shadow(0 12px 32px rgba(0,0,0,.1));
}
.model:hover .model-img img {
    transform: scale(1.03);
}
.model-img__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 200px;
}

/* Model Info */
.model-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px;
}
.model-cat {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent, #ff6a00);
    margin-bottom: 8px;
}
.model-name {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 4px;
    line-height: 1.1;
}
.model-name a {
    color: var(--text-primary, #eee);
    text-decoration: none;
    transition: color .3s ease;
}
.model-name a:hover {
    color: var(--accent, #ff6a00);
}
.model-cc {
    font-size: 15px;
    font-weight: 400;
    color: var(--text-secondary, #999);
    margin-bottom: 20px;
}

/* Specs */
.model-specs {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.spec {
    min-width: 80px;
}
.spec-val {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-primary, #eee);
}
.spec-label {
    font-size: 11px;
    font-weight: 400;
    color: var(--text-muted, #666);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 2px;
}

/* Tags */
.model-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.mtag {
    font-size: 12px;
    font-weight: 500;
    padding: 4px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-secondary, #999);
    transition: all .3s ease;
}
.model:hover .mtag {
    border-color: rgba(255,106,0,.3);
}

/* Footer */
.model-foot {
    display: flex;
    align-items: center;
    gap: 24px;
}
.model-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary, #eee);
}
.model-price small {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-secondary, #999);
}
.model-link {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent, #ff6a00);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap .3s ease;
    text-decoration: none;
}
.model-link:hover {
    gap: 10px;
}

/* Responsive */
@media (max-width: 900px) {
    .cat-header {
        padding: 40px 20px 20px;
        flex-wrap: wrap;
        gap: 8px;
    }
    .model {
        flex-direction: column !important;
        min-height: auto;
    }
    .model-img {
        flex: none;
        height: 260px;
        padding: 24px;
    }
    .model-img img {
        max-width: 100%;
        max-height: 220px;
    }
    .model-info {
        padding: 24px 20px 32px;
    }
    .model-name {
        font-size: 28px;
    }
    .model-specs {
        gap: 16px;
    }
    .spec-val {
        font-size: 18px;
    }
    .cat-nav {
        top: 60px;
    }
}
@media (max-width: 480px) {
    .model-img {
        height: 200px;
    }
    .model-name {
        font-size: 24px;
    }
    .model-foot {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* ==========================================================
   62. Scanning Animation — service-card scan effect
   ========================================================== */
.service-card.scanning::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    animation: scanLine 0.6s ease-in-out;
    pointer-events: none;
    z-index: 10;
}

@keyframes scanLine {
    0%   { top: 0; opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* (Legacy hero split states removed — now using full-screen slideshow) */

/* ==========================================================
   64. Breadcrumb Navigation
   ========================================================== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.breadcrumb a:hover {
    color: var(--accent);
}

.breadcrumb-sep, .breadcrumb__sep {
    color: var(--border);
}

.breadcrumb__current {
    color: var(--text-primary);
    font-weight: 600;
}

/* ==========================================================
   65. Vehicle Detail — Images & CTA
   ========================================================== */
.vehicle-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
    margin: 2rem 0;
}

.vehicle-main-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: sticky;
    top: calc(var(--header-h, 70px) + 1rem);
}

.vehicle-main-img img {
    width: 100%;
    height: auto;
    max-height: 55vh;
    object-fit: contain;
    display: block;
    background: var(--bg-secondary);
}

.vehicle-hero__info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.vehicle-cta {
    padding: 2rem;
    margin: 2rem 0;
}

.vehicle-cta__desc {
    margin-bottom: 1.25rem;
    color: var(--text-muted);
}

.vehicle-cta__buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.related-vehicles {
    margin-top: 3rem;
}

.related-vehicles__title {
    margin-bottom: 1.5rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
}

.features-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.feature-tag {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: rgba(255, 106, 0, 0.12);
    border: 1px solid rgba(255, 106, 0, 0.3);
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    color: var(--accent-light);
    font-weight: 500;
}

/* ==========================================================
   66. Vehicle Specs Grid
   ========================================================== */
.vehicle-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

/* Mobile: vehicle detail — big image on top, 3x2 specs grid below */
@media (max-width: 768px) {
    .vehicle-hero {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .vehicle-main-img {
        position: static;
    }

    .vehicle-main-img img {
        max-height: none;
        width: 100%;
    }

    .vehicle-specs-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        padding: 0.75rem;
    }

    .vehicle-specs-grid .vehicle-spec {
        padding: 0.7rem 0.4rem;
    }

    .vehicle-specs-grid .vehicle-spec__label {
        font-size: 0.6rem;
        margin-bottom: 0.2rem;
    }

    .vehicle-specs-grid .vehicle-spec__value {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .vehicle-specs-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.4rem;
        padding: 0.5rem;
    }

    .vehicle-specs-grid .vehicle-spec {
        padding: 0.6rem 0.3rem;
    }

    .vehicle-specs-grid .vehicle-spec__value {
        font-size: 0.68rem;
    }

    .vehicle-specs-grid .vehicle-spec__label {
        font-size: 0.55rem;
    }
}

/* ==========================================================
   67. LINE Button
   ========================================================== */
.btn--line {
    background-color: var(--color-line);
    color: #fff;
    border: 2px solid var(--color-line);
}

.btn--line:hover {
    background-color: var(--color-line-hover);
    border-color: var(--color-line-hover);
    color: #fff;
}

.btn--fb {
    background-color: #1877F2;
    color: #fff;
    border: 2px solid #1877F2;
}

.btn--fb:hover {
    background-color: #166FE5;
    border-color: #166FE5;
    color: #fff;
}

/* ==========================================================
   68. FAB — Floating Action Button
   ========================================================== */
.fab-container {
    position: fixed;
    right: 1.25rem;
    bottom: 1.5rem;
    z-index: 800;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
    /* 手機端增加底部間距，避免被瀏覽器工具列遮擋 */
    bottom: max(1.5rem, env(safe-area-inset-bottom, 1.5rem));
}

.fab-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.1rem;
    min-height: 44px; /* 確保觸控目標 ≥ 44px */
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    white-space: nowrap;
}

.fab-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.2);
}

.fab-btn--phone {
    background: var(--accent);
    color: #fff;
}

.fab-btn--line {
    background: var(--color-line);
    color: #fff;
}

/* ==========================================================
   69. Hero Social Bar
   ========================================================== */
.hero__social {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.25rem;
    font-size: 0.88rem;
}

.hero__social a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.hero__social a:hover {
    color: var(--accent);
}

.hero__social span {
    color: var(--border);
}

/* ==========================================================
   69b. Hero Store Status
   ========================================================== */
.hero__status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding: 0.5rem 1.2rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    white-space: nowrap;
}

.hero__status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.hero__status--open { color: #4ade80; }
.hero__status--open .hero__status-dot {
    background: #4ade80;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
    animation: status-pulse 2s ease-in-out infinite;
}

.hero__status--closing { color: #ff6a00; }
.hero__status--closing .hero__status-dot {
    background: #ff6a00;
    box-shadow: 0 0 8px rgba(255, 106, 0, 0.6);
    animation: status-pulse 1.5s ease-in-out infinite;
}

.hero__status--closed { color: #f87171; }
.hero__status--closed .hero__status-dot { background: #f87171; }

.hero__status--holiday { color: #fbbf24; }
.hero__status--holiday .hero__status-dot { background: #fbbf24; }

a.hero__status {
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}

a.hero__status:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.25);
}

.hero__status-hours {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
    font-size: 0.78rem;
}

.hero__status-sep {
    color: rgba(255, 255, 255, 0.3);
    font-weight: 400;
}

.hero__status-note {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
    font-size: 0.78rem;
}

.hero__status-link {
    color: #ff6a00;
    font-weight: 500;
    font-size: 0.78rem;
}

@keyframes status-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

/* ==========================================================
   70. Responsive — Tablet 1024px
   ========================================================== */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .vehicle-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .split {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================
   71. Hero-Top Badge
   ========================================================== */
.hero-top {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    background: rgba(255, 106, 0, 0.1);
    border: 1px solid rgba(255, 106, 0, 0.3);
    border-radius: var(--radius-pill);
    padding: 0.3rem 0.9rem;
    margin-bottom: 0.75rem;
}

/* Vehicle category label on single-vehicle */
.vehicle-category-label {
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

/* Vehicle card placeholder when no thumbnail */
.vehicle-card__placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.vehicle-spec__value--sm { font-size: var(--font-size-sm); }
.section-subheading { margin-bottom: var(--space-md); }

/* ==========================================================
   72. Promotions Page — Promo Card Grid
   ========================================================== */
.promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.promo-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--radius-lg);
    transition:
        transform var(--transition-base),
        box-shadow var(--transition-base);
}

.promo-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.08), var(--shadow-glow);
}

.promo-card__image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-secondary);
}

.promo-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.promo-card:hover .promo-card__image img {
    transform: scale(1.04);
}

.promo-card__body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.6rem;
}

.promo-card__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.promo-card__category {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    background: rgba(255, 106, 0, 0.12);
    border: 1px solid rgba(255, 106, 0, 0.3);
    border-radius: var(--radius-pill);
    padding: 0.2rem 0.65rem;
}

.promo-card__date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.promo-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.45;
    margin: 0;
}

.promo-card__desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.promo-card__period {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0;
}

.promo-card__body .btn {
    margin-top: auto;
    align-self: flex-start;
}

/* Footer CTA */
.promo-footer {
    text-align: center;
    padding: 2.5rem;
    border-top: 1px solid var(--border);
    margin-top: 1rem;
}

.promo-footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.promo-footer__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .promo-grid {
        grid-template-columns: 1fr;
    }
}

/* Utility classes */
.vehicle-spec__value--lg { font-size: var(--font-size-lg); }
.mt-0 { margin-top: 0 !important; }

/* Promo empty state */
.promo-empty-state {
    padding: 4rem 0;
    text-align: center;
}

.promo-empty-state p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* ==========================================================
   Promotions page enhancements — source notice & content toggle
   ========================================================== */
.promo-source-notice {
    text-align: center;
    padding: 0.75rem;
    margin-bottom: 2rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}
.promo-source-notice a {
    color: var(--accent);
    text-decoration: none;
}
.promo-source-notice a:hover {
    text-decoration: underline;
}
.promo-card__toggle {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
    cursor: pointer;
    border-radius: var(--radius-pill);
    margin-top: 0.75rem;
    transition: all var(--transition-fast);
    font-family: inherit;
}
.promo-card__toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.promo-card__content {
    display: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
}
.promo-card__content h2,
.promo-card__content h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin: 0.75rem 0 0.4rem;
}
.promo-card__content ul,
.promo-card__content ol {
    padding-left: 1.25rem;
}
.promo-card__content li {
    margin-bottom: 0.3rem;
}
.promo-card__content a {
    color: var(--accent);
}

/* ==========================================================
   404 Page
   ========================================================== */
.page-404 {
    padding-top: var(--header-h, 70px);
    padding-bottom: 80px;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    padding-left: 20px;
    padding-right: 20px;
}
.page-404__code {
    font-size: clamp(100px, 22vw, 160px);
    font-weight: 900;
    font-style: italic;
    line-height: .85;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -6px;
}
.page-404__sub {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 3px;
    margin-bottom: 8px;
}
.page-404__icon {
    color: var(--text-primary);
    opacity: .35;
    margin: 8px 0;
}
.page-404 h1 {
    font-size: clamp(18px, 4vw, 22px);
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 8px;
}
.page-404 p {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 420px;
    line-height: 1.8;
}
.page-404__btn {
    margin-top: 20px;
    border-radius: 50px;
    padding: 14px 40px;
    box-shadow: 0 4px 15px rgba(247, 90, 0, .25);
}

/* 404 — Random Posts */
.page-404-posts {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px 80px;
}
.page-404-posts__title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 24px;
    letter-spacing: 1px;
}
.page-404-posts__grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto;
}
.page-404-posts__card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: inherit;
    transition: transform .2s, box-shadow .2s;
}
.page-404-posts__card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
    border-color: var(--border-hover);
}
.page-404-posts__thumb {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}
.page-404-posts__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.page-404-posts__info {
    flex: 1;
    min-width: 0;
}
.page-404-posts__date {
    font-size: 11px;
    color: var(--text-muted);
}
.page-404-posts__info h3 {
    font-size: 14px;
    font-weight: 600;
    margin-top: 2px;
    line-height: 1.4;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================================
   Promo Card — CTA + Modal
   ========================================================== */
.promo-card[data-modal]:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.promo-card__cta {
    display: inline-block;
    margin-top: auto;
    padding-top: 0.75rem;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
}

/* Modal */
.promo-modal {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.promo-modal[hidden] {
    display: none;
}

.promo-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 12, 20, 0.85);
    backdrop-filter: blur(6px);
}

.promo-modal__box {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 64px rgba(0,0,0,0.15);
    animation: modalIn 0.22s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(12px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.promo-modal__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-primary);
    color: var(--metal);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: color var(--transition-fast), border-color var(--transition-fast);
}

.promo-modal__close:hover {
    color: #fff;
    border-color: var(--accent);
}

.promo-modal__img-wrap {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow: hidden;
    max-height: 260px;
}

.promo-modal__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.promo-modal__body {
    padding: 1.5rem 1.75rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.promo-modal__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
    margin: 0;
}

.promo-modal__period {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 600;
    margin: 0;
}

.promo-modal__content {
    font-size: 0.9rem;
    color: var(--metal);
    line-height: 1.7;
}

.promo-modal__content img {
    max-width: 100%;
    border-radius: var(--radius-sm);
}

@media (max-width: 768px) {
    .promo-modal__box {
        max-height: 85vh;
    }
    .promo-modal__img-wrap {
        max-height: 180px;
    }
    .promo-modal__body {
        padding: 1.25rem;
    }
    /* contact-grid 定義在此 media query 之後，需在此重新覆寫 */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .contact-map {
        min-height: 300px;
    }
    .contact-map iframe {
        height: 300px;
        min-height: unset;
    }
}

/* ==========================================================
   Hero 營業狀態列
   ========================================================== */
.hero-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 999px;
    padding: 0.45rem 1.1rem 0.45rem 0.75rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: background 0.25s, border-color 0.25s, transform 0.2s;
    margin-bottom: 1.4rem;
    cursor: pointer;
    white-space: nowrap;
}

.hero-status:hover {
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(255, 255, 255, 0.28);
    transform: translateY(-1px);
    color: #fff;
}

/* Pulsing dot */
.hero-status__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}

.hero-status--open .hero-status__dot {
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
    animation: heroStatusPulse 2s ease-in-out infinite;
}

.hero-status--closed .hero-status__dot {
    background: rgba(255, 255, 255, 0.3);
}

.hero-status--holiday .hero-status__dot {
    background: #f59e0b;
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5);
    animation: heroHolidayPulse 2.5s ease-in-out infinite;
}

@keyframes heroHolidayPulse {
    0%   { box-shadow: 0 0 0 0   rgba(245, 158, 11, 0.5); }
    60%  { box-shadow: 0 0 0 7px rgba(245, 158, 11, 0);   }
    100% { box-shadow: 0 0 0 0   rgba(245, 158, 11, 0);   }
}

@keyframes heroStatusPulse {
    0%   { box-shadow: 0 0 0 0   rgba(34, 197, 94, 0.6); }
    60%  { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0);   }
    100% { box-shadow: 0 0 0 0   rgba(34, 197, 94, 0);   }
}

.hero-status__label {
    font-weight: 700;
    letter-spacing: 0.02em;
}

.hero-status--open .hero-status__label {
    color: #86efac;
}

.hero-status--closed .hero-status__label {
    color: rgba(255, 255, 255, 0.45);
}

.hero-status--holiday .hero-status__label {
    color: #fcd34d;
}

.hero-status__sep {
    color: rgba(255, 255, 255, 0.25);
}

.hero-status__hours {
    color: rgba(255, 255, 255, 0.55);
}

.hero-status__next {
    color: rgba(255, 106, 0, 0.85);
    font-size: 0.78rem;
}

.hero-status__link {
    color: var(--accent);
    font-size: 0.78rem;
    margin-left: 0.15rem;
    font-weight: 600;
}

@media (max-width: 480px) {
    .hero-status__next,
    .hero-status__link {
        display: none;
    }
    .hero-status {
        font-size: 0.72rem;
        padding: 0.35rem 0.75rem 0.35rem 0.6rem;
        max-width: calc(100vw - 2rem);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .hero__tagline {
        font-size: 0.68rem;
        letter-spacing: 0.05em;
        white-space: normal;
        word-break: keep-all;
    }
}

/* ==========================================================
   Contact Form 7 — 深色主題
   ========================================================== */
.wpcf7-form .wpcf7-text,
.wpcf7-form .wpcf7-email,
.wpcf7-form .wpcf7-textarea,
.wpcf7-form .wpcf7-select,
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm, 8px);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    font-size: 1.1rem;
    font-family: inherit;
    transition: border-color 0.2s, background 0.2s;
    display: block;
    box-sizing: border-box;
    margin-bottom: 0.75rem;
}

.wpcf7-form .wpcf7-text:focus,
.wpcf7-form .wpcf7-email:focus,
.wpcf7-form .wpcf7-textarea:focus,
.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 textarea:focus {
    outline: none;
    border-color: var(--accent, #ff6a00);
    background: #fff;
}

.wpcf7-form .wpcf7-text::placeholder,
.wpcf7-form .wpcf7-email::placeholder,
.wpcf7-form .wpcf7-textarea::placeholder,
.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
    color: var(--metal-light);
}

.wpcf7-form .wpcf7-textarea,
.wpcf7 textarea {
    min-height: 120px;
    resize: vertical;
}

.wpcf7-form input[type="submit"],
.wpcf7 input[type="submit"] {
    background: var(--accent, #ff6a00);
    color: #fff;
    border: none;
    border-radius: var(--radius-pill, 999px);
    padding: 0.875rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    min-height: 44px;
    transition: background 0.2s, transform 0.15s;
    margin-bottom: 0;
}

.wpcf7-form input[type="submit"]:hover {
    background: var(--accent-light, #ff8c35);
    transform: translateY(-1px);
}

/* 地圖欄對齊頂部，不強制拉伸到左欄高度 */
.contact-grid {
    align-items: start;
}

/* 訪客計數器 */
.footer-visitor-count {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
    margin-top: 0.25rem;
    letter-spacing: 0.02em;
}
.footer-visitor-count .visitor-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.95rem;
    color: var(--accent, #ff6a00);
    letter-spacing: 0.05em;
}
