/* ==========================================================================
   DAWNSCAPE STUDIO - Unreal Engine Showreel & Portfolio Stylesheet
   Clean, Focused, Minimalist Tech Aesthetics
   ========================================================================== */

/* 變數宣告與配色系統 */
:root {
    --bg-main: #0a0c10;
    --bg-sec: #10141d;
    --bg-card: #151a26;
    --bg-card-hover: #1b2232;
    --bg-elevated: #1e2638;
    
    --primary: #38bdf8;
    --primary-hover: #60a5fa;
    --primary-glow: rgba(56, 189, 248, 0.25);
    --accent-emerald: #10b981;
    --accent-amber: #f59e0b;
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-medium: rgba(255, 255, 255, 0.15);
    --border-focus: rgba(56, 189, 248, 0.4);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    --transition-fast: 0.18s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-full: 9999px;
    
    --header-height: 80px;
}

/* 基礎重設 */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    color-scheme: dark;
    scroll-padding-top: var(--header-height);
    scrollbar-gutter: stable;
    overflow-y: scroll;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-main);
    letter-spacing: -0.015em;
}

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

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

code {
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.88em;
    background: rgba(56, 189, 248, 0.1);
    color: var(--primary);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

/* 共用按鈕 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 0.75rem 1.6rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 0.92rem;
    border: 1px solid transparent;
}

.btn-sm {
    padding: 0.45rem 1.1rem;
    font-size: 0.84rem;
    border-radius: var(--radius-sm);
}

.btn-primary {
    background: #0284c7;
    color: #ffffff;
    border-color: #38bdf8;
    box-shadow: 0 2px 12px rgba(2, 132, 199, 0.4);
}

.btn-primary:hover {
    background: #0369a1;
    transform: translateY(-1px);
    box-shadow: 0 4px 18px rgba(2, 132, 199, 0.55);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid var(--border-medium);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-medium);
    color: var(--text-muted);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--text-main);
    color: #ffffff;
}

/* 標題與標籤 */
.section-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--primary);
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.2);
    padding: 0.3rem 0.85rem;
    border-radius: var(--radius-sm);
    margin-bottom: 0.8rem;
    text-transform: uppercase;
}

.section-header {
    margin-bottom: 3.2rem;
}

.section-header h2 {
    font-size: 2.4rem;
    margin-bottom: 0.8rem;
}

.section-intro {
    max-width: 820px;
    margin: 0 auto;
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.text-center {
    text-align: center;
}

/* 漸層文字 */
.gradient-text {
    background: linear-gradient(135deg, #ffffff 15%, var(--primary) 70%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   1. 導覽列 (Main Header)
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    background: rgba(10, 12, 16, 0.88);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-subtle);
    transition: var(--transition-fast);
}

.main-header.scrolled {
    background: rgba(10, 12, 16, 0.96);
    border-bottom-color: var(--border-medium);
}

.nav-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.brand-logo-img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.18rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #ffffff;
    line-height: 1.1;
}

.brand-sub {
    font-family: var(--font-heading);
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    color: var(--text-muted);
}

/* 右側操作區塊 (上下雙層：上排語系切換，下排導覽選項) */
.header-right-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 0.35rem;
}

/* 上層微型工具列 (切換鈕精準置於選項上方，靠右對齊) */
.top-utility-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* 語系切換器 (NeoBards 典雅風格文字鈕) */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.1rem 0;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.12rem 0.35rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 3px;
    letter-spacing: 0.04em;
    line-height: 1.2;
}

.lang-btn:hover {
    color: #ffffff;
}

.lang-btn.active {
    color: var(--primary);
    font-weight: 700;
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.45);
}

.lang-divider {
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.7rem;
    user-select: none;
    margin: 0 0.05rem;
}

