﻿
        @charset "utf-8";

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Microsoft JhengHei', Arial, sans-serif;
        }

        body {
            background-color: #f8f9fa;
            color: #333;
            line-height: 1.6;
        }

        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 15px;
        }

        /* ===== 導航欄樣式 ===== */
        header {
            background-color: #fff9c4;
            box-shadow: 0 2px 15px rgba(0,0,0,0.1);
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        .navbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 0;
            position: relative;
        }

        .logo {
            color: #8b7355;
            font-size: 26px;
            font-weight: bold;
            display: flex;
            align-items: center;
        }

        .logo-icon {
            margin-right: 10px;
            font-size: 28px;
        }

        .logo span {
          color: #e74c3c;
        }

        .nav-menu {
            display: flex;
            list-style: none;
        }

        .nav-item {
            position: relative;
        }

        .nav-link {
            color: #8b7355;
            text-decoration: none;
            padding: 12px 18px;
            display: block;
            transition: all 0.3s ease;
            border-radius: 4px;
            font-weight: 500;
        }

        .nav-link:hover {
            background-color: #e74c3c;
            color: #fff;
        }

        .dropdown-menu {
            position: absolute;
            background-color: white;
            min-width: 240px;
            box-shadow: 0 8px 20px rgba(0,0,0,0.15);
            border-radius: 6px;
            opacity: 0;
            visibility: hidden;
            transform: translateY(12px);
            transition: all 0.3s ease;
            list-style: none;
            z-index: 1001;
            padding: 10px 0;
        }

        .dropdown-menu li {
            border-bottom: 1px solid #f0f0f0;
        }

        .dropdown-menu li:last-child {
            border-bottom: none;
        }

        .dropdown-menu a {
            color: #333;
            padding: 12px 20px;
            display: block;
            text-decoration: none;
            transition: all 0.2s ease;
        }

        .dropdown-menu a:hover {
            background-color: #f8f9fa;
            color: #e74c3c;
            padding-left: 25px;
        }

        .nav-item:hover .dropdown-menu {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .mobile-toggle {
            display: none;
            background: none;
            border: none;
            color: white;
            font-size: 24px;
            cursor: pointer;
            padding: 10px;
            z-index: 1002;
            width: 40px;
            height: 40px;
            position: relative;
            transition: all 0.3s ease;
        }

        /* 三條槓和X圖標樣式 - 添加動畫 */
        .mobile-toggle .hamburger {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 24px;
            height: 18px;
            transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
        }

        .mobile-toggle .hamburger span {
            display: block;
            position: absolute;
            height: 2px;
            width: 100%;
            background: #8b7355;
            border-radius: 2px;
            opacity: 1;
            left: 0;
            transform: rotate(0deg);
            transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
        }

        .mobile-toggle .hamburger span:nth-child(1) {
            top: 0px;
            transform-origin: left center;
        }

        .mobile-toggle .hamburger span:nth-child(2) {
            top: 8px;
            transform-origin: left center;
        }

        .mobile-toggle .hamburger span:nth-child(3) {
            top: 16px;
            transform-origin: left center;
        }

        .mobile-toggle.active .hamburger span:nth-child(1) {
            top: 0px;
            left: 3px;
            transform: rotate(45deg);
        }

        .mobile-toggle.active .hamburger span:nth-child(2) {
            width: 0%;
            opacity: 0;
        }

        .mobile-toggle.active .hamburger span:nth-child(3) {
            top: 16px;
            left: 3px;
            transform: rotate(-45deg);
        }


        /* ===== 行動裝置工具列樣式 ===== */


           .mobile-toolbar {
            display: none;
            background: #776248;
            padding: 8px 0;
            border-top: 2px solid rgba(231, 76, 60, 0.3);
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            z-index: 999;
            box-shadow: 0 -3px 10px rgba(0,0,0,0.2);
        }


         
/* 頁尾樣式 */
footer {
background-color: #8b7355;
color: white;
padding: 3rem 0 2rem;
margin-top: 3rem;
}  

.footer-content {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 2rem;
margin-bottom: 2rem;
} 


.footer-section h3 {
color: #f39c12;
margin-bottom: 1.5rem;
font-size: 1.3rem;
}        

.footer-section p, .footer-section a {
color: #ecf0f1;
margin-bottom: 0.8rem;
display: block;
text-decoration: none;
}

.footer-section a:hover {
color: #f39c12;
}
        
.copyright { 
text-align: center; 
padding-top: 2rem; 
border-top: 1px solid #34495e;
font-size: 0.9rem;
color: #bdc3c7;
} 


 /* 修正頁尾背景問題 */
        footer {
            background-color: #8b7355;
            color: white;
            padding: 3rem 0 0; /* 移除底部padding，由內部元素控制 */
            margin-top: 3rem;
            position: relative;
        }
        
        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
            margin-bottom: 2rem;
            padding: 0 15px;
        }
        
        .copyright {
            text-align: center;
            padding: 2rem 0;
            border-top: 1px solid rgba(255, 255, 255, 0.2);
            font-size: 0.9rem;
            color: #bdc3c7;
            margin-top: 2rem;
        }
        
        /* 確保頁尾工具列正確顯示 */
        .footer-toolbar {
            background: linear-gradient(135deg, #1a2a3a 0%, #2c3e50 100%);
            color: white;
            padding: 12px 0;
            border-top: 3px solid rgba(231, 76, 60, 0.3);
            margin-top: 2rem; /* 與上方內容保持距離 */
        }
        
        /* 其他CSS保持不變 */
        /* ... 您原有的CSS代碼 ... */