/* 表格專用：40px 輕量悠遊卡圖示 */
.easycard-icon {
    width: 40px;
    height: 40px;
    position: relative;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    display: inline-block;
    vertical-align: middle;
    background-color: #fff;
    box-sizing: border-box;
}

.easycard-icon .arrow-unit {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 18px;
    margin-top: -9px;
    margin-left: -7px;
}

/* 角度與離心距離調整 (預防中央重疊) */
.easycard-icon .blue {
    transform: rotate(120deg) translateY(-10px);
}

.easycard-icon .green {
    transform: rotate(300deg) translateY(-10px);
}

.easycard-icon .pink {
    transform: rotate(210deg) translateY(-10px);
}

.easycard-icon .orange {
    transform: rotate(30deg) translateY(-10px);
}

/* 箭頭頭部 (三角形) */
.easycard-icon .arrow-head {
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 10px solid currentColor;
    position: relative;
}

/* 箭頭柄部 (矩形尾巴) */
.easycard-icon .arrow-head::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 6px;
    background: currentColor;
    top: 10px;
    left: -2px;
}

/* 色票碼 */
.easycard-icon .blue {
    color: #0082D5;
}

.easycard-icon .green {
    color: #00A343;
}

.easycard-icon .pink {
    color: #E5007D;
}

.easycard-icon .orange {
    color: #F7A626;
}

/* 40px X 40px 手機插卡圖示容器 */
.phone-card-icon {
    width: 40px;
    height: 40px;
    position: relative;
    display: inline-block;
    vertical-align: middle;
    box-sizing: border-box;
}

/* 1. 插入的卡片 (位於下方圖層 z-index:1，頂部露在手機外) */
.phone-card-icon .card {
    position: absolute;
    top: 2px;
    left: 11px;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 3px;
    z-index: 1;
    box-sizing: border-box;
}

/* 卡片金屬晶片 (位於露出部位) */
.phone-card-icon .card-chip {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 5px;
    height: 4px;
    background-color: #fbbf24;
    border-radius: 1px;
}

/* 2. 智慧型手機本體 (位於上方圖層 z-index:2，不透明背景遮住卡片下半部) */
.phone-card-icon .phone {
    position: absolute;
    bottom: 2px;
    left: 8px;
    width: 24px;
    height: 28px;
    background-color: #ffffff;
    border: 2px solid #1e293b;
    border-radius: 5px;
    z-index: 2;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 手機頂部聽筒 / 感應槽 */
.phone-card-icon .phone-speaker {
    width: 6px;
    height: 2px;
    background-color: #1e293b;
    border-radius: 1px;
    margin-top: 2px;
}

/* 手機螢幕 */
.phone-card-icon .phone-screen {
    width: 16px;
    height: 16px;
    background-color: #e2e8f0;
    border-radius: 2px;
    margin-top: 2px;
    border: 1px solid #cbd5e1;
}

/* 40px X 40px 皮包圖示容器 */
.wallet-icon {
    width: 40px;
    height: 40px;
    position: relative;
    display: inline-block;
    vertical-align: middle;
    box-sizing: border-box;
}

/* 1. 上方露出的卡片/鈔票 (位於皮包後方) */
.wallet-icon .card-inside {
    position: absolute;
    top: 7px;
    left: 10px;
    width: 18px;
    height: 8px;
    background-color: #3b82f6;
    /* 藍色卡片 */
    border-radius: 2px 2px 0 0;
}

/* 2. 皮包主體 */
.wallet-icon .wallet-body {
    position: absolute;
    bottom: 6px;
    left: 5px;
    width: 30px;
    height: 21px;
    background-color: #a16207;
    /* 皮革經典棕色 */
    border-radius: 4px;
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.15);
    /* 底部皮革陰影質感 */
}