/* 下層主導覽選單 (靠右排列) */
.nav-links {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    justify-content: flex-end;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 0.25rem 0;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-link:hover {
    color: #ffffff;
}

.nav-link.active {
    color: #ffffff;
    font-weight: 600;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.22s ease;
}

.nav-link.active::after {
    width: 100%;
}

/* 行動端操作區 */
.mobile-actions {
    display: none;
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    font-size: 1.8rem;
}

.hero-section {
    position: relative;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: calc(var(--header-height) + 1.5rem) 0 5.5rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.95);
    z-index: 1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 12, 16, 0.45) 0%, transparent 25%, transparent 70%, var(--bg-main) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    width: 100%;
    margin: 0 auto;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    opacity: 0.7;
    transition: var(--transition-fast);
}

.scroll-indicator:hover {
    opacity: 1;
}

.mouse-icon {
    width: 22px;
    height: 36px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 11px;
    display: flex;
    justify-content: center;
    padding-top: 5px;
}

.wheel {
    width: 3px;
    height: 7px;
    background: var(--primary);
    border-radius: 2px;
    animation: mouseScroll 1.8s infinite;
}

@keyframes mouseScroll {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(10px); opacity: 0; }
}

/* ==========================================================================
   3. 旗艦展示：Archviz 實時互動 (Archviz Demo)
   ========================================================================== */
.portfolio-section {
    padding: 5rem 0 6rem;
    background: var(--bg-main);
}

#archviz-demo {
    padding-top: 1.2rem;
    padding-bottom: 4.5rem;
    scroll-margin-top: var(--header-height);
}

.archviz-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.85rem;
    width: 100%;
    max-width: min(1060px, calc((100vh - var(--header-height) - 175px) * (16 / 9)));
    margin-left: auto;
    margin-right: auto;
}

.archviz-section-header h2 {
    font-size: 1.85rem;
    margin-bottom: 0;
    letter-spacing: 0.04em;
}

.showcase-video-container {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 0;
    width: 100%;
    max-width: min(1060px, calc((100vh - var(--header-height) - 175px) * (16 / 9)));
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.video-frame-header {
    background: var(--bg-sec);
    padding: 0.6rem 1.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-subtle);
}

.video-meta {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.live-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
}

.video-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.88rem;
    color: #ffffff;
}

.video-tags {
    display: flex;
    gap: 0.4rem;
}

.badge-mini {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
}

.video-player-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    background: #000;
    aspect-ratio: 16 / 9;
    max-height: calc(100vh - var(--header-height) - 215px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-player-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

video::-webkit-media-controls-overflow-button,
video::-webkit-media-controls-download-button {
    display: none !important;
}

.video-caption-bar {
    padding: 0.55rem 1.4rem;
    background: var(--bg-sec);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    border-top: 1px solid var(--border-subtle);
    min-height: 48px;
    box-sizing: border-box;
    flex-wrap: nowrap;
}

.video-caption-bar .video-expand-btn {
    flex-shrink: 0;
}

.caption-text {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    flex: 1;
    min-width: 0;
}

.caption-text strong {
    color: var(--primary);
}

/* ==========================================================================
   3.1 實時互動展示視窗主體 (Showcase Screen Body - Grid Stacking 等高定位)
   ========================================================================== */
.showcase-screen-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 1fr;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    position: relative;
    overflow: hidden;
}

.showcase-view-panel {
    grid-area: 1 / 1 / 2 / 2;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    transition: opacity 0.22s ease, visibility 0.22s ease;
    z-index: 2;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.showcase-view-panel.panel-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 1;
}

.interactive-split-console {
    grid-area: 1 / 1 / 2 / 2;
    display: flex;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 100%;
    min-height: 480px;
    background: var(--bg-card);
    transition: opacity 0.22s ease, visibility 0.22s ease;
    z-index: 1;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    box-sizing: border-box;
}

.interactive-split-console.panel-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
}

.console-media-column {
    width: 62%;
    min-width: 0;
    max-width: 62%;
    display: flex;
    flex-direction: column;
    background: #000;
    position: relative;
    border-right: 1px solid var(--border-subtle);
    height: 100%;
    min-height: 0;
    box-sizing: border-box;
}

.console-media-stage {
    flex: 1;
    min-height: 0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #050608;
}

.console-media-stage video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.console-media-stage img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.25s ease;
}

.stage-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(10, 12, 16, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 10;
    backdrop-filter: blur(6px);
}

.stage-nav-btn:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    transform: translateY(-50%) scale(1.08);
}

