/* 1. 基本重置 - 防止跑版核心 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* 確保 padding 不撐開寬度 */
}

body {
    background-color: #0c0c0c;
    color: #d4d4d4;
    font-family: 'Noto Sans TC', "Microsoft JhengHei", sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

:root {
    --gold: #b2945e;
    --dark-green: #1a2f23;
}

/* 2. 佈局容器 - 限制最大寬度防止在大螢幕爆掉 */
.container-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 3. Header 跑版修正 */
.main-header {
    background: #111;
    border-bottom: 1px solid #b2945e33;
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo img {
    display: block;
    height: 70px; /* 稍微縮小防止擠壓導航 */
    width: auto;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-menu ul li {
    margin-left: 25px;
    position: relative;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    transition: 0.3s;
    letter-spacing: 1px;
}

.nav-menu a:hover { color: var(--gold); }

/* 下拉選單 */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #1a1a1a;
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.5);
    border: 1px solid #333;
}

.dropdown-content li {
    margin: 0 !important;
    width: 100%;
}

.dropdown-content a {
    padding: 12px 20px;
    display: block;
    border-bottom: 1px solid #222;
}

/* 4. 商品列表 (Grid) 修正 */
.content-wrapper {
    padding: 40px 0;
}

.section-title {
    text-align: center;
    color: var(--gold);
    font-size: 2rem;
    margin-bottom: 40px;
    font-family: 'Playfair Display', serif;
}

.watch-grid {
    display: grid;
    /* 強制在電腦版一排三個 */
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
}

.watch-card {
    background: #151515;
    border: 1px solid #222;
    transition: 0.3s ease;
    display: flex;
    flex-direction: column;
}

.watch-card:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
}

.card-img {
    width: 100%;
    height: 350px;
    background: #000;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* 確保圖片不被裁切 */
}

.card-info {
    padding: 20px;
    text-align: center;
    flex-grow: 1;
}

.card-info .brand {
    display: block;
    color: var(--gold);
    font-size: 0.8rem;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.model-title {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: #fff;
    height: 3em; /* 限制標題高度防止卡片參差不齊 */
    overflow: hidden;
}

.price {
    font-weight: bold;
    color: #fff;
    margin-bottom: 15px;
}

.btn-detail {
    display: inline-block;
    border: 1px solid #444;
    color: #aaa;
    padding: 8px 25px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}

.btn-detail:hover {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
}

/* 5. 分頁 */
.pagination {
    margin-top: 50px;
    text-align: center;
}

.pagination a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border: 1px solid #333;
    color: #fff;
    margin: 0 5px;
    text-decoration: none;
}

.pagination a.active {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
}

/* 6. Footer 跑版修正 */
/* Footer 整體背景 */
.main-footer {
    background-color: #0a0a0a; /* 接近純黑但比背景淺一點點 */
    padding: 80px 0 30px;
    border-top: 1px solid #222;
    margin-top: 100px;
    width: 100%;
}

/* 控制內容寬度的關鍵：集中不散開 */
.footer-inner {
    max-width: 1100px; /* 這裡可以縮小一點，讓內容更集中 */
    margin: 0 auto;
    padding: 0 20px;
}

/* 三個欄位的群組 */
.footer-section-group {
    display: flex;
    justify-content: space-between; /* 均勻分配，但不撐爆 */
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
}

/* 單一欄位設定 */
.footer-column {
    flex: 1; 
    min-width: 200px; /* 防止在窄螢幕擠扁 */
}

.footer-column h4 {
    color: var(--gold);
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-bottom: 25px;
    letter-spacing: 2px;
}

.footer-column p {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 10px;
    line-height: 1.8;
}

/* 社交圖示 */
.social-icons a {
    color: #888;
    font-size: 1.5rem;
    transition: 0.3s;
}

.social-icons a:hover {
    color: var(--gold);
}

/* 底部版權條 */
.footer-bottom {
    margin-top: 60px;
    padding-top: 25px;
    border-top: 1px solid #1a1a1a;
    text-align: center;
}

