:root {
    /* SUIO 品牌主色調 */
    --primary-color: #00D2D3;
    --primary-dark: #0891B2;
    --primary-light: #67E8F9;
    --secondary-color: #0A66C2;
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --danger-color: #F43F5E;

    /* SUIO 科技黑曜底色系統 */
    --bg-color: #060B14;
    --bg-secondary: #0D1527;
    --bg-card: rgba(15, 23, 42, 0.75);
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --border-color: rgba(255, 255, 255, 0.08);

    /* SUIO 光斑與陰影 */
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 210, 211, 0.1);
    --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 210, 211, 0.18);

    /* 圓角規範 */
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

body {
    font-family: 'Plus Jakarta Sans', 'Noto Sans TC', sans-serif;
    background: radial-gradient(circle at 50% 0%, rgba(0, 210, 211, 0.12), rgba(10, 102, 194, 0.05) 45%, rgba(6, 11, 20, 0) 75%), #060B14;
    color: var(--text-primary);
    min-height: 100vh;
    padding: var(--spacing-lg);
}

/* SUIO 品牌 Logo 徽章 */
.brand-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #00D2D3 0%, #0A66C2 100%);
    color: #060B14;
    font-weight: 900;
    font-size: 0.85rem;
    padding: 2px 8px;
    border-radius: 8px;
    margin-right: 6px;
    box-shadow: 0 2px 8px rgba(0, 210, 211, 0.3);
}

/* 置頂導覽列 Glassmorphism 升級 */
.sticky-nav-wrapper {
    background: rgba(13, 21, 39, 0.85) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(0, 210, 211, 0.25) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 210, 211, 0.15) !important;
}

/* 設備卡片 Glassmorphism 與 Hover 升級 */
.equipment-card {
    background: rgba(15, 23, 42, 0.8) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-sm) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.equipment-card:hover {
    transform: translateY(-4px) !important;
    border-color: rgba(0, 210, 211, 0.45) !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 210, 211, 0.22) !important;
}

/* 借用按鈕青藍活力漸層 */
.btn-primary {
    background: linear-gradient(135deg, #00D2D3 0%, #0891B2 100%) !important;
    color: #060B14 !important;
    font-weight: 800 !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(0, 210, 211, 0.35) !important;
    transition: all 0.2s ease !important;
}

.btn-primary:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 20px rgba(0, 210, 211, 0.5) !important;
}

/* 彈窗 Modal 升級 */
.modal-content {
    background: rgba(13, 21, 39, 0.95) !important;
    backdrop-filter: blur(24px) !important;
    border: 1px solid rgba(0, 210, 211, 0.3) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 210, 211, 0.2) !important;
}

/* ?典?璅???蔭 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 銝駁??脣蔗 */
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #8b5cf6;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;

    /* 中性色調 (調亮後) */
    --bg-color: #1e293b;
    --bg-secondary: #334155;
    --bg-card: #2d3748;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --border-color: #475569;

    /* ?啣蔣 */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);

    /* ?? */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;

    /* ?? - 撟單?芸?? */
    --spacing-xs: 12px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
}

/* 撟單?芸?嚗蝷?擃憭?*/
@media (min-width: 768px) {
    :root {
        --base-font-size: 18px;
    }

    body {
        font-size: var(--base-font-size);
    }
}

body {
    font-family: 'Noto Sans TC', sans-serif;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: var(--text-primary);
    min-height: 100vh;
    padding: var(--spacing-lg);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* 置頂控制列包覆層（導覽選單 + 設備分類切換 + 搜尋欄） - 明亮亮色系高質感底色 */
.sticky-nav-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(135deg, rgba(67, 56, 202, 0.97) 0%, rgba(79, 70, 229, 0.97) 50%, rgba(37, 99, 235, 0.97) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: 0 10px 30px rgba(67, 56, 202, 0.45), 0 2px 8px rgba(0, 0, 0, 0.2);
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    margin-bottom: var(--spacing-md);
    padding-bottom: 8px;
}

.sticky-nav-wrapper .header {
    position: static;
    background: transparent;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 8px 16px 4px;
    margin-bottom: 3px;
}

.sticky-nav-wrapper .header-content {
    gap: 8px;
}

.sticky-nav-wrapper .title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    letter-spacing: 0.02em;
}

.sticky-nav-wrapper .header-actions {
    gap: 6px;
}

/* 頂部功能選單按鈕 - 亮白磨砂質感 */
.sticky-nav-wrapper .header-actions .btn {
    min-height: unset;
    padding: 5px 12px;
    font-size: 0.86rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.38);
    color: #ffffff;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.sticky-nav-wrapper .header-actions .btn:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.75);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.sticky-nav-wrapper .filter-section {
    padding: 2px 16px 2px;
    margin-bottom: 0;
    gap: 8px;
}