.stage-prev-btn {
    left: 12px;
}

.stage-next-btn {
    right: 12px;
}

.stage-top-meta {
    position: absolute;
    top: 10px;
    left: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
    pointer-events: none;
}

.stage-category-badge {
    background: rgba(10, 12, 16, 0.85);
    border: 1px solid var(--border-subtle);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 600;
    color: #38bdf8;
    backdrop-filter: blur(8px);
    pointer-events: auto;
}
 
.stage-top-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    pointer-events: auto;
}

.stage-action-btn,
.stage-fullscreen-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: rgba(10, 12, 16, 0.85);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    pointer-events: auto;
    backdrop-filter: blur(8px);
}

.stage-action-btn:hover,
.stage-fullscreen-btn:hover {
    color: #ffffff;
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.2);
}

.stage-action-btn.paused {
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.4);
}

.stage-dots-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 8px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.stage-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: var(--transition-fast);
}

.stage-dot:hover {
    background: rgba(255, 255, 255, 0.75);
}

.stage-dot.active {
    background: #38bdf8;
    width: 18px;
    border-radius: 4px;
}

.console-media-footer {
    background: var(--bg-sec);
    padding: 0.55rem 1.1rem;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    font-size: 0.84rem;
    flex-shrink: 0;
    min-height: 48px;
    box-sizing: border-box;
}

.console-footer-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    flex: 1;
    min-width: 0;
    line-height: 1.35;
}

#consoleItemTitle,
#sceneConsoleItemTitle {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    font-size: 0.82rem;
    white-space: normal;
}

.stage-info-icon {
    font-size: 1rem;
    color: var(--primary);
    flex-shrink: 0;
}

.console-footer-counter {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-sm);
}

.console-options-column {
    width: 38%;
    min-width: 0;
    max-width: 38%;
    background: var(--bg-sec);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow-y: hidden;
    padding: 0.55rem;
    gap: 0.45rem;
    box-sizing: border-box;
}

.console-option-card {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.55rem 0.85rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
    flex: 0 0 calc((100% - 4 * 0.45rem) / 5);
    height: calc((100% - 4 * 0.45rem) / 5);
    min-height: 0;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.console-option-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(2px);
}

.console-option-card.active {
    background: rgba(2, 132, 199, 0.14);
    border-color: #38bdf8;
    box-shadow: 0 0 16px rgba(2, 132, 199, 0.25);
}

.console-option-card.active .option-title {
    color: #38bdf8;
    font-weight: 700;
}

.console-option-card.active .option-icon-box {
    background: #0284c7;
    color: #ffffff;
    border-color: #38bdf8;
}

.option-icon-box {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.option-info {
    flex: 1;
    min-width: 0;
}

.option-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.1rem;
}

.option-index {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--primary);
    text-transform: uppercase;
}

.option-badge {
    font-size: 0.65rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    padding: 0.08rem 0.35rem;
    border-radius: 4px;
    color: var(--text-muted);
}

.option-title {
    font-family: var(--font-heading);
    font-size: 0.86rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.12rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.option-desc {
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

.tooling-pills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 0.35rem;
}

.tool-sub-pill {
    font-size: 0.68rem;
    padding: 0.12rem 0.42rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.tool-sub-pill:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
}

.tool-sub-pill.active {
    background: rgba(2, 132, 199, 0.28);
    border-color: #38bdf8;
    color: #38bdf8;
    font-weight: 600;
}

/* 篩選標籤 */
.breakdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.2rem;
    flex-wrap: wrap;
    gap: 1.2rem;
}

.breakdown-title-group {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.breakdown-icon {
    font-size: 1.6rem;
    color: var(--primary);
}

.breakdown-title-group h3 {
    font-size: 1.6rem;
}

.tech-filter-buttons {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--bg-card);
    padding: 0.25rem 0.35rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.filter-tab {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.84rem;
    font-weight: 500;
    padding: 0.42rem 0.95rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.filter-tab:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.filter-tab.active {
    background: #0284c7;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(2, 132, 199, 0.45);
}

/* 技術網格 */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.tech-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-fast);
    display: flex;
    flex-direction: column;
}

