﻿/* 會員等級頁面樣式 */
.content {
    border: 1px solid #d5d5d5;
}

/* 頁面標題區塊 */
.rule-header {
    margin-bottom: 40px;
    background-image: url('../../imgs/MemberCenter/vip-header.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 60px 20px;
    position: relative;
}

.rule-header .main-title {
    font-size: 28px;
    color: #d4a574;
    font-weight: normal;
    margin-bottom: 10px;
}

.rule-header .sub-title {
    font-size: 36px;
    color: #333;
    font-weight: bold;
    margin-bottom: 20px;
}

.rule-header .description {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
}

/* 桌面版會員等級說明 */
.member-level-intro-desktop {
    display: block;
    margin: 40px 0;
}

/* 手機版會員等級說明 - 預設隱藏 */
.member-level-intro-mobile {
    display: none;
    padding: 10px;
    background: #fff;
    margin: 10px 0;
}

.mobile-table-title {
    font-size: 24px;
    color: #b8956a;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
}

.member-level-table {
    width: 100%;
    border-collapse: inherit;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.member-level-table thead {
    background: #b8956a;
    color: #fff;
}

.member-level-table th {
    padding: 15px 10px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
}

.member-level-table td {
    padding: 15px 10px;
    text-align: left;
    border-bottom: 1px solid #e8e1d5;
    vertical-align: middle;
}

.member-level-table tbody tr:last-child td {
    border-bottom: none;
}

.level-name {
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    color: #b8956a;
    min-width: 80px;
}

.level-detail {
    font-size: 14px;
    color: #333;
}

.condition-item {
    margin-bottom: 12px;
    line-height: 1.6;
}

.condition-item:last-child {
    margin-bottom: 0;
}

.condition-label {
    font-weight: bold;
    color: #b8956a !important;
    display: inline-block;
    margin-bottom: 4px;
}

.condition-value {
    color: #c30e2e;
    display: inline;
    font-weight: bold;
}

/* 讓 condition-item 內的文字可以混合顏色 */
.condition-item > span {
    color: #333;
}

.condition-item > span .condition-value {
    color: #c30e2e;
}

/* 確保 condition-label 不會被覆蓋 */
.condition-item .condition-label {
    color: #b8956a !important;
}

/* 專屬禮遇區塊特殊處理 */
.condition-item .condition-value {
    line-height: 1.8;
}

/* 字體粗體樣式 */
.font-bold {
    font-weight: bold;
}

/* 註解標籤樣式 */
.note-badge {
  display: inline-block;
    background: #d4a574;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 4px;
    vertical-align: middle;
    line-height: 1.2;
}

/* 不同等級的背景色 */
.level-pink {
    background: #fef5f8;
}

.level-silver {
    /*background: #f5f5f5;*/
    background: #ffffff;
}

.level-gold {
    background: #fffbf0;
}

.level-black {
    background: #e8e5e5;
}

.mobile-table-note {
    margin-top: 15px;
    text-align: center;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.mobile-table-note strong {
    color: #b8956a;
}

/* 會員表格圖片區 */
.member-table-section {
    margin: 40px 0;
}

.member-table-section .vip-card {
    width: 87%;
    margin-left: 125px;
}

.member-table-section img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 更新判定區塊 */
.update-rules-section {
    margin: 60px auto;
    max-width: 900px;
}

.section-title {
    font-size: 32px;
    color: #333;
    font-weight: bold;
    margin-bottom: 40px;
}

/* 手風琴樣式 */
.rule-accordion {

}

.accordion-item {
    margin-top: 10px;
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    width: 100%;
    padding: 10px 30px;
    background: #f5f2ed;
    border: none;
    border-radius: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    color: #b8956a;
    text-align: left;
    transition: background-color 0.3s;
}

.accordion-header:hover {
    background-color: #ede8df;
}

.accordion-header:focus {
    outline: none;
}

.toggle-icon {
    font-size: 24px;
    font-weight: bold;
    color: #b8956a;
    transition: transform 0.3s;
}

.accordion-content {
    padding: 0;
    display: none;
    background: #fff;
}

.accordion-content.show {
    display: block;
}

.accordion-content p {
    margin: 0 0 15px 0;
    padding: 20px 30px 0 30px;
    color: #666;
    line-height: 1.8;
    font-size: 16px;
}

.accordion-content p:last-child {
    padding-bottom: 20px;
}

/* 手風琴內的標題樣式 */
.accordion-content h4 {
    color: #b8956a;
    font-size: 18px;
    font-weight: bold;
    margin: 20px 0 10px 0;
    padding: 0 30px;
}

.accordion-content h4:first-child {
    margin-top: 20px;
}

/* 手風琴內的列表樣式 */
.accordion-content ul {
    margin: 10px 0;
    padding: 0 30px 0 50px;
    list-style-type: disc;
}

.accordion-content ul li {
    color: #666;
    line-height: 1.8;
    margin-bottom: 8px;
}

.accordion-content ul li strong {
    color: #b8956a;
}

/* 響應式設計 */
@media (max-width: 768px) {
  /* 隱藏桌面版，顯示手機版 */
    .member-level-intro-desktop {
        display: none;
    }
    
    .member-level-intro-mobile {
        display: block;
    }

    .rule-header {
        margin-top: 30px;
    }

    .rule-header .main-title {
        font-size: 22px;
    }

    .rule-header .sub-title {
        font-size: 28px;
    }

    .rule-header .description {
        font-size: 14px;
    }

    .section-title {
        font-size: 26px;
    }

    .accordion-header {
        padding: 10px 20px;
        font-size: 16px;
    }

    .accordion-content p {
        padding: 15px 20px 0 20px;
        font-size: 14px;
    }

    .accordion-content h4 {
        font-size: 16px;
        padding: 0 20px;
    }

    .accordion-content ul {
        padding: 0 20px 0 40px;
        font-size: 14px;
    }

    .member-table-section .vip-card {
        width: 100%;
        margin-left: 0;
    }
    
    .mobile-table-title {
        font-size: 20px;
    }
    
    .member-level-table th {
        padding: 12px 8px;
        font-size: 14px;
    }
    
    .member-level-table td {
        padding: 12px 8px;
        font-size: 13px;
    }
    
  .level-name {
        font-size: 14px;
        min-width: 60px;
        width: 100px;
    }
    
    .level-detail {
        font-size: 12px;
    }

    .condition-label {
        font-size: 13px;
    }
    
    .mobile-table-note {
        font-size: 12px;
    }
    
    .note-badge {
        font-size: 9px;
        padding: 1px 5px;
        margin-left: 2px;
    }
}
