/* 思源智能办公系统 - 网页版样式 */

:root {
    --primary: #1976D2;
    --success: #4CAF50;
    --danger: #f44336;
    --warning: #FF9800;
    --info: #00BCD4;
    --dark: #333;
    --light: #f5f5f5;
    --border: #bbdefb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
    background:
        radial-gradient(ellipse at 10% 20%, rgba(187, 222, 251, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 80%, rgba(144, 202, 249, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(227, 242, 253, 0.6) 0%, transparent 70%),
        #e8f4fc;
    color: var(--dark);
    min-height: 100vh;
}

/* 登录页面 - 水波纹深蓝渐变 */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: url('../images/company.png') no-repeat center center;
    background-size: cover;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 400px;
}

.login-box .company-name {
    text-align: center;
    margin-bottom: 6px;
    font-size: 20px;
    color: var(--primary);
    font-weight: 700;
}

.login-box .subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 15px;
}

.login-box .form-group {
    margin-bottom: 20px;
}

.login-box label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
}

.login-box label .required {
    color: #e53935;
}

.login-box input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.login-box input:focus {
    outline: none;
    border-color: var(--primary);
}

.login-box button {
    width: 100%;
    padding: 12px;
    background: var(--success);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.login-box button:hover {
    background: #45a049;
}

.login-footer {
    text-align: center;
    margin-top: 20px;
}

.login-footer a {
    color: var(--primary);
    font-size: 14px;
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* 微信登录分隔线 */
.login-divider {
    display: flex;
    align-items: center;
    margin: 18px 0 14px;
    color: #aaa;
    font-size: 13px;
}
.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}
.login-divider span {
    padding: 0 12px;
}

/* 微信授权登录按钟 */
.btn-wechat {
    width: 100%;
    padding: 12px;
    background: #07c160;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.btn-wechat:hover { background: #06a050; }
.btn-wechat:disabled { background: #a0d8b3; cursor: not-allowed; }

/* 测试模式提示 */
.test-mode-notice {
    text-align: center;
    margin-top: 10px;
    padding: 8px 12px;
    background: #fff3e0;
    border: 1px solid #ffe0b2;
    border-radius: 4px;
    font-size: 12px;
    color: #e65100;
}

/* 顶部导航 - 水蓝色调 */
.navbar {
    background: linear-gradient(90deg, #ffffff 0%, #e3f2fd 50%, #bbdefb 100%);
    border-bottom: 2px solid #90caf9;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

.navbar-brand {
    font-size: 18px;
    font-weight: bold;
    color: #0d47a1;
    text-decoration: none;
}

.navbar-menu {
    display: flex;
    gap: 4px;
    align-items: center;
}

.navbar-menu > a {
    padding: 8px 16px;
    text-decoration: none;
    color: #37474f;
    font-size: 14px;
    border-radius: 6px;
    transition: all 0.2s;
}

.navbar-menu > a:hover,
.navbar-menu > a.active {
    background: #1976d2;
    color: white;
}

/* 导航下拉菜单 */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    padding: 8px 16px;
    text-decoration: none;
    color: #37474f;
    font-size: 14px;
    border-radius: 6px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    white-space: nowrap;
}

.nav-dropdown-toggle:hover,
.nav-dropdown-toggle.active {
    background: #1976d2;
    color: white;
}

.nav-caret {
    font-size: 10px;
    opacity: 0.7;
    transition: transform 0.2s;
    display: none;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 140px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    border: 1px solid #e0e0e0;
    padding: 6px 0;
    z-index: 1001;
    margin-top: 0;
}

/* 用伪元素桥接 toggle 和 menu 之间的缝隙，防止鼠标移动时菜单意外收起 */
.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: transparent;
}

.nav-dropdown-menu a {
    display: block;
    padding: 10px 18px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.15s;
    white-space: nowrap;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
    background: #e3f2fd;
    color: #1976d2;
}

/* 桌面端：hover展开下拉 */
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
    display: block;
}

.nav-dropdown.open .nav-caret {
    transform: rotate(180deg);
}

/* 移动端更多面板分组标题 */
.more-section-title {
    padding: 12px 24px 4px;
    font-size: 12px;
    color: #999;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-badge {
    display: inline-block;
    background: #f44336;
    color: #fff;
    font-size: 11px;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 4px;
    vertical-align: top;
    font-weight: bold;
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.navbar-user span {
    color: #666;
}

.navbar-user a {
    color: var(--danger);
    text-decoration: none;
    font-size: 13px;
}

/* 主内容区 */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.page-title {
    font-size: 22px;
    margin-bottom: 20px;
    font-weight: 600;
}

/* 卡片 - 水波纹 subtle 效果 */
.card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    border: 1px solid #bbdefb;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.08);
}

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e3f2fd;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(90deg, #ffffff 0%, #f1f8fe 100%);
    border-radius: 8px 8px 0 0;
}

.card-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1565c0;
}

.card-body {
    padding: 20px;
}

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #e3f2fd 100%);
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid #1976d2;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.1);
}

