/* index_v2.css v2.0.0 - 账号中心页面（原生表格版） */

/* ===== 表格容器 ===== */
.table_wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ===== 原生表格样式 ===== */
.log-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 700px;
}
.log-table thead th {
    background: #f5f5f5;
    border-bottom: 2px solid #e7eaec;
    padding: 10px 8px;
    text-align: center;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
}
.log-table thead th:hover {
    background: #e8e8e8;
}
.log-table thead th .sort-icon {
    font-size: 10px;
    color: #999;
    margin-left: 4px;
}
.log-table thead th .sort-icon.asc::after {
    content: "\25B2";
    color: #1ab394;
}
.log-table thead th .sort-icon.desc::after {
    content: "\25BC";
    color: #1ab394;
}
.log-table tbody td {
    padding: 8px;
    text-align: center;
    border-bottom: 1px solid #e7eaec;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.log-table tbody tr:nth-child(even) {
    background: #f9f9f9;
}
.log-table tbody tr:hover {
    background: #f0f0f0;
}
.log-table .col-id { width: 60px; }
.log-table .col-time { width: 180px; }
.log-table .col-user { width: 100px; }
.log-table .col-code { width: 120px; }
.log-table .col-action { width: 120px; }

/* ===== 按钮样式 ===== */
.custom-button {
    background-color: #0fa171;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 14px;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s;
}
.custom-button:hover {
    background-color: #08c083;
}

/* ===== 分页栏 ===== */
.pagination-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0 0;
    flex-wrap: wrap;
    gap: 8px;
}
.page-info {
    font-size: 13px;
    color: #666;
}
.page-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}
.page-btn {
    padding: 6px 14px;
    border: 1px solid #d2d2d2;
    border-radius: 3px;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    transition: all 0.15s;
}
.page-btn:hover {
    background: #f0f0f0;
    border-color: #aaa;
}
.page-btn:disabled {
    opacity: 0.4;
    cursor: default;
}
.page-nums {
    display: flex;
    gap: 3px;
}
.page-num {
    padding: 4px 10px;
    border: 1px solid #d2d2d2;
    border-radius: 3px;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    transition: all 0.15s;
}
.page-num:hover {
    background: #f0f0f0;
    border-color: #aaa;
}
.page-num.active {
    background: #1ab394;
    color: #fff;
    border-color: #1ab394;
}
.page-size {
    padding: 6px 8px;
    border: 1px solid #d2d2d2;
    border-radius: 3px;
    font-size: 13px;
    cursor: pointer;
    background: #fff;
}

/* ===== 移动端适配 ===== */
@media (max-width: 768px) {
    .log-table {
        font-size: 12px;
        min-width: 600px;
    }
    .log-table thead th {
        padding: 6px 4px;
        font-size: 12px;
    }
    .log-table tbody td {
        padding: 6px 4px;
        font-size: 12px;
    }
    .pagination-bar {
        padding: 8px 0 0;
    }
    .page-btn {
        padding: 4px 10px;
        font-size: 12px;
    }
    .page-size {
        padding: 4px 6px;
        font-size: 12px;
    }
    /* 弹窗缩小 */
    body > div[style*="position: fixed"][style*="z-index: 9999"] {
        width: 90vw !important;
        max-width: 90vw !important;
        min-width: 280px !important;
        height: auto !important;
        max-height: 60vh !important;
        padding: 12px !important;
        border-radius: 8px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    }
    body > div[style*="position: fixed"][style*="z-index: 9999"] iframe {
        height: 100% !important;
        min-height: 140px !important;
    }
    body > div[style*="position: fixed"][style*="z-index: 9999"] span {
        top: -5px !important;
        right: 5px !important;
        font-size: 26px !important;
    }
}

/* ===== 极小屏 ===== */
@media (max-width: 450px) {
    .log-table {
        font-size: 11px;
        min-width: 550px;
    }
    .log-table thead th {
        padding: 4px 3px;
        font-size: 11px;
    }
    .log-table tbody td {
        padding: 4px 3px;
        font-size: 11px;
    }
    body > div[style*="position: fixed"][style*="z-index: 9999"] {
        width: 95vw !important;
        max-width: 95vw !important;
        padding: 10px !important;
        border-radius: 6px;
    }
}
