﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft JhengHei", "微軟正黑體", Arial, sans-serif;
}
/* 全站圖片響應式處理 */
img {
    max-width: 100%;
    height: auto !important;
    object-fit: contain;
}

/* 文章內容區域的圖片特別處理 */
.article-content img,
.list-content img,
.main-content img {
    display: block;
    margin: 15px auto;
    border-radius: 4px;
}

/* 移動端特別處理 */
@media (max-width: 768px) {
    img {
        width: auto;
        max-width: 100%;
        height: auto !important;
    }
    
    /* 確保內容區域的圖片在移動端完全適應 */
    .article-content img,
    .list-content img,
    .main-content img {
        width: 100%;
    }
}
body {
    /* 暗色系背景 */
    background-color: #121212;
    color: #e0e0e0;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 頂部導航欄 - 暗色系 */
.header {
    background-color: #1e1e1e;
    padding: 15px 0 0 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    position: relative;
    z-index: 100;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 頂部區域 - LOGO和登錄註冊按鈕 */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 15px;
}

.logo {
    max-width: 150px;
    display: flex;
    align-items: center;
}

.logo img {
    width: 100%;
    height: auto;
}

/* 註冊登錄按鈕 - 調整到右上角 */
.auth-buttons {
    display: flex;
    gap: 15px;
}

.auth-button {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    font-size: 16px;
    margin-top: 0; /* 移除頂部間距 */
}

/* 註冊按鈕樣式 */
.register-button {
    background-color: #e60000;
    color: #fff;
}

.register-button:hover {
    background-color: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* 登錄按鈕樣式 */
.login-button {
    background-color: #ffcc00;
    color: #121212;
}

.login-button:hover {
    background-color: #e6b800;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* 導航欄 - 移至LOGO下方 */
.main-menu-container {
    width: 100%;
    display: flex;
    justify-content: center;
    background-color: #252525; /* 添加背景色 */
    border-radius: 5px; /* 添加圓角 */
    padding: 8px 0; /* 添加內邊距 */
    margin-top: 5px; /* 與頂部保持一定距離 */
}

.main-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.main-menu li {
    margin: 0 15px;
}

.main-menu a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    transition: color 0.3s ease;
    padding: 5px 0;
}

.main-menu a:hover {
    color: #e60000;
}

/* 漢堡菜單按鈕 */
.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 24px;
    color: #e0e0e0;
    z-index: 101;
}

/* 左側導航樣式 - 暗色系 */
.side-nav {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background-color: #1a1a1a;
    z-index: 1000;
    transition: left 0.3s ease;
    overflow-y: auto;
    padding: 20px;
}

.side-nav.active {
    left: 0;
}

.side-nav-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    color: #e0e0e0;
    cursor: pointer;
}

.side-nav-logo {
    text-align: center;
    margin-bottom: 30px;
    padding-top: 20px;
}

.side-nav-logo img {
    max-width: 150px;
}

.side-nav-menu {
    list-style: none;
    margin-bottom: 30px;
}

.side-nav-menu li {
    margin-bottom: 15px;
}

.side-nav-menu a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 16px;
    display: block;
    padding: 5px 0;
    transition: color 0.3s;
}

.side-nav-menu a:hover {
    color: #ffcc00;
}

.side-nav-auth {
    margin-top: 30px;
}

.side-nav-auth .auth-buttons {
    flex-direction: column;
    gap: 10px;
}

.side-nav-auth .auth-button {
    width: 100%;
}

/* 遮罩層 */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 999;
}

/* 頁腳 - 暗色系 */
footer {
    background-color: #1a1a1a;
    color: #e0e0e0;
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-section {
    width: 30%;
    margin-bottom: 20px;
}

.footer-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: #ffcc00;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:hover {
    color: #ffcc00;
}

.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.payment-logo {
    max-width: 60px;
    height: auto;
    background-color: #fff;
    padding: 5px;
    border-radius: 5px;
}

.social-icons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.social-icon {
    width: 30px;
    height: 30px;
    background-color: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #e0e0e0;
    font-size: 16px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #333;
    font-size: 14px;
    color: #b0b0b0;
}

.sitemap {
    margin-top: 10px;
    text-align: center;
}

.sitemap a {
    color: #b0b0b0;
    text-decoration: none;
    margin: 0 10px;
    font-size: 14px;
}

/* 移動端下方註冊登錄按鈕 */
.mobile-auth-buttons {
    display: none;
    justify-content: space-between;
    width: 100%;
    margin: 15px 0;
    padding: 0 15px;
}
/* 頁腳信息列表樣式 */
.footer-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-info li {
    margin-bottom: 10px;
    color: #b0b0b0;
    font-size: 14px;
    line-height: 1.5;
}

.footer-info a {
    color: #ffcc00;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-info a:hover {
    color: #e60000;
    text-decoration: underline;
}

/* 移動端適配 */
@media (max-width: 768px) {
    .footer-info li {
        font-size: 13px;
    }
}

/* 移動端適配 */
@media (max-width: 768px) {
    /* 調整頭部佈局 - 漢堡菜單最左側，LOGO居中 */
    .header-top {
        position: relative;
        justify-content: center;
    }
    
    .menu-toggle {
        display: block;
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .logo {
        margin: 0 auto;
    }
    
    /* 在移動端隱藏頂部的註冊登錄按鈕 */
    .header-top .auth-buttons {
        display: none;
    }
    
    /* 在移動端隱藏主導航欄 */
    .main-menu-container {
        display: none;
    }
    
    /* 移動端下方顯示註冊登錄按鈕 */
    .mobile-auth-buttons {
        display: flex;
    }
    
    .footer-section {
        width: 100%;
        margin-bottom: 30px;
    }
}