/* 全局樣式 */
:root {
    --ios-blue: #007AFF;
    --ios-green: #34C759;
    --ios-red: #FF3B30;
    --ios-yellow: #FFCC00;
    --ios-gray: #8E8E93;
    --ios-light-gray: #E5E5EA;
    --ios-background: #F2F2F7;
    --ios-dark-background: #1C1C1E;
}

/* 工具類 */
.d-none {
    display: none !important;
}

/* 語言切換器樣式 */
.language-selector {
    min-width: 80px;
    display:none !important;
}

#language-switcher{
  display: none !important;
}

.language-selector select {
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 12px;
    color: #333;
    outline: none;
    cursor: pointer;
}

/* 通用可點擊元素樣式 */
.clickable {
    cursor: pointer;
}

/* 基於標籤名稱的cursor樣式 */
button,
select,
input[type="button"],
input[type="submit"],
input[type="reset"],
a,
.ios-tab,
.ios-back-button,
.menu-item,
.match-card,
.odd-item,
.sports-tab,
.amount-option,
.quick-amount,
.payment-option,
.betting-tab,
.follow-btn,
.match-follow-btn,
.notification-icon,
.balance-button,
.profile-edit,
.balance-value,
.balance-hidden,
.balance-toggle,
.section-link,
.contact-button,
.settings-item,
.help-item,
.category-tab,
.date-button,
.filter-option,
.time-sort-button,
.sort-option,
.betslip-close,
.remove-bet,
.coupon-item,
.promotion-card,
.transaction-item,
.bet-item,
.prize-item {
    cursor: pointer;
}

/* 特殊情況：禁用狀態的元素 */
button:disabled,
input:disabled,
select:disabled,
.disabled {
    cursor: not-allowed;
}

/* 文字選擇區域 */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea {
    cursor: text;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "San Francisco", "Helvetica Neue", Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: #f0f0f0;
    padding: 10px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

/* 原型網格布局 */
.prototype-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 30px;
}

.prototype-item {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
}

.prototype-item h2 {
    margin-bottom: 15px;
    font-size: 18px;
    color: #333;
}

/* iPhone 框架樣式 */
.iphone-frame {
    width: 340px;
    height: 680px;
    margin: 0 auto;
    border: 12px solid #111;
    border-radius: 40px;
    position: relative;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.iphone-frame:before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 20px;
    background-color: #111;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    z-index: 10;
}

.iphone-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* iOS 應用公共樣式 */
.ios-app {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: var(--ios-background);
    color: #000;
    font-size: 16px;
    position: relative;
}

/* 頂部欄 */
.ios-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.ios-title {
    font-size: 18px;
    font-weight: 600;
    flex: 1;
    text-align: center;
}

.ios-back-button {
    color: var(--ios-blue);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;   display: flex;
    align-items: center;
    position: fixed;
    
}


.ios-back-button i {
    margin-right: 4px;
}

div.ios-right-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    position: fixed !important;
    right:0 !important;
}



/* 內容區域 */
.ios-content {
    flex: 1;
    overflow-y: auto;
    padding: 0 0 80px 0;
    -webkit-overflow-scrolling: touch;
}

/* 底部導航欄 */
.ios-tab-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    padding-bottom: 15px;
    z-index: 1300;
}

.ios-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--ios-gray);
    font-size: 10px;
    padding: 5px 0;
}

.ios-tab.active {
    color: var(--ios-blue);
}

.ios-tab i {
    font-size: 22px;
    margin-bottom: 3px;
}

/* 卡片樣式 */
.ios-card {
    background-color: white;
    border-radius: 12px;
    margin: 12px 16px;
    padding: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* 按鈕樣式 */
.ios-button {
    background-color: var(--ios-blue);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 14px 20px;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    width: 100%;
}

.ios-button-small {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 8px;
}

.ios-button-outline {
    background-color: transparent;
    border: 1px solid var(--ios-blue);
    color: var(--ios-blue);
}

/* 輸入框樣式 */
.ios-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 1px solid var(--ios-light-gray);
    border-radius: 10px;
    background-color: white;
    margin-bottom: 16px;
}

/* 列表樣式 */
.ios-list {
    background-color: white;
    border-radius: 12px;
    margin: 12px 16px;
    overflow: hidden;
}

.ios-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--ios-light-gray);
}

.ios-list-item:last-child {
    border-bottom: none;
}

/* 比賽卡片樣式 */
.match-card {
    background-color: white;
    border-radius: 12px;
    margin: 0 0 12px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.match-card:active {
    transform: scale(0.98);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.match-header {
    display: flex;
    justify-content: space-between;
    padding: 10px 16px;
    font-size: 13px;
    color: #666;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    background-color: #fafafa;
}

.match-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    position: relative;
    background: linear-gradient(to bottom, #f8f9fa, #fff);
}

.match-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 40%;
    text-align: center;
}

.team-logo {
    width: 50px;
    height: 50px;
    margin-bottom: 8px;
    object-fit: contain;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.1));
    transition: transform 0.2s ease;
}

