body { margin: 0; }

.hilite { background: #fda; }

/* 侧边栏布局 */
.app-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar-column {
    width: 240px;
    flex-shrink: 0;
}

.main-column {
    flex: 1;
    min-width: 0;
    padding: 16px 24px;
}

.mobile-header {
    display: none;
}

@media (max-width: 768px) {
    .app-wrapper { flex-direction: column; }
    .sidebar-column { display: none; }
    .mobile-header { display: flex; align-items: center; gap: 10px; padding: 8px; background: #1e293b; color: #fff; }
}

/* 搜索栏 */
.search-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 16px 0;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.search-bar label {
    font-weight: 600;
    color: #475569;
    font-size: 14px;
}

.search-bar input[type="text"] {
    height: 34px;
    padding: 0 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    min-width: 200px;
    font-size: 14px;
}

.search-bar input[type="text"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.15);
}

.search-bar .btn-search {
    height: 34px;
    padding: 0 20px;
    border: none;
    border-radius: 6px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
}

.search-bar .btn-search:hover { opacity: 0.9; }

/* 操作栏 */
.action-bar {
    margin: 12px 0 20px;
    color: #334155;
}

.action-bar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.action-bar-title {
    font-weight: 700;
    font-size: 18px;
    color: #1e293b;
}

.action-bar a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 4px 12px;
    border-radius: 4px;
    transition: background 0.2s;
}

.action-bar a:hover {
    background: #eff6ff;
    text-decoration: none;
}

/* 数据表格 */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.data-table th {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: #f1f5f9;
    padding: 12px 14px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    border-bottom: 2px solid #667eea;
}

.data-table th a.th-link {
    color: #f1f5f9 !important;
    text-decoration: none;
}

.data-table th a.th-link:hover {
    text-decoration: underline;
}

.data-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
    color: #334155;
    background: #fff;
}

.data-table tr:hover td {
    background: #f8fafc;
}

.data-table tr:last-child td {
    border-bottom: none;
}

/* 操作列 */
.col-action {
    width: 100px;
    text-align: center;
}

/* 名称链接 */
.link-name {
    color: #1e293b !important;
    font-weight: 600;
    text-decoration: none !important;
}

.link-name:hover {
    color: #667eea !important;
}

/* 操作按钮 */
.btn-op {
    display: inline-block;
    padding: 3px 10px;
    font-size: 12px;
    color: #475569 !important;
    background: #f1f5f9;
    border-radius: 4px;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: all 0.2s;
}

.btn-op:hover {
    background: #e2e8f0;
    color: #1e293b !important;
}

.btn-op-danger {
    color: #dc2626 !important;
    background: #fef2f2;
}

.btn-op-danger:hover {
    background: #fee2e2;
    color: #991b1b !important;
}
