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

        body {
            font-family: 'Inter', sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            color: #333;
        }

        /* 載入畫面 */
        #loading-screen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            color: white;
        }

        .loading-spinner {
            width: 50px;
            height: 50px;
            border: 4px solid rgba(255,255,255,0.3);
            border-top: 4px solid white;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin-bottom: 20px;
        }

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

        /* 頂部導航 */
        .top-nav {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            padding: 15px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.2);
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        .nav-container {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 20px;
        }

        .logo {
            display: flex;
            align-items: center;
            font-size: 1.5em;
            font-weight: 700;
            color: #667eea;
        }

        .logo i {
            margin-right: 10px;
        }

        .nav-links {
            display: flex;
            gap: 30px;
        }

        .nav-link {
            text-decoration: none;
            color: #333;
            font-weight: 500;
            padding: 8px 16px;
            border-radius: 20px;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .nav-link.active,
        .nav-link:hover {
            background: #667eea;
            color: white;
        }

        .update-time {
            display: flex;
            align-items: center;
            color: #666;
            font-size: 0.9em;
        }

        .update-time i {
            margin-right: 5px;
        }

        /* 主要內容容器 */
        .main-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 40px 20px;
        }

        /* 儀表板標題 */
        .dashboard-header {
            text-align: center;
            margin-bottom: 50px;
            color: white;
        }

        .dashboard-header h1 {
            font-size: 3em;
            font-weight: 700;
            margin-bottom: 10px;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
        }

        .dashboard-header p {
            font-size: 1.2em;
            opacity: 0.9;
        }

        /* 功能卡片網格 */
        .dashboard-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 25px;
            margin-bottom: 50px;
        }

        .feature-card {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 15px;
            padding: 30px;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            transition: all 0.3s ease;
            cursor: pointer;
            position: relative;
            overflow: hidden;
        }

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

        .card-icon {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 20px;
            font-size: 1.5em;
            color: white;
        }

        .feature-card.purple .card-icon {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }

        .feature-card.pink .card-icon {
            background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
        }

        .feature-card.teal .card-icon {
            background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
        }

        .feature-card.orange .card-icon {
            background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
        }

        .feature-card.blue .card-icon {
            background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
        }

        .feature-card h3 {
            font-size: 1.3em;
            font-weight: 600;
            margin-bottom: 10px;
            color: #333;
        }

        .feature-card p {
            color: #666;
            line-height: 1.6;
        }

        /* 內容區域 */
        .content-section {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 20px;
            padding: 30px;
            margin-bottom: 30px;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
            border-bottom: 2px solid #667eea;
            padding-bottom: 15px;
        }

        .section-header h2 {
            color: #333;
            font-size: 1.8em;
            font-weight: 600;
        }

        .refresh-btn {
            background: #667eea;
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 25px;
            cursor: pointer;
            font-weight: 500;
            transition: all 0.3s ease;
        }

        .refresh-btn:hover {
            background: #5a6fd8;
            transform: translateY(-2px);
        }

        /* 數據來源信息 */
        .data-source-info {
            background: rgba(52, 152, 219, 0.1);
            border-left: 4px solid #3498db;
            padding: 15px;
            border-radius: 5px;
            margin-bottom: 25px;
            text-align: center;
        }

        .data-source-info p {
            margin: 5px 0;
            color: #555;
        }

        /* 銀行利率卡片樣式 */
        .bank-rate-card {
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            border-radius: 15px;
            padding: 25px;
            margin-bottom: 20px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease;
        }

        .bank-rate-card:hover {
            transform: translateY(-5px);
        }

        .bank-rate-card h3 {
            text-align: center;
            margin-bottom: 20px;
            color: #2c3e50;
        }

        .rate-item {
            display: flex;
            justify-content: space-between;
            padding: 10px;
            margin: 5px 0;
            background: rgba(255, 255, 255, 0.7);
            border-radius: 8px;
        }

        .rate-value {
            font-weight: bold;
            color: #e74c3c;
        }

        .bank-source {
            text-align: center;
            margin-top: 15px;
            border-top: 1px solid rgba(255, 255, 255, 0.5);
            padding-top: 10px;
        }

        .bank-source a {
            color: #3498db;
            text-decoration: none;
        }

        .bank-source a:hover {
            text-decoration: underline;
        }

        /* 幣種切換按鈕 */
        .currency-toggle {
            display: flex;
            justify-content: center;
            margin-bottom: 25px;
            gap: 10px;
        }

        .currency-btn {
            background: #eee;
            border: none;
            padding: 10px 20px;
            border-radius: 25px;
            cursor: pointer;
            font-weight: 500;
            transition: all 0.3s ease;
        }

        .currency-btn.active {
            background: #667eea;
            color: white;
        }

        .currency-btn:hover:not(.active) {
            background: #ddd;
        }

        /* 成功訊息樣式 */
        .success-message {
            background: #d4edda;
            color: #155724;
            padding: 15px;
            border-radius: 5px;
            margin: 20px 0;
            text-align: center;
        }

        /* 響應式設計 */
        @media (max-width: 768px) {
            .nav-container {
                flex-direction: column;
                gap: 15px;
            }

            .nav-links {
                gap: 15px;
            }

            .dashboard-header h1 {
                font-size: 2em;
            }

            .dashboard-grid {
                grid-template-columns: 1fr;
                gap: 20px;
            }

            .section-header {
                flex-direction: column;
                gap: 15px;
                text-align: center;
            }
        }

        /* 錯誤和載入狀態 */
        .error-message {
            background: #f8d7da;
            color: #721c24;
            padding: 15px;
            border-radius: 5px;
            margin: 20px 0;
            text-align: center;
        }

        .loading-message {
            text-align: center;
            padding: 40px;
            color: #666;
        }
    


/* HIBOR 儀表板樣式 */
.hibor-dashboard {
    margin-bottom: 20px;
}

.hibor-controls {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding: 0 10px;
}

.view-toggle {
    display: flex;
}

.view-btn {
    background: #f0f0f0;
    border: 1px solid #ddd;
    padding: 5px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn:first-child {
    border-radius: 4px 0 0 4px;
}

.view-btn:last-child {
    border-radius: 0 4px 4px 0;
}

.view-btn.active {
    background: #9c27b0;
    color: white;
    border-color: #9c27b0;
}

.period-selector select {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.hibor-table-container {
    overflow-x: auto;
}

.hibor-table {
    width: 100%;
    border-collapse: collapse;
}

.hibor-table th, .hibor-table td {
    padding: 8px 12px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.hibor-table th {
    background-color: #f5f5f5;
    font-weight: 500;
}

.hibor-table tr:hover {
    background-color: #f9f9f9;
}

/* HIBOR 快照樣式 */
.hibor-snapshot {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}

.hibor-snapshot h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    color: #555;
}

.hibor-rates-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

.hibor-rate {
    text-align: center;
    padding: 10px 5px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.rate-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.rate-value {
    font-size: 18px;
    font-weight: 600;
    color: #9c27b0;
}

/* HIBOR 趨勢樣式 */
.hibor-trends {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 5px;
}

.trend-item {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.trend-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
    color: #333;
}

.trend-chart {
    margin-bottom: 10px;
    height: 50px;
}

.trend-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.trend-change {
    display: flex;
    flex-direction: column;
}

.change-value {
    font-size: 16px;
    font-weight: 600;
}

.change-period {
    font-size: 12px;
    color: #777;
}

.trend-direction {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.trend-direction.up {
    background-color: #4caf50;
}

.trend-direction.down {
    background-color: #f44336;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .hibor-rates-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hibor-trends {
        grid-template-columns: 1fr;
    }
}