/* 3. 右側扣帶 (釦子層) */
.wallet-icon .wallet-clasp {
    position: absolute;
    top: 5px;
    right: -2px;
    width: 10px;
    height: 11px;
    background-color: #78350f;
    /* 深棕色扣帶 */
    border-radius: 0 3px 3px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 4. 金屬鈕釦 */
.wallet-icon .button {
    width: 4px;
    height: 4px;
    background-color: #fbbf24;
    /* 金色金屬釦 */
    border-radius: 50%;
}

/* 40px X 40px 銀行圖示容器 */
.bank-icon {
    width: 40px;
    height: 40px;
    position: relative;
    display: inline-block;
    vertical-align: middle;
    box-sizing: border-box;
}

/* 1. 屋頂三角形 */
.bank-icon .roof {
    position: absolute;
    top: 5px;
    left: 7px;
    width: 0;
    height: 0;
    border-left: 13px solid transparent;
    border-right: 13px solid transparent;
    border-bottom: 8px solid #1e40af;
    /* 經典金融深藍 */
}

/* 2. 屋簷橫樑 */
.bank-icon .beam {
    position: absolute;
    top: 13px;
    left: 6px;
    width: 28px;
    height: 3px;
    background-color: #1e40af;
    border-radius: 1px;
}

/* 3. 石柱容器 (3 根柱子) */
.bank-icon .columns {
    position: absolute;
    top: 16px;
    left: 8px;
    width: 24px;
    height: 12px;
    display: flex;
    justify-content: space-between;
}

.bank-icon .column {
    width: 4px;
    height: 100%;
    background-color: #2563eb;
    /* 柱身明亮藍 */
    border-radius: 1px;
}

/* 4. 銀行地基 */
.bank-icon .base {
    position: absolute;
    bottom: 8px;
    left: 6px;
    width: 28px;
    height: 4px;
    background-color: #1e40af;
    border-radius: 1px;
}


/* 40px X 40px 全支付虎利 (Mascot) 圖示容器 */
.hulii-icon {
    width: 40px;
    height: 40px;
    position: relative;
    display: inline-block;
    vertical-align: middle;
    box-sizing: border-box;
}

/*全支付虎利*/
/* 1. 外耳 (左右兩隻) */
.hulii-icon .ear-left,
.hulii-icon .ear-right {
    position: absolute;
    top: 5px;
    width: 10px;
    height: 10px;
    background-color: #FFC72C;
    /* 虎利黃色 */
    border-radius: 50%;
}

.hulii-icon .ear-left {
    left: 6px;
}

.hulii-icon .ear-right {
    right: 6px;
}

/* 2. 內耳 (粉紅) */
.hulii-icon .ear-left::after,
.hulii-icon .ear-right::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 6px;
    height: 6px;
    background-color: #FF96B5;
    border-radius: 50%;
}

/* 3. 虎利臉龐主體 */
.hulii-icon .face {
    position: absolute;
    bottom: 4px;
    left: 5px;
    width: 30px;
    height: 26px;
    background-color: #FFC72C;
    /* 主色黃 */
    border-radius: 15px 15px 12px 12px;
}

/* 4. 額頭老虎斑紋 (王字/V型簡化紋路) */
.hulii-icon .stripe {
    position: absolute;
    top: 2px;
    left: 13px;
    width: 4px;
    height: 5px;
    background-color: #D97706;
    /* 深橘棕色紋路 */
    border-radius: 2px;
}

.hulii-icon .stripe::before,
.hulii-icon .stripe::after {
    content: '';
    position: absolute;
    top: 1px;
    width: 3px;
    height: 3px;
    background-color: #D97706;
    border-radius: 1px;
}

.hulii-icon .stripe::before {
    left: -4px;
}

.hulii-icon .stripe::after {
    right: -4px;
}

/* 5. 眼睛 (兩顆圓眼) */
.hulii-icon .eye-left,
.hulii-icon .eye-right {
    position: absolute;
    top: 11px;
    width: 3px;
    height: 4px;
    background-color: #1F2937;
    border-radius: 50%;
}

.hulii-icon .eye-left {
    left: 7px;
}

.hulii-icon .eye-right {
    right: 7px;
}

/* 6. 嘴吻白色底塊 */
.hulii-icon .muzzle {
    position: absolute;
    bottom: 3px;
    left: 8px;
    width: 14px;
    height: 8px;
    background-color: #FFFFFF;
    border-radius: 8px;
}

/* 7. 桃紅小鼻子 (全支付品牌色 #E6007C) */
.hulii-icon .nose {
    position: absolute;
    top: 12px;
    left: 13px;
    width: 4px;
    height: 3px;
    background-color: #E6007C;
    border-radius: 2px 2px 3px 3px;
    z-index: 2;
}

/*華南*/
/* 40px X 40px 華南銀行正確標誌圖示容器 */
.hnb-exact-icon {
    width: 40px;
    height: 40px;
    position: relative;
    display: inline-block;
    vertical-align: middle;
    box-sizing: border-box;
    background-color: transparent;
}

/* 外部紅色圓圈 */
.hnb-exact-icon .circle {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 36px;
    height: 36px;
    border: 3.5px solid #E60012;
    border-radius: 50%;
    box-sizing: border-box;
}

/* 內部 H 形左側直柱 */
.hnb-exact-icon .stem-left {
    position: absolute;
    top: 10px;
    left: 11px;
    width: 5px;
    height: 20px;
    background-color: #E60012;
    border-radius: 1px;
}

/* 內部 H 形右側直柱 */
.hnb-exact-icon .stem-right {
    position: absolute;
    top: 10px;
    right: 11px;
    width: 5px;
    height: 20px;
    background-color: #E60012;
    border-radius: 1px;
}

