/* HXhelp Mobile UI Enhancement */

/* 1. 强制移动视口与触控优化 */
* {
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #f5f7fb;
    touch-action: manipulation;
}

/* 2. 把所有原生表格（Table）变成卡片流（纯CSS，不改<table>标签） */
table, tbody, tr, td, th {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box;
}
tr {
    background: #ffffff;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: transform 0.1s;
    border-left: 4px solid #3b82f6;
}
tr:active {
    transform: scale(0.98);
    background: #f8fafc;
}
td {
    display: flex !important;
    justify-content: space-between;
    padding: 6px 0 !important;
    border: none !important;
    font-size: 14px;
}
th {
    display: none !important;
}

/* 3. 扩大所有可点击区域（针对按钮和链接） */
button,
input[type="submit"],
input[type="button"],
a {
    min-height: 44px !important;
    min-width: 44px !important;
    padding: 10px 20px !important;
    border-radius: 25px !important;
    font-size: 16px !important;
    border: none;
    background: #2563eb;
    color: white;
    font-weight: 500;
}
input, select, textarea {
    font-size: 16px !important;
    padding: 12px 16px !important;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    width: 100%;
    background: white;
}