.match-card:hover .team-logo {
    transform: scale(1.05);
}

.team-name {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.match-vs {
    font-size: 14px;
    color: #999;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.match-time {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #ff6b01;
    background-color: rgba(255, 107, 1, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
}

.match-odds {
    display: flex;
    border-top: 1px solid #f0f0f0;
}

.odd-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
    border-right: 1px solid #f0f0f0;
}

.odd-item:last-child {
    border-right: none;
}

.odd-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.odd-value {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* 賽事結果樣式 */
.match-result {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    font-weight: 700;
    margin: 8px 0;
}

.match-score {
    margin: 0 10px;
}

/* 媒體查詢 */
@media (max-width: 500px) {
    .prototype-grid {
        grid-template-columns: 1fr;
    }
    
    .iphone-frame {
        width: 100%;
        height: 600px;
        border-width: 8px;
    }
}

/* 通知圖標樣式 */
.notification-icon {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
}

.notification-icon i {
    font-size: 20px;
    color: #333;
}

.notification-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #ff3b30;
    color: white;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 關注按鈕樣式 */
.follow-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #666;
}

.follow-btn.active i {
    color: #FFCC00;
}

.follow-btn i.fas {
    color: #FFCC00;
}

/* 我的關注列表樣式 */
.follow-list {
    padding: 0 16px;
}

.follow-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--ios-light-gray);
}

.follow-item:last-child {
    border-bottom: none;
}

.follow-match {
    flex: 1;
}

.follow-teams {
    display: flex;
    align-items: center;
}

.follow-team {
    text-align: center;
    min-width: 60px;
}

.follow-logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-bottom: 4px;
}

.follow-name {
    font-size: 14px;
    font-weight: 500;
}

.follow-vs {
    font-size: 12px;
    color: #999;
    margin: 0 16px;
}

.follow-info {
    display: flex;
    margin-top: 8px;
}

.follow-league {
    font-size: 12px;
    color: #666;
    margin-right: 12px;
}

.follow-button {
    background-color: #f1f1f1;
    color: #666;
    border: none;
    border-radius: 16px;
    padding: 6px 12px;
    font-size: 12px;
}

.follow-button.active {
    background-color: var(--ios-light-blue);
    color: white;
}

.empty-follows {
    text-align: center;
    padding: 40px 0;
    color: #999;
    font-size: 14px;
}

/* 我的關注頁面頭部樣式 */
.follows-header {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--ios-light-gray);
    background-color: white;
}

#follows-back-btn {
    background: none;
    border: none;
    font-size: 16px;
    color: var(--ios-blue);
    padding: 0;
    margin-right: 16px;
    display: flex;
    align-items: center;
}

.follows-title {
    flex: 1;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
}

/* 我的關注頁面樣式 */
#follows-section {
    display: none;
    padding-top: 8px;
}

.follows-search {
    display: flex;
    align-items: center;
    background-color: #f0f0f0;
    border-radius: 8px;
    padding: 8px 12px;
    margin: 12px 16px;
}

.follows-search i {
    color: #999;
    margin-right: 8px;
}

.follows-search input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
}

.follow-list {
    padding: 0 16px;
}

.follow-item {
    background-color: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* 下拉菜單樣式 */
.dropdown-menu {
    position: absolute;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1000;
    width: 180px;
    padding: 8px 0;
    max-height: 300px;
    overflow-y: auto;
    transition: opacity 0.2s ease;
}

.dropdown-item {
    padding: 12px 16px;
    font-size: 14px;
    color: #333;
}

.dropdown-item:active {
    background-color: #f8f8f8;
}

.dropdown-item.selected {
    color: var(--ios-blue);
    font-weight: 500;
    background-color: #f0f7ff;
}

.filter-label {
    padding: 8px 12px;
    border-radius: 8px;
}

.filter-label:active {
    background-color: #f5f5f5;
}

.filter-label.active {
    background-color: #e8f4ff;
    color: var(--ios-blue);
} 

/* Modal 對話框樣式 */
.alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.alert-content {
    background-color: white;
    border-radius: 12px;
    padding: 24px;
    margin: 0 32px;
    text-align: center;
    max-width: 300px;
}

.alert-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.alert-message {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.alert-button {
    background-color: var(--ios-blue);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    padding: 8px 24px;
    cursor: pointer;
} 
.alert-button.cancel{
    color: #007AFF;
    background:#fff;
    border: 1px solid #007AFF;
}
.match-follow-btn,[data-page="my-follows"],[data-setting="follow-notify"]{
  display: none !important;/*hide follow btn temporarily*/
}