.footer-bottom p {
    color: #444;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

/* 手機版適應：垂直排列並置中 */
@media (max-width: 768px) {
    .footer-section-group {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .footer-column {
        width: 100%;
    }
}

/* 響應式：平板與手機 */
@media (max-width: 992px) {
    .watch-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .watch-grid { grid-template-columns: 1fr; }
    .main-header { flex-direction: column; padding: 20px; }
    .nav-menu ul { margin-top: 20px; }
    .footer-container { flex-direction: column; text-align: center; }
}
     .pagination {
    margin-top: 50px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.pagination a, .pagination .dots {
    display: inline-block;
    min-width: 40px;
    height: 40px;
    line-height: 40px;
    padding: 0 5px;
    border: 1px solid #333;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}

.pagination .dots {
    border: none;
    color: #666;
}

.pagination a.active {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
    font-weight: bold;
}

.pagination a:hover:not(.active) {
    border-color: var(--gold);
    color: var(--gold);
}

/* 針對 FontAwesome 圖示微調 */
.pagination a i {
    font-size: 0.8rem;
}











/* 搜尋區塊背景 */
.filter-section {
    background: #151515; /* 深灰色背景，與純黑 body 做出區隔 */
    padding: 30px 0;
    border-bottom: 1px solid #222;
    width: 100%;
}

/* 讓表單內容置中 */
.filter-form {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 搜尋群組：橫向排列 */
.filter-group {
    display: flex;
    justify-content: center; /* 置中 */
    align-items: center;
    gap: 15px; /* 元件之間的間距 */
    flex-wrap: wrap; /* 手機版自動折行 */
}

/* 下拉選單樣式 */
.filter-group select {
    background-color: #000;
    color: #fff;
    border: 1px solid #444;
    padding: 12px 15px;
    font-size: 0.9rem;
    min-width: 180px; /* 設定最小寬度 */
    outline: none;
    cursor: pointer;
    transition: border-color 0.3s;
    appearance: none; /* 去除原生箭頭以自訂或保持簡潔 */
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23b2945e%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
}

.filter-group select:focus {
    border-color: var(--gold);
}

/* 搜尋按鈕樣式 */
.btn-search {
    background-color: var(--gold);
    color: #000;
    border: none;
    padding: 12px 35px;
    font-weight: bold;
    font-size: 0.95rem;
    cursor: pointer;
    transition: 0.3s;
    letter-spacing: 1px;
}

.btn-search:hover {
    background-color: #d4bc8d;
    box-shadow: 0 0 15px rgba(178, 148, 94, 0.4);
}

/* 響應式修正：手機版讓 select 寬度 100% */
@media (max-width: 768px) {
    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group select {
        width: 100%;
        min-width: unset;
    }
    
    .btn-search {
        width: 100%;
    }
}


/* 確保搜尋按鈕有正確的金色質感 */
.filter-section .filter-group .btn-search {
    background-color: #b2945e !important; /* 使用你的金色變數 */
    color: #000 !important;              /* 文字黑色 */
    border: none !important;
    padding: 12px 40px !important;
    font-size: 1rem !important;
    font-weight: bold !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    letter-spacing: 2px;
    height: 46px; /* 確保與 select 高度一致 */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}

.filter-section .filter-group .btn-search:hover {
    background-color: #d4bc8d !important; /* 滑過時變亮 */
    box-shadow: 0 0 15px rgba(178, 148, 94, 0.6);
    transform: translateY(-2px);
}

/* 修正 Select 在某些瀏覽器高度不一的問題 */
.filter-group select {
    height: 46px;
    vertical-align: middle;
}


  /* 針對 PHP 頁面補充的特定樣式 */
        .product-container { max-width: 1200px; margin: 50px auto; padding: 20px; display: flex; flex-wrap: wrap; gap: 50px; }
        .product-container .watch-image-sector { flex: 1; min-width: 300px; text-align: center; }
        .product-container .watch-image-sector img { max-width: 100%; border-radius: 4px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
        .product-container .watch-info-sector { flex: 1.2; min-width: 300px; }
        .product-container .brand-header { color: #b2945e; letter-spacing: 2px; font-size: 1.1rem; margin-bottom: 10px; }
        .product-container .watch-name { font-family: 'Playfair Display', serif; font-size: 2.5rem; color: #fff; margin-bottom: 20px; }
        .product-container .price-tag { font-size: 1.8rem; color: #b2945e; margin-bottom: 30px; border-bottom: 1px solid #333; padding-bottom: 20px; }
        .product-container .short-review { font-style: italic; color: #aaa; line-height: 1.6; margin-bottom: 30px; border-left: 3px solid #b2945e; padding-left: 15px; }
        
        .product-container .spec-table { width: 100%; border-collapse: collapse; margin-bottom: 40px; }
        .product-container .spec-table th, .spec-table td { text-align: left; padding: 12px 8px; border-bottom: 1px solid #222; }
        .product-container .spec-table th { color: #888; width: 30%; font-weight: 400; font-size: 0.9rem; }
        .product-container .spec-table td { color: #ddd; }

        .product-container .btn-group { display: flex; gap: 15px; }
        .product-container .btn-main { background: #b2945e; color: #000; padding: 15px 30px; text-decoration: none; font-weight: bold; flex: 1; text-align: center; transition: 0.3s; }
        .product-container .btn-main:hover { background: #d4bc8d; }
        
        
        /* 內頁專屬樣式修正 */
.product-container .spec-section {
    margin-bottom: 35px;
}

.product-container .spec-section h4 {
    color: #fff;
    font-size: 1rem;
    border-bottom: 1px solid #b2945e;
    padding-bottom: 8px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-container .spec-section h4 i {
    color: #b2945e;
    font-size: 0.9rem;
}

/* 強化表格的可讀性 */
.product-container .spec-table {
    width: 100%;
    margin-bottom: 0;
}

.product-container .spec-table tr:hover {
    background: rgba(255,255,255,0.02);
}

.product-container .spec-table th {
    color: #777;
    font-size: 0.85rem;
    width: 30%;
    padding: 12px 0;
}

.product-container .spec-table td {
    color: #ccc;
    font-size: 0.95rem;
    padding: 12px 0;
}

/* 其他細節文字 */
.product-container .details-content {
    color: #999;
    font-size: 0.9rem;
    line-height: 1.8;
    background: #111;
    padding: 20px;
    border-radius: 4px;
}

/* 價格小標 */
/* 1. 修正系統時間樣式 (左側圖片下方) */
.product-container .system-time {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #222; /* 實線比虛線更乾淨 */
    text-align: left;
}

.product-container .system-time small {
    display: block;
    color: #888; /* 提高亮度，從 #444 改為 #888 */
    font-size: 0.8rem;
    line-height: 1.8;
    letter-spacing: 0.5px;
}

/* 2. 修正官方參考資料按鈕 */
.product-container .official-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #bbb; /* 提高文字亮度 */
    text-decoration: none;
    font-size: 0.9rem;
    padding: 12px 25px;
    border: 1px solid #444; /* 邊框顏色稍微加深 */
    transition: all 0.3s ease;
}

.product-container .official-link i {
    font-size: 0.8rem;
    color: #b2945e; /* 圖示用金色點綴 */
}

.product-container .official-link:hover {
    color: #fff; /* 滑過時變白 */
    border-color: #b2945e;
    background: rgba(178, 148, 94, 0.1);
}

/* 3. 順便修正價格日期的顏色 */
.product-container .price-date {
    display: block;
    font-size: 0.8rem;
    color: #999; /* 提高可讀性 */
    margin-top: 8px;
    font-weight: normal;
}

/* 2. 修正官方參考資料按鈕樣式 */
.product-container .official-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #888; /* 平常是灰色 */
    text-decoration: none;
    font-size: 0.9rem;
    padding: 10px 20px;
    border: 1px solid #333;
    transition: all 0.3s ease;
}

.product-container .official-link i {
    font-size: 0.8rem;
}

.product-container .official-link:hover {
    color: #b2945e; /* 移入變金色 */
    border-color: #b2945e;
    background: rgba(178, 148, 94, 0.05); /* 淡淡的金色背景 */
}

/* 3. 優化按鈕群組的對齊 */
.product-container .btn-group {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}


/* 1. 確保父層 li 是定位基準 */
.nav-menu ul li {
    position: relative;
    list-style: none;
    display: inline-block; /* 讓選單橫排 */
}

/* 2. 預設隱藏下拉內容，並設定絕對定位 */
.nav-menu .dropdown-content {
    display: none;             /* 關鍵：預設不顯示 */
    position: absolute;
    top: 100%;                 /* 從父層底部開始顯示 */
    left: 0;
    background-color: #111;    /* 下拉選單背景色 */
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.5);
    z-index: 9999;             /* 確保不會被下方的內容擋住 */
    border: 1px solid #333;
    padding: 0;
}

/* 3. 當滑鼠移到父層 li 時，顯示下拉選單 */
.nav-menu li:hover .dropdown-content {
    display: block;            /* 關鍵：滑鼠移入才顯示 */
}

/* 4. 下拉選單內的項目樣式 */
.nav-menu .dropdown-content li {
    display: block;            /* 讓下拉項目垂直排列 */
    width: 100%;
    margin: 0;
}

.nav-menu .dropdown-content a {
    padding: 12px 20px;
    display: block;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    text-align: left;
    border-bottom: 1px solid #222;
}

.nav-menu .dropdown-content a:hover {
    background-color: #1a1a1a;
    color: #b2945e;
}





/* ==========================================================================
   1. 全域變數與重置 (明亮奢華版)
   ========================================================================== */
:root {
    --gold: #b2945e;
    --gold-light: #d4bc8d;
    --bg-white: #ffffff;
    --bg-soft: #f8f8f8;
    --text-main: #222222;
    --text-muted: #666666;
    --text-light: #999999;
    --border-color: #eeeeee;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-white);
    color: var(--text-main);
    font-family: 'Noto Sans TC', "Microsoft JhengHei", sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.container-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   2. Header 導航欄 (白底黑字)
   ========================================================================== */
.main-header {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo img {
    display: block;
    height: 70px;
    width: auto;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-menu ul li {
    margin-left: 25px;
    position: relative;
}

.nav-menu a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.95rem;
    transition: 0.3s;
    letter-spacing: 1px;
    font-weight: 500;
}

.nav-menu a:hover { color: var(--gold); }

/* 下拉選單修正 */
.nav-menu .dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
    padding: 0;
    z-index: 9999;
}

.nav-menu li:hover .dropdown-content { display: block; }

.nav-menu .dropdown-content li {
    margin: 0 !important;
    width: 100%;
}

.nav-menu .dropdown-content a {
    padding: 12px 20px;
    display: block;
    color: var(--text-main);
    border-bottom: 1px solid #f9f9f9;
    font-size: 0.9rem;
}

.nav-menu .dropdown-content a:hover {
    background-color: #fcfaf5;
    color: var(--gold);
}

/* ==========================================================================
   3. 搜尋篩選區 (米色背景區隔)
   ========================================================================== */
.filter-section {
    background: var(--bg-soft);
    padding: 35px 0;
    border-bottom: 1px solid var(--border-color);
    width: 100%;
}

.filter-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-group select {
    background-color: #fff;
    color: var(--text-main);
    border: 1px solid #ddd;
    padding: 0 15px;
    height: 46px;
    min-width: 180px;
    outline: none;
    cursor: pointer;
    transition: 0.3s;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23b2945e%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 10px;
}

.filter-group select:focus { border-color: var(--gold); }

.filter-section .filter-group .btn-search {
    background-color: var(--gold) !important;
    color: #fff !important;
    border: none !important;
    padding: 0 40px !important;
    font-size: 0.95rem !important;
    font-weight: bold !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    letter-spacing: 2px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.filter-section .filter-group .btn-search:hover {
    background-color: var(--gold-light) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(178,148,94,0.3);
}

/* ==========================================================================
   4. 商品列表網格
   ========================================================================== */
.content-wrapper { padding: 60px 0; }

.section-title {
    text-align: center;
    color: var(--text-main);
    font-size: 2.2rem;
    margin-bottom: 50px;
    font-family: 'Playfair Display', serif;
}

.watch-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.watch-card {
    background: #fff;
    border: 1px solid var(--border-color);
    transition: 0.3s ease;
    display: flex;
    flex-direction: column;
}

.watch-card:hover {
    border-color: var(--gold);
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.card-img {
    width: 100%;
    height: 350px;
    background: #fdfdfd;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-img img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.card-info { padding: 25px; text-align: center; }

.card-info .brand {
    display: block;
    color: var(--gold);
    font-size: 0.8rem;
    margin-bottom: 10px;
    letter-spacing: 2px;
    font-weight: bold;
}

.model-title {
    font-size: 1.15rem;
    margin-bottom: 15px;
    color: var(--text-main);
    height: 2.8em;
    overflow: hidden;
}

.price {
    font-weight: bold;
    color: var(--text-main);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.btn-detail {
    display: inline-block;
    border: 1px solid #ddd;
    color: var(--text-muted);
    padding: 10px 30px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: 0.3s;
}

.btn-detail:hover {
    background: var(--gold);
    color: #fff;
    border-color: var(--gold);
}

/* ==========================================================================
   5. 產品內頁專屬樣式 (白底修正)
   ========================================================================== */
.product-container { max-width: 1200px; margin: 40px auto; padding: 20px; display: flex; flex-wrap: wrap; gap: 60px; }

.product-container .watch-image-sector { flex: 1; min-width: 350px; }
.product-container .watch-image-sector img { 
    max-width: 100%; 
    border: 1px solid #f0f0f0;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05); 
}

.product-container .watch-info-sector { flex: 1.2; min-width: 350px; }

.product-container .brand-header { color: var(--gold); font-weight: bold; letter-spacing: 3px; margin-bottom: 15px; }
.product-container .watch-name { 
    font-family: 'Playfair Display', serif; 
    font-size: 2.6rem; 
    color: var(--text-main); 
    margin-bottom: 20px; 
}

.product-container .price-tag { 
    font-size: 2rem; 
    color: var(--text-main); 
    margin-bottom: 35px; 
    border-bottom: 2px solid var(--gold); 
    padding-bottom: 15px;
    display: inline-block;
}

.product-container .short-review { 
    font-style: italic; 
    color: var(--text-muted); 
    background: #fcfaf5; 
    padding: 25px; 
    border-left: 4px solid var(--gold);
    margin-bottom: 40px; 
}

.product-container .spec-section h4 {
    color: var(--text-main);
    font-size: 1.1rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.product-container .spec-table th { 
    color: var(--text-light); 
    font-weight: 500; 
    border-bottom: 1px solid #f0f0f0;
    padding: 15px 0;
}

.product-container .spec-table td { 
    color: var(--text-main); 
    border-bottom: 1px solid #f0f0f0;
    padding: 15px 0;
}

.product-container .details-content {
    color: #555;
    background: #f9f9f9;
    padding: 25px;
    border: 1px solid #eee;
    line-height: 1.8;
}

.product-container .system-time {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.product-container .system-time small { color: var(--text-light); display: block; }

/* 官方連結與按鈕 */
.product-container .btn-main { 
    background: var(--gold); 
    color: #fff; 
    padding: 18px 40px; 
    font-weight: bold; 
    flex: 1; 
    text-align: center; 
    transition: 0.3s;
    text-decoration: none;
}
.product-container .official-link {
    border: 1px solid #ddd;
    color: var(--text-muted);
    padding: 17px 30px;
    text-decoration: none;
    transition: 0.3s;
}
.product-container .official-link:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: #fcfaf5;
}

/* ==========================================================================
   6. 分頁 (Pagination)
   ========================================================================== */
.pagination { margin-top: 60px; display: flex; justify-content: center; gap: 8px; }

.pagination a {
    min-width: 45px;
    height: 45px;
    line-height: 45px;
    border: 1px solid #ddd;
    color: var(--text-main);
    text-decoration: none;
    transition: 0.3s;
    text-align: center;
}

.pagination a.active {
    background: var(--gold);
    color: #fff;
    border-color: var(--gold);
}

.pagination a:hover:not(.active) { border-color: var(--gold); color: var(--gold); }

/* ==========================================================================
   7. Footer 頁尾
   ========================================================================== */
.main-footer {
    background-color: #f5f5f5;
    padding: 80px 0 40px;
    border-top: 1px solid var(--border-color);
    margin-top: 100px;
}

.footer-column h4 { color: var(--text-main); margin-bottom: 25px; }
.footer-column p { color: var(--text-muted); font-size: 0.95rem; }

.social-icons a { color: #aaa; font-size: 1.6rem; transition: 0.3s; }
.social-icons a:hover { color: var(--gold); }

.footer-bottom { 
    border-top: 1px solid #e5e5e5; 
    margin-top: 60px; 
    padding-top: 30px; 
    text-align: center; 
}
.footer-bottom p { color: var(--text-light); font-size: 0.8rem; }

/* ==========================================================================
   8. 響應式佈局
   ========================================================================== */
@media (max-width: 992px) {
    .watch-grid { grid-template-columns: repeat(2, 1fr); }
    .product-container { flex-direction: column; }
}

@media (max-width: 600px) {
    .watch-grid { grid-template-columns: 1fr; }
    .main-header { flex-direction: column; gap: 15px; }
    .nav-menu ul { flex-wrap: wrap; justify-content: center; }
    .nav-menu ul li { margin: 5px 10px; }
    .filter-group { flex-direction: column; align-items: stretch; }
    .filter-group select, .btn-search { width: 100%; }
}


/* --- 導航搜尋框樣式 --- */
.nav-search-item {
    margin-left: 30px !important;
}

.nav-search-form {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 20px; /* 圓角造型較現代 */
    padding: 2px 12px;
    transition: 0.3s;
}

.nav-search-form:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 8px rgba(178, 148, 94, 0.2);
    background: #fff;
}

.nav-search-form input {
    border: none;
    background: transparent;
    padding: 8px 5px;
    outline: none;
    font-size: 0.85rem;
    width: 150px; /* 電腦版寬度 */
    transition: 0.3s;
}

.nav-search-form input:focus {
    width: 200px; /* 點擊時輕微拉長 */
}

.nav-search-form button {
    background: transparent;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 5px;
}

.nav-search-form button:hover {
    color: var(--gold);
}

/* 響應式：手機版調整 */
@media (max-width: 992px) {
    .nav-search-item {
        margin: 15px 0 !important;
        width: 100%;
    }
    .nav-search-form {
        width: 100%;
        border-radius: 4px; /* 手機版改為方角符合整體風格 */
    }
    .nav-search-form input {
        width: 100% !important;
    }
}