/**
 * 移动端特定样式
 * 主要处理触屏设备的交互效果
 */

/* 全局移除点击高亮效果 */
* {
    -webkit-tap-highlight-color: transparent !important;
}

/* 重点元素点击高亮移除 */
a,
button,
input[type="button"],
input[type="submit"],
.tikdou-nav-item,
.task-btn,
.withdraw-btn,
.close,
.action-button,
.bottom-nav-link,
.video-controls button {
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    user-select: none !important;
    outline: none !important;
    -webkit-appearance: none !important;
}

/* 修复iOS上按钮显示问题 */
input[type="button"], 
input[type="submit"], 
button {
    -webkit-appearance: none;
    border-radius: 0;
}

/* 特定处理任务界面元素 */
.task-container button,
.task-container a {
    -webkit-tap-highlight-color: transparent !important;
    outline: none !important;
}

/* 底部导航特殊处理 */
.tikdou-bottom-nav a {
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

/* 修复表单和输入框问题 */
input:focus,
textarea:focus,
select:focus {
    outline: none !important;
}

/* 防止长按选择文本 */
.task-container p,
.task-container div {
    -webkit-user-select: none;
    user-select: none;
}

/* 防止iOS上按钮点击时的灰色背景 */
.task-btn:active,
.tikdou-nav-item:active,
.withdraw-btn:active {
    background-color: transparent !important;
}

/* 防止任务界面按钮闪烁 */
.task-container .task-btn:active {
    background-color: #fe2c55 !important;
    color: white !important;
    opacity: 1 !important;
}

.task-container .task-btn.disabled:active {
    background-color: #ccc !important;
}

.task-container .withdraw-btn:active {
    background-color: white !important;
    color: #fe2c55 !important;
    opacity: 1 !important;
} 