/* ============================================================
   home_redesign.css  –  v5
   ============================================================ */

/* ── 隱藏舊版元素 ── */
.home_hearder  { display: none !important; }
.lattice_menu  { display: none !important; }
.html_con      { display: none !important; }

/* ── 整體頁面 ── */
body.templates_v1 {
    background-color: #f0f2f5;
    margin: 0;
    padding: 0;
}

/* ============================================================
   HEADER
   ============================================================ */
.nhh_wrap {
    position: sticky;
    top: 0;
    z-index: 900;
    width: 100%;
    background: #ffffff;
    padding: 12px 16px 14px;
    box-sizing: border-box;
    border-bottom: 1px solid #e8edf2;
}

/* nhh_wrap 精簡版（內頁用，只有 topbar，無搜尋列） */
.nhh_wrap.nhh_wrap_inpage {
    padding: 0 16px;
}
.nhh_wrap.nhh_wrap_inpage .nhh_topbar {
    height: 52px;
    margin-bottom: 0;
}

/* ============================================================
   內頁 Body 區塊（activity_con 等內頁共用）
   ============================================================ */

/* 內頁頂部補高，避免內容被 sticky header 遮住 */
.inpage_body_wrap {
    background: #f0f2f5;
    min-height: 100vh;
    padding-bottom: 60px;
}

/* 卡片容器：白底 + 圓角 + 陰影 */
.inpage_card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e8edf2;
    margin: 12px 14px;
    padding: 16px;
    box-sizing: border-box;
}

/* 第一張卡貼頂，不需要上間距 */
.inpage_card:first-child {
    margin-top: 14px;
}

/* main_setcon 內頁包裝 */
#main_setcon {
    background: #f0f2f5;
    min-height: 100vh;
}

.nhh_topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.nhh_logo_row {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.nhh_logo_img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid #d0dfe8;
    flex-shrink: 0;
    display: block;
}

.nhh_logo_text {
    font-size: 15px;
    font-weight: 600;
    color: #6a9fc0;
    letter-spacing: 0.5px;
}

.nhh_dots_btn {
    display: flex;
    flex-direction: column;
    gap: 3.5px;
    padding: 6px 4px;
    cursor: pointer;
}
.nhh_dots_btn span {
    display: block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #555555;
}

.nhh_page_title {
    font-size: 22px;
    font-weight: 800;
    color: #111111;
    letter-spacing: 0.3px;
    margin-bottom: 12px;
    line-height: 1.3;
}

.nhh_search_wrap {
    width: 100%;
    background: #f6f6f6;
    border: 1px solid #e5e5e5;
    border-radius: 22px;
    display: flex;
    align-items: center;
    padding: 9px 14px;
    gap: 8px;
    box-sizing: border-box;
}
.nhh_search_icon_box {
    color: #aaaaaa;
    font-size: 14px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.nhh_search_input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 13.5px;
    color: #333;
    outline: none;
    min-width: 0;
}
.nhh_search_input::placeholder { color: #c0c0c0; }

.nhh_area_hidden { display: none; }

/* ============================================================
   HERO CARDS
   ============================================================ */
.new_hero_section {
    width: 100%;
    padding: 14px;
    display: flex;
    gap: 10px;
    box-sizing: border-box;
    background: #ffffff;
    border-bottom: 6px solid #f0f2f5;
}

.hero_card {
    flex: 1;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 20px;
    height: 210px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0,0,0,0.13);
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.15s ease;
    box-sizing: border-box;
}
.hero_card:active { transform: scale(0.97); }

.hero_card_icon_wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding-top: 20px;
    box-sizing: border-box;
}

/* Font Awesome icon 共用樣式 */
.hero_card_icon_wrap .fa-solid {
    color: rgba(0,0,0,0.75);
    filter: none;
}

/* SVG icon 線條改黑 */
.hero_card_icon_wrap svg line,
.hero_card_icon_wrap svg path,
.hero_card_icon_wrap svg ellipse,
.hero_card_icon_wrap svg rect {
    stroke: rgba(0,0,0,0.75) !important;
}
.hero_card_icon_wrap svg text {
    fill: rgba(0,0,0,0.75) !important;
}

/* 卡片文字 */
.hero_card_label {
    font-size: 18px;
    font-weight: 800;
    color: #111111;
    letter-spacing: 2px;
    text-align: center;
    margin-top: 12px;
    line-height: 1;
    text-shadow: none;
}

