/**
 * 電話查詢平台 - 全站樣式表
 * 色彩主題：黃色淺色系、專業簡潔
 */

/* ==================== 色彩變數定義 ==================== */
:root {
    /* 主色系 - 黃色系 */
    --primary-yellow: #FFD700;      /* 金黃色 - 主色 */
    --primary-light: #FFF8DC;       /* 淺米色 - 背景 */
    --primary-amber: #FFC107;       /* 琥珀色 - 強調 */
    --primary-cream: #FFFAF0;       /* 奶油色 - 卡片背景 */
    
    /* 輔助色系 */
    --secondary-gold: #FFB300;      /* 深金色 - 按鈕 */
    --secondary-beige: #F5E6D3;     /* 米色 - 邊框 */
    --secondary-wheat: #F5DEB3;     /* 小麥色 - 懸停 */
    
    /* 語意色彩 */
    --success-green: #4CAF50;       /* 成功 */
    --danger-red: #FF6B6B;          /* 危險/詐騙 */
    --warning-orange: #FF9800;      /* 警告/行銷 */
    --info-blue: #5DADE2;           /* 資訊 */
    
    /* 文字色彩 */
    --text-primary: #333333;        /* 主要文字 */
    --text-secondary: #666666;      /* 次要文字 */
    --text-muted: #999999;          /* 淡化文字 */
    --text-white: #FFFFFF;          /* 白色文字 */
    
    /* 其他 */
    --border-color: #E8DCC0;        /* 邊框顏色 */
    --shadow-color: rgba(0,0,0,0.08); /* 陰影顏色 */
    --overlay-color: rgba(255,215,0,0.1); /* 覆蓋層 */
}

/* ==================== 全域樣式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft JhengHei', sans-serif;
    background: linear-gradient(135deg, #FFFAF0 0%, #FFF8DC 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* ==================== 導航欄樣式 ==================== */
.navbar-custom {
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--secondary-gold) 100%);
    padding: 1rem 0;
    box-shadow: 0 2px 10px var(--shadow-color);
    border: none;
}

.navbar-custom .navbar-brand {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.navbar-custom .navbar-brand i {
    margin-right: 0.5rem;
    color: var(--text-primary);
}

.navbar-custom .nav-link {
    color: var(--text-primary) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.navbar-custom .nav-link:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* ==================== Hero Section ==================== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--primary-amber) 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: float 20s linear infinite;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(20px, 20px); }
}

.hero-section h1 {
    color: var(--text-primary);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.hero-section p {
    color: var(--text-primary);
    font-size: 1.2rem;
    opacity: 0.9;
}

/* ==================== 搜尋框樣式 ==================== */
.search-box {
    max-width: 600px;
    margin: 2rem auto;
    position: relative;
}

.search-box .form-control {
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    border: 3px solid var(--secondary-beige);
    border-radius: 50px;
    background: white;
    box-shadow: 0 5px 20px var(--shadow-color);
    transition: all 0.3s ease;
}

.search-box .form-control:focus {
    outline: none;
    border-color: var(--secondary-gold);
    box-shadow: 0 5px 30px rgba(255,193,7,0.2);
}

.search-box .btn-search {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--primary-amber) 0%, var(--secondary-gold) 100%);
    border: none;
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.search-box .btn-search:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 5px 20px rgba(255,193,7,0.4);
}

/* ==================== 卡片樣式 ==================== */
.card-custom {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 3px 15px var(--shadow-color);
    transition: all 0.3s ease;
}

.card-custom:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255,193,7,0.15);
}

.card-custom .card-header {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-wheat) 100%);
    border-bottom: 2px solid var(--border-color);
    padding: 1rem 1.5rem;
    border-radius: 15px 15px 0 0;
    margin: -1.5rem -1.5rem 1.5rem;
}

.card-custom .card-header h3,
.card-custom .card-header h4,
.card-custom .card-header h5 {
    color: var(--text-primary);
    font-weight: 600;
    margin: 0;
}

/* ==================== 按鈕樣式 ==================== */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-amber) 0%, var(--secondary-gold) 100%);
    border: none;
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(255,193,7,0.3);
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255,193,7,0.4);
    background: linear-gradient(135deg, var(--secondary-gold) 0%, var(--primary-amber) 100%);
}

.btn-outline-custom {
    background: transparent;
    border: 2px solid var(--primary-amber);
    color: var(--primary-amber);
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    background: var(--primary-amber);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255,193,7,0.3);
}

/* ==================== 統計卡片 ==================== */
.stat-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-yellow), var(--secondary-gold));
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255,193,7,0.15);
}

.stat-card i {
    font-size: 2.5rem;
    color: var(--primary-amber);
    margin-bottom: 1rem;
}

.stat-card h3 {
    font-size: 2rem;
    color: var(--text-primary);
    font-weight: 700;
    margin: 0.5rem 0;
}

.stat-card p {
    color: var(--text-secondary);
    margin: 0;
}

/* ==================== 標籤樣式 ==================== */
.badge-custom {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.badge-warning-custom {
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-wheat));
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.badge-danger-custom {
    background: linear-gradient(135deg, #FFE5E5, #FFCCCC);
    color: var(--danger-red);
    border: 1px solid #FFCCCC;
}

.badge-success-custom {
    background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
    color: var(--success-green);
    border: 1px solid #C8E6C9;
}

/* ==================== 表單樣式 ==================== */
.form-control-custom {
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-control-custom:focus {
    outline: none;
    border-color: var(--primary-amber);
    box-shadow: 0 0 0 0.2rem rgba(255,193,7,0.25);
}

.form-label-custom {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* ==================== 列表樣式 ==================== */
.list-item-custom {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.list-item-custom:hover {
    background: var(--primary-cream);
    border-color: var(--primary-amber);
    transform: translateX(5px);
}

/* ==================== Footer ==================== */
.footer-custom {
    background: linear-gradient(135deg, var(--text-primary) 0%, #4A4A4A 100%);
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-custom a {
    color: var(--primary-yellow);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-custom a:hover {
    color: var(--primary-amber);
}

/* ==================== 響應式設計 ==================== */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .search-box .btn-search {
        position: static;
        transform: none;
        width: 100%;
        margin-top: 1rem;
        border-radius: 10px;
    }
    
    .stat-card {
        margin-bottom: 1rem;
    }
}

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

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* ==================== 捲軸樣式 ==================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--primary-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-amber);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-gold);
}