/*#region Global Styles */
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Noto Serif TC', 'PingFang TC', 'Microsoft JhengHei', serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
    padding-top: 80px; /* 和 header 的高度一致 */
    padding-bottom: 80px; 
        
}

header {
    background-color: #873dff;
    display: flex;
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    align-items: center;
    padding: 0;
    justify-content: space-between;
    color: white;   
}


header .logo {
    width: 12vw;
    min-width: 70px;
    max-width: 100px;
}

header .search-bar {
    flex-grow: 1;
    margin: 0 20px;
    display: flex;
}

header .search-bar input {
    flex-grow: 1;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
    outline: none;
}

header .search-bar button {
    padding: 5px 10px;
    background-color: white;
    color: #873dff;
    border: 1px solid #ddd;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

header .search-bar button:hover {
    background-color: #e6e6ff;
    color: #622db8;
}

header .header-buttons {
    display: flex;
    gap: 10px;
}

header .header-buttons img {
    width: 20px;
    margin-right: 5px;
}



header .header-buttons button:hover {
    background-color: #873dff;
    color: white;
    border-color: #622db8;
    transform: scale(1.05);
}

header .header-buttons button:active {
    transform: scale(0.95);
    opacity: 0.8;
}
.logo-gotohomepage{
    display: inline-block; margin: 0; padding: 0;
}
.logo-gotohomepage .submit{
    border: none; background: none; padding: 0; cursor: pointer;
}
/*#endregion Global Styles */

.category-nav {
    background-color: white;
    padding: 10px 20px;
    display: flex;
    
    gap: 30px;
    border-bottom: 1px solid #ddd;
}

.category-nav a {
    text-decoration: none;
    color: #555;
    transition: color 0.3s ease;
}

.category-nav a:hover {
    color: #622db8;
}



/* #region 商品 */
.content {
    background-color: #f9f9f9; /* 柔和的背景色 */
    border: 1px solid #e0e0e0; /* 邊框 */
    border-radius: 10px; /* 圓角 */
    padding: 20px 30px; /* 內距 */
    margin: 20px auto; /* 外距 */
    max-width: 800px; /* 最大寬度 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 陰影效果 */
}
.content img.content-icon {
    width: 120px;
}
.content img {
    width: 100%;
    max-width: 550px;
    height: auto;
    display: block;
    margin: 10px auto;
}

.content h2 {
    font-size: 24px;
    color: #4CAF50;
    margin-bottom: 10px;
    text-align: center;
    font-weight: 700;
}

.content p {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    text-align: justify; /* 文字對齊 */
}


.content strong {
    color: #4CAF50;
    font-weight: bold;
}


.content p + p {
    margin-top: 15px;
}

.content label {
    font-weight: bold;
    display: block;
    margin-top: 10px;
}

.content  input, select {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.content .checkbox-group {
    display: flex;
    align-items: center;
    margin-top: 10px;
}
.content .checkbox-group input {
    width: auto;
    margin-right: 5px;
}

.content button {
    width: 100%;
    padding: 10px;
    margin-top: 15px;
    background: brown;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}
.content button:hover {
    background:  rgb(69, 18, 18)5;
}

.content .green-button {
    width: 20%;
    background: linear-gradient(135deg, #28a745, #218838); /* 漸變綠色 */
    color: white; /* 文字顏色 */
    padding: 12px 24px; /* 內邊距 */
    font-size: 18px; /* 文字大小 */
    font-weight: bold; /* 加粗 */
    border: none; /* 移除邊框 */
    border-radius:16px 16px 0 0; /* 圓角 */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* 陰影 */
    cursor: pointer; /* 滑鼠變手指 */
    transition: all 0.3s ease-in-out; /* 過渡動畫 */
    display: inline-block;
    text-align: center;
}

.content .green-button:hover {
    background: linear-gradient(135deg, #218838, #1e7e34); /* 深綠色變化 */
    transform: scale(1.05); /* 微放大 */
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3); /* 增強陰影 */
    color: white;
}

.content .green-button:active {
    transform: scale(0.98); /* 點擊時微縮小 */
}

.content .white-button {
    width: 20%;
    background: linear-gradient(135deg, #eaf0eb, #eef5f0); /* 漸變綠色 */
    color: #218838; /* 文字顏色 */
    padding: 12px 24px; /* 內邊距 */
    font-size: 18px; /* 文字大小 */
    font-weight: bold; /* 加粗 */
    border: none; /* 移除邊框 */
    border-radius: 16px 16px 0 0; /* 圓角 */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* 陰影 */
    cursor: pointer; /* 滑鼠變手指 */
    transition: all 0.3s ease-in-out; /* 過渡動畫 */
    display: inline-block;
    text-align: center;
}

.content .white-button:hover {
    background: linear-gradient(135deg, #218838, #1e7e34); /* 深綠色變化 */
    transform: scale(1.05); /* 微放大 */
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3); /* 增強陰影 */
    color: white;
}

.content .white-button:active {
    transform: scale(0.98); /* 點擊時微縮小 */
}

.content table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    font-size: 18px;
}
.content th, td {
    border: 1px solid #ccc;
    padding: 10px;
}
.content th {
    background-color: #f4f4f4;
}
.content-form{
    width: 85%;
    max-width: 300px;
    width: 100%; /* 填滿 form */
    display: inline-block;
    text-align: center;
    
    
}
.content-form button{
    background-color: brown;
    color: white;
    padding: 12px 24px;
    margin-top: 40px;
}
.content-form button:hover{
    background-color: rgb(69, 18, 18);
    color: white;
    
}

.order table {
    font-size: 16px;
    line-height: 1.4; /* 調小行高 */
}
.orderbtngroup {
    display: flex;
    justify-content: center;
    gap: 10px; /* 按鈕間距 */
    flex-wrap: wrap; /* 若畫面太窄會自動換行 */
}
.orderbtngroup form {
    flex: 1 1 0; /* 填滿剩餘空間 */
    max-width: 300px; /* 單顆最大寬度 */
}
.orderbtngroup button {
    width: 100%; /* 填滿 form */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px; /* icon 與文字間距 */
    padding: 10px 16px;
    font-size: 16px;
    font-weight: bold;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}
.order td, .order th {
    padding: 4px 6px; /* 上下縮小 */
}
.order th {
    white-space: nowrap;
}
.order td {
    text-align: left;

}
.orderbtn-void {
    background-color: brown;
}
.orderbtn-comfirm{
    background-color: #218838;
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.button-group button {
    flex: 1 1 auto;
    padding: 12px 24px;
    white-space: nowrap;
}
.breathing-button {

    
    border: none;
    border-radius: 8px;
    font-size: large;
    font-weight: bold;
    cursor: pointer;
    animation: breathing 2.5s ease-in-out infinite;
    transition: transform 0.3s;
}

@keyframes breathing {
    0%   { transform: scale(0.96); }
    50%  { transform: scale(1.02); }
    100% { transform: scale(0.96); }
}

.allbtn{flex:1;
    text-align: center;}
.allbtn-icon img{
    width: 16px;    /* 跟字一樣高 */
    height: 16px;
    vertical-align: middle; }
/* 手機螢幕小於 480px 時，按鈕自動換行但仍保持一致大小 */
@media screen and (max-width: 480px) {
    .button-group {
        flex-wrap: wrap;
        
    }

    .button-group button {
        flex: 1 1 45%; /* 兩個一行 */
        margin: 5px 0;
    }
    
}

/* 商品卡片 */
.product-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    justify-content: center;
    padding-top: 180px; /* 為了避開底部的固定按鈕欄 */
}

.product-card {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    text-align: center;
    width: 200px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    border-radius: 5px;
    margin-bottom: 10px;
}

.product-card .price {
    color: #873dff;
    font-weight: bold;
    margin: 10px 0; 
}

.product-card .add-to-cart {
    background-color: #873dff;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease;
}

.product-card .add-to-cart:hover {
    background-color: #622db8;
}
/* 商品卡片 購物車列表 */
/* 整個購物車清單容器樣式 */
.cart-list {
    display: flex;
    flex-direction: column; /* 每一行商品垂直排列 */
    gap: 20px; /* 每一行的間距 */
    padding: 20px;
    max-width: 800px; /* 限制容器寬度 */
    margin: 0 auto; /* 水平居中 */
    background-color: #f9f9f9; /* 背景色 */
    border-radius: 10px; /* 圓角 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 陰影效果 */
}

/* 單個商品的橫列樣式 */
.cart-item {
    display: flex;
    align-items: center; /* 垂直居中 */
    gap: 20px; /* 元素間距 */
    padding: 15px;
    background-color: white; /* 單項商品背景色 */
    border: 1px solid #ddd; /* 邊框 */
    border-radius: 5px; /* 圓角 */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* 陰影效果 */
    transition: transform 0.3s ease;
}

.cart-item:hover {
    transform: translateY(-5px); /* 懸停效果 */
}

/* 商品圖片樣式 */
.cart-item img {
    width: 80px; /* 圖片寬度 */
    height: 80px; /* 圖片高度 */
    object-fit: cover; /* 保持圖片比例 */
    border-radius: 5px; /* 圓角 */
    border: 1px solid #ddd; /* 圖片邊框 */
}

/* 商品名稱樣式 */
.cart-item .item-name {
    flex: 2; /* 占用更多寬度 */
    font-size: 16px;
    color: #333;
    text-align: left;
    font-weight: bold;
}

/* 商品數量樣式 */
.cart-item .item-quantity {
    flex: 1; /* 固定寬度 */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #873dff;
    font-weight: bold;
}

/* 修改按鈕樣式 */
.cart-item .modify-btn,
.cart-item .delete-btn {
    flex: 1; /* 固定寬度 */
    padding: 8px 15px;
    font-size: 14px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
}

/* 修改按鈕顏色 */
.cart-item .modify-btn {
    background-color: #4caf50; /* 綠色背景 */
    color: white; /* 字體顏色 */
    transition: background-color 0.3s ease;
}

.cart-item .modify-btn:hover {
    background-color: #388e3c; /* 懸停效果 */
}

/* 刪除按鈕顏色 */
.cart-item .delete-btn {
    background-color: #f44336; /* 紅色背景 */
    color: white; /* 字體顏色 */
    transition: background-color 0.3s ease;
}

.cart-item .delete-btn:hover {
    background-color: #d32f2f; /* 懸停效果 */
}
/*商品數量*/
.number-input {
    display: flex;
    
    align-items: center;
    font-size: xx-large;
    background-color: #007bff;
    color: white;
    
  }
  

  

  .number-input button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
  }

  .number-input input {
   
    text-align: center;
    font-size: 16px;
    border: 1px solid #ccc;
    border-right: none;
    border-left: none;
  }

  .number-input button:first-of-type {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
  }

  .number-input button:last-of-type {
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
  }

  /* #endregion 商品 */

/*#region 育兒工具區域樣式 */
.tools-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}

/* 主容器：置中 + 上下排列 */
.tools-container {
    display: flex;
    flex-direction: column;
    align-items: center; 
    gap: 20px;
    padding: 10px;
}

/* 卡片 */
.tool-item {
    width: 90%;
    max-width: 400px;
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tool-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

.tool-item h2 {
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.tool-item p {
    color: #666;
    margin-bottom: 15px;
}

/* 色條 */
.tool-item.eat { border-top: 6px solid #FFBFA9; }
.tool-item.sleep { border-top: 6px solid #A3D8F4; }
.tool-item.poop { border-top: 6px solid #F7D794; }
.tool-item.other { border-top: 6px solid #C8E6C9; }

/* 按鈕 */
.tool-btn {
    padding: 10px 18px;
    border: none;
    background: #4CAF50;
    color: white;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s ease;
    font-size: 1rem;
}

.tool-btn:hover {
    background: #43A047;
}

/* 表單外觀統一 */
.tool-item form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

/* 標籤文字 */
.tool-item label {
    font-size: 0.95rem;
    color: #444;
    text-align: left;
    margin-left: 4px;
}

/* 所有輸入欄位 */
.tool-item input,
.tool-item select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    box-sizing: border-box;
    background: #fafafa;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

/* 輸入中高亮效果 */
.tool-item input:focus,
.tool-item select:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 4px rgba(76, 175, 80, 0.4);
    outline: none;
}

/* 讓 select 更好看 */
.tool-item select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='gray' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5H7z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
}

.tool-item.timeline { border-top: 6px solid #B39DDB; } /* 淡紫色 */
.tool-item.weekly { border-top: 6px solid #81D4FA; }  /* 淡藍色 */

/* 小螢幕優化 */
@media (max-width: 480px) {
    .tool-item {
        width: 95%;
        padding: 15px;
    }

    .tool-item input,
    .tool-item select {
        font-size: 0.95rem;
    }

    .tool-btn {
        font-size: 1rem;
        padding: 10px;
    }
}
.dateInput {
    appearance: none;
    padding: 10px 16px;
    background: #ffffff;
    border: 1px solid #dcdcdc;
    border-radius: 12px;
    font-size: 16px;
    color: #333;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.dateInput:hover {
    border-color: #b5b5b5;
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);
}

.dateInput:focus {
    border-color: #6ba4ff;
    box-shadow: 0 0 0 3px rgba(107,164,255,0.3);
}

.timeline-container {
    width: 95%;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px 10px;
}

.timeline-title {
    text-align: center;
    font-size: 1.6rem;
    margin-bottom: 20px;
}

.timeline-list {
    position: relative;
    margin-left: 20px;
    padding-left: 20px;
}

/* 垂直線 */
.timeline-list::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 0;
    width: 4px;
    height: 100%;
    background: #e0e0e0;
    border-radius: 3px;
}

.timeline-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    position: relative;
}

/* 小圓點 */
.timeline-item::before {
    content: "";
    position: absolute;
    left: -4px;
    top: 8px;
    width: 14px;
    height: 14px;
    background: #bbb;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 2px #e0e0e0;
}

/* 時間 */
.timeline-time {
    width: 60px;
    font-size: 0.95rem;
    color: #555;
    text-align: right;
}

/* 內容 */
.timeline-content {
    background: #fff;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    flex: 1;
    position: relative;
}

.timeline-content h3 {
    font-size: 1.1rem;
    margin: 0 0 5px;
}

.timeline-content p {
    margin: 0;
    color: #555;
}

/* 類別色彩 */
.timeline-item.milk::before { background: #FFBFA9; }
.timeline-item.sleep::before { background: #A3D8F4; }
.timeline-item.poop::before { background: #F7D794; }
.timeline-item.other::before { background: #C8E6C9; }

/* 所有輸入欄位 */
.timeline-item input,
.timeline-item select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    box-sizing: border-box;
    background: #fafafa;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

/* 輸入中高亮效果 */
.timeline-item input:focus,
.timeline-item select:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 4px rgba(76, 175, 80, 0.4);
    outline: none;
}

/* 按鈕 */
.timeline-btn {
    padding: 10px 18px;
    border: none;
    background: #4CAF50;
    color: white;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s ease;
    font-size: 1rem;
}

.timeline-btn:hover {
    background: #43A047;
}


/* 按鈕容器 */
.timeline-actions {
    position: absolute;
    top: 8px;
    right: 10px;
    display: flex;
    gap: 8px;
}

/* 讓 form 沒空白 */
.action-form {
    margin: 0;
}

/* 按鈕 */
.edit-btn, .delete-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1rem;
    padding: 2px;
    transition: transform 0.15s ease, opacity 0.15s ease;
    opacity: 0.7;
}

.edit-btn:hover, .delete-btn:hover {
    transform: scale(1.2);
    opacity: 1;
}

.delete-btn:hover { color: #e74c3c; }
.edit-btn:hover { color: #3498db; }

.timeline-actions-edit {
    transition: all 0.3s ease;
}

/*#endregion 育兒工具區域樣式 */

/* 頁腳 */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px;
}

footer .footer-links {
    margin-bottom: 60px;
}

footer .footer-links a {
    color: white;
    margin: 0 10px;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer .footer-links a:hover {
    color: #873dff;
}


/* 手機版phone */
@media screen and (max-width: 768px) {
    
    .category-nav {
        display: none; /* 預設隱藏 */
        flex-direction: column;
        gap: 10px;
        position: fixed; /* 固定在畫面內 */
        top: 130px; /* 從畫面頂部開始 */
        left: 20px; /* 靠左 */
        background-color: white; /* 白色背景 */
        width: fit-content; /* 寬度占螢幕 */
        max-width: 200px;
        padding: 6px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* 陰影效果 */
        border-radius: 5px;
        z-index: 999;
        
        }
        .category-nav a:not(:last-child) {
            
            padding-bottom: 5px; /* 可選，增加右側間距 */
        }
        .category-nav.show {
        display: flex; /* 顯示 nav */
        }
        
        .category-toggle {
       
        display: block; /* 手機模式顯示按鈕 */
        position: fixed;
        top: 95px;
        left: 10px;
        background-color: #361867;
        color: white;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        z-index: 1000;
        width: fit-content;
        }
        .category-nav a:hover {
            
            background-color: #361867;
            color: white;
            border-color: #873dff;
            transform: scale(1.05);
            padding: 7px;
        }
        .category-toggle img{
            width: 30px;
        }
    
}


    .header-buttons {
        position: relative;
        bottom: unset;
        left: unset;
        width: auto;
        background-color: transparent;
        display: flex;
        justify-content: flex-start;
        gap: 10px;
        padding: 0;
        box-shadow: none;
        white-space: nowrap;
    }

    .header-buttons form {
        max-width: none;
    }
    .header-buttons button.logout-button {
        border: none;
        width: 40px;
        height: 55px;
        margin: 0 0 5px 0;
        background-color: brown;
        color: white;
        font-weight: bold;
    } 
    .header-buttons button {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 60px; 
        height: 70px;   
        margin: 0 0 5px 0;
        padding: 6px 10px;
        font-size: 12px;
        background-color: rgba(255, 255, 255, 0.1);
        color: white;
        border: 1px solid #f9f9f9;
        border-radius: 5px;
        height: 50px;
        display: flex;
        cursor: pointer;
        
    }

    .header-buttons button img {
        margin: 0 5px 0 0;
    }

    .header-buttons button:hover {
        background-color: white;
        color: #873dff;
        border-color: #873dff;
        transform: scale(1.05);
    }
    /* 電腦版樣式 */
@media screen and (min-width: 769px) {
    .category-nav {
        margin-top: 80px;
        display: flex; /* 顯示為一排 */
        flex-direction: row; /* 橫向排列 */
        justify-content: center; /* 置中 */
        gap: 20px; /* 間距 */
        background-color: #f2f2f2; /* 淺灰背景 */
        padding: 10px 0;
        position: static; /* 恢復正常流 */
        width: 100%;
        box-shadow: none; /* 移除陰影 */
        border-radius: 0; /* 移除圓角 */
        }
        .category-nav a:not(:last-child) {
            border-right: 1px solid black;
            padding-right: 18px; /* 可選，增加右側間距 */
        }
        
        .category-toggle {
        display: none; /* 桌面模式隱藏按鈕 */
        }
}
.image-slider {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 20px auto; /* 水平居中 */
    overflow: hidden; /* 隱藏超出範圍的內容 */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
/* 商品介紹 */
.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease; /* 滑動平滑過渡 */
}

.slider-wrapper img {
    width: 100%;
    flex-shrink: 0;
    object-fit: contain; /* 保持圖片比例 */
    max-height: 400px; /* 限制高度 */
}

.slider-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 100;
    border-radius: 50%;
}

.slider-button.left {
    left: 10px;
}

.slider-button.right {
    right: 10px;
}

.slider-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* 登入表單樣式 */
.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 20px;
    background-color: #f9f9f9;
    line-height: 1px;
}

.login-container form {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 30px 40px;
    width: 100%;
    max-width: 400px;
}

.login-container h2{
    margin:  90px auto 30px auto;
}
.login-container form input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}
.login-container select{
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}

.login-container form input:focus {
    border-color: #873dff;
    box-shadow: 0 0 5px rgba(135, 61, 255, 0.5);
}

.login-container form button {
    width: 100%;
    padding: 10px 15px;
    margin-top: 15px;
    background-color: #873dff;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.login-container form button:hover {
    background-color: #622db8;
    transform: scale(1.05);
}

.login-container form button:active {
    transform: scale(0.95);
    opacity: 0.9;
}

.login-container p {
    margin: 20px 0;
    color: #555;
    font-size: 14px;
}

.login-container a {
    color: #873dff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.login-container a:hover {
    color: #622db8;
}

/* 響應式調整 */
@media screen and (max-width: 480px) {
    .login-container form {
        padding: 20px;
    }

    .login-container form button {
        font-size: 14px;
    }
}