/* 內部 H 形中央橫樑 */
.hnb-exact-icon .crossbar {
    position: absolute;
    top: 17px;
    left: 11px;
    width: 18px;
    height: 5px;
    background-color: #E60012;
}

/*華泰銀行*/
/* 40px X 40px 華泰銀行 (對齊橫樑版) 圖示容器 */
.hwatai-aligned-icon {
    width: 40px;
    height: 40px;
    position: relative;
    display: inline-block;
    vertical-align: middle;
    box-sizing: border-box;
    background-color: transparent;
}

/* 1. 外部紅色橢圓框 */
.hwatai-aligned-icon .oval-border {
    position: absolute;
    top: 8px;
    left: 2px;
    width: 36px;
    height: 24px;
    border: 2.5px solid #C8161D;
    /* 華泰企業紅 */
    border-radius: 50%;
    box-sizing: border-box;
}

/* 2. 內部 HT 字母群組（統一向左傾斜 22 度） */
.hwatai-aligned-icon .ht-group {
    position: absolute;
    top: 11px;
    left: 8px;
    width: 24px;
    height: 17px;
    transform: skewX(-22deg);
}

/* --- 斜體 H (左側，維持完整高度) --- */
.hwatai-aligned-icon .letter-h {
    position: absolute;
    left: 0;
    top: 0;
    width: 11px;
    height: 17px;
}

.hwatai-aligned-icon .letter-h::before,
.hwatai-aligned-icon .letter-h::after {
    content: '';
    position: absolute;
    width: 3px;
    height: 100%;
    background-color: #C8161D;
}

.hwatai-aligned-icon .letter-h::before {
    left: 0;
}

.hwatai-aligned-icon .letter-h::after {
    right: 0;
}

/* H 的中間橫樑：位於 top: 7px */
.hwatai-aligned-icon .h-bar {
    position: absolute;
    top: 7px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #C8161D;
}

/* --- 斜體 T (右側，縮小並下移，頂部與 H 橫樑平齊) --- */
.hwatai-aligned-icon .letter-t {
    position: absolute;
    right: 0;
    top: 7px;
    /* 下移至與 H 橫樑同一水平位置 */
    width: 10px;
    height: 10px;
    /* 高度縮小 */
}

/* T 的頂部橫樑 (精確平齊 H 的橫樑) */
.hwatai-aligned-icon .t-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #C8161D;
}

/* T 的垂直主幹 */
.hwatai-aligned-icon .t-stem {
    position: absolute;
    top: 0;
    left: 3.5px;
    width: 3px;
    height: 100%;
    background-color: #C8161D;
}

/*麥當勞*/
/* 40px X 40px 麥當勞 (McDonald's) 圖示容器 */
.mcdonalds-icon {
    width: 40px;
    height: 40px;
    position: relative;
    display: inline-block;
    vertical-align: middle;
    box-sizing: border-box;
    background-color: #DA291C;
    /* 麥當勞品牌紅 */
    border-radius: 8px;
    /* 經典 App 卡片圓角 */
    overflow: hidden;
}

/* 黃色黃金拱門 (M) 通用邊框結構 */
.mcdonalds-icon .arch {
    position: absolute;
    bottom: 7px;
    width: 12.5px;
    height: 22px;
    border: 3.5px solid #FFBC0D;
    /* 品牌金黃色 */
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    box-sizing: border-box;
}

/* 左側拱門 */
.mcdonalds-icon .arch-left {
    left: 9.5px;
}

/* 右側拱門 (邊框相交精確無縫連結成 M 字母) */
.mcdonalds-icon .arch-right {
    left: 18.5px;
}

/*I Pass Money*/
/* 40px X 40px iPASS MONEY 圖示容器 */
.ipass-money-icon {
    width: 40px;
    height: 40px;
    position: relative;
    display: inline-block;
    vertical-align: middle;
    box-sizing: border-box;
    background-color: #06C755;
    /* iPASS MONEY 品牌綠 */
    border-radius: 8px;
    /* App 圖示圓角 */
    overflow: hidden;
}

/* 中央白色圓形底盤 */
.ipass-money-icon .white-badge {
    position: absolute;
    top: 6px;
    left: 5px;
    width: 22px;
    height: 22px;
    background-color: #FFFFFF;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* 四色箭頭通用元件 */
.ipass-money-icon .arrow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 7px solid currentColor;
    margin-top: -5px;
    margin-left: -4px;
}

/* 旋轉角度與四色設定 */
.ipass-money-icon .blue {
    color: #0082D5;
    transform: rotate(120deg) translateY(-5px);
}

.ipass-money-icon .green {
    color: #00A343;
    transform: rotate(300deg) translateY(-5px);
}