.tech-card:hover {
    border-color: var(--border-medium);
    transform: translateY(-2px);
}

.tech-card.highlight-card {
    grid-column: span 2;
    background: var(--bg-elevated);
    border-color: rgba(245, 158, 11, 0.35);
}

.tech-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    cursor: pointer;
    background: #000;
}

.tech-card-media img, .tech-card-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.tech-card:hover .tech-card-media img,
.tech-card:hover .tech-card-media video {
    transform: scale(1.02);
}

.media-type-badge {
    position: absolute;
    top: 0.8rem;
    left: 0.8rem;
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.74rem;
    font-weight: 600;
    color: #ffffff;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    z-index: 2;
}

.media-type-badge.highlight-badge {
    border-color: var(--accent-amber);
    color: var(--accent-amber);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0;
    transition: var(--transition-fast);
    z-index: 3;
}

.card-overlay .zoom-icon {
    font-size: 2rem;
}

.tech-card-media:hover .card-overlay {
    opacity: 1;
}

.tech-card-body {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-chip {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--primary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.card-chip.gold-chip {
    color: var(--accent-amber);
}

.tech-card-body h4 {
    font-size: 1.2rem;
    margin-bottom: 0.7rem;
    line-height: 1.35;
}

.tech-card-body p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.65;
    margin-bottom: 1.3rem;
    flex-grow: 1;
}

.card-gallery-previews {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
}

.gallery-thumb {
    width: 58px;
    height: 38px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    cursor: pointer;
    transition: var(--transition-fast);
}

.gallery-thumb:hover, .gallery-thumb.active {
    border-color: var(--primary);
    transform: scale(1.05);
}

.tool-metrics-row {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
}

.metric-tag {
    font-size: 0.8rem;
    font-weight: 500;
    color: #e2e8f0;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.25);
    padding: 0.35rem 0.8rem;
    border-radius: var(--radius-sm);
}

/* ==========================================================================
   4. 場景製作 (Scene Production: VP場景製作 & VR場景製作 控制台)
   ========================================================================== */
.scene-production-section {
    padding: 3.5rem 0 5rem;
    background: var(--bg-sec);
    border-top: 1px solid var(--border-subtle);
    scroll-margin-top: var(--header-height);
}

.scene-screen-body {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    max-height: calc(100vh - var(--header-height) - 215px);
    min-height: 480px;
    position: relative;
    overflow: hidden;
    display: flex;
}

.scene-screen-body .interactive-split-console {
    grid-area: auto;
    width: 100%;
    height: 100%;
    min-height: 480px;
    display: flex;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.sub-project-block {
    margin-bottom: 3rem;
}

.sub-project-header {
    margin-bottom: 2.5rem;
}

.sub-project-badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--primary);
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    margin-bottom: 0.8rem;
}

.sub-project-badge.green-badge {
    color: var(--accent-emerald);
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.25);
}

.sub-project-header h3 {
    font-size: 1.85rem;
    margin-bottom: 0.6rem;
    color: #ffffff;
}

.sub-project-summary {
    color: var(--text-muted);
    font-size: 1.02rem;
    max-width: 820px;
    line-height: 1.7;
}

.project-divider {
    height: 1px;
    background: var(--border-subtle);
    margin: 4.5rem 0;
}

