/* CMA 一单一库比对管理工具 - 参考实验室资源网风格 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Microsoft YaHei', 'PingFang SC', -apple-system, sans-serif;
    background: #F7F8FA; color: #1D2129; font-size: 14px;
    min-height: 100vh;
}
a { text-decoration: none; color: #1F69FF; }
a:hover { opacity: 0.85; }

/* ===== Header (实验室资源网风格) ===== */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: #fff; height: 80px;
    border-bottom: 1px solid #EBEEF5;
}
.header-inner {
    width: 960px; margin: 0 auto; height: 80px;
    display: flex; align-items: center;
}
.header .logo-area {
    display: flex; align-items: center;
}
.header .site-logo {
    display: flex; align-items: center; gap: 10px; text-decoration: none; color: #1D2129;
    margin-right: 56px;
}
.header .site-logo img { display: block; }
.header .nav-list {
    display: flex; gap: 32px; align-items: center; list-style: none;
}
.header .nav-list a {
    font-size: 15px; color: #4E5969; text-decoration: none;
    height: 24px; line-height: 24px; transition: color 0.2s;
}
.header .nav-list a:hover,
.header .nav-list a.active { color: #1F69FF; font-weight: 600; }
.header .nav-right {
    margin-left: auto; display: flex; align-items: center; gap: 12px;
}
.header .nav-right .tool-link {
    padding: 8px 16px; border-radius: 6px; font-size: 13px;
    text-decoration: none; color: #1F69FF; background: #EFF7FF;
    transition: all 0.2s;
}
.header .nav-right .tool-link:hover { background: #d6e8ff; }
.header .nav-right .tool-link.active { background: #1F69FF; color: #fff; }

/* ===== Main Layout ===== */
.main-wrap { width: 960px; margin: 84px auto 40px; }

/* ===== Page Title ===== */
.page-title {
    font-size: 22px; font-weight: 600; color: #1D2129; margin-bottom: 20px;
    padding-bottom: 12px; border-bottom: 3px solid #1F69FF;
}

/* ===== Stats Cards ===== */
.stats-row { display: flex; gap: 16px; margin-bottom: 24px; }
.stat-card {
    flex: 1; background: #fff; border-radius: 8px; padding: 20px 24px;
    border: 1px solid #EBEEF5; box-shadow: -3px 3px 15px #E5E6EB;
}
.stat-card .num { font-size: 32px; font-weight: 700; color: #1F69FF; }
.stat-card .label { font-size: 14px; color: #86909C; margin-top: 4px; }

/* ===== Card/Box ===== */
.card {
    background: #fff; border-radius: 8px; border: 1px solid #EBEEF5;
    box-shadow: -3px 3px 15px #E5E6EB; margin-bottom: 20px;
}
.card-header {
    padding: 16px 20px; border-bottom: 1px solid #EBEEF5;
    font-size: 16px; font-weight: 600; color: #1D2129;
    display: flex; justify-content: space-between; align-items: center;
}
.card-body { padding: 20px; }

/* ===== Search Bar ===== */
.search-bar {
    display: flex; gap: 12px; margin-bottom: 20px; align-items: center;
    flex-wrap: wrap;
}
.search-bar input[type="text"] {
    flex: 1; min-width: 200px; height: 40px; padding: 0 16px;
    border: 1px solid #E5E6EB; border-radius: 6px; font-size: 14px;
    outline: none; transition: border-color 0.2s;
}
.search-bar input[type="text"]:focus { border-color: #1F69FF; }
.search-bar select {
    height: 40px; padding: 0 12px; border: 1px solid #E5E6EB;
    border-radius: 6px; font-size: 14px; outline: none; background: #fff;
}
.btn {
    display: inline-flex; align-items: center; gap: 6px;
    height: 40px; padding: 0 20px; border-radius: 6px; font-size: 14px;
    border: none; cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.btn-primary { background: #1F69FF; color: #fff; }
.btn-primary:hover { background: #1a5ae8; }
.btn-success { background: #52c41a; color: #fff; }
.btn-success:hover { background: #49b016; }
.btn-danger { background: #ff4d4f; color: #fff; }
.btn-danger:hover { background: #e04344; }
.btn-outline {
    background: #fff; color: #4E5969; border: 1px solid #E5E6EB;
}
.btn-outline:hover { border-color: #1F69FF; color: #1F69FF; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }

/* ===== Table ===== */
.table-wrap { overflow-x: auto; }
table {
    width: 100%; border-collapse: collapse; font-size: 14px;
}
table th {
    background: #F7F8FA; color: #4E5969; font-weight: 600;
    padding: 12px 16px; text-align: left; border-bottom: 1px solid #EBEEF5;
    white-space: nowrap;
}
table td {
    padding: 10px 16px; border-bottom: 1px solid #F2F3F5; color: #1D2129;
}
table tr:hover td { background: #F7F8FA !important; }
table .text-muted { color: #86909C; }
table .text-note { font-size: 12px; color: #86909C; max-width: 300px; }

/* ===== Pagination ===== */
.pagination {
    display: flex; gap: 4px; justify-content: center; align-items: center;
    padding: 20px 0 10px;
}
.page-link {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 32px; height: 32px; padding: 0 8px;
    border: 1px solid #E5E6EB; border-radius: 6px; font-size: 13px;
    color: #4E5969; background: #fff; transition: all 0.2s;
}
.page-link:hover { border-color: #1F69FF; color: #1F69FF; }
.page-link.active { background: #1F69FF; color: #fff; border-color: #1F69FF; }
.page-ellipsis { padding: 0 4px; color: #86909C; }

/* ===== Summary Stats ===== */
.summary-bar {
    padding: 8px 0; background: #FAFBFC; border-radius: 8px;
    margin-bottom: 8px; text-align: center; line-height: 2;
}
.summary-bar .item {
    display: inline-block; white-space: nowrap; margin: 0 6px;
    vertical-align: middle;
}

/* ===== Export Buttons ===== */
.export-bar {
    display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap;
}

/* ===== Empty State ===== */
.empty-state { text-align: center; padding: 60px 20px; color: #86909C; }
.empty-state .icon { font-size: 48px; margin-bottom: 12px; }
.empty-state p { font-size: 15px; }

/* ===== Footer ===== */
.footer {
    background: #F7F8FA; border-top: 1px solid #EBEEF5; margin-top: 40px;
    padding: 32px 0;
}
.footer-inner {
    width: 960px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: flex-start;
}
.footer-left { flex: 1; }
.footer-logo { height: 32px; width: auto; margin-bottom: 16px; }
.footer-links { margin-bottom: 12px; }
.footer-links a { color: #4E5969; font-size: 13px; }
.footer-links a:hover { color: #1F69FF; }
.footer-links .sep { color: #C9CDD4; margin: 0 8px; font-size: 12px; }
.footer-icp { margin-bottom: 6px; }
.footer-icp a { color: #86909C; font-size: 12px; }
.footer-icp a:hover { color: #1F69FF; }
.footer-tech { color: #86909C; font-size: 12px; }
.footer-tech a { color: #86909C; }
.footer-tech a:hover { color: #1F69FF; }
.footer-tech .sep { color: #C9CDD4; margin: 0 8px; font-size: 12px; }
.footer-right { display: flex; gap: 20px; flex-shrink: 0; }
.qr-item { text-align: center; }
.qr-item img { width: 90px; height: 90px; border-radius: 6px; border: 1px solid #EBEEF5; display: block; }
.qr-item span { display: block; margin-top: 6px; font-size: 12px; color: #86909C; }

/* ===== Flash Messages ===== */
.flash {
    padding: 12px 16px; border-radius: 6px; margin-bottom: 16px;
    font-size: 14px;
}
.flash-success { background: #f6ffed; color: #52c41a; border: 1px solid #b7eb8f; }
.flash-error { background: #fff2f0; color: #ff4d4f; border: 1px solid #ffccc7; }
.flash-info { background: #e6f7ff; color: #1890ff; border: 1px solid #91d5ff; }

/* ===== Responsive ===== */
@media (max-width: 1060px) {
    .header-inner, .main-wrap, .footer-inner { width: 100%; padding: 0 16px; }
    .stats-row { flex-wrap: wrap; }
    .stat-card { min-width: 200px; }
    .footer-inner { flex-direction: column; align-items: center; text-align: center; }
    .footer-right { margin-top: 20px; }
}