/* 分類切換按鈕底色 */
.sticky-nav-wrapper .filter-buttons {
    background: rgba(30, 27, 75, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.22);
    padding: 3px;
    gap: 4px;
    border-radius: 8px;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.25);
}

.sticky-nav-wrapper .filter-btn {
    min-height: 30px;
    padding: 4px 12px;
    font-size: 0.85rem;
}

/* 頁首基本樣式（後台管理頁面共用） */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.95), rgba(79, 70, 229, 0.95));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 8px 16px;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    margin-bottom: var(--spacing-md);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.title {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .title {
        font-size: 2rem;
    }
}

.header-actions {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    align-items: center;
}

.header-actions .btn {
    min-height: unset;
    padding: 8px 16px;
    font-size: 0.92rem;
    white-space: nowrap;
}

/* ??璅?? - 撟單?芸? */
.btn {
    min-height: 64px;
    padding: 20px 32px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--border-color);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

/* 蝭拚???*/
.filter-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
}

.filter-buttons {
    display: flex;
    gap: var(--spacing-sm);
    background: var(--bg-card);
    padding: var(--spacing-xs);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.filter-btn {
    min-height: 56px;
    padding: 16px 28px;
    background: transparent;
    color: var(--text-secondary);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1.1rem;
}

.filter-btn:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.search-box input {
    min-height: 56px;
    padding: 16px 24px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1.1rem;
    width: 100%;
    min-width: 300px;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.search-box input::placeholder {
    color: var(--text-secondary);
}

/* 閮剖?蝬脫 - 撟單?芸? */
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

@media (min-width: 768px) and (max-width: 1199px) {
    .equipment-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .equipment-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 閮剖??∠? */
.equipment-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.equipment-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.equipment-card-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, #1e293b, #334155);
}

.equipment-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.equipment-card:hover .equipment-card-image img {
    transform: scale(1.1);
}

.status-badge {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    padding: 10px 20px;
    border-radius: 24px;
    font-size: 1.1rem;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.settings-container textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    min-height: 400px;
    font-family: 'Consolas', 'Monaco', monospace;
    background-color: #f8fafc;
}

.status-available {
    background: rgba(16, 185, 129, 0.9);
    color: white;
}

.status-borrowed {
    background: rgba(245, 158, 11, 0.9);
    color: white;
}

.equipment-card-content {
    padding: var(--spacing-lg);
}

.equipment-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.equipment-type {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
}

.equipment-meta {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    padding: var(--spacing-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-md);
}

.meta-item {
    display: flex;
    justify-content: space-between;
    font-size: 1.05rem;
}

.meta-label {
    color: var(--text-secondary);
}

.meta-value {
    color: var(--text-primary);
    font-weight: 500;
}

.days-warning {
    color: var(--warning-color);
}

.days-danger {
    color: var(--danger-color);
    font-weight: 700;
}

.equipment-actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.equipment-actions .btn {
    width: 100%;
    min-height: 64px;
}

/* 頛? */
.loading {
    text-align: center;
    padding: var(--spacing-xl);
}

.spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto var(--spacing-md);
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ?∟???蝷?*/
.no-data {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* 敶?璅?? - ?孵?撠?摨?*/
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
}

.modal.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: #2d3748;
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 0 3px rgba(255, 255, 255, 0.1);
    animation: slideUp 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.15);
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    font-size: 2rem;
    color: var(--text-primary);
}

.close-btn {
    background: none;
    border: none;
    font-size: 2.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.3s ease;
    min-width: 48px;
    min-height: 48px;
}

.close-btn:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: var(--spacing-lg);
}

.equipment-info {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}

.equipment-info img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.equipment-info h3 {
    font-size: 1.4rem;
    margin-bottom: var(--spacing-sm);
}

.equipment-info p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.1rem;
}

.form-group input {
    width: 100%;
    min-height: 56px;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-actions {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: flex-end;
}

/* ?∪極??銝??詨 */
.employee-dropdown {
    max-height: 300px;
    overflow-y: auto;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-top: var(--spacing-xs);
    display: none;
}

.employee-dropdown.show {
    display: block;
}

.employee-item {
    min-height: 72px;
    padding: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid var(--border-color);
}

.employee-item:last-child {
    border-bottom: none;
}

.employee-item:hover {
    background: var(--bg-card);
}

.employee-avatar-small {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.employee-info {
    flex: 1;
}

.employee-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    font-size: 1.1rem;
}

.employee-detail {
    font-size: 1rem;
    color: var(--text-secondary);
}

.selected-employee-card {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    border: 2px solid var(--primary-color);
}

.no-results {
    padding: var(--spacing-md);
    text-align: center;
    color: var(--text-secondary);
}

/* ?踵?撘身閮?*/
@media (max-width: 768px) {
    body {
        padding: var(--spacing-md);
    }

    .title {
        font-size: 1.5rem;
    }

    .header-actions {
        width: 100%;
        justify-content: center;
    }

    .filter-section {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-buttons {
        justify-content: center;
    }

    .search-box input {
        width: 100%;
    }

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

/* ===== 全域 Toast 通知 ===== */
.toast-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9998;
    align-items: center;
    justify-content: center;
}

.toast-overlay.show {
    display: flex;
    animation: toastFadeIn 0.2s ease;
}

.toast-box {
    background: rgba(30, 41, 59, 0.97);
    backdrop-filter: blur(16px);
    border-radius: var(--radius-md);
    padding: 28px 36px;
    min-width: 280px;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255,255,255,0.08);
    animation: toastSlideUp 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 9999;
}

.toast-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: block;
}

