html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  white-space: nowrap;
  line-height: 60px;
}

/* 文章樣式 */
.article-header h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.article-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.article-meta .publish-time {
    margin-right: 1rem;
}

.article-meta .author {
    font-style: italic;
}

.article-image {
    text-align: center;
}

.article-image img {
    max-width: 100%;
    height: auto;
}

.image-caption {
    font-size: 0.8rem;
    color: #666;
    text-align: center;
    margin-top: 0.5rem;
}

.article-content {
    line-height: 1.8;
    font-size: 1.1rem;
}

.article-content p {
    margin-bottom: 1rem;
}

.article-tags {
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

/* 文章列表樣式 */
.single-main-news {
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.single-main-news:last-child {
    border-bottom: none;
}

.single-main-news a {
    text-decoration: none;
    color: inherit;
}

.single-main-news a:hover {
    text-decoration: none;
}

.single-main-news img {
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
}

.single-main-news h3 {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #333;
}

.single-main-news span {
    color: #666;
    font-size: 0.9rem;
}

/* 分類頁面樣式 */
.category-header h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.category-header h2 {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 2rem;
}

/* 導航選單樣式 */
.navbar-nav .nav-link {
    color: #333;
    font-weight: 500;
}

.navbar-nav .nav-link:hover {
    color: #007bff;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.dropdown-menu .nav-link {
    padding: 0.5rem 1rem;
    color: #333;
}

.dropdown-menu .nav-link:hover {
    background-color: #f8f9fa;
    color: #007bff;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .article-header h1 {
        font-size: 1.8rem;
    }
    
    .category-header h1 {
        font-size: 1.8rem;
    }
    
    .single-main-news h3 {
        font-size: 1.1rem;
    }
}

/* 廣告樣式 */
.single-main-news.ad {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.25rem;
}

/* 按鈕樣式 */
.btn-outline-danger {
    border-color: #dc3545;
    color: #dc3545;
}

.btn-outline-danger:hover {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

/* 標籤樣式 */
.badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
}

/* 側邊欄樣式 */
.col-md-4 h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #007bff;
}

/* 分頁樣式 */
.pagesControllers {
    text-align: left;
    padding-top: 2px;
    margin-top: 1rem;
}

.pagesControllers .pagecontroller {
    margin: auto 1px;
    text-decoration: none;
    display: inline-block;
    padding: 1px 7px;
    background: #91b9e6;
    color: white;
    border-radius: 3px;
    font-size: 20px;
    border: none;
    cursor: pointer;
}

.pagesControllers .pagecontroller:hover {
    background: #7aa8d9;
    color: white;
    text-decoration: none;
}

.pagesControllers .pagecontroller.currentPage {
    background: #187ed5;
    font-weight: bold;
}

.pagesControllers .pagecontroller:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 表格樣式 */
.tablemanager {
    width: 100%;
    margin-bottom: 1rem;
}

.tablemanager thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: bold;
    padding: 0.75rem;
}

.tablemanager tbody td {
    padding: 0.75rem;
    border-bottom: 1px solid #dee2e6;
}

.tablemanager tbody tr:hover {
    background-color: #f8f9fa;
}

/* 按鈕樣式 */
.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 0.2rem;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
    color: white;
}

.btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background-color: #e0a800;
    border-color: #d39e00;
    color: #212529;
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
    color: white;
}