/* ----- 全局重置 & 基础 (保留原汁原味红黑视觉) ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: #f1f5f9;
    font-family: system-ui, -apple-system, 'Segoe UI', 'PingFang SC', Roboto, 'Helvetica Neue', sans-serif;
    color: #1e293b;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 主容器 */
.wg-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ----- 头部导航 红黑激昂 ----- */
.wg-header {
    background: #b91c1c;
    background: linear-gradient(135deg, #b91c1c 0%, #9b2c2c 100%);
    box-shadow: 0 4px 12px rgba(185, 28, 28, 0.25);
    flex-shrink: 0;
    position: relative;
    z-index: 100;
}

.wg-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 10px 0;
}

.wg-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wg-logo-img {
    width: 38px;
    height: 38px;
    background: #fff3e0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: #b91c1c;
}

.wg-logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
}

.wg-logo small {
    font-size: 0.65rem;
    background: #ffd966;
    color: #b91c1c;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 8px;
}

.nav-scroll {
    flex: 1;
    overflow-x: auto;
    white-space: nowrap;
    margin: 0 20px;
    scrollbar-width: thin;
}

.nav-menu {
    display: inline-flex;
    gap: 28px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu li {
    display: inline-block;
}

.nav-menu a {
    color: #fff3e0;
    font-weight: 500;
    text-decoration: none;
    font-size: 0.95rem;
    transition: 0.2s;
    cursor: pointer;
    padding: 6px 0;
    display: inline-block;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #ffd966;
    border-bottom: 2px solid #ffd966;
}

/* 会员下拉 */
.user-dropdown {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.user-area {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.2);
    padding: 5px 16px;
    border-radius: 40px;
    transition: 0.2s;
}

.user-area:hover {
    background: rgba(0, 0, 0, 0.35);
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: #ffd966;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b91c1c;
    font-weight: bold;
}

.user-name {
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
}

.dropdown-arrow {
    color: #ffd966;
    font-size: 12px;
    margin-left: 4px;
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: 40px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
    width: 160px;
    overflow: hidden;
    z-index: 200;
    display: none;
    border: 1px solid #f0e2d0;
}

.dropdown-menu a {
    display: block;
    padding: 12px 16px;
    color: #334155;
    text-decoration: none;
    font-size: 0.85rem;
    transition: 0.2s;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background: #fff5eb;
    color: #b91c1c;
}

.user-dropdown:hover .dropdown-menu {
    display: block;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

@media (max-width: 1000px) {
    .nav-scroll { margin: 0 10px; }
    .nav-menu { gap: 18px; }
}

@media (max-width: 768px) {
    .wg-nav { flex-wrap: wrap; }
    .nav-scroll { order: 3; width: 100%; margin-top: 10px; margin-left: 0; }
    .mobile-toggle { display: block; }
    .nav-menu { display: none; width: 100%; flex-direction: column; background: #7f1a1a; border-radius: 16px; padding: 12px; margin-top: 8px; }
    .nav-menu.open { display: flex; }
    .nav-menu li { width: 100%; }
    .user-area { margin-left: auto; }
}

/* 会员快捷栏 */
.member-top-bar {
    background: linear-gradient(105deg, #fff9ef 0%, #fff3e6 100%);
    border-radius: 20px;
    padding: 12px 24px;
    margin: 16px 20px 12px 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #ffedd5;
    flex-shrink: 0;
}

.member-badge-mini {
    background: #b91c1c;
    color: #ffd966;
    padding: 4px 14px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: bold;
}

.expire-text {
    font-size: 0.8rem;
    color: #5b4b3a;
}

.rights-icons {
    display: flex;
    gap: 20px;
}

.rights-icons span {
    font-size: 0.7rem;
    background: #fef3c7;
    padding: 4px 12px;
    border-radius: 30px;
    color: #b45309;
}

.btn-buy-small {
    background: #b91c1c;
    color: white;
    border: none;
    padding: 6px 20px;
    border-radius: 40px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: 0.2s;
}

.btn-buy-small:hover {
    background: #9b1622;
}

/* 双栏布局 */
.main-dashboard {
    flex: 1;
    margin: 0 20px 16px 20px;
}

.two-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.left-col {
    flex: 2;
    min-width: 260px;
}

.right-col {
    flex: 1.2;
    min-width: 280px;
}

/* 卡片样式 */
.wg-card {
    background: white;
    border-radius: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0e2d0;
    overflow: hidden;
}

.wg-card-header {
    padding: 16px 24px;
    border-bottom: 1px solid #f0e2d0;
    background: #fffbf5;
}

.wg-card-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #b45309;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wg-card-body {
    padding: 20px 24px;
}

/* 表格风格 */
.stock-table {
    width: 100%;
    font-size: 0.85rem;
    border-collapse: collapse;
}

.stock-table th,
.stock-table td {
    padding: 12px 6px;
    text-align: left;
    border-bottom: 1px solid #f0e2d0;
}

.stock-table th {
    background: #fdf6ed;
    color: #b23c1c;
    font-weight: 600;
}

.up { color: #dc2626; font-weight: 600; }
.down { color: #16a34a; }
.text-red { color: #dc2626; font-weight: 600; }
.text-green { color: #16a34a; font-weight: 600; }

/* 自选股列表 */
.self-select-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed #f0e2d0;
}

.self-stock-code {
    font-weight: 600;
}

.self-stock-name {
    font-size: 0.85rem;
    color: #4b5563;
    margin-left: 8px;
}

.self-price {
    font-weight: 600;
}

.del-self {
    color: #dc2626;
    cursor: pointer;
    font-size: 12px;
    background: none;
    border: none;
}

.btn-outline {
    background: transparent;
    border: 1px solid #b91c1c;
    color: #b91c1c;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.7rem;
    cursor: pointer;
    transition: 0.2s;
}

.btn-outline:hover {
    background: #b91c1c;
    color: white;
}

.inline-input-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

/* layui 扩展覆盖原有输入框样式，保证视觉一致 */
.layui-input, .layui-input-number {
    border-radius: 12px;
    border: 1px solid #e2d5c0;
    background: white;
    padding: 8px 12px;
    font-size: 0.85rem;
    height: auto;
}
.layui-input:focus {
    border-color: #b91c1c;
    box-shadow: 0 0 0 2px rgba(185, 28, 28, 0.1);
}

.btn-wg-primary {
    background: #b91c1c;
    border: none;
    color: white;
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
    display: inline-block;
}
.btn-wg-primary:hover { background: #9b1622; transform: translateY(-1px); }

.btn-wg-success {
    background: #5fb878;
    border: none;
    color: white;
    padding: 8px 20px;
    border-radius: 40px;
    cursor: pointer;
}
.btn-wg-default {
    background: #f0ede8;
    border: 1px solid #d4c5b0;
    color: #5a4a38;
    padding: 8px 20px;
    border-radius: 40px;
    cursor: pointer;
}
.strategy-result {
    margin-top: 16px;
    background: #fef9f0;
    padding: 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    border-left: 4px solid #b91c1c;
}
.hot-tag {
    background: #fef3c7;
    color: #b45309;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.7rem;
}
footer {
    background: #1e1b1a;
    color: #c0a080;
    text-align: center;
    padding: 12px 0;
    margin-top: 20px;
    font-size: 0.7rem;
    flex-shrink: 0;
}
@media (max-width: 780px) {
    .member-top-bar { flex-direction: column; align-items: flex-start; gap: 12px; margin: 12px; }
    .rights-icons { flex-wrap: wrap; }
    .main-dashboard { margin: 0 12px 16px 12px; }
    .wg-card-body { padding: 16px; }
}

.app-wrapper {
    /*margin: 0 auto;*/
    padding: 12px 16px;
}

.left-ladder {
    flex: 2.2;
    min-width: 280px;
}
.right-side {
    flex: 1.2;
    min-width: 260px;
}

.card {
    background: white;
    border-radius: 28px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0e2d0;
    overflow: hidden;
    margin-bottom: 24px;
}
.card-header {
    padding: 14px 20px;
    background: #fffbf5;
    border-bottom: 1px solid #f0e2d0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.card-header h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #b45309;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ladder-board {
    background: rgba(255, 252, 238, 0.96);
    border-radius: 24px;
    overflow: hidden;
}
.ladder-list {
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    background: transparent;
}
.ladder-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    display: flex;
    width: 100%;
}
.ladder-left {
    width: 70px;
    flex-shrink: 0;
    background: rgba(211, 47, 47, 0.08);
    border-right: 1px solid rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    color: #b91c1c;
    text-align: center;
    padding: 12px 0;
}
.ladder-right {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
}
.stock-chip {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 16px;
    padding: 6px 12px;
    min-width: 80px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    border: 1px solid #ffe0c0;
    transition: 0.1s;
    position: relative;
    cursor: pointer;
}
.stock-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-color: #b91c1c;
    background: #fffaf0;
}
.stock-chip.fail-stock {
    opacity: 0.65;
    background: #fef7f0;
}
.stock-chip.fail-stock::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: #D94136;
    transform: rotate(25deg);
    top: 50%;
    left: 0;
}

.stock-chip.fail-stock::before {
    content: ' ';
    position: absolute;
    width: 100%;
    height: 2px;
    background: #D94136;
    transform: rotate(-30deg);
    opacity: .7;
    top: 50%;
    left: 0;
}

.stock-time {
    font-size: 10px;
    background: #fef3c7;
    padding: 2px 8px;
    border-radius: 30px;
    color: #b45309;
    font-weight: 500;
    margin-bottom: 4px;
    white-space: nowrap;
}
.stock-name {
    font-weight: 700;
    font-size: 14px;
    color: #1e293b;
}
.stock-industry {
    font-size: 10px;
    color: #6c757d;
    transform: scale(0.92);
}
.change-badge {
    font-size: 11px;
    font-weight: bold;
    margin-top: 2px;
}
/* 红绿颜色类 */
.red-txt { color: #dc2626; font-weight: 600; }
.green-txt { color: #16a34a; font-weight: 600; }

.badge-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.badge-topic {
    background: #fef3c7;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.75rem;
    color: #b45309;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}
.badge-topic:hover {
    background: #ffe6c4;
    transform: translateY(-1px);
}
.badge-topic.active {
    background: #b91c1c;
    color: #ffd966;
    border-color: #b91c1c;
    box-shadow: 0 2px 8px rgba(185,28,28,0.3);
}

.self-table {
    width: 100%;
    font-size: 0.85rem;
}
.self-table td {
    padding: 10px 6px;
    border-bottom: 1px solid #f0e2d0;
}
.date-search {
    display: flex;
    gap: 8px;
    align-items: center;
}
.sector-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #f0e2d0;
    font-size: 0.85rem;
}
.footer-note {
    text-align: center;
    font-size: 0.7rem;
    color: #aaa;
    margin-top: 24px;
    padding: 12px;
    background: #1e1b1a;
    color: #c0a080;
    border-radius: 40px;
}
@media (max-width: 780px) {
    .app-wrapper { padding: 8px 12px; }
    .ladder-left { width: 55px; font-size: 0.8rem; }
    .stock-chip { min-width: 70px; padding: 4px 8px; }
    .stock-name { font-size: 12px; }
}
.stock-chip-added {
    animation: pulse 0.4s ease;
}
@keyframes pulse {
    0% { transform: scale(1); background: #fff; }
    50% { transform: scale(1.02); background: #c8e6d9; border-color: #2c7a4d; }
    100% { transform: scale(1); background: #fff; }
}
/* 右侧涨跌幅红绿加强 */
.up-color { color: #dc2626; font-weight: 700; }
.down-color { color: #16a34a; font-weight: 700; }

/* 添加自选区域 */
.add-stock-bar {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.compact-input {
    padding: 8px 14px;
    border: 1px solid #e2d5c0;
    border-radius: 40px;
    font-size: 0.85rem;
    background: white;
    width: 140px;
    transition: 0.2s;
}
.compact-input:focus {
    outline: none;
    border-color: #b91c1c;
    box-shadow: 0 0 0 2px rgba(185, 28, 28, 0.1);
}
.btn-save {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #ffe0c0;
}

.btn-save:hover {
    background: #ffe6c4;
}

.btn-sm {
    padding: 6px 18px;
    border-radius: 40px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
    border: none;
}
.btn-primary-red {
    background: #b91c1c;
    color: white;
}
.btn-primary-red:hover {
    background: #9b1622;
    transform: translateY(-1px);
}
.btn-default {
    background: #f0ede8;
    color: #5a4a38;
    border: 1px solid #d4c5b0;
}
.btn-default:hover {
    background: #e5dfd5;
}

/* 统计卡片区 */
.stats-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.stat-card {
    background: white;
    border-radius: 24px;
    padding: 16px 24px;
    flex: 1;
    min-width: 150px;
    border: 1px solid #f0e2d0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.stat-label {
    font-size: 0.7rem;
    color: #8e9aaf;
    letter-spacing: 1px;
}
.stat-number {
    font-size: 1.6rem;
    font-weight: 800;
    color: #b45309;
    line-height: 1.2;
}
.stat-sub {
    font-size: 0.65rem;
    color: #b45309;
    margin-top: 4px;
}

/* 自选股表格 */
.stock-table-wrapper {
    overflow-x: auto;
}
.del-btn {
    background: none;
    border: none;
    color: #b91c1c;
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0.6;
    transition: 0.1s;
}
.del-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}
.refresh-icon {
    cursor: pointer;
    font-size: 1rem;
    margin-left: 10px;
    display: inline-block;
    transition: 0.2s;
}
.refresh-icon:hover {
    transform: rotate(180deg);
    color: #b91c1c;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #aaa;
}
.empty-state i {
    font-size: 48px;
    margin-bottom: 12px;
    display: inline-block;
}

/* 右侧市场热点卡片 */
.hot-list {
    list-style: none;
}
.hot-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #f0e2d0;
    font-size: 0.8rem;
}

@media (max-width: 780px) {
    .app-wrapper { padding: 12px; }
    .card-header { flex-direction: column; align-items: flex-start; }
    .stat-number { font-size: 1.3rem; }
}

.compact-container {
    max-width: 100%;
}

.compact-card {
    background: white;
    border-radius: 28px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0e2d0;
    overflow: hidden;
    margin-bottom: 24px;
}

.compact-card-header {
    padding: 14px 24px;
    background: #fffbf5;
    border-bottom: 1px solid #f0e2d0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.compact-card-header h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #b45309;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toggle-filter-btn {
    background: transparent;
    border: 1px solid #b91c1c;
    color: #b91c1c;
    padding: 6px 14px;
    border-radius: 40px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.toggle-filter-btn:hover {
    background: #b91c1c;
    color: white;
}

.filter-body {
    padding: 20px 24px;
    transition: all 0.3s ease;
}

.filter-body.collapsed {
    display: none;
}

.saved-conditions-bar {
    background: #fefaf5;
    border-radius: 20px;
    padding: 12px 16px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    border: 1px solid #f0e2d0;
}

.saved-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #b45309;
    background: #fef3c7;
    padding: 4px 12px;
    border-radius: 30px;
}

.condition-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 1px solid #ffe0c0;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 0.7rem;
    color: #5a4a38;
    cursor: pointer;
    transition: 0.1s;
}

.condition-tag:hover {
    background: #fff5eb;
    border-color: #b91c1c;
}

.condition-tag .del-condition {
    color: #b91c1c;
    font-weight: bold;
    margin-left: 6px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
}

.condition-tag .del-condition:hover {
    color: #7f1a1a;
}

.compact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px 20px;
    margin-bottom: 24px;
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #5b4b3a;
    display: flex;
    align-items: center;
    gap: 6px;
}

.help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #e2d5c0;
    border-radius: 50%;
    font-size: 11px;
    color: #7f6b53;
    cursor: help;
    transition: 0.1s;
}
.help-icon:hover {
    background: #b45309;
    color: white;
}

.range-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.range-inputs .compact-input {
    flex: 1;
}

.range-sep {
    color: #b45309;
    font-weight: 500;
}

.compact-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 8px;
    border-top: 1px solid #f0e2d0;
    margin-top: 8px;
}

.stat-up-compact {
    font-size: 0.8rem;
    background: #fef3c7;
    padding: 6px 14px;
    border-radius: 30px;
    color: #b45309;
}

.btn-group-compact {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.result-card {
    background: white;
    border-radius: 28px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0e2d0;
    overflow-x: auto;
}

.result-header {
    padding: 14px 24px;
    background: #fffbf5;
    border-bottom: 1px solid #f0e2d0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.result-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #b45309;
}

.page-size-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    color: #5b4b3a;
}

.page-size-selector select {
    padding: 4px 8px;
    border-radius: 20px;
    border: 1px solid #e2d5c0;
    background: white;
}

.data-table {
    width: 100%;
    font-size: 0.8rem;
    border-collapse: collapse;
    min-width: 800px;
}

.data-table th,
.data-table td {
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1px solid #f0e2d0;
}

.data-table th {
    background: #fdf6ed;
    color: #b23c1c;
    font-weight: 600;
    position: sticky;
    top: 0;
}

.text-muted {
    color: #aaa;
    text-align: center;
    padding: 40px;
}

/* 分页样式 */
.pagination-wrapper {
    padding: 16px 24px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    border-top: 1px solid #f0e2d0;
    background: #fffbf5;
}

.pagination-controls {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.page-btn {
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 0.7rem;
    border: 1px solid #e2d5c0;
    background: white;
    cursor: pointer;
    transition: 0.1s;
}

.page-btn:hover {
    background: #fef3c7;
    border-color: #b91c1c;
}

.page-btn.active {
    background: #b91c1c;
    color: white;
    border-color: #b91c1c;
}

.page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-info {
    font-size: 0.7rem;
    color: #5b4b3a;
}

@media (max-width: 680px) {
    .app-wrapper { padding: 12px; }
    .compact-grid { grid-template-columns: 1fr; }
    .compact-actions { flex-direction: column; align-items: stretch; }
    .btn-group-compact { justify-content: center; }
    .result-header { flex-direction: column; align-items: flex-start; }
}

/* 筛选栏 */
.filter-bar {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.table-wrapper {
    overflow-x: auto;
}

.status-success {
    color: #16a34a;
    background: rgba(22,163,74,0.1);
    padding: 2px 8px;
    border-radius: 20px;
    display: inline-block;
    font-size: 0.7rem;
}
.status-pending {
    color: #b45309;
    background: #fef3c7;
    padding: 2px 8px;
    border-radius: 20px;
    display: inline-block;
    font-size: 0.7rem;
}

@media (max-width: 780px) {
    .app-wrapper { padding: 12px; }
    .card-header { flex-direction: column; align-items: flex-start; }
}

.search-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e2d5c0;
    border-radius: 12px;
    font-size: 0.8rem;
    background: white;
    transition: 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: #b91c1c;
    box-shadow: 0 0 0 2px rgba(185, 28, 28, 0.1);
}