@import url("https://fonts.googleapis.com/css2?family=Caveat&display=swap");

/* 載入動畫樣式 */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #87CEEB 0%, #FFB6C1 50%, #E6E6FA 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    animation: gradientShift 3s ease-in-out infinite alternate;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

.loader-wrapper.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    animation: fadeInScale 0.8s ease-out;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* 多層旋轉環 */
.loader-rings {
    position: relative;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ring {
    position: absolute;
    border-radius: 50%;
    border: 3px solid transparent;
}

.ring-1 {
    width: 150px;
    height: 150px;
    border-top-color: #2E86AB;
    border-right-color: #2E86AB;
    animation: rotate 2s linear infinite;
}

.ring-2 {
    width: 110px;
    height: 110px;
    border-bottom-color: #87CEEB;
    border-left-color: #87CEEB;
    animation: rotate 1.5s linear infinite reverse;
}

.ring-3 {
    width: 70px;
    height: 70px;
    border-top-color: #FFA0B4;
    border-bottom-color: #FFA0B4;
    animation: rotate 1s linear infinite;
    opacity: 0.9;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* 中心圖示 */
.loader-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    color: #2E86AB;
    animation: iconBounce 1.5s ease-in-out infinite;
    z-index: 10;
}

@keyframes iconBounce {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* 載入文字區域 */
.loader-text-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.loader-text {
    font-family: "Caveat", cursive, "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 2rem;
    color: #2E86AB;
    font-weight: 700;
    letter-spacing: 2px;
    animation: textGlow 2s ease-in-out infinite;
    text-shadow: 0 0 10px rgba(46, 134, 171, 0.3);
}

@keyframes textGlow {
    0%, 100% {
        opacity: 1;
        text-shadow: 0 0 10px rgba(46, 134, 171, 0.3);
    }
    50% {
        opacity: 0.8;
        text-shadow: 0 0 20px rgba(46, 134, 171, 0.6);
    }
}

.loader-subtitle {
    font-size: 1rem;
    color: #4A90A4;
    font-weight: 500;
    letter-spacing: 1px;
    animation: fadeInOut 2s ease-in-out infinite;
}

@keyframes fadeInOut {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

/* 載入點動畫 */
.loader-dots {
    display: flex;
    gap: 8px;
    align-items: center;
    height: 20px;
}

.dot {
    width: 10px;
    height: 10px;
    background: #87CEEB;
    border-radius: 50%;
    animation: dotBounce 1.4s ease-in-out infinite;
}

.dot:nth-child(1) {
    animation-delay: 0s;
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotBounce {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* 暗色模式下的載入動畫 */
[data-theme="dark"] .loader-wrapper {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

[data-theme="dark"] .ring-1 {
    border-top-color: #87CEEB;
    border-right-color: #87CEEB;
}

[data-theme="dark"] .ring-2 {
    border-bottom-color: #B0C4DE;
    border-left-color: #B0C4DE;
}

[data-theme="dark"] .ring-3 {
    border-top-color: #FFB6C1;
    border-bottom-color: #FFB6C1;
}

[data-theme="dark"] .loader-icon {
    color: #87CEEB;
}

[data-theme="dark"] .loader-text {
    color: #87CEEB;
    text-shadow: 0 0 10px rgba(135, 206, 235, 0.3);
}

@keyframes textGlowDark {
    0%, 100% {
        opacity: 1;
        text-shadow: 0 0 10px rgba(135, 206, 235, 0.3);
    }
    50% {
        opacity: 0.8;
        text-shadow: 0 0 20px rgba(135, 206, 235, 0.6);
    }
}

[data-theme="dark"] .loader-subtitle {
    color: #B0C4DE;
}

[data-theme="dark"] .dot {
    background: #87CEEB;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .loader-rings {
        width: 120px;
        height: 120px;
    }
    
    .ring-1 {
        width: 120px;
        height: 120px;
    }
    
    .ring-2 {
        width: 90px;
        height: 90px;
    }
    
    .ring-3 {
        width: 60px;
        height: 60px;
    }
    
    .loader-icon {
        font-size: 32px;
    }
    
    .loader-text {
        font-size: 1.6rem;
    }
    
    .loader-subtitle {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .loader-rings {
        width: 100px;
        height: 100px;
    }
    
    .ring-1 {
        width: 100px;
        height: 100px;
    }
    
    .ring-2 {
        width: 75px;
        height: 75px;
    }
    
    .ring-3 {
        width: 50px;
        height: 50px;
    }
    
    .loader-icon {
        font-size: 28px;
    }
    
    .loader-text {
        font-size: 1.4rem;
    }
    
    .loader-subtitle {
        font-size: 0.85rem;
    }
}

/* CSS 變量 */
:root {
    /* 淺色模式 */
    --bg-gradient: linear-gradient(135deg, #87CEEB 0%, #FFB6C1 50%, #E6E6FA 100%);
    --card-bg: rgba(255, 255, 255, 0.25);
    --card-border: rgba(255, 255, 255, 0.3);
    --text-primary: #2E86AB;
    --text-secondary: #4A90A4;
    --text-muted: rgba(74, 144, 164, 0.8);
    --button-bg: rgba(255, 255, 255, 0.3);
    --button-border: rgba(255, 255, 255, 0.3);
    --button-hover-bg: rgba(255, 255, 255, 0.4);
    --modal-bg: rgba(255, 255, 255, 0.95);
    --overlay-bg: rgba(0, 0, 0, 0.3);
    --social-link-bg: rgba(255, 255, 255, 0.3);
    --social-link-hover: rgba(255, 255, 255, 0.4);
}

/* 暗色模式 */
[data-theme="dark"] {
    --bg-gradient: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    --card-bg: rgba(30, 30, 50, 0.8);
    --card-border: rgba(255, 255, 255, 0.1);
    --text-primary: #87CEEB;
    --text-secondary: #B0C4DE;
    --text-muted: rgba(176, 196, 222, 0.8);
    --button-bg: rgba(255, 255, 255, 0.1);
    --button-border: rgba(255, 255, 255, 0.2);
    --button-hover-bg: rgba(255, 255, 255, 0.2);
    --modal-bg: rgba(30, 30, 50, 0.95);
    --overlay-bg: rgba(0, 0, 0, 0.5);
    --social-link-bg: rgba(255, 255, 255, 0.1);
    --social-link-hover: rgba(255, 255, 255, 0.2);
}

/* 重置和基本樣式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    background: var(--bg-gradient);
    background-attachment: fixed;
    transition: all 0.3s ease;
}

/* 針對英文部分應用 Caveat 字體 */
.domain-name,
.coming-soon,
.copyright,
.social-link {
    font-family: "Caveat", cursive, "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

/* 主題切換按鈕 */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.theme-toggle-btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: var(--button-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--button-border);
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.theme-toggle-btn:hover {
    background: var(--button-hover-bg);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.theme-toggle-btn:active {
    transform: translateY(0);
}

/* 主要內容卡片 */
.main-card {
    position: relative;
    z-index: 10;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 45px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    max-width: 550px;
    width: 90%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 20px auto;
    flex-shrink: 0;
}

.main-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* 頭像 */
.avatar {
    margin-bottom: 25px;
}

/* 頭像可點擊效果 */
.avatar-link {
    display: inline-block;
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.avatar-link:hover {
    cursor: pointer;
    transform: translateY(-2px);
}

.avatar-image {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto;
    border: 3px solid var(--text-primary);
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(135, 206, 235, 0.25);
    animation: avatarPulse 3s ease-in-out infinite;
    display: block;
}

/* 頭像懸停提示層 */
.avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(46, 134, 171, 0.9);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    color: white;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.avatar-overlay i {
    font-size: 20px;
    margin-bottom: 4px;
}

.avatar-link:hover .avatar-overlay {
    opacity: 1;
    transform: scale(1);
}

.avatar-link:hover .avatar-image {
    border-color: var(--text-primary);
    box-shadow: 0 8px 30px rgba(135, 206, 235, 0.4);
    transform: scale(1.03);
    animation-play-state: paused;
}

@keyframes avatarPulse {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(135, 206, 235, 0.25);
    }
    50% {
        box-shadow: 0 6px 25px rgba(135, 206, 235, 0.4);
    }
}

/* 頭像自動縮放提示動畫 */
@keyframes avatarBounceHint {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.1);
    }
    50% {
        transform: scale(1);
    }
    75% {
        transform: scale(1.1);
    }
}

.avatar-link.auto-hint {
    animation: avatarBounceHint 1.2s ease-in-out;
}

.avatar-link.auto-hint .avatar-image {
    animation: none;
}

/* 網域名稱 */
.domain-name {
    font-size: 2.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 18px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 歡迎文字 */
.welcome-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 22px;
    font-weight: 500;
}

/* 服務標籤 */
.service-tags {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: 2.5px;
    margin-bottom: 28px;
}

/* 狀態指示器 */
.status-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 35px;
}

.status-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.status-dot.active {
    background: #87CEEB;
    box-shadow: 0 0 12px rgba(135, 206, 235, 0.5);
}

.status-dot:hover {
    transform: scale(1.2);
}

/* 社交連結 */
.social-links {
    display: flex;
    justify-content: center;
    gap: 22px;
    margin-bottom: 35px;
}

.social-link {
    width: 55px;
    height: 55px;
    background: var(--social-link-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--button-border);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 22px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.social-link:hover {
    transform: translateY(-3px);
    background: var(--social-link-hover);
    color: #2E86AB;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-link.github:hover {
    background: rgba(51, 51, 51, 0.8);
    color: white;
}

.social-link.email:hover {
    background: rgba(255, 182, 193, 0.8);
    color: white;
}

.social-link.website:hover {
    background: rgba(135, 206, 235, 0.8);
    color: white;
}
.social-link.jupyter:hover {
    background: rgba(243, 119, 38, 0.8);
    color: white;
}

.jupyter-logo {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

/* 按鈕容器 */
.button-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 22px;
}

.button-row {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

/* 服務狀態按鈕 */
.status-button {
    display: flex;
    align-items: center;
    padding: 15px;
    background: var(--button-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--button-border);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    cursor: pointer;
    flex: 1.4;
    position: relative;
}

.status-button:hover {
    transform: scale(1.05);
    background: var(--button-hover-bg);
}

.status-dashboard-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: rgba(74, 144, 164, 0.2);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.status-dashboard-btn:hover {
    background: rgba(74, 144, 164, 0.4);
    transform: scale(1.1);
}

.status-dashboard-btn i {
    font-size: 12px;
    color: #4A90A4;
}

.status-icon {
    width: 40px;
    height: 40px;
    background: rgba(34, 197, 94, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.status-icon i {
    font-size: 18px;
    color: #4A90A4;
}

.status-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.status-text span {
    font-size: 0.9rem;
    color: #4A90A4;
    font-weight: 500;
    margin-bottom: 2px;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.status-text small {
    font-size: 1rem;
    color: #87CEEB;
    font-style: normal;
    font-weight: normal;
    font-family: "Caveat", cursive, "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* 服務列表按鈕調整 */
.services-button {
    display: flex;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
}

.services-button:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.2);
}

.services-icon {
    width: 40px;
    height: 40px;
    background: rgba(135, 206, 235, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.services-icon i {
    font-size: 18px;
    color: #4A90A4;
}

.services-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.services-text span {
    font-size: 0.9rem;
    color: #4A90A4;
    font-weight: 500;
    margin-bottom: 2px;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.services-text small {
    font-size: 1rem;
    color: #87CEEB;
    font-style: normal;
    font-weight: normal;
    font-family: "Caveat", cursive, "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* 服務喚醒按鈕 */
.wake-button {
    position: relative;
    display: flex;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    cursor: pointer;
    flex: 0.8;
    min-width: 130px;
}

.wake-button:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.2);
}

.wake-icon {
    width: 40px;
    height: 40px;
    background: rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.wake-icon i {
    font-size: 18px;
    color: #4A90A4;
}

.wake-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.wake-text span {
    font-size: 0.9rem;
    color: #4A90A4;
    font-weight: 500;
    margin-bottom: 2px;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.wake-text small {
    font-size: 1rem;
    color: #87CEEB;
    font-style: normal;
    font-weight: normal;
    font-family: "Caveat", cursive, "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* 版權資訊 */
.copyright {
    font-size: 1.3rem;
    color: var(--text-muted);
    font-style: normal;
}

/* 版本資訊 */
.version-info {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    padding: 6px 14px;
    background: transparent;
    border: 1px solid rgba(74, 144, 164, 0.4);
    border-radius: 15px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

[data-theme="dark"] .version-info {
    border-color: rgba(176, 196, 222, 0.3);
}

.version-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
    text-align: center;
    word-spacing: 0.2em;
    display: flex;
    gap: 0.8em;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.version-item {
    white-space: nowrap;
}

.version-text #version-display,
.version-text #version-date {
    font-family: monospace;
    font-weight: 500;
}

.version-text #version-display {
    margin-right: 0.5em;
}

.version-info:hover {
    opacity: 1;
    border-color: var(--text-secondary);
}

/* 模糊彈出框 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-bg);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow-y: auto;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--modal-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 15px;
    padding: 35px;
    max-width: 450px;
    width: 90%;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: scale(0.8);
    transition: transform 0.3s ease;
    margin: auto;
    flex-shrink: 0;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h3 {
    color: var(--text-primary);
    font-size: 1.4rem;
    font-weight: 600;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.close-btn {
    background: none;
    border: none;
    font-size: 22px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 182, 193, 0.2);
    color: #2E86AB;
}

.modal-content p {
    color: #4A90A4;
    line-height: 1.7;
    margin-bottom: 18px;
    font-size: 1.1rem;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.modal-content p:last-child {
    margin-bottom: 0;
}

/* 服務列表樣式 */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.service-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: var(--button-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--button-border);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-item:hover {
    transform: translateY(-2px);
    background: var(--button-hover-bg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-item.coming-soon-service {
    opacity: 0.6;
    cursor: not-allowed;
}

.service-item.coming-soon-service:hover {
    transform: none;
    background: var(--button-bg);
    box-shadow: none;
}

/* Jupyter 選單專用標記 - 右上角 */
.jupyter-active-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 5px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.jupyter-suspended-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 5px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Jupyter配置選擇項目樣式調整 */
.jupyter-option {
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--button-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(135, 206, 235, 0.2);
    border-radius: 15px;
    padding: 15px 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.jupyter-option:hover {
    transform: translateY(-3px);
    background: var(--button-hover-bg);
    box-shadow: 0 8px 25px rgba(135, 206, 235, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    border-color: rgba(135, 206, 235, 0.3);
}

[data-theme="dark"] .jupyter-option {
    border-color: rgba(135, 206, 235, 0.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .jupyter-option:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(135, 206, 235, 0.25);
}

/* 禁止點擊的Jupyter選項樣式 */
.jupyter-option.coming-soon-service {
    opacity: 0.6;
    cursor: not-allowed;
}

.jupyter-option.coming-soon-service:hover {
    transform: none;
    background: var(--button-bg);
    box-shadow: none;
}



.service-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--social-link-bg);
    border-radius: 10px;
    margin-right: 15px;
    flex-shrink: 0;
}

.service-icon i {
    font-size: 24px;
    color: var(--text-secondary);
}

.service-logo {
    width: 28px;
    height: 28px;
    filter: brightness(0) saturate(100%) invert(41%) sepia(36%) saturate(1169%) hue-rotate(164deg) brightness(93%) contrast(86%);
}

.service-info h4 {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.service-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* Jupyter 配置選擇樣式 */
.jupyter-modal {
    max-width: 450px;
    width: 90%;
    max-height: calc(100vh - 40px);
}

.jupyter-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.option-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.option-icon {
    width: 50px;
    height: 50px;
    background: var(--social-link-bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.option-icon i {
    font-size: 24px;
    color: var(--text-secondary);
}

.option-title h4 {
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 5px 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.option-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
}

.option-badge.lite {
    background: linear-gradient(135deg, #87CEEB, #5FA8D3);
    box-shadow: 0 3px 10px rgba(87, 168, 211, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.option-badge.pro {
    background: linear-gradient(135deg, #FFB6C1, #FFA0B4);
    box-shadow: 0 3px 10px rgba(255, 182, 193, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}



.option-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 0;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.5);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

[data-theme="dark"] .spec-item {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.spec-item i {
    font-size: 14px;
    width: 16px;
    text-align: center;
}

.option-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
    font-style: normal;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .theme-toggle {
        top: 15px;
        right: 15px;
    }
    
    .theme-toggle-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .container {
        padding: 10px 0;
        min-height: calc(100vh - 20px);
    }
    
    .main-card {
        padding: 35px 25px;
        margin: 15px auto;
        width: 95%;
    }
    
    .domain-name {
        font-size: 2.2rem;
    }
    
    .welcome-text {
        font-size: 1.1rem;
    }
    
    .social-links {
        gap: 18px;
    }
    
    .social-link {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .button-container {
        gap: 10px;
    }
    
    .button-row {
        gap: 10px;
    }
    
    .status-button {
        padding: 12px 15px;
    }
    
    .status-icon {
        width: 35px;
        height: 35px;
        margin-right: 10px;
    }
    
    .status-icon i {
        font-size: 16px;
    }
    
    .status-text span {
        font-size: 0.85rem;
    }
    
    .status-text small {
        font-size: 0.95rem;
    }
    
    .services-button {
        padding: 12px 15px;
    }
    
    .services-icon {
        width: 35px;
        height: 35px;
        margin-right: 12px;
    }
    
    .services-icon i {
        font-size: 16px;
    }
    
    .services-text span {
        font-size: 0.85rem;
    }
    
    .services-text small {
        font-size: 0.95rem;
    }
    
    .wake-button {
        padding: 12px 15px;
        min-width: 110px;
    }
    
    .wake-icon {
        width: 35px;
        height: 35px;
        margin-right: 12px;
    }
    
    .wake-icon i {
        font-size: 16px;
    }
    
    .wake-text span {
        font-size: 0.85rem;
    }
    
    .wake-text small {
        font-size: 0.95rem;
    }
    
    .service-item {
        padding: 12px;
    }
    
    .service-icon {
        width: 45px;
        height: 45px;
        margin-right: 12px;
    }
    
    .service-icon i {
        font-size: 20px;
    }
    
    .service-logo {
        width: 24px;
        height: 24px;
    }
    
    .service-info h4 {
        font-size: 1.1rem;
    }
    
    .service-info p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 5px 0;
        min-height: calc(100vh - 10px);
    }
    
    .main-card {
        padding: 25px 20px;
        margin: 10px auto;
        width: 95%;
    }
    
    .domain-name {
        font-size: 2rem;
    }
    
    .service-tags {
        font-size: 0.9rem;
        letter-spacing: 1.5px;
    }
    
    .modal {
        padding: 25px;
        margin: 15px auto;
        max-height: calc(100vh - 30px);
    }
    
    .modal-header h3 {
        font-size: 1.2rem;
    }
    
    .modal-content p {
        font-size: 1rem;
    }
    
    .button-container {
        gap: 8px;
    }
    
    .button-row {
        gap: 8px;
    }
    
    .status-button {
        padding: 10px 12px;
    }
    
    .status-icon {
        width: 30px;
        height: 30px;
        margin-right: 8px;
    }
    
    .status-icon i {
        font-size: 14px;
    }
    
    .status-text span {
        font-size: 0.8rem;
    }
    
    .status-text small {
        font-size: 0.9rem;
    }
    
    .services-button {
        padding: 10px 12px;
    }
    
    .services-icon {
        width: 30px;
        height: 30px;
        margin-right: 10px;
    }
    
    .services-icon i {
        font-size: 14px;
    }
    
    .services-text span {
        font-size: 0.8rem;
    }
    
    .services-text small {
        font-size: 0.9rem;
    }
    
    .wake-button {
        padding: 10px 12px;
        min-width: 100px;
    }
    
    .wake-icon {
        width: 30px;
        height: 30px;
        margin-right: 10px;
    }
    
    .wake-icon i {
        font-size: 14px;
    }
    
    .wake-text span {
        font-size: 0.8rem;
    }
    
    .wake-text small {
        font-size: 0.9rem;
    }
    
    .status-button {
        padding: 10px 12px;
    }
    
    .services-button {
        padding: 10px 12px;
        min-width: auto;
    }
    
    .status-text span {
        font-size: 0.8rem;
    }
    
    .status-text small {
        font-size: 0.75rem;
    }
    
    .services-text span {
        font-size: 0.8rem;
    }
    
    .services-text small {
        font-size: 0.75rem;
    }
    
    .wake-text span {
        font-size: 0.8rem;
    }
    
    .wake-text small {
        font-size: 0.75rem;
    }
    
    .jupyter-modal {
        max-width: 90%;
        width: 90%;
    }
    
    .jupyter-option {
        padding: 15px;
    }
    
    .option-header {
        margin-bottom: 12px;
    }
    
    .option-icon {
        width: 45px;
        height: 45px;
        margin-right: 12px;
    }
    
    .option-icon i {
        font-size: 20px;
    }
    
    .option-title h4 {
        font-size: 1.1rem;
    }
    
    .option-badge {
        font-size: 0.8rem;
        padding: 3px 10px;
    }
    
    .option-specs {
        gap: 10px;
        margin-bottom: 12px;
    }
    
    .spec-item {
        font-size: 0.85rem;
        padding: 6px 10px;
    }
    
    .option-description {
        font-size: 0.9rem;
    }
}

/* 超小螢幕優化 (小於 414px) */
@media (max-width: 414px) {
    .container {
        padding: 5px 0;
        align-items: flex-start;
        padding-top: 20px;
    }
    
    .main-card {
        margin: 10px auto 20px;
        padding: 20px 15px;
        width: 95%;
    }
    
    .button-row {
        flex-direction: column;
        gap: 8px;
    }
    
    .status-button {
        flex: none;
        width: 100%;
    }
    
    .wake-button {
        flex: none;
        width: 100%;
        min-width: auto;
    }
    
    .services-button {
        width: 100%;
    }
}

/* 矮螢幕優化 (高度小於 600px) */
@media (max-height: 600px) {
    .container {
        align-items: flex-start;
        padding-top: 10px;
        padding-bottom: 10px;
    }
    
    .main-card {
        margin: 10px auto;
        padding: 20px;
    }
    
    .avatar {
        margin-bottom: 15px;
    }
    
    .avatar-image {
        width: 70px;
        height: 70px;
    }
    
    .domain-name {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    
    .welcome-text {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .service-tags {
        font-size: 0.8rem;
        margin-bottom: 15px;
    }
    
    .social-links {
        margin: 15px 0;
        gap: 15px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .button-container {
        gap: 8px;
        margin: 15px 0;
    }
    
    .copyright {
        font-size: 1rem;
        margin-top: 15px;
    }
    
    .version-info {
        padding: 4px 10px;
        margin-bottom: 8px;
    }
    
    .version-text {
        font-size: 0.65rem;
        line-height: 1.3;
        text-align: center;
        flex-direction: column;
        gap: 0.2em;
    }
    
    .version-item {
        white-space: nowrap;
    }
}

/* 非常矮的螢幕優化 (高度小於 500px) */
@media (max-height: 500px) {
    .container {
        align-items: flex-start;
        padding: 5px 0;
    }
    
    .main-card {
        padding: 15px;
        margin: 5px auto;
    }
    
    .avatar {
        margin-bottom: 10px;
    }
    
    .avatar-image {
        width: 60px;
        height: 60px;
    }
    
    .domain-name {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }
    
    .welcome-text {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    
    .service-tags {
        font-size: 0.75rem;
        margin-bottom: 12px;
    }
    
    .social-links {
        margin: 12px 0;
        gap: 12px;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .button-container {
        gap: 6px;
        margin: 12px 0;
    }
    
    .status-button,
    .wake-button,
    .services-button {
        padding: 8px 10px;
    }
    
    .copyright {
        font-size: 0.9rem;
        margin-top: 10px;
    }
    
    .version-info {
        padding: 3px 8px;
        margin-bottom: 6px;
    }
    
    .version-text {
        font-size: 0.6rem;
        line-height: 1.4;
        text-align: center;
        flex-direction: column;
        gap: 0.1em;
    }
    
    .version-item {
        white-space: nowrap;
    }
}