.stat-card.warning {
    border-left-color: var(--warning);
}

.stat-card.danger {
    border-left-color: var(--danger);
}

.stat-card.success {
    border-left-color: var(--success);
}

.stat-card .stat-value {
    font-size: 28px;
    font-weight: bold;
    margin: 8px 0;
}

.stat-card .stat-label {
    color: #666;
    font-size: 14px;
}

/* 按钮 */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-warning {
    background: var(--warning);
    color: white;
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
    border: 1px solid var(--border);
}

.btn:hover {
    opacity: 0.9;
}

.btn-sm {
    padding: 4px 12px;
    font-size: 12px;
}

/* 表格 */
.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table th,
.data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    background: linear-gradient(180deg, #e3f2fd 0%, #bbdefb 100%);
    font-weight: 600;
    color: #1565c0;
    font-size: 13px;
}

.data-table tbody tr:hover {
    background: #e8f4fc;
}

.data-table .tag {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.tag-success {
    background: #e8f5e9;
    color: #2e7d32;
}

.tag-warning {
    background: #fff3e0;
    color: #ef6c00;
}

.tag-danger {
    background: #ffebee;
    color: #c62828;
}

/* 全局 tag 样式 */
.tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

/* 表格行状态 */
.data-table .row-out-of-stock {
    background: #ffebee;
}

.data-table .row-out-of-stock:hover {
    background: #ffcdd2;
}

.data-table .row-low-stock {
    background: #fff8e1;
}

.data-table .row-low-stock:hover {
    background: #fff3c4;
}

/* 停用行 */
.data-table .row-disabled {
    opacity: 0.55;
}

.data-table .row-disabled:hover {
    opacity: 0.75;
}

/* 搜索栏 */
.search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.search-bar input,
.search-bar select {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
}

.search-bar input {
    min-width: 200px;
}

/* 表单 */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.form-row-3 {
    grid-template-columns: repeat(3, 1fr);
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* 模态框 */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-box.modal-wide {
    max-width: 800px;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-size: 18px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Flash消息 */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.alert-danger {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.alert-warning {
    background: #fff3e0;
    color: #ef6c00;
    border: 1px solid #ffe0b2;
}

/* 操作列按钮 */
.action-btns {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* 商品搜索下拉 */
.product-search-wrap {
    position: relative;
}

.product-search-input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}

.product-search-input:focus {
    outline: none;
    border-color: var(--primary);
}

.product-search-input:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

.product-search-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 240px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.product-search-item {
    padding: 10px 12px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}

.product-search-item:last-child {
    border-bottom: none;
}

.product-search-item:hover {
    background: #e3f2fd;
}

.product-search-item.no-result {
    color: #999;
    cursor: default;
    justify-content: center;
}

.product-search-item.no-result:hover {
    background: none;
}

.product-search-name {
    font-weight: 500;
    color: var(--dark);
}

.product-search-meta {
    color: #888;
    font-size: 12px;
}

/* ==================== 移动端响应式 ==================== */

/* -- 底部Tab栏（桌面隐藏） -- */
.mobile-tabbar,
.mobile-more-panel {
    display: none;
}

@media (max-width: 768px) {
    /* -- 顶部导航栏精简 -- */
    .navbar-menu {
        display: none;
    }

    .navbar-inner {
        height: 48px;
        padding: 0 12px;
    }

    .navbar-brand {
        font-size: 15px;
    }

    .navbar-user {
        font-size: 12px;
        gap: 8px;
    }

    .navbar-user span {
        max-width: 80px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .navbar-user a {
        display: none;
    }

    /* -- 桌面端下拉菜单移动端不需要 -- */
    .nav-dropdown {
        position: static;
    }

    .nav-dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        margin-top: 0;
        padding: 0;
    }

    /* -- 底部Tab栏显示 -- */
    .mobile-tabbar {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60px;
        align-items: center;
        justify-content: space-around;
        background: #ffffff;
        border-top: 1px solid #e0e0e0;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.06);
        z-index: 1100;
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    .tabbar-item {
        display: flex;
        flex: 1;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        max-width: 80px;
        padding: 6px 4px;
        text-decoration: none;
        color: #999;
        border: none;
        background: none;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        transition: color 0.2s;
    }

    .tabbar-item.active {
        color: var(--primary);
    }

    .tabbar-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        margin-bottom: 2px;
    }

    .tabbar-icon svg {
        width: 24px;
        height: 24px;
        fill: currentColor;
        display: block;
    }

    .tabbar-label {
        font-size: 10px;
        line-height: 1.2;
        white-space: nowrap;
    }

    /* -- "更多"面板 -- */
    .mobile-more-panel {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1200;
    }

    .mobile-more-panel.active {
        display: block;
    }

    .more-panel-mask {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
    }

    .more-panel-body {
        position: absolute;
        bottom: 60px;
        left: 0;
        right: 0;
        background: #fff;
        border-radius: 12px 12px 0 0;
        padding: 12px 0;
        padding-bottom: env(safe-area-inset-bottom, 0px);
        transform: translateY(100%);
        transition: transform 0.3s ease;
    }

    .mobile-more-panel.active .more-panel-body {
        transform: translateY(0);
    }

    .more-panel-body a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 24px;
        min-height: 48px;
        font-size: 15px;
        color: #333;
        text-decoration: none;
        border-bottom: 1px solid #f5f5f5;
    }

    .more-panel-body a:last-child {
        border-bottom: none;
    }

    .more-panel-body a:active {
        background: #f5f5f5;
    }

    .more-panel-body .more-icon {
        font-size: 20px;
        width: 28px;
        text-align: center;
    }

    /* -- 主容器适配 -- */
    body {
        padding-bottom: 70px;
        overflow-x: hidden;
    }

    .main-container {
        padding: 12px;
        padding-bottom: 80px;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .page-title {
        font-size: 18px;
        margin-bottom: 14px;
    }

    /* -- 卡片适配 -- */
    .card-header {
        padding: 12px 14px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .card-body {
        padding: 14px;
    }

    /* -- 统计卡片 -- */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .stat-card {
        padding: 14px;
    }

    .stat-card .stat-value {
        font-size: 24px;
    }

    /* -- 表格优化 -- */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }

    .data-table {
        font-size: 13px;
        min-width: 600px;
    }

    .data-table th,
    .data-table td {
        padding: 10px 8px;
        white-space: nowrap;
    }

    .action-btns {
        flex-wrap: nowrap;
    }

    /* -- 搜索栏 -- */
    .search-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .search-bar input,
    .search-bar select {
        width: 100%;
        min-height: 44px;
        font-size: 16px;
    }

    /* -- 表单 -- */
    .form-row,
    .form-row-3 {
        grid-template-columns: 1fr;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        min-height: 44px;
        padding: 12px;
        font-size: 16px;
    }

    /* -- 按钮触控优化 -- */
    .btn {
        min-height: 44px;
        padding: 10px 16px;
        font-size: 15px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .btn-sm {
        min-height: 36px;
        padding: 6px 12px;
        font-size: 13px;
    }

    /* -- 模态框改为底部弹出 -- */
    .modal-overlay.active {
        align-items: flex-end;
    }

    .modal-box {
        width: 100%;
        max-width: 100%;
        border-radius: 12px 12px 0 0;
        max-height: 85vh;
    }

    .modal-header {
        padding: 16px;
        position: sticky;
        top: 0;
        background: #fff;
        z-index: 1;
        border-radius: 12px 12px 0 0;
    }

    .modal-body {
        padding: 16px;
    }

    .modal-footer {
        padding: 12px 16px;
        position: sticky;
        bottom: 0;
        background: #fff;
        padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    }

    /* -- 分页按钮 -- */
    .pagination a,
    .pagination button,
    .pagination .btn {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* -- 分页容器移动端自适应 -- */
    .pagination {
        flex-wrap: wrap !important;
        gap: 4px !important;
        justify-content: center !important;
    }
    .pagination .page-num-btn {
        min-width: 36px;
        height: 36px;
        padding: 0 6px;
        font-size: 12px;
        margin: 0 1px;
    }
    .pagination .page-ellipsis {
        width: 20px;
        height: 36px;
        line-height: 36px;
        font-size: 12px;
    }
    .pagination .page-jump-input {
        width: 44px;
        height: 36px;
        font-size: 12px;
    }
    .pagination .page-jump-btn {
        height: 36px;
        padding: 0 10px;
        font-size: 12px;
    }
    /* 移动端隐藏“到第 X 页”跳转，避免超宽 */
    .page-jump-group {
        display: none;
    }

    /* -- 双列布局转单列 -- */
    .mobile-single-col {
        grid-template-columns: 1fr !important;
    }
}

/* -- 超小屏幕（<=480px） -- */
@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card .stat-value {
        font-size: 22px;
    }

    .card-header h3 {
        font-size: 15px;
    }

    .tabbar-item {
        min-width: 48px;
        padding: 4px 4px;
    }

    .tabbar-label {
        font-size: 9px;
    }
}

/* ==================== 批量出入库表格 ==================== */
.batch-table-wrap {
    margin-top: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: visible;
}

.batch-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.batch-table thead th {
    background: #f5f5f5;
    padding: 8px 6px;
    font-weight: 600;
    font-size: 12px;
    color: #555;
    border-bottom: 1px solid #e0e0e0;
    text-align: left;
}

.batch-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
}

.batch-table tbody tr:last-child {
    border-bottom: none;
}

.batch-cell {
    padding: 6px 4px;
    vertical-align: middle;
}

.batch-cell .product-search-wrap {
    position: relative;
}

.batch-cell .product-search-dropdown {
    z-index: 1000;
}

.batch-input {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 6px 8px;
    font-size: 13px;
    width: 100%;
    box-sizing: border-box;
}

.batch-input:focus {
    border-color: var(--primary);
    outline: none;
}

.btn-add-row {
    margin-top: 8px;
    background: #f0f0f0;
    color: #555;
    border: 1px dashed #ccc;
    width: 100%;
    text-align: center;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

.btn-add-row:hover {
    background: #e8e8e8;
    border-color: #999;
}

.btn-add-row:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 移动端batch-table适配 */
@media (max-width: 768px) {
    .batch-table-wrap {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }
    .batch-table {
        min-width: 520px;
    }
    .batch-table thead th {
        font-size: 11px;
        padding: 6px 4px;
    }
    .batch-table .batch-input {
        font-size: 13px;
        padding: 5px 6px;
    }
    .batch-table .qty-input {
        width: 60px !important;
    }
}

/* === 翻页控件样式 === */
.page-num-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    margin: 0 2px;
    transition: all 0.15s;
}
.page-num-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #f0f7ff;
}
.page-num-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    cursor: default;
}
.page-num-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}
.page-ellipsis {
    display: inline-block;
    width: 28px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    color: #999;
    font-size: 14px;
}
.page-jump-input {
    width: 48px;
    height: 32px;
    padding: 0 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    font-size: 13px;
    outline: none;
}
.page-jump-input:focus {
    border-color: var(--primary);
}
.page-jump-btn {
    height: 32px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
}
.page-jump-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}