.ipass-money-icon .pink {
    color: #E5007D;
    transform: rotate(210deg) translateY(-5px);
}

.ipass-money-icon .orange {
    color: #F7A626;
    transform: rotate(30deg) translateY(-5px);
}

/* 右下角 MONEY 文字標籤 */
.ipass-money-icon .money-tag {
    position: absolute;
    bottom: 5px;
    right: 4px;
    font-family: Arial, sans-serif;
    font-weight: 900;
    font-size: 8px;
    color: #FFFFFF;
    line-height: 1;
    letter-spacing: -0.5px;
}

/*中國信託*/
/* 40px X 40px 中國信託圓球圖案 (We Are Family) 容器 */
.ctbc-waf-icon {
    width: 40px;
    height: 40px;
    position: relative;
    display: inline-block;
    vertical-align: middle;
    box-sizing: border-box;
    background-color: #E60012;
    /* 中信經典紅 */
    border-radius: 50%;
    overflow: hidden;
}

/* 1. 左上角立體球體高光 (白色漸層蛋形光影) */
.ctbc-waf-icon .sphere-shine {
    position: absolute;
    top: 3px;
    left: 8px;
    width: 11px;
    height: 9px;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 180, 150, 0.6) 45%, rgba(230, 0, 18, 0) 80%);
    border-radius: 50%;
    z-index: 2;
}

/* 2. 中央 "We are family" 英文草寫文字 */
.ctbc-waf-icon .script-text {
    position: absolute;
    top: 4px;
    left: 0;
    width: 40px;
    text-align: center;
    color: #FFFFFF;
    font-family: 'Brush Script MT', 'Dancing Script', 'Caveat', cursive, sans-serif;
    z-index: 3;
    line-height: 0.85;
    transform: rotate(-6deg);
    user-select: none;
}

.ctbc-waf-icon .line-we {
    display: block;
    font-size: 8px;
    font-weight: bold;
    margin-left: -5px;
}

.ctbc-waf-icon .line-are {
    display: block;
    font-size: 7px;
    margin-top: -1px;
    margin-left: 2px;
}

.ctbc-waf-icon .line-family {
    display: block;
    font-size: 9px;
    font-weight: bold;
    margin-top: -1px;
}

/* 3. 底部經典綠紅組合圖騰 */
.ctbc-waf-icon .mini-logo {
    position: absolute;
    bottom: 4px;
    left: 14px;
    width: 12px;
    height: 7px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 3;
}

/* 綠色左右括弧結構 */
.ctbc-waf-icon .green-bracket-left {
    width: 3.5px;
    height: 7px;
    border: 1.5px solid #00875A;
    border-right: none;
    box-sizing: border-box;
}

.ctbc-waf-icon .green-bracket-right {
    width: 3.5px;
    height: 7px;
    border: 1.5px solid #00875A;
    border-left: none;
    box-sizing: border-box;
}

/* 中央紅色核心橫條 */
.ctbc-waf-icon .red-core {
    width: 3px;
    height: 3px;
    background-color: #E60012;
}

/*Richart*/
/* 40px X 40px Richart 黑底白狗卡片容器 */
.richart-dark-card {
    width: 40px;
    height: 40px;
    background-color: #1A222D;
    /* 強制黑/深藍灰背景 */
    border-radius: 8px;
    /* 圓角 */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 3px;
}

.richart-dark-card svg {
    width: 100%;
    height: 100%;
    display: block;
}

/*全聯*/

/* 40px X 40px 全聯圖示容器 */
.pxmart-icon {
    width: 40px;
    height: 40px;
    position: relative;
    display: inline-block;
    vertical-align: middle;
    box-sizing: border-box;
    background-color: #FFFFFF;
    border: 2px solid #002875;
    /* 外層藍框 */
    padding: 1px;
    overflow: hidden;
}

/* 上半部：藍紅藍三色背景 */
.pxmart-icon .top-logo {
    position: absolute;
    top: 1px;
    left: 1px;
    right: 1px;
    height: 24px;
    background: linear-gradient(to bottom,
            #002875 0%, #002875 28%,
            #E60012 28%, #E60012 72%,
            #002875 72%, #002875 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pxmart-icon .top-logo svg {
    width: 22px;
    height: 22px;
}

/* 下半部：全聯文字牌 */
.pxmart-icon .bottom-text-card {
    position: absolute;
    bottom: 1px;
    left: 1px;
    right: 1px;
    height: 9px;
    background-color: #002875;
    color: #FFFFFF;
    font-family: "PingFang TC", "Microsoft JhengHei", sans-serif;
    font-size: 7px;
    font-weight: bold;
    line-height: 9px;
    text-align: center;
    letter-spacing: 0.5px;
    user-select: none;
}