.toast-message {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.5;
}

.toast-box.toast-success {
    border-top: 4px solid var(--success-color);
}

.toast-box.toast-error {
    border-top: 4px solid var(--danger-color);
}

.toast-box.toast-warning {
    border-top: 4px solid var(--warning-color);
}

.toast-box.toast-info {
    border-top: 4px solid var(--primary-color);
}

@keyframes toastFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes toastSlideUp {
    from { transform: translateY(20px) scale(0.92); opacity: 0; }
    to   { transform: translateY(0)     scale(1);    opacity: 1; }
}
/* ���ù����\�ʵe Overlay */
.success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(16px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.success-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.success-content {
    text-align: center;
    transform: scale(0.5);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-overlay.active .success-content {
    transform: scale(1);
}

.success-icon {
    font-size: 7.5rem;
    margin-bottom: 20px;
    animation: successBounce 2s infinite cubic-bezier(0.28, 0.84, 0.42, 1);
    display: inline-block;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.6));
}

.success-content h1 {
    font-size: 5.6rem;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.95), 0 2px 6px rgba(0, 0, 0, 0.9);
    padding: 10px 20px;
    line-height: 1.25;
    letter-spacing: 0.05em;
    margin: 0;
}

/* 隨機台詞樣式：超大字體、銳利清晰、高對比明亮金黃色 */
.success-quip {
    display: block;
    font-size: 4.0rem;
    font-weight: 800;
    color: #fde047;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.95), 0 2px 6px rgba(0, 0, 0, 0.9);
    letter-spacing: 0.03em;
    margin: 2.2rem auto 0;
    line-height: 1.5;
    padding: 0 30px;
    max-width: 96vw;
    text-wrap: balance;
    word-break: keep-all;
}

@keyframes successBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-25px) scale(1.1); }
}

@media (max-width: 1200px) {
    .success-content h1 {
        font-size: 4.4rem;
    }
    .success-quip {
        font-size: 3.2rem;
    }
}

@media (max-width: 768px) {
    .success-content h1 {
        font-size: 3.2rem;
    }
    .success-quip {
        font-size: 2.2rem;
        margin-top: 1.5rem;
        line-height: 1.45;
        padding: 0 15px;
    }
    .success-icon {
        font-size: 5.5rem;
        margin-bottom: 12px;
    }
}

/* 右下角浮動全螢幕切換按鈕 */
.floating-fullscreen-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9998;
    background: linear-gradient(135deg, rgba(30, 27, 75, 0.92), rgba(15, 23, 42, 0.96));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(165, 180, 252, 0.45);
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 30px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 14px rgba(99, 102, 241, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    user-select: none;
}

.floating-fullscreen-btn:hover {
    transform: scale(1.06) translateY(-2px);
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.96), rgba(99, 102, 241, 0.96));
    border-color: rgba(224, 231, 255, 0.85);
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.5), 0 0 20px rgba(99, 102, 241, 0.6);
    color: #ffffff;
}

.floating-fullscreen-btn:active {
    transform: scale(0.96);
}

.floating-fullscreen-btn .fs-icon {
    font-size: 1.25rem;
    line-height: 1;
}

@media (max-width: 768px) {
    .floating-fullscreen-btn {
        bottom: 16px;
        right: 16px;
        padding: 8px 14px;
        font-size: 0.85rem;
    }
}

/* 頁尾品牌與最佳瀏覽建議 */
.system-footer {
    margin-top: 3.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem 1rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 0.88rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.system-footer .footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.system-footer .brand-badge {
    background: linear-gradient(135deg, #6366f1, #3b82f6);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.82rem;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

.system-footer .system-name {
    color: #ffffff;
    font-size: 1.05rem;
    letter-spacing: 0.05em;
}

.system-footer .footer-tip {
    color: #94a3b8;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.84rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    line-height: 1.5;
}

.system-footer .footer-tip b {
    color: #e2e8f0;
}

.unit-chip {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(0, 210, 211, 0.15);
    color: var(--primary-light);
    border: 1px solid rgba(0, 210, 211, 0.35);
    vertical-align: middle;
    min-height: 1.5em;
}
