﻿/* 自訂義主題顏色 */
:root {
    --primary-color: #0056b3; /* 調整為更深的藍色 */
    --secondary-color: #6c757d;
    --background-color: #f8f9fa;
    --text-color: #333;
}

/* 全域樣式設定 */
html, body {
    font-family: 'Iansui', 'Noto Sans TC', 'Microsoft JhengHei', 'PingFang TC', sans-serif !important;
    background-color: var(--background-color);
    color: var(--text-color);
    font-size: 1.1em;
    line-height: 1.7;
}

/* 按鈕樣式 */
.btn-custom {
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 25px;
    padding: 10px 20px;
    border: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

    .btn-custom:hover {
        background-color: #0056b3; /* 更顯著的顏色變化 */
        transform: scale(1.1); /* 更大的放大效果 */
    }

/* 導航列樣式 */
.navbar-custom {
    background-color: var(--primary-color);
    border-bottom: 2px solid #f8f9fa;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* 添加陰影 */
}

    .navbar-custom .navbar-nav .nav-link {
        color: #fff;
        font-size: 1em; /* 增加字體大小 */
        transition: color 0.3s ease;
    }

        .navbar-custom .navbar-nav .nav-link:hover {
            color: var(--secondary-color);
        }

/* 頁腳樣式 */
.footer-custom {
    background-color: #222;
    color: #f8f9fa;
    padding: 25px 0; /* 增加內邊距 */
    text-align: center; /* 文字置中 */
    font-size: 0.9em; /* 調整字體大小 */
    margin-top: auto;
}

/* 版面排版 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
}

.row {
    margin-bottom: 20px;
}

/* 表單樣式 */
form {
    margin-top: 20px;
}

    form .form-control {
        border-radius: 5px;
        padding: 12px 15px; /* 增加內邊距，使輸入框更舒適 */
        font-size: 1em;
        margin-bottom: 15px; /* 增加底部邊距，分隔表單元素 */
    }

/* 文字樣式 */
p {
    color: var(--text-color);
}

/* 圖示樣式 */
.btn i {
    margin-right: 8px;
}

/* 響應式設計調整 */
@media (max-width: 768px) {
    .navbar-custom .navbar-nav .nav-link {
        font-size: 0.9em;
    }

    .btn-custom {
        width: 100%;
        margin-top: 10px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 10px;
    }

    p {
        font-size: 1em;
    }
}

/* 卡片樣式 */
.card {
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}


/* 表單控制樣式 */
.form-control {
    border-radius: 5px;
    padding: 12px 15px;
    font-size: 1em;
}

/* 按鈕樣式 */
.btn-primary {
    background-color: var(--primary-color);
    border: none;
    padding: 10px;
    font-size: 1.2em;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

    .btn-primary:hover {
        background-color: #004494; /* 更深的藍色以作為 hover 效果 */
    }

.btn-secondary {
    background-color: var(--secondary-color);
    border: none;
    padding: 8px 16px;
    font-size: 1em;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

    .btn-secondary:hover {
        background-color: #4c4c4c; /* 更深的灰色以作為 hover 效果 */
    }

/* 頁腳樣式調整 */
.card-footer {
    background-color: #f8f9fa;
    padding: 10px;
}

    .card-footer .badge {
        font-size: 0.85em;
        margin-right: 5px;
    }

    .card-footer .text-muted {
        font-size: 0.85em;
        margin-top: 5px; /* 在标籤和作者信息之间添加一些间距 */
    }

/* 標籤樣式 */
.badge.bg-secondary {
    background-color: #6c757d; /* 主題標籤顏色 */
}

.badge.bg-light {
    background-color: #f8f9fa; /* 與主背景顏色一致 */
    border: 1px solid #ddd;
    color: #333;
    margin-right: 5px; /* 添加右側間距 */
}

.card-footer .badge {
    font-size: 0.85em; /* 調整標籤字體大小 */
    margin-right: 5px; /* 標籤間的間距 */
}

.card-footer small {
    color: #6c757d;
}

.card-footer .text-muted {
    font-size: 0.85em;
}

/* 設置選單按鈕的樣式 */
/* 按钮样式 */
/* 按钮基础样式 */
.form-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: none;
    background-color: #ffffff;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 30px;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    text-align: center;
    text-align-last: center;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
}

    /* 移除默认下拉箭头 */
    .form-select::-ms-expand {
        display: none;
    }

    .form-select:hover,
    .form-select:focus {
        border-color: #0056b3;
        box-shadow: 0 0 10px rgba(0, 123, 255, 0.2);
        outline: none;
    }

/* 确保按钮边框圆角一致 */
select {
    border-radius: 30px;
    padding: 10px 20px;
    background-color: #ffffff;
    color: #333;
    font-size: 1rem;
    border: 2px solid #007bff;
    text-align: center;
    cursor: pointer;
}
/* 下拉菜单选项样式 */
.form-select option {
    background-color: #ffffff;
    color: #333;
    padding: 10px 15px;
    border-radius: 10px; /* 圆角效果 */
    font-size: 1rem;
    font-weight: 500;
}

/* 自定义滚动条 */
.form-select::-webkit-scrollbar {
    width: 6px;
}

.form-select::-webkit-scrollbar-track {
    background: #f0f0f0;
}

.form-select::-webkit-scrollbar-thumb {
    background-color: #007bff;
    border-radius: 10px;
    border: 2px solid #f0f0f0;
}

/* 下拉菜单悬停效果 */
.form-select option:hover {
    background-color: #007bff;
    color: #ffffff;
}

/* 统一下拉菜单和按钮的圆角样式 */
.select-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    border-radius: 30px; /* 圆角效果 */
    overflow: hidden;
}

/* 去除按钮右侧的默认下拉箭头 */
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: none;
    background-color: #ffffff;
    border: 2px solid #007bff;
    border-radius: 30px;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    text-align: center;
    text-align-last: center;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
}

    /* 移除选中项的默认背景和边框 */
    select:focus {
        outline: none;
        box-shadow: none;
    }

    /* 隐藏默认箭头（上面的 appearance 已经处理，但可以再确保一下） */
    select::-ms-expand {
        display: none;
    }

    /* 下拉菜单的悬浮样式 */
    select:hover {
        border-color: #0056b3;
    }

h1, h2, h3, h4, h5, h6,
.navbar-custom .navbar-nav .nav-link,
.btn, .btn-custom, .btn-primary, .btn-secondary {
    font-family: 'Zen Maru Gothic', 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
    font-weight: 700;
}

.site-footer {
    border-top: 1px solid rgba(0,0,0,.08);
    background: #fff;
    color: #6b7280; /* 顏色柔和 */
    font-size: 14px; /* 小字體 */
    line-height: 1.6;
    margin-top: 24px;
}

    .site-footer.slim .sf-wrap {
        max-width: 1100px;
        margin: 0 auto;
        padding: 8px 12px; /* 很薄的上下距 */
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 12px;
        flex-wrap: wrap;
    }

.sf-brand {
    color: #111827;
    font-weight: 600;
}

.sf-dot {
    color: #d1d5db;
}

.sf-link {
    color: #374151;
    text-decoration: none;
    border-bottom: 1px dotted transparent;
}

    .sf-link:hover {
        border-bottom-color: #9ca3af;
    }

@media (max-width:480px) {
    .site-footer {
        font-size: 13px;
    }

    .sf-wrap {
        padding: 8px;
        gap: 6px;
    }

    .sf-dot {
        display: none;
    }
    /* 手機改成直排 */
}

.navbar-logo img {
    max-height: 50px;
    width: auto;
}