/* 古鎮場景版面 */
.pcg-layout-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.pcg-media-panel {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.pcg-video-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.card-header-label {
    padding: 0.85rem 1.3rem;
    background: rgba(10, 12, 16, 0.75);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.88rem;
    border-bottom: 1px solid var(--border-subtle);
    color: #ffffff;
}

.card-header-label .material-symbols-outlined {
    color: var(--primary);
    font-size: 1.15rem;
}

.pcg-video-card video {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.pcg-info-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2.2rem;
}

.pcg-graph-preview-box {
    margin-bottom: 1.8rem;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.pcg-preview-header {
    background: rgba(10, 12, 16, 0.75);
    padding: 0.75rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.pcg-preview-header .material-symbols-outlined {
    color: var(--primary);
}

.pcg-preview-header h4 {
    font-size: 0.94rem;
    font-weight: 600;
}

.zoomable-wrapper {
    position: relative;
    cursor: pointer;
    aspect-ratio: 16 / 8;
    background: #000;
    overflow: hidden;
}

.zoomable-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pcg-tech-details {
    margin-bottom: 1.8rem;
}

.pcg-tech-details h4 {
    font-size: 1.05rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.tech-point {
    display: flex;
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.point-icon {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    background: rgba(56, 189, 248, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.point-text strong {
    font-size: 0.92rem;
    color: #ffffff;
    display: block;
    margin-bottom: 0.2rem;
}

.point-text p {
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.pcg-gallery-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--border-subtle);
}

.pcg-thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    cursor: pointer;
    transition: var(--transition-fast);
}

.pcg-thumb:hover, .pcg-thumb.active {
    border-color: var(--primary);
    transform: scale(1.04);
}

/* 黑潮優化版面 */
.optimization-benchmark-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2.2rem;
    margin-bottom: 3.5rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
}

.bench-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bench-badge {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-sm);
    align-self: flex-start;
}

.bench-badge.negative {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.bench-badge.positive {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.bench-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.bench-col ul li {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.bench-col.highlight ul li {
    color: #f1f5f9;
}

.bench-col ul li .material-symbols-outlined {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.bench-col:not(.highlight) ul li .material-symbols-outlined {
    color: #ef4444;
}

.bench-col.highlight ul li .material-symbols-outlined {
    color: #10b981;
}

.bench-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 2.2rem;
}

.kuroshio-media-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.kuroshio-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.kuroshio-card.highlight-border {
    border-color: rgba(16, 185, 129, 0.3);
}

.kuroshio-card-head {
    padding: 0.9rem 1.3rem;
    background: rgba(10, 12, 16, 0.75);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.kuroshio-card-head .material-symbols-outlined {
    color: var(--primary);
}

.kuroshio-card.highlight-border .kuroshio-card-head .material-symbols-outlined {
    color: var(--accent-emerald);
}

.kuroshio-card-head h4 {
    font-size: 0.95rem;
    font-weight: 600;
}

.kuroshio-video-box video {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.kuroshio-card-foot {
    padding: 1rem 1.3rem;
    font-size: 0.88rem;
    color: var(--text-muted);
    background: var(--bg-card);
    border-top: 1px solid var(--border-subtle);
}

.kuroshio-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem;
}

.kuroshio-img-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-fast);
}

.kuroshio-img-card:hover {
    border-color: var(--border-medium);
}

.kuroshio-img-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.img-legend {
    padding: 1rem 1.3rem;
    font-size: 0.88rem;
    border-top: 1px solid var(--border-subtle);
}

.img-legend strong {
    color: #ffffff;
    display: block;
    margin-bottom: 0.2rem;
}

.img-legend span {
    color: var(--text-muted);
}

/* ==========================================================================
   5. 燈箱彈窗 (Lightbox Modal)
   ========================================================================== */
.lightbox-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(15px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.lightbox-modal.active {
    display: flex;
    opacity: 1;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    z-index: 10;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox-media-container {
    max-width: 100%;
    max-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #000;
}

.lightbox-media-container img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
}

.lightbox-media-container video {
    max-width: 100%;
    max-height: 75vh;
}

.lightbox-nav-buttons {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
    padding: 0 1rem;
}

.lightbox-nav-btn {
    pointer-events: auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.lightbox-nav-btn:hover {
    background: rgba(56, 189, 248, 0.4);
    border-color: var(--primary);
}

.lightbox-footer {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 900px;
    padding: 0 0.5rem;
}

.lightbox-caption {
    font-size: 0.95rem;
    font-weight: 500;
    color: #ffffff;
}

.lightbox-counter {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* ==========================================================================
   6. 聯絡我們 (Contact Section)
   ========================================================================== */
.contact-section {
    padding: 1.4rem 0 2rem;
    background: var(--bg-main);
    border-top: 1px solid var(--border-subtle);
    scroll-margin-top: calc(var(--header-height) - 10px);
}

.contact-container-wrapper {
    width: 100%;
    max-width: min(1040px, 100%);
    margin: 0 auto;
}

.contact-header-block {
    text-align: center;
    margin-bottom: 1.1rem;
}

.contact-header-block .section-tag {
    margin-bottom: 0.35rem;
    font-size: 0.72rem;
    letter-spacing: 0.15em;
}

.contact-header-block h2 {
    font-size: 1.75rem;
    letter-spacing: 0.04em;
    margin-bottom: 0.35rem;
    color: #ffffff;
}

.contact-intro {
    max-width: 660px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

/* 雙欄版面：左側聯絡資訊，右側留言表單 */
.contact-split-wrapper {
    display: grid;
    grid-template-columns: 0.9fr 1.25fr;
    gap: 1.4rem;
    align-items: stretch;
}

/* 左側：官方聯絡資訊卡片 */
.contact-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.6rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.contact-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary) 0%, #0284c7 100%);
}

.info-card-header {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 1.1rem;
}

.info-card-badge {
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--primary);
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: var(--radius-full);
    padding: 0.15rem 0.55rem;
}

.direct-email-block {
    background: rgba(10, 12, 16, 0.75);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.1rem;
}

.direct-icon-box {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.direct-icon-box .material-symbols-outlined {
    font-size: 1.4rem;
}

.direct-email-details {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    overflow: hidden;
}

.direct-label {
    font-size: 0.74rem;
    font-family: var(--font-heading);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.direct-email-text {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    word-break: break-all;
}

.direct-actions-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0;
    flex-wrap: wrap;
}

.direct-copy-btn {
    flex: 1;
    min-width: 110px;
    padding: 0.55rem 0.9rem;
    font-size: 0.86rem;
}

.direct-copy-btn.copied {
    border-color: var(--accent-emerald) !important;
    color: var(--accent-emerald) !important;
    background: rgba(16, 185, 129, 0.15) !important;
}

.direct-ig-btn {
    flex: 1;
    min-width: 110px;
    padding: 0.55rem 0.9rem;
    font-size: 0.86rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    text-decoration: none;
    color: var(--text-main);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
    transition: var(--transition-fast);
}

.direct-ig-btn:hover {
    border-color: #e1306c;
    color: #ffffff;
    background: rgba(225, 48, 108, 0.15);
    box-shadow: 0 0 14px rgba(225, 48, 108, 0.25);
}

/* 右側：線上留言諮詢表單卡片 */
.contact-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.35rem 1.5rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.form-card-header {
    margin-bottom: 0.75rem;
}

.form-card-header h3 {
    font-size: 1.18rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.2rem;
}

.form-card-header p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.consult-form {
    display: flex;
    flex-direction: column;
}

/* 雙欄表單行 (姓名 + 聯絡方式並排以節省垂直高度) */
.form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 0.75rem;
}

.form-group {
    margin-bottom: 0.55rem;
}

.form-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    font-weight: 500;
    color: #cbd5e1;
    margin-bottom: 0.25rem;
}

.required-star {
    color: #f43f5e;
    font-weight: 700;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 0.8rem;
    color: var(--text-dim);
    pointer-events: none;
    font-size: 1.05rem;
    transition: var(--transition-fast);
}

.form-input {
    width: 100%;
    background: rgba(10, 12, 16, 0.75);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0.46rem 0.8rem 0.46rem 2.3rem;
    color: #ffffff;
    font-size: 0.86rem;
    font-family: var(--font-body);
    transition: var(--transition-smooth);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 12px var(--primary-glow);
    background: rgba(10, 12, 16, 0.95);
}

.form-input:focus + .input-icon,
.input-wrapper:focus-within .input-icon {
    color: var(--primary);
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2394a3b8'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.1rem;
    padding-right: 2.2rem;
}

.form-select option {
    background: #0f131a;
    color: #ffffff;
    padding: 0.4rem;
}

.textarea-wrapper {
    align-items: flex-start;
}

.textarea-icon {
    top: 0.5rem;
}

.form-textarea {
    resize: vertical;
    min-height: 62px;
    padding-top: 0.46rem;
    line-height: 1.45;
}

.form-actions-row {
    margin-top: 0.35rem;
}

.form-submit-btn {
    width: 100%;
    padding: 0.62rem 1.2rem;
    font-size: 0.92rem;
    font-weight: 600;
    justify-content: center;
    gap: 0.45rem;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
}

.form-status-alert {
    margin-top: 0.55rem;
    padding: 0.55rem 0.85rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    line-height: 1.4;
    animation: fadeIn 0.3s ease;
}

.alert-success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34d399;
}

.alert-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #f87171;
}

.footer-social-link {
    color: var(--text-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition-fast);
}

.footer-social-link:hover {
    color: #e1306c;
}

/* ==========================================================================
   7. 頁尾 (Minimal Footer)
   ========================================================================== */
.main-footer {
    background: #06080b;
    border-top: 1px solid var(--border-subtle);
    padding: 1.6rem 0;
}

.footer-clean-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.2rem;
    font-size: 0.88rem;
    color: var(--text-dim);
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.footer-logo {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #ffffff;
}

.footer-divider {
    color: var(--border-medium);
    user-select: none;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-email-link {
    color: var(--text-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition-fast);
}

.footer-email-link:hover {
    color: var(--primary);
}

.footer-right a {
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: var(--transition-fast);
}

.footer-right a:hover {
    color: var(--primary);
}

/* 漸顯動態 */
.scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

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

/* ==========================================================================
   7. 響應式佈局 (Responsive)
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .pcg-layout-grid {
        grid-template-columns: 1fr;
    }
    
    .optimization-benchmark-card {
        grid-template-columns: 1fr;
    }
    
    .bench-arrow {
        transform: rotate(90deg);
    }
}

@media (max-width: 768px) {
    .header-right-block {
        flex-direction: row;
        align-items: center;
    }
    
    .top-utility-bar {
        display: none;
    }
    
    .mobile-actions {
        display: flex;
        align-items: center;
        gap: 0.8rem;
    }
    
    .mobile-menu-toggle {
        display: block;
    }

    .nav-links, .nav-cta {
        display: none;
    }
    
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: rgba(10, 12, 16, 0.98);
        padding: 2rem 1.8rem;
        gap: 1.2rem;
        border-bottom: 1px solid var(--border-medium);
        z-index: 1001;
    }
    
    .hero-title {
        font-size: 2.3rem;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-card.highlight-card {
        grid-column: span 1;
    }
    
    .kuroshio-media-grid,
    .kuroshio-gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-clean-wrapper {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    #archviz-demo {
        padding-top: 1.5rem;
    }

    .archviz-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .tech-filter-buttons {
        width: 100%;
        overflow-x: auto;
        padding: 0.25rem;
        -webkit-overflow-scrolling: touch;
    }

    .filter-tab {
        padding: 0.38rem 0.8rem;
        font-size: 0.78rem;
    }

    .video-frame-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .video-caption-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .video-caption-bar .video-expand-btn {
        width: 100%;
        justify-content: center;
    }

    .showcase-screen-body {
        display: block;
    }

    .showcase-view-panel.panel-hidden {
        display: none;
    }

    .interactive-split-console {
        display: none;
        flex-direction: column;
        height: auto;
        max-height: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .interactive-split-console.panel-active {
        display: flex;
    }

    .console-media-column {
        width: 100%;
        height: 320px;
        border-right: none;
        border-bottom: 1px solid var(--border-subtle);
    }

    .console-media-footer {
        padding: 0.45rem 0.75rem;
        gap: 0.5rem;
        min-height: 42px;
    }

    .console-options-column {
        width: 100%;
        height: auto;
        max-height: 280px;
        overflow-y: auto;
    }

    .console-option-card {
        flex: none;
        min-height: 64px;
    }

    /* 合作洽詢與表單響應式適配 */
    .contact-split-wrapper {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .form-row-2col {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-info-card,
    .contact-form-card {
        padding: 1.25rem 1.1rem;
    }

    .direct-actions-row {
        flex-direction: column;
        width: 100%;
    }

    .direct-copy-btn,
    .direct-ig-btn {
        width: 100%;
    }
}
