
.fancy-title i {
    font-size: 1.4rem;
}

.fancy-title:hover {
    background: linear-gradient(135deg, var(--dark-blue), var(--primary-blue));
    letter-spacing: 1px;
}

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

.title-card {
    animation: fadeInUp 0.5s ease-out forwards;
}

.title-card:nth-child(2) { animation-delay: 0.1s; }
.title-card:nth-child(3) { animation-delay: 0.2s; }
.title-card:nth-child(4) { animation-delay: 0.3s; }
.title-card:nth-child(5) { animation-delay: 0.4s; }
.title-card:nth-child(6) { animation-delay: 0.5s; }

/* 響應式調整 */
@media (max-width: 992px) {
    .login-box {
        width: 90%;
        max-width: 500px;
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .login-header,
    .login-divider,
    .login-form-section {
        height: auto;
        max-height: none;
    }

    .login-divider {
        display: none;
    }

    .system-info,
    .login-tips,
    .support-info {
        max-width: 400px;
    }

    .login-logo {
        width: 90px;
        height: 90px;
    }

    .login-header h2 {
        font-size: 1.8rem;
    }

    .login-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .account-selector {
        flex-direction: column;
        align-items: center;
    }

    .account-option {
        width: 200px;
    }

    .input-group,
    .login-btn,
    .login-footer {
        max-width: 280px;
    }
}

@media (max-width: 576px) {
    .login-box {
        width: 95%;
        padding: 1rem;
    }

    .account-selector {
        flex-direction: column;
        align-items: center;
    }

    .account-option {
        width: 200px;
    }

    .input-group,
    .login-btn,
    .login-footer {
        max-width: 280px;
    }

    .overlay-hint {
        width: 90%;
        min-width: auto;
        top: -70px;
    }

    .hint-content {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .modal-content {
        width: 90%;
        padding: 1.5rem;
    }

    .modal-content h2 {
        font-size: 1.5rem;
    }

    .changelog-sidebar {
        width: 100%;
    }

    .login-form-section {
        padding: 1.5rem;
    }
}

/* 更新日誌側邊欄響應式 */
@media (max-width: 768px) {
    .changelog-sidebar {
        width: 100%;
        transform: translateX(100%);
    }

    .changelog-header h2 {
        font-size: 1.3rem;
    }

    .changelog-content {
        padding: 1rem;
    }

    .version {
        font-size: 1.1rem;
    }
}

/* 頂部導航欄響應式 */
@media (max-width: 576px) {
    .top-bar-content {
        padding: 0.8rem 1rem;
    }

    .top-bar h1 {
        font-size: 1.2rem;
    }

    .logout-btn {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }
}

/* 錯誤提示框響應式 */
@media (max-width: 576px) {
    .modal-content {
        margin: 1rem;
        padding: 1.5rem;
    }

    .modal-icon {
        font-size: 3rem;
    }

    .modal-content button {
        width: 100%;
        margin-top: 1rem;
    }
}

/* 動畫效果在移動設備上的優化 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* 錯誤提示框樣式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.hidden {
    opacity: 0;
    visibility: hidden;
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    animation: modalPopup 0.3s ease-out;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 90%;
    width: 400px;
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.modal-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: shake 0.5s ease-in-out;
    color: #ff4444;
    text-shadow: 0 2px 10px rgba(255,68,68,0.3);
}

.modal-content h2 {
    color: #ff4444;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    font-weight: bold;
}

.modal-content p {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.5;
}

.modal-content button {
    background: linear-gradient(135deg, #ff4444, #ff6b6b);
    color: white;
    border: none;
    padding: 12px 35px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255,68,68,0.3);
    position: relative;
    overflow: hidden;
}

.modal-content button:hover {
    background: linear-gradient(135deg, #ff6b6b, #ff4444);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255,68,68,0.4);
}

.modal-content button:active {
    transform: translateY(1px);
}

.modal-content button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: 0.5s;
}

.modal-content button:hover::before {
    left: 100%;
}

@keyframes modalPopup {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* 確保內容在加載完成前隱藏 */
.content-wrapper.hidden {
    display: none;
}

/* 頂部工作列樣式 */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: #2c3e50 !important; /* 強制使用深藍色背景 */
    color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 開發者主題 */
.developer-theme .top-bar {
    background-color: #2c3e50 !important; /* 確保開發者主題也使用深藍色 */
}

/* 訪客主題 */
.visitor-theme .top-bar {
    background-color: #2c3e50 !important; /* 確保訪客主題也使用深藍色 */
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.top-bar h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: bold;
}

.logout-btn {
    background: transparent;
    border: 2px solid white;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: var(--primary-blue);
    color: var(--primary-blue);
    transform: translateY(-2px);
}

.logout-btn i {
    font-size: 1.2rem;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* 更新日誌樣式 */
.changelog {
    flex: 1;
    padding: 3rem;
    max-height: 600px;
    overflow-y: auto;
}

.changelog::-webkit-scrollbar {
    width: 8px;
}

.changelog::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
    border-radius: 4px;
}

.changelog::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 4px;
}

.changelog-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.changelog-title i {
    color: var(--primary-blue);
}

.changelog-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

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

.version {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.date {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.changelog-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.changelog-item li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: #444;
    font-size: 1rem;
}

.changelog-item li i {
    color: var(--primary-blue);
    font-size: 0.9rem;
}

/* 分割布局容器 */
.split-layout {
    display: flex;
    gap: 3rem;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    max-width: 1400px;
    margin: 0 2rem;
}

/* 更新日誌容器樣式 */
.changelog-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    width: 480px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    max-height: 600px;
    overflow-y: auto;
}

/* 調整輸入框組件寬度 */
.input-group {
    position: relative;
    margin: 1.5rem auto;
    max-width: 280px;
}

.input-group input {
    width: 100%;
    padding: 12px 45px;
    background: white;
    border: 2px solid var(--neutral-300);
    border-radius: 12px;
    font-size: 1rem;
    color: var(--dark-blue);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* 登入按鈕寬度調整 */
.login-btn {
    width: 280px;
    margin: 1.5rem auto 0;
}

/* 響應式調整 */
@media (max-width: 1024px) {
    .split-layout {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        margin: 2rem 1rem;
    }

    .login-box, 
    .changelog-box {
        width: 100%;
        max-width: 480px;
    }

    .changelog-box {
        max-height: 400px;
    }
}

/* 帳戶類型選擇器樣式 */
.account-type {
    margin-bottom: 2rem;
}

.account-type h3 {
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.type-selector {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.type-option {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    border: 2px solid transparent;
    border-radius: 15px;
    padding: 1rem;
    width: 120px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.type-option i {
    font-size: 1.5rem;
    color: #666;
}

.type-option span {
    color: #333;
    font-size: 0.9rem;
}

.type-option .check-mark {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-blue);
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.type-option.selected {
    border-color: var(--primary-blue);
    background: white;
    box-shadow: 0 5px 15px rgba(76,175,80,0.1);
}

.type-option.selected i {
    color: var(--primary-blue);
}

.type-option.selected .check-mark {
    opacity: 1;
    transform: scale(1);
}

.type-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 更新日誌模態框樣式 */
.changelog-modal {
    width: 600px;
    max-width: 90%;
    max-height: 80vh;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.modal-header h2 {
    color: #333;
    font-size: 1.5rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header h2 i {
    color: var(--primary-blue);
}

.close-btn {
    background: transparent;
    border: none;
    color: #666;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-btn:hover {
    color: #ff4444;
    transform: rotate(90deg);
}

.changelog-content {
    padding: 2rem;
    overflow-y: auto;
    flex-grow: 1;
}

/* 更新日誌內容樣式保持不變 */
.changelog-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

/* 分割視圖容器 */
.split-view {
    display: flex;
    width: 90%;
    max-width: 1400px;
    height: 600px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease-out;
}

/* 左側更新日誌 */
.split-changelog {
    width: 40%;
    background: rgba(76,175,80,0.05);
    border-right: 1px solid rgba(76,175,80,0.2);
    display: flex;
    flex-direction: column;
}

.changelog-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(76,175,80,0.2);
}

.changelog-header h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
    margin: 0;
    font-size: 1.5rem;
}

.changelog-header i {
    color: var(--primary-blue);
}

.close-split {
    background: transparent;
    border: none;
    color: #666;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-split:hover {
    background: rgba(255,68,68,0.1);
    color: #ff4444;
    transform: rotate(90deg);
}

/* 右側登入區 */
.split-login {
    width: 60%;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 動畫效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 響應式調整 */
@media (max-width: 968px) {
    .split-view {
        flex-direction: column;
        height: auto;
        max-height: 90vh;
    }

    .split-changelog,
    .split-login {
        width: 100%;
    }

    .split-changelog {
        border-right: none;
        border-bottom: 1px solid rgba(76,175,80,0.2);
    }
}

@media (max-width: 480px) {
    .split-view {
        width: 95%;
        border-radius: 20px;
    }

    .changelog-header,
    .split-login {
        padding: 1rem;
    }
}

/* 更新日誌側邊欄樣式 */
.changelog-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.changelog-sidebar.show {
    transform: translateX(0);
}

.changelog-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.changelog-header h2 {
    margin: 0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.changelog-header h2 i {
    font-size: 1.3rem;
}

.close-changelog {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

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

.changelog-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.changelog-item {
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 0.5s ease forwards;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

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

.changelog-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.changelog-item li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: #444;
    font-size: 1rem;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInRight 0.5s ease forwards;
}

.changelog-item li i {
    color: var(--primary-blue);
    font-size: 1rem;
}
