/* =============================
   main.css - 主要樣式表
   =============== */

/* ==================== CSS 變數 - 排版系統 ============= */
:root {
    /* 主色調 - Cyan */
    --primary-400: #22d3ee;
    --primary-500: #06b6d4;
    --primary-600: #0891b2;

    /* 強調色 - Blue */
    --accent-400: #60a5fa;
    --accent-500: #3b82f6;
    --accent-600: #2563eb;

    /* 中性色 */
    --neutral-300: #cbd5e1;
    --neutral-400: #94a3b8;
    --neutral-500: #64748b;
    --neutral-600: #475569;
    --neutral-700: #334155;
    --neutral-800: #1e293b;
    --neutral-900: #0f172a;

    /* 背景色 */
    --bg-primary: #0a0b14;
    --bg-secondary: #12141f;
    --bg-tertiary: #1a1d2e;

    /* 語義化顏色 */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;

    /* Type Scale (1.25 比例) */
    --text-xs: 0.75rem;      /* 12px */
    --text-sm: 0.875rem;     /* 14px */
    --text-base: 1rem;    /* 16px */
    --text-lg: 1.25rem;      /* 20px */
    --text-xl: 1.5rem;       /* 24px */
    --text-2xl: 1.875rem;    /* 30px */
    --text-3xl: 2.25rem;     /* 36px */
    --text-4xl: 3rem;        /* 48px */

    /* 行高 */
    --leading-tight: 1.25;
    --leading-normal: 1.5;
    --leading-relaxed: 1.75;

    /* 字重 */
  --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;

    /* 動畫時長 */
    --duration-fast: 150ms;
    --duration-normal: 250ms;
    --duration-slow: 350ms;

    /* 緩動函數 */
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in: cubic-bezier(0.4, 0, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --ease-elastic: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 隱藏 Vue 未載入的內容 */
[v-cloak] {
    display: none;
}

/* 網格背景 */
.bg-cyber {
    background-color: var(--bg-primary);
    background-image: radial-gradient(#1f2233 1px, transparent 1px);
    background-size: 20px 20px;
}

/* ========== 玻璃擬態面板層級系統 ======== */
/* Level 1 - 主要內容區 */
.glass-panel,
.glass-panel-primary {
    background: rgba(18, 20, 31, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(34, 211, 238, 0.15);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

/* Level 2 - 卡片/模組 */
.glass-panel-secondary {
    background: rgba(26, 29, 46, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(100, 116, 139, 0.2);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

/* Level 3 - 懸浮層/彈窗 */
.glass-panel-elevated {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(34, 211, 238, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* HUD 風格文字 */
.hud-text {
    font-family: 'Orbitron', sans-serif;
    font-weight: var(--font-medium);
    letter-spacing: 0.05em;
    line-height: var(--leading-normal);
}

/* 標題層級系統 */
h1 {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.02em;
}

h2 {
    font-size: var(--text-2xl);
    font-weight: var(--font-semibold);
    line-height: var(--leading-tight);
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.02em;
}

h3 {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    line-height: var(--leading-normal);
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.01em;
}

/* 正文文字 */
p {
    font-size: var(--text-base);
    font-weight: var(--font-normal);
    line-height: var(--leading-relaxed);
}

/* 小字文字 */
small {
    font-size: var(--text-sm);
    line-height: var(--leading-normal);
}

/* 移動端字體大小調整（確保最小 16px） */
@media (max-width: 768px) {
    :root {
        --text-xs: 0.75rem;      /* 12px */
        --text-sm: 0.875rem;     /* 14px */
        --text-base: 1rem;       /* 16px - 最小值 */
      --text-lg: 1.125rem;     /* 18px */
     --text-xl: 1.25rem;      /* 20px */
        --text-2xl: 1.5rem;      /* 24px */
        --text-3xl: 1.875rem;    /* 30px */
        --text-4xl: 2.25rem;     /* 36px */
    }
}

/* 自訂滾動條 */
.scroll-hide::-webkit-scrollbar {
    width: 4px;
}

.scroll-hide::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 2px;
}

.scroll-hide::-webkit-scrollbar-track {
    background: transparent;
}

/* 安全區域底部內距 */
.pb-safe {
    padding-bottom: env(safe-area-inset-bottom);
}

/* Toast 動畫 - 使用新變數 */
.toast-enter-active,
.toast-leave-active {
    transition: all var(--duration-normal) var(--ease-in-out);
}

.toast-enter-from,
.toast-leave-to {
    opacity: 0;
    transform: translateX(20px);
}

/* 燈箱效果 */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

/* 即時狀態指示燈 */
.live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 8px #4ade80;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        transform: scale(0.95);
        opacity: 0.7;
    }
}

/* 脈衝紅光 */
.animate-pulse-red {
    animation: pulse-red 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-red {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* 漸層邊框 */
.gradient-border {
    position: relative;
    background: linear-gradient(to right, #06b6d4, #3b82f6);
    padding: 1px;
    border-radius: 0.5rem;
}

.gradient-border-inner {
    background: #0f172a;
    border-radius: calc(0.5rem - 1px);
}

/* 載入動畫 */
.spinner {
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-left-color: #06b6d4;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ======== Loading Skeleton 動畫 ============ */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
      background-position: 200% 0;
    }
}

.skeleton {
    background: linear-gradient(
        90deg,
        rgba(51, 65, 85, 0.4) 25%,
        rgba(71, 85, 105, 0.6) 50%,
        rgba(51, 65, 85, 0.4) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 0.25rem;
}

/* ============ GPU 加速 ========== */
.gpu-accelerated {
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
}

/* ========== 響應式設計系統 ============ */

/* 觸控目標最小尺寸 (44x44px iOS 標準) */
.touch-target {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* 響應式表格 */
@media (max-width: 768px) {
    .mobile-card {
        display: block;
    }

    .desktop-table {
        display: none;
    }
}

@media (min-width: 769px) {
    .mobile-card {
        display: none;
    }

    .desktop-table {
        display: table;
    }
}

/* ================== 斷點系統 ==================== */

/* Mobile (< 375px) - 超小屏幕 */
@media (max-width: 374px) {
    .glass-panel {
        padding: 0.75rem;
    }

    .btn-primary,
    .btn-secondary,
    .btn-danger {
        padding: 0.75rem 1rem;
        font-size: 0.8125rem;
    }

    .form-input {
      padding: 0.875rem;
        font-size: 0.8125rem;
    }
}

/* Mobile (375px - 639px) - 標準手機 */
@media (min-width: 375px) and (max-width: 639px) {
    /* 增大按鈕觸控區域 */
    .btn-primary,
    .btn-secondary,
    .btn-danger {
        padding: 0.875rem 1.5rem;
        min-height: 44px;
    }

    /* 增大表單輸入框 */
    .form-input {
        padding: 1rem;
        font-size: 0.875rem;
        min-height: 44px;
    }

    /* 增大卡片間距 */
    .glass-panel {
        padding: 1.25rem;
    }

    /* Tab 按鈕優化 */
    .tab-btn {
        padding: 0.875rem 1.25rem;
        min-height: 44px;
    }
}

/* Tablet Portrait (640px - 767px) */
@media (min-width: 640px) and (max-width: 767px) {
    .btn-primary,
    .btn-secondary,
    .btn-danger {
        padding: 0.75rem 1.5rem;
    }

    .form-input {
        padding: 0.875rem 1rem;
    }

    .glass-panel {
        padding: 1.5rem;
  }
}

/* Tablet Landscape (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .glass-panel {
        padding: 1.5rem;
    }

    .modal-content {
        max-width: 600px;
    }
}

/* Desktop (1024px - 1279px) */
@media (min-width: 1024px) and (max-width: 1279px) {
    .modal-content {
      max-width: 700px;
    }
}

/* Large Desktop (>= 1280px) */
@media (min-width: 1280px) {
    .modal-content {
        max-width: 800px;
    }
}

/* =============== 橫屏模式優化 ==================== */

/* 手機橫屏 (高度 < 500px) */
@media (max-height: 500px) and (orientation: landscape) {
    /* 減少垂直間距 */
    .glass-panel {
        padding: 0.75rem 1rem;
    }

    /* 縮小按鈕高度 */
    .btn-primary,
    .btn-secondary,
    .btn-danger {
        padding: 0.5rem 1.25rem;
    }

    /* 縮小表單輸入框 */
    .form-input {
        padding: 0.625rem 1rem;
    }

    /* 模態框優化 */
    .modal-content {
        max-height: 90vh;
        overflow-y: auto;
        padding: 1rem;
    }

    /* Toast 位置調整 */
    .toast {
        padding: 0.625rem 1rem;
        font-size: 0.8125rem;
    }
}

/* 平板橫屏 (高度 500px - 800px) */
@media (min-height: 500px) and (max-height: 800px) and (orientation: landscape) {
    .modal-content {
        max-height: 85vh;
        overflow-y: auto;
    }
}

/* ========= 觸控設備優化 ================= */

/* 禁用觸控設備的 hover 效果 */
@media (hover: none) and (pointer: coarse) {
    /* 卡片懸浮效果 */
    .card-hover:hover {
        transform: none;
      box-shadow: none;
    }

    /* 按鈕懸浮效果 */
    .btn-primary:hover {
        transform: none;
        box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
    }

    .btn-secondary:hover {
        background: rgba(30, 41, 59, 0.8);
        border-color: rgba(71, 85, 105, 0.5);
    }

    .btn-danger:hover {
n.btn-danger:active {
    transform: scale(0.97);
    transition: transform 100ms var(--ease-out);
}
        transform: none;
n.btn-danger:active {
    transform: scale(0.97);
    transition: transform 100ms var(--ease-out);
}
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
n.btn-danger:active {
    transform: scale(0.97);
    transition: transform 100ms var(--ease-out);
}
    }
n.btn-danger:active {
    transform: scale(0.97);
    transition: transform 100ms var(--ease-out);
}

n.btn-danger:active {
    transform: scale(0.97);
    transition: transform 100ms var(--ease-out);
}
    /* Tab 按鈕 */
n.btn-danger:active {
    transform: scale(0.97);
    transition: transform 100ms var(--ease-out);
}
    .tab-inactive:hover {
n.btn-danger:active {
    transform: scale(0.97);
    transition: transform 100ms var(--ease-out);
}
        background: rgba(30, 41, 59, 0.5);
n.btn-danger:active {
    transform: scale(0.97);
    transition: transform 100ms var(--ease-out);
}
        border-color: rgba(71, 85, 105, 0.3);
n.btn-danger:active {
    transform: scale(0.97);
    transition: transform 100ms var(--ease-out);
}
        color: #cbd5e1 !important;
n.btn-danger:active {
    transform: scale(0.97);
    transition: transform 100ms var(--ease-out);
}
    }
n.btn-danger:active {
    transform: scale(0.97);
    transition: transform 100ms var(--ease-out);
}

n.btn-danger:active {
    transform: scale(0.97);
    transition: transform 100ms var(--ease-out);
}
    /* Tooltip 禁用 */
n.btn-danger:active {
    transform: scale(0.97);
    transition: transform 100ms var(--ease-out);
}
    .tooltip:hover::after {
n.btn-danger:active {
    transform: scale(0.97);
    transition: transform 100ms var(--ease-out);
}
        opacity: 0;
n.btn-danger:active {
    transform: scale(0.97);
    transition: transform 100ms var(--ease-out);
}
    }
n.btn-danger:active {
    transform: scale(0.97);
    transition: transform 100ms var(--ease-out);
}

n.btn-danger:active {
    transform: scale(0.97);
    transition: transform 100ms var(--ease-out);
}
    /* 預設按鈕 */
n.btn-danger:active {
    transform: scale(0.97);
    transition: transform 100ms var(--ease-out);
}
    .preset-btn:hover {
n.btn-danger:active {
    transform: scale(0.97);
    transition: transform 100ms var(--ease-out);
}
        transform: none;
n.btn-danger:active {
    transform: scale(0.97);
    transition: transform 100ms var(--ease-out);
}
        box-shadow: none;
n.btn-danger:active {
    transform: scale(0.97);
    transition: transform 100ms var(--ease-out);
}
    }
n.btn-danger:active {
    transform: scale(0.97);
    transition: transform 100ms var(--ease-out);
}
}
n.btn-danger:active {
    transform: scale(0.97);
    transition: transform 100ms var(--ease-out);
}

/* 保留觸控設備的 active 狀態反饋 */
@media (hover: none) and (pointer: coarse) {
    .btn-animate:active {
        transform: scale(0.95);
    }

    .btn-primary:active,
    .btn-secondary:active,
    .btn-danger:active {
        opacity: 0.9;
    }
}

/* 狀態徽章 */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem var(--text-xs);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success {
    background-color: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-warning {
    background-color: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.badge-error {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-info {
    background-color: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* 懸浮提示 - 使用新變數 */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem;
    background: #1f2937;
    color: white;
    font-size: 0.75rem;
    border-radius: 0.25rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration-normal) var(--ease-in-out);
    margin-bottom: 0.5rem;
}

.tooltip:hover::after {
    opacity: 1;
}

/* 卡片懸浮效果 - 使用新變數和優化 */
.card-hover {
    transition: all var(--duration-normal) var(--ease-out);
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(34, 211, 238, 0.15);
}

/* 按鈕動畫 - 使用新變數和優化 */
.btn-animate {
    transition: all var(--duration-fast) var(--ease-out);
}

.btn-animate:active {
    transform: scale(0.97);
    transition: transform 100ms var(--ease-out);
}

/* 網格動畫 */
.grid-fade-in > * {
    animation: fadeIn 0.5s ease-in-out;
    animation-fill-mode: both;
}

.grid-fade-in > *:nth-child(1) { animation-delay: 0.05s; }
.grid-fade-in > *:nth-child(2) { animation-delay: 0.1s; }
.grid-fade-in > *:nth-child(3) { animation-delay: 0.15s; }
.grid-fade-in > *:nth-child(4) { animation-delay: 0.2s; }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============ 分頁按鈕樣式 ================= */
.tab-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all var(--duration-fast) var(--ease-in-out);
    white-space: nowrap;
    border: 1px solid transparent;
}

.tab-active {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2) 0%, rgba(59, 130, 246, 0.2) 100%);
    border-color: rgba(6, 182, 212, 0.5);
    color: #06b6d4 !important;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.2);
}

.tab-inactive {
    background: rgba(30, 41, 59, 0.5);
    border-color: rgba(71, 85, 105, 0.3);
    color: #cbd5e1 !important;
}

.tab-inactive:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(100, 116, 139, 0.5);
    color: #e2e8f0 !important;
}

/* ==================== 按鈕樣式 ==================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 0.625rem 1.25rem;
    background: linear-gradient(120deg, var(--primary-400) 0%, var(--accent-500) 100%);
    box-shadow: 0 4px 12px rgba(34, 211, 238, 0.3);
    color: white !important;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all var(--duration-normal) var(--ease-in-out);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(6, 182, 212, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 0.625rem 1.25rem;
    background: rgba(30, 41, 59, 0.8);
    color: #cbd5e1 !important;
    font-weight: 500;
    border-radius: 0.5rem;
    border: 1px solid rgba(71, 85, 105, 0.5);
    transition: all var(--duration-normal) var(--ease-in-out);
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(51, 65, 85, 0.9);
    color: #e2e8f0 !important;
    border-color: rgba(100, 116, 139, 0.7);
}

.btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-danger {
    display: inline-flex;
    align-items: center;
    padding: 0.625rem 1.25rem;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white !important;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all var(--duration-normal) var(--ease-in-out);
    border: none;
    cursor: pointer;
}

.btn-danger:hover {
n.btn-danger:active {
    transform: scale(0.97);
    transition: transform 100ms var(--ease-out);
}
    transform: translateY(-1px);
n.btn-danger:active {
    transform: scale(0.97);
    transition: transform 100ms var(--ease-out);
}
    box-shadow: 0 8px 16px rgba(239, 68, 68, 0.3);
n.btn-danger:active {
    transform: scale(0.97);
    transition: transform 100ms var(--ease-out);
}
}
n.btn-danger:active {
    transform: scale(0.97);
    transition: transform 100ms var(--ease-out);
}

/* ==================== 表單樣式 ==================== */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    color: #cbd5e1;
    font-size: 0.875rem;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(71, 85, 105, 0.5);
    border-radius: 0.5rem;
    color: white;
    font-size: 0.875rem;
    transition: all var(--duration-normal) var(--ease-in-out);
}

.form-input:focus {
    outline: none;
    border-color: rgba(6, 182, 212, 0.7);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
    background: rgba(15, 23, 42, 0.8);
}

.form-input::placeholder {
    color: #64748b;
}

textarea.form-input {
    resize: vertical;
    min-height: 80px;
}

select.form-input {
    cursor: pointer;
}

/* ==================== Toast 通知樣式 ==================== */
.toast {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    min-width: 250px;
}

.toast-success {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.5);
    color: #22c55e;
}

.toast-error {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #ef4444;
}

/* ==================== 模態框樣式 ==================== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.modal-content {
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid rgba(34, 211, 238, 0.25);
    border-radius: 0.75rem;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}
    backdrop-filter: blur(16px);

/* ==================== 預設模式按鈕 ==================== */
.preset-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(71, 85, 105, 0.3);
    border-radius: 0.75rem;
    transition: all var(--duration-normal) var(--ease-out);
    cursor: pointer;
}

.preset-btn:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(6, 182, 212, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(6, 182, 212, 0.2);
}

/* ==================== 燈箱內容 ==================== */
.lightbox-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: default;
}

/* Ghost - 透明按鈕 */
.btn-ghost {
    display: inline-flex;
    align-items: center;
    padding: 0.625rem 1.25rem;
    background: transparent;
    color: var(--primary-400) !important;
    font-weight: var(--font-medium);
    border-radius: 0.5rem;
    border: 1px solid transparent;
    transition: all var(--duration-normal) var(--ease-in-out);
    cursor: pointer;
}

.btn-ghost:hover {
    background: rgba(34, 211, 238, 0.1);
    border-color: rgba(34, 211, 238, 0.3);
}

.btn-ghost:active {
    background: rgba(34, 211, 238, 0.15);
}

/* ========= 無障礙支持 - prefers-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;
    }

    /* 保留必要的視覺反饋 */
    .btn-primary:active,
    .btn-secondary:active,
    .btn-danger:active,
    .btn-ghost:active {
        opacity: 0.9;
    }

    /* 禁用所有 transform 動畫 */
    .card-hover:hover,
    .preset-btn:hover,
    .btn-primary:hover,
    .btn-danger:hover {
        transform: none;
    }
}

/* ============ 內容可讀性優化 ============ */
/* 行長度控制（提升可讀性） */
.content-container,
.prose {
    max-width: 75ch;
}

/* 文章/段落容器 */
.article-content p,
.description-text {
    max-width: 75ch;
}

/* 表單說明文字 */
.form-description,
.help-text {
    max-width: 65ch;
}