/* 左卡：珊瑚橘 */
.hero_card_v1 {
    background: linear-gradient(145deg, #d4755e 0%, #c86248 65%, #b85540 100%);
}
/* 右卡：青綠色 */
.hero_card_v2 {
    background: linear-gradient(145deg, #4db8a4 0%, #3a9e8c 65%, #2d8a78 100%);
}

/* ============================================================
   SECTION TITLE
   ============================================================ */
.new_section_title {
    width: 100%;
    padding: 14px 16px 12px;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    box-sizing: border-box;
    border-top: 6px solid #f0f2f5;
    border-bottom: 1px solid #edf0f4;
}

/* ============================================================
   廣告輪播
   ============================================================ */
.h_index_fullads {
    padding: 0;
    margin: 0;
    background: #fff;
    width: 100%;
    display: block;
    overflow: hidden;
}
.h_index_fullads > img,
.h_index_fullads .imgAreaContain {
    display: block;
    width: 100%;
}
.h_index_fullads .slick-slider,
.h_index_fullads .slick-list,
.h_index_fullads .slick-track { width: 100%; }

.h_hot_block {
    background: #fff;
    margin: 0;
    padding: 10px 12px;
}

.h_index_50widthads {
    background: #fff;
    margin: 0;
    padding: 0;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}
.hindex_50img {
    width: 50%;
    padding: 2px;
    box-sizing: border-box;
}
.hindex_50img img {
    width: 100%;
    cursor: pointer;
    display: block;
}

/* ============================================================
   底部 Footer
   ============================================================ */
.footermenu_mob.fshow { bottom: 0 !important; }


/* ============================================================
   側滑選單（Offcanvas）— 統一新版白色簡潔風格
   class 對應 menu_datas.php 實際結構
   ============================================================ */

/* 背景遮罩 */
.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.38);
    z-index: 1040;
}
.overlay.active { display: block; }

/* Offcanvas 主體 */
.offcanvas {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    max-width: 85vw;
    height: 100%;
    background: #ffffff;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 24px rgba(0,0,0,0.14);
    transition: left 0.28s cubic-bezier(0.4,0,0.2,1);
    overflow: hidden;
}
.offcanvas.open { left: 0; }

.offcanvas-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

/* ── 頂部會員資訊區 ── */
.user_infor {
    background: linear-gradient(135deg, #e8f4fb 0%, #d2eaf6 100%);
    padding: 32px 20px 22px;
    flex-shrink: 0;
}

.user_name {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* 頭像框 */
.user_name_lg {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #b4d8ee;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(106,159,192,0.18);
}
.user_name_lg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
/* icomoon icon fallback（未登入） */
.user_name_lg i,
.user_name_lg [class^="icon-"],
.user_name_lg [class*=" icon-"] {
    font-size: 24px;
    color: #6a9fc0;
}

/* 姓名文字 */
.user_name > div:last-child {
    font-size: 15px;
    font-weight: 700;
    color: #2c6e99;
    letter-spacing: 0.5px;
}

/* ── 捲動區域 ── */
.offcanvas_body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.offcanvas_body::-webkit-scrollbar { width: 0; }

.offcanvas_menu_box {
    padding-bottom: 8px;
}

/* ── 選單 ul / li ── */
.offcanvas_menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.offcanvas_menu li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 20px;
    font-size: 14.5px;
    font-weight: 500;
    color: #2d2d2d;
    letter-spacing: 0.3px;
    border-bottom: 1px solid #f2f2f2;
    cursor: pointer;
    transition: background 0.13s ease, color 0.13s ease;
    -webkit-tap-highlight-color: transparent;
}
.offcanvas_menu li:active,
.offcanvas_menu li:hover {
    background: #f0f7fc;
    color: #6a9fc0;
}
.offcanvas_menu li:active [class^="icon-"],
.offcanvas_menu li:active [class*=" icon-"],
.offcanvas_menu li:hover [class^="icon-"],
.offcanvas_menu li:hover [class*=" icon-"] {
    color: #6a9fc0;
}

/* 有 badge 的 flex 列 */
.offcanvas_menu li.offsli_flex {
    justify-content: space-between;
}
.offcanvas_menu li.offsli_flex > div:first-child {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* icomoon icon */
.offcanvas_menu li [class^="icon-"],
.offcanvas_menu li [class*=" icon-"] {
    font-size: 17px;
    color: #6a9fc0;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
    line-height: 1;
    transition: color 0.13s ease;
}

/* ── 分隔線 ── */
.offcanvas_hr {
    height: 1px;
    background: #ebebeb;
    margin: 6px 0 2px;
}

/* ── 分區標題（會員專區） ── */
.offcanvas_intitle {
    font-size: 11px;
    font-weight: 700;
    color: #b0b0b0;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    padding: 10px 20px 7px;
    background: #f8f8f8;
    border-bottom: 1px solid #f0f0f0;
}

/* ── 訊息 Badge ── */
.message_in {
    display: flex;
    align-items: center;
}
.mbadge1 {
    background: #e04f4f;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 20px;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    box-shadow: 0 1px 4px rgba(224,79,79,0.35);
}
.animation_fluc {
    animation: fluc 1.4s ease-in-out infinite;
}
@keyframes fluc {
    0%,100% { transform: scale(1);   }
    50%      { transform: scale(1.2); }
}

/* ── Footer 連結區 ── */
.offcanvas_footer {
    border-top: 1px solid #eeeeee;
    padding: 12px 20px 16px;
    flex-shrink: 0;
    background: #fafafa;
}
.offcanvas_footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
}
.offcanvas_footer ul a {
    text-decoration: none;
}
.offcanvas_footer ul li {
    font-size: 12px;
    color: #b0b0b0;
    cursor: pointer;
    padding: 3px 0;
    letter-spacing: 0.3px;
    transition: color 0.13s;
}
.offcanvas_footer ul li:hover,
.offcanvas_footer ul a:hover li {
    color: #6a9fc0;
}

/* ============================================================
   購物車 / 內頁共用背景（取代 inpage_body_wrap 包裝 div）
   ============================================================ */
.LineBody_main,
#main_setcon {
    background: #f0f2f5;
    min-height: 100vh;
}