@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

/* 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);
    --progress-bg: rgba(255, 255, 255, 0.2);
    --progress-fill: linear-gradient(90deg, #87CEEB 0%, #FFB6C1 100%);
    --status-code-color: rgba(46, 134, 171, 0.2);
}

/* 暗色模式 */
[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);
    --progress-bg: rgba(255, 255, 255, 0.1);
    --progress-fill: linear-gradient(90deg, #4A90A4 0%, #87CEEB 100%);
    --status-code-color: rgba(135, 206, 235, 0.2);
}

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

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

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

/* 主題切換按鈕 */
.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-content {
    text-align: center;
    max-width: 800px;
    width: 100%;
}

/* 狀態碼顯示 - 類似 Cloudflare 404 頁面 */
.status-code {
    font-size: 8rem;
    font-weight: 700;
    color: var(--status-code-color);
    margin-bottom: 20px;
    line-height: 0.8;
    font-family: "Inter", sans-serif;
    letter-spacing: -0.05em;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

/* 主標題 */
.main-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sub-title {
    font-size: 1.4rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-weight: 400;
    opacity: 0.8;
}

/* 描述文字 */
.description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* 進度條樣式 */
.progress-container {
    margin-bottom: 50px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.progress-text {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.progress-percentage {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.progress-bar {
    position: relative;
    width: 100%;
    height: 12px;
    background: var(--progress-bg);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--button-border);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--progress-fill);
    border-radius: 20px;
    transition: width 0.3s ease;
    animation: progressPulse 2s ease-in-out infinite;
}

.progress-glow {
    position: absolute;
    top: -2px;
    left: -10px;
    height: calc(100% + 4px);
    width: 20px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    border-radius: 20px;
    opacity: 0;
    animation: progressGlow 3s ease-in-out infinite;
}

.progress-status {
    text-align: center;
    margin-top: 15px;
    font-size: 1rem;
    color: var(--text-secondary);
    font-style: normal;
}

.progress-hint {
    text-align: center;
    margin-top: 8px;
    font-size: 0.9rem;
    color: var(--text-primary);
    opacity: 0.7;
    cursor: pointer;
    transition: all 0.3s ease;
}

.progress-hint:hover {
    opacity: 1;
    color: #FFB6C1;
    transform: scale(1.05);
}

@keyframes progressPulse {
    0%, 100% {
        box-shadow: 0 0 5px rgba(135, 206, 235, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(135, 206, 235, 0.6);
    }
}

@keyframes progressGlow {
    0% {
        left: -10px;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

/* 開發項目列表 */
.development-list {
    margin-bottom: 60px;
}

.list-title {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 30px;
    font-weight: 600;
}

.project-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 500px;
    margin: 0 auto;
}

.project-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--button-bg);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid var(--button-border);
    backdrop-filter: blur(10px);
}

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

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

.project-icon i {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.project-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-grow: 1;
}

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

.project-status {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
    padding: 4px 12px;
    background: var(--social-link-bg);
    border-radius: 20px;
    border: 1px solid var(--button-border);
}

/* 上線狀態的亮綠色樣式 */
.project-status.status-live {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.2);
}

/* 聯絡提示 */
.contact-notice {
    margin-bottom: 40px;
}

.contact-notice p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* 返回首頁按鈕 */
.action-button {
    margin-bottom: 40px;
}

.home-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: var(--button-bg);
    border: 2px solid var(--button-border);
    border-radius: 50px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.home-button:hover {
    background: var(--button-hover-bg);
    border-color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.home-button i {
    font-size: 1.2rem;
}

/* 版權資訊 */
.copyright {
    margin-bottom: 30px;
}

.copyright p {
    font-size: 1rem;
    color: var(--text-muted);
    font-style: normal;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* 版本資訊 */
.version-info {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid rgba(74, 144, 164, 0.4);
    border-radius: 15px;
    opacity: 0.8;
    transition: all 0.3s ease;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

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

.version-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
    text-align: center;
    word-spacing: 0.2em;
    display: flex;
    gap: 1em;
    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);
}

/* 響應式設計 */
@media (max-width: 768px) {
    .theme-toggle {
        top: 15px;
        right: 15px;
    }
    
    .theme-toggle-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .container {
        padding: 30px 15px;
    }
    
    .status-code {
        font-size: 6rem;
        margin-bottom: 15px;
    }
    
    .main-title {
        font-size: 2.5rem;
        margin-bottom: 8px;
    }
    
    .sub-title {
        font-size: 1.2rem;
        margin-bottom: 30px;
    }
    
    .description {
        font-size: 1.1rem;
        margin-bottom: 40px;
    }
    
    .progress-container {
        margin-bottom: 40px;
    }
    
    .progress-text, .progress-percentage {
        font-size: 1rem;
    }
    
    .progress-status {
        font-size: 0.9rem;
    }
    
    .progress-hint {
        font-size: 0.85rem;
    }
    
    .list-title {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }
    
    .project-items {
        gap: 15px;
    }
    
    .project-item {
        padding: 15px;
        gap: 15px;
    }
    
    .project-icon {
        width: 45px;
        height: 45px;
    }
    
    .project-icon i {
        font-size: 1.3rem;
    }
    
    .project-name {
        font-size: 1rem;
    }
    
    .project-status {
        font-size: 0.85rem;
    }
    
    .contact-notice p {
        font-size: 1rem;
    }
    
    .home-button {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .copyright p {
        font-size: 0.9rem;
    }
    
    .version-info {
        padding: 6px 14px;
        margin-bottom: 15px;
        max-width: 350px;
    }
    
    .version-text {
        font-size: 0.75rem;
        gap: 0.8em;
    }
}

@media (max-width: 480px) {
    .theme-toggle {
        top: 10px;
        right: 10px;
    }
    
    .theme-toggle-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .container {
        padding: 20px 10px;
    }
    
    .status-code {
        font-size: 4.5rem;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .sub-title {
        font-size: 1rem;
    }
    
    .description {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .progress-container {
        margin-bottom: 30px;
    }
    
    .progress-text, .progress-percentage {
        font-size: 0.95rem;
    }
    
    .progress-status {
        font-size: 0.85rem;
        margin-top: 10px;
    }
    
    .progress-hint {
        font-size: 0.8rem;
        margin-top: 6px;
    }
    
    .development-list {
        margin-bottom: 40px;
    }
    
    .list-title {
        font-size: 1.2rem;
    }
    
    .project-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding: 20px 15px;
    }
    
    .project-info {
        align-items: center;
    }
    
    .home-button {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    
    .copyright p {
        font-size: 0.8rem;
    }
    
    .version-info {
        padding: 4px 10px;
        margin-bottom: 10px;
        max-width: 300px;
    }
    
    .version-text {
        font-size: 0.7rem;
        line-height: 1.4;
        text-align: center;
        flex-direction: column;
        gap: 0.2em;
    }
    
    .version-item {
        white-space: nowrap;
    }
}

/* 矮螢幕優化 */
@media (max-height: 600px) {
    .container {
        align-items: flex-start;
        padding-top: 20px;
        padding-bottom: 20px;
    }
    
    .status-code {
        font-size: 5rem;
        margin-bottom: 10px;
    }
    
    .main-title {
        font-size: 2.5rem;
        margin-bottom: 5px;
    }
    
    .sub-title {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }
    
    .description {
        margin-bottom: 30px;
    }
    
    .development-list {
        margin-bottom: 30px;
    }
    
    .list-title {
        margin-bottom: 15px;
    }
    
    .project-items {
        gap: 10px;
    }
    
    .project-item {
        padding: 15px;
    }
    
    .contact-notice {
        margin-bottom: 20px;
    }
    
    .action-button {
        margin-bottom: 20px;
    }
    
    .copyright {
        margin-bottom: 20px;
    }
}

/* 動畫效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-content {
    animation: fadeInUp 0.8s ease-out;
}

.project-item {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.project-item:nth-child(1) { animation-delay: 0.1s; }
.project-item:nth-child(2) { animation-delay: 0.2s; }
.project-item:nth-child(3) { animation-delay: 0.3s; }
