/* 两栖动物音频管理系统 - 样式文件 */

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8fafc;
    color: #334155;
    line-height: 1.6;
}

/* 工具类 */
.hidden {
    display: none !important;
}

/* 页面容器 */
.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 登录页面样式 */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    padding: 40px;
    width: 100%;
    max-width: 400px;
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-header i {
    font-size: 48px;
    color: #10b981;
    margin-bottom: 16px;
}

.login-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.login-header p {
    color: #6b7280;
    font-size: 14px;
}

.login-form {
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #10b981;
}

/* 单选按钮和复选框样式 */
.radio-item,
.checkbox-item {
    margin-bottom: 12px;
}

.radio-item label,
.checkbox-item label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px 12px;
    border-radius: 8px;
    transition: background 0.2s;
    font-weight: normal;
    margin-bottom: 0;
}

.radio-item label:hover,
.checkbox-item label:hover {
    background: #f9fafb;
}

.radio-item input[type="radio"],
.checkbox-item input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    cursor: pointer;
}

.login-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.login-footer p {
    color: #6b7280;
    font-size: 12px;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background-color: #10b981;
    color: white;
}

.btn-primary:hover {
    background-color: #059669;
}

.btn-secondary {
    background-color: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background-color: #4b5563;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

/* 主应用布局 */
#appPage {
    display: flex;
    min-height: 100vh;
}

/* 统一顶部栏 */
.unified-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 1001;
}

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: #1f2937;
    font-size: 18px;
    min-width: 230px;
}

.topbar-brand i {
    font-size: 28px;
    color: #10b981;
}

/* 侧边栏 */
.sidebar {
    width: 230px;
    background: white;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px;
    left: 0;
    height: calc(100vh - 64px);
    z-index: 1000;
}

/* sidebar-header removed - now in unified-topbar */

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 15px;
}

.nav-item:hover {
    background-color: #f3f4f6;
    color: #374151;
}

.nav-item.active {
    background-color: #ecfdf5;
    color: #10b981;
    border-right: 3px solid #10b981;
}

.nav-item i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.nav-sub {
    padding-left: 32px;
    font-size: 13px;
}

.nav-group-title {
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 16px;
    margin-bottom: 8px;
}

/* Sidebar footer removed - user info moved to topbar */

/* 主内容区 */
.main-content {
    flex: 1;
    margin-left: 230px;
    margin-top: 64px;
    display: flex;
    flex-direction: column;
    max-width: calc(100vw - 230px);
    min-height: calc(100vh - 64px);
}

/* Old topbar removed - now using unified-topbar */

.topbar h2 {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
}

/* Unified topbar right section */
.unified-topbar .topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* User menu wrapper */
.unified-topbar .user-menu-wrapper {
    position: relative;
}

/* User info in unified topbar */
.unified-topbar .user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f9fafb;
    border-radius: 8px;
    color: #374151;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.unified-topbar .user-info:hover {
    background: #f3f4f6;
}

.unified-topbar .user-info i.fa-user-circle {
    font-size: 20px;
    color: #6b7280;
}

.unified-topbar .user-info i.fa-chevron-down {
    font-size: 12px;
    color: #9ca3af;
    transition: transform 0.2s;
}

.unified-topbar .user-info:hover i.fa-chevron-down {
    transform: rotate(180deg);
}

/* User dropdown menu */
.unified-topbar .user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    min-width: 200px;
    overflow: hidden;
    z-index: 1000;
    animation: dropdownSlide 0.2s ease-out;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.unified-topbar .user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #374151;
    text-decoration: none;
    transition: background 0.2s;
    font-size: 14px;
}

.unified-topbar .user-dropdown-item:hover {
    background: #f9fafb;
}

.unified-topbar .user-dropdown-item i {
    font-size: 16px;
    color: #6b7280;
    width: 20px;
    text-align: center;
}

.unified-topbar .user-dropdown-item#logoutBtn {
    color: #dc2626;
}

.unified-topbar .user-dropdown-item#logoutBtn i {
    color: #dc2626;
}

.unified-topbar .user-dropdown-item#logoutBtn:hover {
    background: #fee2e2;
}

.unified-topbar .user-dropdown-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 4px 0;
}

.search-box {
    position: relative;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.search-box input {
    padding: 8px 12px 8px 36px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    width: 300px;
    font-size: 14px;
}

/* Notifications in unified topbar */
.unified-topbar .notifications {
    position: relative;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s;
}

.unified-topbar .notifications:hover {
    background: #f3f4f6;
}

.unified-topbar .notifications i {
    font-size: 18px;
    color: #6b7280;
}

/* 通知徽章样式 - 只应用于通知区域 */
.unified-topbar .notifications .badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
}

/* 通知下拉面板 */
.notification-dropdown {
    position: absolute;
    top: 60px;
    right: 20px;
    width: 380px;
    max-height: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s, transform 0.2s;
    pointer-events: none;
}

.notification-dropdown:not(.hidden) {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.notification-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.btn-text {
    background: none;
    border: none;
    color: #10b981;
    font-size: 13px;
    cursor: pointer;
    padding: 4px 8px;
}

.btn-text:hover {
    text-decoration: underline;
}

.notification-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    padding: 16px 20px;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: background 0.2s;
}

.notification-item:hover {
    background: #f9fafb;
}

.notification-item.unread {
    background: #f0fdf4;
}

.notification-item-title {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.notification-item-content {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 6px;
}

.notification-item-time {
    font-size: 12px;
    color: #9ca3af;
}

.notification-actions {
    margin-top: 8px;
    display: flex;
    gap: 8px;
}

.notification-actions .btn {
    flex: 1;
    font-size: 12px;
    padding: 4px 12px;
}

/* 内容区 */
.content {
    flex: 1;
    padding: 0;
}

.page-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 20px;
}

/* ===== 强制布局修复 ===== */

/* 页面头部 */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.page-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1f2937;
}

.page-actions {
    display: flex;
    gap: 12px;
}

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
    max-width: 100%;
}



.stat-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    background: linear-gradient(135deg, #10b981, #059669);
}

.stat-info h3 {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
}

.stat-info p {
    color: #6b7280;
    font-size: 14px;
}

/* 仪表板网格 */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

/* 卡片 */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.card-content {
    padding: 24px;
}

/* 音频列表 */
.audio-list {
    space-y: 12px;
}

.audio-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.audio-item:hover {
    background-color: #f9fafb;
}

.audio-item i {
    color: #10b981;
    font-size: 16px;
}

.audio-info {
    flex: 1;
}

.audio-info h4 {
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 2px;
}

.audio-info p {
    font-size: 12px;
    color: #6b7280;
}

/* 状态列表 */
.status-list {
    space-y: 12px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.status-item:last-child {
    border-bottom: none;
}

.status-item i {
    width: 20px;
    text-align: center;
    color: #6b7280;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.success {
    background-color: #dcfce7;
    color: #166534;
}

.status-badge.error {
    background-color: #fef2f2;
    color: #dc2626;
}

/* 筛选器 */
.filters {
    margin-bottom: 24px;
}

/* 新的筛选区域样式 */
.filter-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* 新的筛选网格布局 */
.filter-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 20px;
    padding: 20px;
    align-items: end;
}

/* 搜索组样式 */
.search-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.search-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
}

.search-group label i {
    color: #10b981;
    font-size: 16px;
}

.search-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background-color: #ffffff;
    font-size: 14px;
    color: #374151;
    transition: all 0.2s ease;
}

.search-group input:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* 筛选选项区域 */
.filter-options {
    display: flex;
    gap: 12px;
}

.filter-options .filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.filter-options .filter-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 2px;
}

.filter-options .filter-group label i {
    color: #718096;
    font-size: 13px;
}

.filter-options .filter-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background-color: #ffffff;
    font-size: 13px;
    color: #374151;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-options .filter-group select:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* 操作按钮区域 */
.filter-actions {
    display: flex;
    gap: 8px;
    align-items: end;
    justify-content: flex-end;
}

.filter-actions .btn {
    padding: 8px 16px;
    font-size: 13px;
    height: 36px;
    white-space: nowrap;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.filter-actions .btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    color: white;
}

.filter-actions .btn-primary:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

.filter-actions .btn-outline {
    background: transparent;
    border: 1px solid #d1d5db;
    color: #6b7280;
}

.filter-actions .btn-outline:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    color: #374151;
}

.filter-actions .btn-secondary {
    background: #6b7280;
    border: none;
    color: white;
}

.filter-actions .btn-secondary:hover {
    background: #4b5563;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(107, 114, 128, 0.3);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group label {
    font-weight: 500;
    color: #374151;
}

.filter-group select {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}

/* 表格 */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    min-width: 1000px;
    border-collapse: collapse;
    font-size: 13px;
}

/* 特定列的宽度设置 - 使用更具体的选择器 */
.table-container table th:nth-child(1), 
.table-container table td:nth-child(1) { 
    width: 40px !important; 
    min-width: 40px !important;
    max-width: 40px !important;
} /* 选择 */

.table-container table th:nth-child(2), 
.table-container table td:nth-child(2) { 
    width: 200px !important; 
    min-width: 200px !important;
    max-width: 200px !important;
} /* 音频文件 */

.table-container table th:nth-child(3), 
.table-container table td:nth-child(3) { 
    width: 180px !important; 
    min-width: 180px !important;
    max-width: 180px !important;
} /* 物种信息 */

.table-container table th:nth-child(4), 
.table-container table td:nth-child(4) { 
    width: 120px !important; 
    min-width: 120px !important;
    max-width: 120px !important;
} /* 录制地点 */

.table-container table th:nth-child(5), 
.table-container table td:nth-child(5) { 
    width: 100px !important; 
    min-width: 100px !important;
    max-width: 100px !important;
} /* 录制时间 */

.table-container table th:nth-child(6), 
.table-container table td:nth-child(6) { 
    width: 60px !important; 
    min-width: 60px !important;
    max-width: 60px !important;
} /* 时长 */

.table-container table th:nth-child(7), 
.table-container table td:nth-child(7) { 
    width: 80px !important; 
    min-width: 80px !important;
    max-width: 80px !important;
} /* 状态 */

.table-container table th:nth-child(8), 
.table-container table td:nth-child(8) { 
    width: 80px !important; 
    min-width: 80px !important;
    max-width: 80px !important;
} /* 发布 */

.table-container table th:nth-child(9), 
.table-container table td:nth-child(9) { 
    width: 150px !important; 
    min-width: 150px !important;
    max-width: 150px !important;
} /* 备注 */

.table-container table th:nth-child(10), 
.table-container table td:nth-child(10) { 
    width: 120px !important; 
    min-width: 120px !important;
    max-width: 120px !important;
} /* 上传时间 */

.table-container table th:nth-child(11), 
.table-container table td:nth-child(11) { 
    width: 120px !important; 
    min-width: 120px !important;
    max-width: 120px !important;
} /* 操作 */

th, td {
    padding: 8px 12px;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
}

th {
    background-color: #f9fafb;
    font-weight: 600;
    color: #374151;
    font-size: 13px;
    white-space: nowrap;
}

td {
    font-size: 13px;
    color: #6b7280;
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    text-overflow: initial !important;
    overflow: visible !important;
}

/* 备注单元格样式 */
.notes-cell {
    max-width: 150px;
    min-width: 150px;
    overflow: visible;
    text-overflow: initial;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    cursor: help;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
    padding: 8px 12px;
}

tr:hover {
    background-color: #f9fafb;
}

/* 音频文件信息样式 */
.audio-file-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.audio-filename {
    display: flex;
    align-items: center;
    font-weight: 500;
    color: #1f2937;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.audio-meta {
    font-size: 12px;
    color: #9ca3af;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.meta-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.file-size {
    display: flex;
    align-items: center;
}

.uploader-name {
    display: flex;
    align-items: center;
}

/* 物种信息样式 */
.species-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.species-name {
    display: flex;
    align-items: center;
    font-weight: 500;
    color: #1f2937;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.scientific-name {
    font-style: italic;
}

.common-name {
    font-size: 12px;
    color: #6b7280;
    margin-left: 16px;
}

/* 地点信息样式 */
.location-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    justify-content: center;
    text-align: center;
}

.location-primary {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 500;
    color: #374151;
    font-size: 0.875rem;
    gap: 4px !important;
    flex-direction: row !important;
}

/* 更具体的选择器确保样式被应用 */
.table-container .location-primary {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: row !important;
    gap: 4px !important;
}

.location-icon {
    color: #ef4444;
    font-size: 0.75rem;
}

.location-name {
    font-weight: 500;
    color: #374151;
}

.location-secondary {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 400;
}

.location-geo {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #6b7280;
}

.location-country {
    font-size: 12px;
    color: #6b7280;
    margin-left: 16px;
}

/* 文件大小和时长样式 */
.file-size, .duration {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 12px;
    color: #6b7280;
}

/* 上传时间样式 */
.upload-time {
    font-size: 12px;
    color: #6b7280;
}

/* 操作按钮样式 */
.action-buttons {
    display: flex;
    gap: 4px;
    width: 100%;
    justify-content: center;
}

.action-buttons .btn {
    padding: 4px 6px;
    font-size: 11px;
    min-width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

/* 操作按钮2x2网格布局 */
.action-buttons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 4px;
    width: 100%;
    max-width: 80px;
    margin: 0 auto;
}

.action-buttons-grid .btn {
    padding: 4px 6px;
    font-size: 11px;
    min-width: 32px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 状态徽章样式 */
.status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-align: center;
    min-width: 50px;
}

.status-badge.success {
    background-color: #dcfce7;
    color: #166534;
}

.status-badge.secondary {
    background-color: #f1f5f9;
    color: #64748b;
}

.status-badge.warning {
    background-color: #fef3c7;
    color: #92400e;
}

.status-badge.danger {
    background-color: #fee2e2;
    color: #dc2626;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .table-container {
        font-size: 12px;
    }
    
    table {
        min-width: 900px;
    }
    
    .table-container table th:nth-child(1), 
    .table-container table td:nth-child(1) { 
        width: 160px !important; 
        min-width: 160px !important;
        max-width: 160px !important;
    }
    
    .table-container table th:nth-child(2), 
    .table-container table td:nth-child(2) { 
        width: 180px !important; 
        min-width: 180px !important;
        max-width: 180px !important;
    }
    
    .table-container table th:nth-child(3), 
    .table-container table td:nth-child(3) { 
        width: 140px !important; 
        min-width: 140px !important;
        max-width: 140px !important;
    }
    
    .table-container table th:nth-child(5), 
    .table-container table td:nth-child(5) { 
        width: 120px !important; 
        min-width: 120px !important;
        max-width: 120px !important;
    }
    
    th, td {
        padding: 6px 8px;
    }
    
    .action-buttons {
        gap: 2px;
    }
    
    .action-buttons .btn {
        min-width: 24px;
        height: 24px;
        padding: 2px 4px;
        font-size: 10px;
    }
}

@media (max-width: 768px) {
    .table-container {
        font-size: 11px;
    }
    
    table {
        min-width: 800px;
    }
    
    .table-container table th:nth-child(1), 
    .table-container table td:nth-child(1) { 
        width: 140px !important; 
        min-width: 140px !important;
        max-width: 140px !important;
    }
    
    .table-container table th:nth-child(2), 
    .table-container table td:nth-child(2) { 
        width: 160px !important; 
        min-width: 160px !important;
        max-width: 160px !important;
    }
    
    .table-container table th:nth-child(3), 
    .table-container table td:nth-child(3) { 
        width: 120px !important; 
        min-width: 120px !important;
        max-width: 120px !important;
    }
    
    .table-container table th:nth-child(5), 
    .table-container table td:nth-child(5) { 
        width: 100px !important; 
        min-width: 100px !important;
        max-width: 100px !important;
    }
    
    th, td {
        padding: 4px 6px;
    }
    
    .audio-filename span,
    .species-name span,
    .location-info span {
        font-size: 10px;
    }
}

/* 上传区域 */
.upload-container {
    max-width: 100%;
    width: 100%;
}




.upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 60px 20px;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
}

.upload-area:hover {
    border-color: #10b981;
    background-color: #f0fdf4;
}

.upload-area.dragover {
    border-color: #10b981;
    background-color: #f0fdf4;
}

.upload-content i {
    font-size: 48px;
    color: #10b981;
    margin-bottom: 16px;
}

.upload-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.upload-content p {
    color: #6b7280;
    margin-bottom: 20px;
}

/* 上传进度 */
.upload-progress {
    margin-top: 24px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.progress-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.progress-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.progress-list {
    padding: 20px;
}

.progress-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.progress-item:last-child {
    border-bottom: none;
}

.progress-info {
    flex: 1;
}

.progress-info h4 {
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 4px;
}

.progress-info p {
    font-size: 12px;
    color: #6b7280;
}

.progress-bar {
    width: 200px;
    height: 8px;
    background-color: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #10b981;
    transition: width 0.3s;
}

/* 设置网格 */
.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.info-list {
    space-y: 12px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item span:first-child {
    font-weight: 500;
    color: #374151;
}

.info-item span:last-child {
    color: #6b7280;
}

.health-status {
    margin-top: 16px;
}

/* 加载提示 */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid #10b981;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading p {
    margin-top: 16px;
    color: #6b7280;
}

/* 消息提示 */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 16px 20px;
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s;
}

.toast.show {
    transform: translateX(0);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-icon {
    font-size: 16px;
}

.toast.success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-left: 4px solid #047857;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.toast.success .toast-icon {
    color: white;
    font-size: 18px;
}

.toast.success .toast-message {
    color: white;
    font-weight: 600;
}

.toast.error .toast-icon {
    color: #ef4444;
}

.toast-message {
    font-weight: 500;
    color: #1f2937;
}

/* 模态框 */
/* 模态框样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #64748b;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background-color: #f1f5f9;
    color: #1e293b;
}

.modal-body {
    padding: 24px;
    max-height: 60vh;
    overflow-y: auto;
}

/* 鉴定模态框特殊处理：避免双滚动条 */
.modal-body .identification-modal-content {
    max-height: none;
    overflow: visible;
}

.modal-footer {
    padding: 20px 24px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* 音频详情模态框样式 */
.modal-large {
    max-width: 900px !important;
    width: 95% !important;
}

.detail-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 24px;
}

.detail-tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-tab-btn:hover {
    color: #10b981;
    background-color: #f0fdf4;
}

.detail-tab-btn.active {
    color: #10b981;
    border-bottom-color: #10b981;
}

.detail-tab-content {
    display: none;
}

.detail-tab-content.active {
    display: block;
}

.detail-content {
    /* 移除滚动条，由 modal-body 统一处理 */
    overflow: visible;
}

.detail-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

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

.detail-info-label {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
}

.detail-info-value {
    font-size: 14px;
    color: #1e293b;
    word-break: break-word;
}

.version-timeline {
    position: relative;
    padding-left: 30px;
}

.version-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #e2e8f0;
}

.version-item {
    position: relative;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 16px;
}

.version-item::before {
    content: '';
    position: absolute;
    left: -22px;
    top: 20px;
    width: 12px;
    height: 12px;
    background-color: #10b981;
    border: 3px solid white;
    border-radius: 50%;
}

/* 个人中心样式 */
.profile-container {
    max-width: 1200px;
    margin: 0 auto;
}

.profile-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 20px;
}

.profile-avatar {
    font-size: 64px;
    color: #10b981;
}

.profile-info h3 {
    margin: 0 0 8px 0;
    font-size: 24px;
    color: #1f2937;
}

.profile-info .text-muted {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

.profile-details {
    display: grid;
    gap: 16px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #6b7280;
    font-size: 14px;
}

.detail-value {
    color: #1f2937;
    font-size: 14px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 20px;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
}

.stat-label {
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
}

.tabs {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid #e5e7eb;
    margin: 20px 0;
}

.tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn:hover {
    color: #10b981;
}

.tab-btn.active {
    color: #10b981;
    border-bottom-color: #10b981;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 个人中心专用的标签页样式 */
.profile-tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.profile-tab-btn:hover {
    color: #10b981;
}

.profile-tab-btn.active {
    color: #10b981;
    border-bottom-color: #10b981;
}

.profile-tab-content {
    display: none;
}

.profile-tab-content.active {
    display: block;
}

.project-list-item {
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
    margin-bottom: 12px;
    transition: all 0.2s;
}

.project-list-item:hover {
    background: #f3f4f6;
}

.project-list-item h4 {
    margin: 0 0 8px 0;
    color: #1f2937;
    font-size: 16px;
}

.project-list-item p {
    margin: 0;
    color: #6b7280;
    font-size: 13px;
}

/* 转换格式模态框样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-overlay .modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal-content {
    transform: scale(1);
}

.modal-overlay .modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-overlay .modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a202c;
}

.modal-overlay .modal-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #718096;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.modal-overlay .modal-close:hover {
    color: #2d3748;
    background-color: #f7fafc;
}

.modal-overlay .modal-body {
    padding: 24px;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-overlay .modal-footer {
    padding: 20px 24px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.modal-overlay .file-info {
    margin: 8px 0 0 0;
    padding: 8px 12px;
    background-color: #f7fafc;
    border-radius: 6px;
    font-size: 0.875rem;
    color: #4a5568;
}




/* 响应式设计 */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    /* Responsive unified topbar */
    .unified-topbar {
        padding: 0 16px;
    }
    
    .topbar-brand {
        min-width: auto;
        font-size: 16px;
    }
    
    .topbar-brand span {
        display: none; /* Hide system name on small screens */
    }
    
    .unified-topbar .topbar-right {
        gap: 12px;
    }
    
    .unified-topbar .user-info #userName {
        display: none; /* Hide username on small screens */
    }
    
    .unified-topbar .user-info i.fa-chevron-down {
        display: none; /* Hide chevron on small screens */
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
    }
    
    .filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        justify-content: space-between;
    }
}

/* 工具提示 */
.tooltip {
    position: relative;
    cursor: help;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 1000;
}

.tooltip:hover::after {
    opacity: 1;
}

/* 动画 */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* 上传成功提示区域 */
.upload-success-area {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 12px;
    color: white;
    text-align: center;
    animation: slideIn 0.3s ease-out;
}

.upload-success-area .success-message {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 600;
}

.upload-success-area .success-message i {
    margin-right: 8px;
    font-size: 20px;
}

.upload-success-area .success-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.upload-success-area .btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.upload-success-area .btn-primary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.upload-success-area .btn-primary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.upload-success-area .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.upload-success-area .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}


/* 增强音频播放器样式 */
.enhanced-audio-player {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 600px;
    margin: 0 auto;
}

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.track-info h3 {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 600;
}

.track-subtitle {
    margin: 0;
    font-size: 14px;
    opacity: 0.8;
}

.player-controls {
    display: flex;
    gap: 12px;
}

.control-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 16px;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.player-main {
    padding: 24px;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.time-display {
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    min-width: 40px;
    text-align: center;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    position: relative;
    cursor: pointer;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #059669);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s ease;
}

.progress-handle {
    position: absolute;
    top: 50%;
    left: 0%;
    width: 16px;
    height: 16px;
    background: #10b981;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: left 0.1s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.progress-handle:hover {
    transform: translate(-50%, -50%) scale(1.2);
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.volume-container i {
    color: #64748b;
    font-size: 14px;
}

.volume-bar {
    flex: 1;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    position: relative;
    cursor: pointer;
}

.volume-fill {
    height: 100%;
    background: #10b981;
    border-radius: 2px;
    width: 100%;
    transition: width 0.1s ease;
}

.volume-handle {
    position: absolute;
    top: 50%;
    left: 100%;
    width: 12px;
    height: 12px;
    background: #10b981;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: left 0.1s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.player-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.playback-speed {
    display: flex;
    align-items: center;
    gap: 8px;
}

.playback-speed label {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.playback-speed select {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    color: #374151;
}

.download-section .btn {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 6px;
}

/* 响应式设计 */
@media (max-width: 640px) {
    .enhanced-audio-player {
        margin: 0 16px;
    }
    
    .player-header {
        padding: 16px 20px;
    }
    
    .player-main {
        padding: 20px;
    }
    
    .player-footer {
        padding: 16px 20px;
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .playback-speed {
        justify-content: center;
    }
    
    .download-section {
        text-align: center;
    }
}

/* 批量选择样式 */
.audio-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.table-row.selected {
    background-color: #e3f2fd;
    border-left: 3px solid #2196f3;
}

.selected-count {
    color: #2196f3;
    font-weight: 500;
    font-size: 14px;
}

/* 高级筛选样式 */
.advanced-filters {
    margin-top: 16px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.advanced-filters.hidden {
    display: none;
}

.filter-row {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 120px;
}

.filter-group label {
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
}

.filter-group input,
.filter-group select {
    padding: 6px 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.1);
}

/* 筛选按钮样式 */
.filters .btn {
    margin-left: 8px;
}

.filters .btn-outline {
    background: transparent;
    border: 1px solid #d1d5db;
    color: #64748b;
}

.filters .btn-outline:hover {
    background: #f8fafc;
    border-color: #9ca3af;
}

.filters .btn-info {
    background: #10b981;
    color: white;
    border: none;
}

.filters .btn-info:hover {
    background: #059669;
}

/* 空状态样式 */
.no-data {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px dashed #e2e8f0;
    margin: 20px 0;
}

.no-data-icon {
    font-size: 48px;
    color: #94a3b8;
    margin-bottom: 20px;
}

.no-data-text h3 {
    color: #475569;
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 600;
}

.no-data-text p {
    color: #64748b;
    margin-bottom: 20px;
    font-size: 14px;
}

.no-data-text .btn {
    margin-top: 16px;
}

/* 物种信息列居中样式 - 强制优先级 */
td .species-info {
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

td .species-info .species-name {
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
}

td .species-info .species-name i {
    margin-right: 4px !important;
}

td .species-info .species-name .scientific-name {
    text-align: center !important;
}

td .species-info .common-name {
    text-align: center !important;
    width: 100% !important;
}

/* 美化上传界面样式 */
.upload-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 1400px; /* 增加最大宽度以容纳左右布局 */
    margin: 0 auto;
}

/* 上传和表单区域 - 左右并列 */
.upload-form-section {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
    align-items: stretch; /* 确保两个区域高度一致 */
}

/* 响应式设计 - 小屏幕时恢复上下布局 */
@media (max-width: 1200px) {
    .upload-form-section {
        flex-direction: column; /* 小屏幕时改为单列 */
        gap: 16px;
    }
    
    .upload-container {
        max-width: 1000px; /* 小屏幕时恢复较小宽度 */
    }
    
    .upload-card,
    .form-card {
        min-height: 450px; /* 中等屏幕时适当减少高度 */
    }
    
    .upload-area {
        min-height: 380px;
    }
}

/* 上传区域样式 */
.upload-section {
    flex: 1;
    margin-bottom: 0;
}

.upload-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    color: #1f2937;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    height: 100%; /* 确保卡片占满容器高度 */
    min-height: 550px; /* 设置最小高度 */
    display: flex;
    flex-direction: column;
}

.upload-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.upload-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
    flex-shrink: 0; /* 防止被压缩 */
}

.upload-icon {
    width: 40px;
    height: 40px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #10b981;
}

.upload-title h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
}

.upload-title p {
    margin: 2px 0 0 0;
    color: #6b7280;
    font-size: 13px;
}

.upload-area {
    position: relative;
    border: 2px dashed rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    padding: 60px 20px;
    min-height: 450px;
    flex: 1; /* 填充剩余空间 */
    text-align: center;
    transition: all 0.3s ease;
    background: rgba(16, 185, 129, 0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.upload-area:hover {
    border-color: rgba(16, 185, 129, 0.5);
    background: rgba(16, 185, 129, 0.05);
}

.upload-area.drag-over {
    border-color: rgba(16, 185, 129, 0.8);
    background: rgba(16, 185, 129, 0.1);
    transform: scale(1.02);
}

.upload-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.upload-animation {
    position: relative;
    margin-bottom: 16px;
}

.upload-icon-large {
    font-size: 40px;
    margin-bottom: 12px;
    animation: float 3s ease-in-out infinite;
    color: rgba(255, 255, 255, 0.7);
}

.upload-waves {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
}

.wave {
    position: absolute;
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: 50%;
    animation: ripple 2s infinite;
}

.wave-1 {
    width: 60px;
    height: 60px;
    top: 30px;
    left: 30px;
    animation-delay: 0s;
}

.wave-2 {
    width: 80px;
    height: 80px;
    top: 20px;
    left: 20px;
    animation-delay: 0.5s;
}

.wave-3 {
    width: 100px;
    height: 100px;
    top: 10px;
    left: 10px;
    animation-delay: 1s;
}

.upload-text h4 {
    margin: 0 0 6px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.upload-text p {
    margin: 0 0 16px 0;
    color: #6b7280;
    font-size: 13px;
}

.btn-large {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #1f2937;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: inline-block;
    position: relative;
    text-align: center;
    line-height: 1;
}

/* 强制加号图标对齐 - 使用最高优先级 */
#selectFileBtn i,
.btn-large i,
button.btn.btn-primary.btn-large i {
    font-size: 16px !important;
    color: #10b981 !important;
    margin-right: 8px !important;
    vertical-align: middle !important;
    transform: translateY(3px) !important; /* 让图标往下移动3px，与文字更好对齐 */
    display: inline-block !important; /* 覆盖父级的 inline-flex */
    position: relative !important;
    top: 3px !important; /* 额外的向下偏移，微调对齐 */
}

.btn-large span {
    font-size: 14px;
    font-weight: 600;
    vertical-align: middle;
}

/* 数据可视化页面样式 */
.analytics-container {
    padding: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.stat-card:nth-child(1) .stat-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-card:nth-child(2) .stat-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-card:nth-child(3) .stat-icon {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stat-card:nth-child(4) .stat-icon {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.stat-content h3 {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 4px 0;
}

.stat-content p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
}

.chart-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.chart-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.chart-controls select {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    color: #374151;
}

.chart-container {
    position: relative;
    height: 300px;
}

.chart-container canvas {
    max-height: 300px;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .chart-container {
        height: 250px;
    }
}

.btn-large span {
    font-size: 14px;
    font-weight: 600;
    vertical-align: middle;
}

.btn-large:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(16, 185, 129, 0.95);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 3;
}

.upload-overlay.active {
    opacity: 1;
    visibility: visible;
}

.upload-overlay-content {
    text-align: center;
    color: white;
}

.upload-overlay-content i {
    font-size: 40px;
    margin-bottom: 12px;
    animation: bounce 1s infinite;
    color: white;
}

.upload-overlay-content h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: white;
}

/* 表单区域样式 */
.form-section {
    flex: 1;
    margin-bottom: 0;
}

.form-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%; /* 确保卡片占满容器高度 */
    min-height: 550px; /* 设置最小高度，与upload-card一致 */
    display: flex;
    flex-direction: column;
}

.form-header {
    margin-bottom: 16px;
    text-align: center;
}

.form-header h3 {
    margin: 0 0 6px 0;
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
}

.form-header p {
    margin: 0;
    color: #6b7280;
    font-size: 13px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
    align-items: stretch; /* 确保两列高度一致 */
}

.form-grid .species-group {
    grid-column: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
}

.form-group-right {
    display: flex;
    flex-direction: column;
    gap: 8px; /* 减少间距 */
    grid-column: 2;
    min-width: 250px;
    justify-content: flex-start; /* 改为顶部对齐 */
    height: 100%; /* 占满整个高度 */
}

/* 确保右侧两个表单项的高度与左侧物种选择器匹配 */
.form-group-right .form-group {
    flex: 1; /* 让每个表单项平均分配空间 */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* 响应式布局调整 */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-group-right {
        grid-column: 1;
    }
    
    .species-group {
        grid-column: 1;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    font-weight: 500;
    color: #374151;
    font-size: 13px;
}

.form-group label i {
    color: #10b981;
    width: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 60px;
}

/* 队列区域样式 */
.queue-section {
    margin-bottom: 16px;
}

.queue-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.queue-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.queue-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.queue-actions {
    display: flex;
    gap: 8px;
}

.queue-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.queue-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.queue-item-icon {
    width: 32px;
    height: 32px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #10b981;
    font-size: 14px;
}

.queue-item-info {
    flex: 1;
}

.queue-item-name {
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 2px;
    font-size: 13px;
}

.queue-item-size {
    font-size: 11px;
    color: #6b7280;
}

.queue-item-actions {
    display: flex;
    gap: 8px;
}

/* 进度区域样式 */
.progress-section {
    margin-bottom: 16px;
}

.progress-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.progress-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.progress-stats {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.progress-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.progress-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.progress-item-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.progress-item-icon.uploading {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    animation: pulse 2s infinite;
}

.progress-item-icon.success {
    background: rgba(5, 150, 105, 0.1);
    color: #059669;
}

.progress-item-icon.error {
    background: #ef4444;
}

.progress-item-info {
    flex: 1;
}

.progress-item-name {
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 2px;
    font-size: 13px;
}

.progress-item-status {
    font-size: 11px;
    color: #6b7280;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 6px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.8), rgba(5, 150, 105, 0.8));
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* 动画效果 */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes ripple {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(2.4);
        opacity: 0;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .upload-container {
        padding: 0 16px;
    }
    
    .upload-card {
        padding: 24px;
        min-height: 400px; /* 小屏幕时减少高度 */
    }
    
    .form-card {
        padding: 24px;
        min-height: auto; /* 小屏幕时自适应高度 */
    }
    
    .upload-area {
        min-height: 350px; /* 小屏幕时减少上传区域高度 */
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .queue-header,
    .progress-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .queue-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* 响应式筛选 */
@media (max-width: 768px) {
    .filter-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px;
    }
    
    .filter-options {
        flex-direction: column;
        gap: 12px;
    }
    
    .filter-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .filter-actions .btn {
        flex: 1;
        min-width: 100px;
    }
    
    .filter-row {
        flex-direction: column;
        gap: 8px;
    }
    
    .filter-group {
        min-width: 100%;
    }
    
    .filters .btn {
        margin-left: 0;
        margin-top: 8px;
        width: 100%;
    }
}

.text-error {
    color: #ef4444;
    font-style: italic;
}

/* 编辑表单样式 */
#editAudioForm {
    max-width: 100%;
}

#editAudioForm .form-group {
    margin-bottom: 20px;
}

#editAudioForm label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

#editAudioForm input,
#editAudioForm textarea,
#editAudioForm select {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-color: white;
}

#editAudioForm input:focus,
#editAudioForm textarea:focus,
#editAudioForm select:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

#editAudioForm textarea {
    resize: vertical;
    min-height: 80px;
}

#editAudioForm input[type="datetime-local"] {
    font-family: inherit;
}

/* 为datetime-local输入框添加中文提示样式 */
.datetime-local-wrapper {
    position: relative;
    display: inline-block;
}

.datetime-local-hint {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
    font-size: 12px;
    background: white;
    padding: 0 5px;
    z-index: 1;
    pointer-events: none;
}

/* 物种三级选择器样式 */
.species-selector {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.species-level {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background-color: white;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.species-level:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.species-level:disabled {
    background-color: #f9fafb;
    color: #9ca3af;
    cursor: not-allowed;
}

.species-level:not(:disabled):hover {
    border-color: #6b7280;
}

/* 物种管理筛选器样式 */
.species-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    padding: 16px;
    background-color: #f8fafc;
    border-radius: 8px;
    margin-bottom: 16px;
    border: 1px solid #e2e8f0;
}

.species-filter-bar .filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.species-filter-bar label {
    font-weight: 500;
    color: #374151;
    white-space: nowrap;
}

.species-filter-bar select {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background-color: white;
    min-width: 120px;
}

.species-filter-bar select:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.btn-group {
    display: flex;
    gap: 8px;
}

/* 分类等级徽章样式 */
.rank-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    min-width: 40px;
}

.rank-family {
    background-color: #dbeafe;
    color: #1e40af;
}

.rank-genus {
    background-color: #dcfce7;
    color: #166534;
}

.rank-species {
    background-color: #fef3c7;
    color: #92400e;
}

.rank-unknown {
    background-color: #f3f4f6;
    color: #6b7280;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .species-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .species-filter-bar .filter-group {
        justify-content: space-between;
    }
    
    .btn-group {
        flex-direction: column;
    }
}

#editAudioForm select {
    cursor: pointer;
}

#editAudioForm input::placeholder,
#editAudioForm textarea::placeholder {
    color: #9ca3af;
    font-style: italic;
}

/* 批量操作样式 */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    background-color: #f8fafc;
}

.card-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #1e293b;
}

.selected-count {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

.card-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 0.375rem;
}

.btn-danger {
    background-color: #dc2626;
    color: white;
    border: 1px solid #dc2626;
}

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

.btn-success {
    background-color: #22c55e;
    color: white;
    border: 1px solid #22c55e;
}

.btn-success:hover {
    background-color: #16a34a;
    border-color: #16a34a;
}

.btn-outline {
    background-color: transparent;
    color: #64748b;
    border: 1px solid #d1d5db;
}

.btn-outline:hover {
    background-color: #f9fafb;
    color: #374151;
}

.btn-info {
    background-color: #10b981;
    color: white;
    border: 1px solid #10b981;
}

.btn-info:hover {
    background-color: #059669;
    border-color: #059669;
}

/* 表格选择框样式 */
.audio-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #10b981;
}

.table-row.selected {
    background-color: #f0fdf4;
    border-left: 3px solid #10b981;
}

.table-row.selected:hover {
    background-color: #dbeafe;
}

/* 高级筛选样式 */
.filter-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.advanced-filters {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 1rem;
}

.advanced-filters .filter-row {
    margin-bottom: 0.75rem;
}

.advanced-filters .filter-row:last-child {
    margin-bottom: 0;
}

.advanced-filters input[type="date"],
.advanced-filters input[type="number"] {
    padding: 0.375rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.advanced-filters select {
    padding: 0.375rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    background-color: white;
}

/* 上传成功动画样式 */
.upload-success-animation {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 24px 32px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.3);
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.upload-success-animation.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.success-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.success-icon {
    font-size: 48px;
    animation: bounce 0.6s ease-in-out;
}

.success-text {
    font-size: 20px;
    font-weight: 600;
    margin: 4px 0;
}

.success-filename {
    font-size: 14px;
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 12px;
    border-radius: 8px;
    max-width: 300px;
    word-break: break-all;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* 音频详情信息样式 */
.species-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.species-name {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
}

.scientific-name {
    font-style: italic;
    font-weight: 500;
    color: #059669;
}

.common-name {
    font-size: 0.75rem;
    color: #6b7280;
    margin-left: 16px;
}


.uploader-info {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
}

.text-muted {
    color: #9ca3af;
    font-style: italic;
    font-size: 0.875rem;
}

/* 表格列宽调整 */
.table-container table th:nth-child(2) { width: 25%; } /* 音频文件 */
.table-container table th:nth-child(3) { width: 18%; } /* 物种信息 */
.table-container table th:nth-child(4) { width: 15%; } /* 录制地点 */
.table-container table th:nth-child(5) { width: 12%; } /* 录制时间 */
.table-container table th:nth-child(6) { width: 6%; }  /* 时长 */
.table-container table th:nth-child(7) { width: 7%; }  /* 状态 */
.table-container table th:nth-child(8) { width: 7%; }  /* 发布 */
.table-container table th:nth-child(9) { width: 12%; }  /* 备注 */
.table-container table th:nth-child(10) { width: 9%; } /* 上传时间 */
.table-container table th:nth-child(11) { width: 8%; } /* 操作 */

/* 强制防止文本省略 */
.table-container table td:nth-child(2),
.table-container table td:nth-child(3) {
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    text-overflow: initial !important;
    overflow: visible !important;
}

/* 地点管理表格列宽调整 */
#locationsTable table th:nth-child(1),
#locationsTable table td:nth-child(1) { 
    width: 23.3% !important; /* 地点名称 - 减少三分之一（从35%减少到23.3%） */
    min-width: 100px;
}

#locationsTable table th:nth-child(2),
#locationsTable table td:nth-child(2) { 
    width: 10% !important; /* 国家 */
    min-width: 60px;
}

#locationsTable table th:nth-child(3),
#locationsTable table td:nth-child(3) { 
    width: 10% !important; /* 省份 */
    min-width: 60px;
}

#locationsTable table th:nth-child(4),
#locationsTable table td:nth-child(4) { 
    width: 10% !important; /* 城市 */
    min-width: 60px;
}

#locationsTable table th:nth-child(5),
#locationsTable table td:nth-child(5) { 
    width: 12% !important; /* 坐标 */
    min-width: 80px;
}

#locationsTable table th:nth-child(6),
#locationsTable table td:nth-child(6) { 
    width: 8% !important; /* 海拔 */
    min-width: 50px;
}

#locationsTable table th:nth-child(7),
#locationsTable table td:nth-child(7) { 
    width: 10% !important; /* 创建时间 */
    min-width: 80px;
}

#locationsTable table th:nth-child(8),
#locationsTable table td:nth-child(8) { 
    width: 10% !important; /* 操作 */
    min-width: 80px;
}

/* 地点管理表格操作列按钮横向排列 */
#locationsTable .action-buttons {
    display: flex !important;
    flex-direction: row !important;
    gap: 4px !important;
    justify-content: center !important;
    align-items: center !important;
}

#locationsTable .action-buttons .btn {
    flex: 0 0 auto !important;
}

/* 导航组样式 */
.nav-group {
    margin: 1rem 0;
}

.nav-group-title {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-group-title i {
    margin-right: 0.5rem;
    font-size: 0.75rem;
}

.nav-sub {
    padding-left: 2rem !important;
    font-size: 0.875rem;
}

.nav-sub i {
    font-size: 0.75rem;
}

/* 表单行样式 */
.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.form-row .form-group:last-child {
    margin-bottom: 0;
}

/* 新的表单组样式 */
.form-group {
    margin-bottom: 24px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-weight: 600;
    color: #1f2937;
    font-size: 14px;
}

.form-label i {
    color: #10b981;
    font-size: 16px;
}

.form-label small {
    margin-left: auto;
    font-weight: 400;
    color: #9ca3af;
    font-size: 12px;
}

/* 两列布局 */
.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

/* 物种选择器网格 */
.species-selector-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.species-select-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.select-label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
    text-align: center;
    padding: 0 8px;
}

.species-level {
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: #1f2937;
    background-color: white;
    transition: all 0.2s;
    cursor: pointer;
}

.species-level:hover:not(:disabled) {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.species-level:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.species-level:disabled {
    background-color: #f9fafb;
    color: #9ca3af;
    cursor: not-allowed;
}

/* 统一的表单控件样式 */
.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: #1f2937;
    background-color: white;
    transition: all 0.2s;
}

.form-control:hover {
    border-color: #10b981;
}

.form-control:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-control::placeholder {
    color: #9ca3af;
}

/* 日期时间输入包装器 */
.datetime-input-wrapper {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.datetime-input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    min-width: 320px;
}

.date-inputs,
.time-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.time-inputs {
    flex-shrink: 0;
}

.date-inputs input,
.time-inputs input {
    flex: 1;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
    background-color: white;
    transition: all 0.2s;
}

.date-inputs input {
    max-width: 75px;
    min-width: 60px;
}

/* 年份输入框需要更宽 */
.date-inputs input#recordedYear {
    max-width: 90px;
    min-width: 75px;
}

.time-inputs input {
    max-width: 65px;
    min-width: 55px;
}

.date-inputs input:hover,
.time-inputs input:hover {
    border-color: #10b981;
}

.date-inputs input:focus,
.time-inputs input:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.date-inputs .separator,
.time-inputs .separator {
    color: #9ca3af;
    font-weight: 500;
    user-select: none;
}

.datetime-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.datetime-actions .btn {
    min-width: 40px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.datetime-actions .btn i {
    font-size: 14px;
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .form-row-2 {
        grid-template-columns: 1fr;
    }
    
    .species-selector-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .datetime-input-wrapper {
        flex-direction: column;
    }
    
    .datetime-input-group {
        min-width: 100%;
    }
    
    .date-inputs input,
    .time-inputs input {
        min-width: 50px;
        max-width: none;
        flex: 1;
    }
    
    /* 年份在移动端也需要更多空间 */
    .date-inputs input#recordedYear {
        flex: 1.3;
    }
    
    .datetime-actions {
        flex-direction: row;
        width: 100%;
    }
    
    .datetime-actions .btn {
        flex: 1;
    }
}

/* 物种管理界面样式 */
.species-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.species-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.rank-icon {
    color: #059669;
    font-size: 14px;
}

.species-common {
    color: #6b7280;
    font-size: 13px;
    font-style: italic;
}

.species-hierarchy {
    color: #9ca3af;
    font-size: 12px;
    background-color: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 2px;
}

.rank-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    min-width: 40px;
}

.rank-family { 
    background-color: #dbeafe; 
    color: #1e40af; 
}

.rank-genus { 
    background-color: #dcfce7; 
    color: #166534; 
}

.rank-species { 
    background-color: #fef3c7; 
    color: #92400e; 
}

.rank-unknown { 
    background-color: #f3f4f6; 
    color: #6b7280; 
}

/* 层级物种列表样式 - 黑白灰绿配色方案 */
.hierarchy-row {
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #e5e7eb;
}

.hierarchy-row:hover {
    background-color: #f0fdf4; /* 浅绿色悬停 */
}

.hierarchy-row.level-1 {
    background-color: #ffffff; /* 纯白背景 */
    font-weight: 600;
    border-left: 4px solid #1f2937; /* 黑色左边框 */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.hierarchy-row.level-2 {
    background-color: #f9fafb; /* 浅灰色背景 */
    padding-left: 20px;
    border-left: 4px solid #6b7280; /* 灰色左边框 */
}

.hierarchy-row.level-3 {
    background-color: #ffffff; /* 纯白背景 */
    padding-left: 40px;
    border-left: 4px solid #22c55e; /* 绿色左边框 */
}

.hierarchy-row td {
    padding: 12px 16px;
    vertical-align: middle;
    text-align: center;
}

.hierarchy-row td:first-child {
    font-weight: 600;
}

.rank-icon {
    font-size: 16px;
    margin-right: 8px;
    color: #6b7280;
}

.level-1 .rank-icon {
    color: #1f2937; /* 黑色 - 科 */
}

.level-2 .rank-icon {
    color: #6b7280; /* 灰色 - 属 */
}

.level-3 .rank-icon {
    color: #22c55e; /* 绿色 - 种 */
}

.species-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.species-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.species-info-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 24px; /* 与图标对齐 */
}

.species-name {
    font-weight: 600;
    color: #1f2937;
}

.family-name {
    font-weight: 700;
    color: #1f2937; /* 黑色 - 科名 */
    font-size: 1.05em;
}

.genus-name {
    font-style: italic;
    color: #6b7280; /* 灰色 - 属名 */
    font-weight: 600;
}

.species-name-text {
    font-style: italic;
    color: #22c55e; /* 绿色 - 种名 */
    font-weight: 600;
}

.common-name {
    color: #4b5563; /* 深灰色 - 中文名 */
    font-size: 0.9em;
    font-weight: 500;
}

.rank-badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: 500;
    text-transform: uppercase;
}

.rank-badge.rank-family {
    background-color: #1f2937; /* 黑色背景 */
    color: #ffffff; /* 白色文字 */
}

.rank-badge.rank-genus {
    background-color: #6b7280; /* 灰色背景 */
    color: #ffffff; /* 白色文字 */
}

.rank-badge.rank-species {
    background-color: #22c55e; /* 绿色背景 */
    color: #ffffff; /* 白色文字 */
}

/* 物种管理表格样式 */
#speciesTable table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#speciesTable thead {
    background: linear-gradient(135deg, #1f2937 0%, #22c55e 100%);
    color: white;
}

#speciesTable thead th {
    padding: 16px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 物种管理表格列宽设置 */
#speciesTable table th:nth-child(1),
#speciesTable table td:nth-child(1) {
    width: 15% !important;
    min-width: 80px;
}

#speciesTable table th:nth-child(2),
#speciesTable table td:nth-child(2) {
    width: 30% !important; /* 加宽属列 */
    min-width: 150px;
}

#speciesTable table th:nth-child(3),
#speciesTable table td:nth-child(3) {
    width: 25% !important;
    min-width: 120px;
}

#speciesTable table th:nth-child(4),
#speciesTable table td:nth-child(4) {
    width: 15% !important;
    min-width: 80px;
}

#speciesTable table th:nth-child(5),
#speciesTable table td:nth-child(5) {
    width: 15% !important;
    min-width: 100px;
}

#speciesTable tbody tr:last-child {
    border-bottom: none;
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.action-buttons .btn {
    padding: 6px 10px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.action-buttons .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 权限管理和导入导出页面样式 */
.permission-container,
.import-export-container {
    padding: 20px;
}

/* 权限表格列宽设置 */
#permissionsTable th:nth-child(1),
#permissionsTable td:nth-child(1) {
    width: 200px !important; /* 权限代码列 - 加宽一倍 */
    min-width: 200px !important;
    max-width: 300px !important;
    word-break: break-all; /* 允许长代码换行 */
}

/* 操作日志表格列宽设置 */
#operationLogsTable th:nth-child(1),
#operationLogsTable td:nth-child(1) {
    width: 180px !important; /* 时间列 - 加宽 */
    min-width: 180px !important;
    max-width: 180px !important;
    white-space: nowrap !important; /* 时间不换行 */
}

#operationLogsTable th:nth-child(2),
#operationLogsTable td:nth-child(2) {
    width: 120px !important; /* 用户 */
    min-width: 120px !important;
}

#operationLogsTable th:nth-child(3),
#operationLogsTable td:nth-child(3) {
    width: 80px !important; /* 操作类型 */
    min-width: 80px !important;
}

#operationLogsTable th:nth-child(4),
#operationLogsTable td:nth-child(4) {
    width: auto !important; /* 操作描述 - 自动宽度，占剩余空间 */
    min-width: 200px !important;
}

#operationLogsTable th:nth-child(5),
#operationLogsTable td:nth-child(5) {
    width: 80px !important; /* 结果 */
    min-width: 80px !important;
}

#operationLogsTable th:nth-child(6),
#operationLogsTable td:nth-child(6) {
    width: 130px !important; /* IP地址 */
    min-width: 130px !important;
}

/* 标签页样式 */
.tab-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.tab-nav {
    display: flex;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.tab-btn {
    flex: 1;
    padding: 16px 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-btn:hover {
    background: #e2e8f0;
    color: #374151;
}

.tab-btn.active {
    background: #ffffff;
    color: #1f2937;
    border-bottom: 2px solid #10b981;
}

.tab-btn i {
    font-size: 16px;
}

.tab-content {
    display: none;
    padding: 24px;
}

.tab-content.active {
    display: block;
}

/* 导入导出表单样式 */
.import-section,
.export-section,
.backup-section {
    display: grid;
    gap: 20px;
}

.import-form,
.export-form,
.backup-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.form-group label i {
    color: #10b981;
    font-size: 16px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background-color: #ffffff;
    font-size: 14px;
    color: #374151;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 8px;
}

.form-actions .btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
}

/* 状态徽章样式 */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.success {
    background-color: #d1fae5;
    color: #065f46;
}

.status-badge.error {
    background-color: #fee2e2;
    color: #991b1b;
}

.status-badge.warning {
    background-color: #fef3c7;
    color: #92400e;
}

.status-badge.info {
    background-color: #dbeafe;
    color: #1e40af;
}

/* 徽章样式 */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.badge-secondary {
    background-color: #f3f4f6;
    color: #374151;
}

.badge-info {
    background-color: #dbeafe;
    color: #1e40af;
}

/* 代码样式 */
code {
    background: #f3f4f6;
    color: #374151;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 12px;
}

/* 权限管理页面响应式设计 */
@media (max-width: 768px) {
    .tab-nav {
        flex-direction: column;
    }
    
    .tab-btn {
        justify-content: flex-start;
        border-bottom: 1px solid #e2e8f0;
    }
    
    .tab-btn.active {
        border-bottom: 1px solid #e2e8f0;
        border-left: 3px solid #10b981;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 2px;
    }
    
    .table-container {
        overflow-x: auto;
    }
}

/* ==================== 项目管理样式 ==================== */

/* 统计卡片网格 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-card:nth-child(1) .stat-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-card:nth-child(2) .stat-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-card:nth-child(3) .stat-icon {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stat-card:nth-child(4) .stat-icon {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

/* 项目名称样式 */
.project-name {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.project-name strong {
    color: #1f2937;
    font-weight: 600;
}

/* User info styles moved to topbar section */

/* 进度条样式 */
.progress-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 100px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background-color: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #059669);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
    min-width: 35px;
}

/* 操作按钮组 */
.action-buttons {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.action-buttons .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    min-width: auto;
}

/* 项目详情样式 */
.project-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detail-section {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1rem;
}

.detail-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.detail-section h4 {
    color: #1f2937;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.detail-section p {
    margin: 0.5rem 0;
    color: #374151;
}

.detail-section strong {
    color: #1f2937;
    font-weight: 600;
}

/* 音频列表样式 */
.audio-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.audio-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background-color: #f9fafb;
    border-radius: 4px;
    font-size: 0.875rem;
}

.audio-item i {
    color: #6b7280;
}

/* 协作者列表样式 */
.collaborator-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.collaborator-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background-color: #f9fafb;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.collaborator-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.collaborator-info i {
    color: #6b7280;
}

.collaborator-actions {
    display: flex;
    gap: 0.25rem;
}

/* 协作者管理样式 */
.collaborator-management {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.section {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    background-color: #f9fafb;
}

.section h4 {
    color: #1f2937;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

/* 鉴定结果样式 */
.identifications-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.identification-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    background-color: white;
}

.identification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.identification-header h5 {
    color: #1f2937;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.identification-content {
    margin-bottom: 0.75rem;
}

.identification-content p {
    margin: 0.25rem 0;
    color: #374151;
    font-size: 0.875rem;
}

.identification-content strong {
    color: #1f2937;
    font-weight: 600;
}

.identification-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

/* 徽章样式增强 */
.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 0.375rem;
    text-align: center;
    white-space: nowrap;
}

.badge-secondary {
    background-color: #f1f5f9;
    color: #64748b;
}

.badge-success {
    background-color: #dcfce7;
    color: #166534;
}

.badge-warning {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-danger {
    background-color: #fee2e2;
    color: #dc2626;
}

.badge-info {
    background-color: #dbeafe;
    color: #1e40af;
}

.badge-primary {
    background-color: #dbeafe;
    color: #1e40af;
}

/* 项目管理响应式设计 */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .stat-card {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .collaborator-item {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .collaborator-actions {
        justify-content: center;
    }
    
    .identification-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .identification-actions {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .progress-container {
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
    }
    
    .progress-text {
        text-align: center;
    }
}

/* 项目详情页面样式 */
.project-detail-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.detail-card h3 {
    margin-bottom: 16px;
    color: #1f2937;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 12px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 14px;
}

.breadcrumb a {
    color: #10b981;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #059669;
}

.breadcrumb span {
    color: #9ca3af;
}

.detail-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.detail-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-info-label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.detail-info-value {
    font-size: 15px;
    color: #1f2937;
    font-weight: 400;
}

.detail-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
}

.detail-list-item:hover {
    background: #f3f4f6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.detail-list-item i {
    color: #10b981;
    font-size: 16px;
}

.detail-list-item-content {
    flex: 1;
}

.detail-list-item-name {
    font-weight: 500;
    color: #1f2937;
}

.detail-list-item-meta {
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
}

.detail-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.detail-empty {
    text-align: center;
    padding: 40px;
    color: #9ca3af;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .detail-info-grid {
        grid-template-columns: 1fr;
    }
    
    .breadcrumb {
        font-size: 12px;
    }
}

/* 鉴定功能样式 */
.detail-list-item-actions {
    display: flex;
    gap: 4px;
    align-items: center;
}

.detail-list-item-actions .btn {
    min-width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 13px;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.detail-list-item-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.detail-list-item-actions .btn-primary {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.detail-list-item-actions .btn-primary:hover {
    background: #2563eb;
    border-color: #2563eb;
}

.detail-list-item-actions .btn-info {
    background: #06b6d4;
    color: white;
    border-color: #06b6d4;
}

.detail-list-item-actions .btn-info:hover {
    background: #0891b2;
    border-color: #0891b2;
}

.detail-list-item-actions .btn-success {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

.detail-list-item-actions .btn-success:hover {
    background: #059669;
    border-color: #059669;
}

.detail-list-item-actions .btn-danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.detail-list-item-actions .btn-danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.detail-list-item-actions .btn i {
    margin: 0;
    font-size: 14px;
}

.detail-list-item-status {
    margin-top: 4px;
}

.identification-modal-content {
    /* 移除滚动条，让modal-body处理滚动 */
}

.audio-info-section {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.audio-info-section h4 {
    margin-bottom: 12px;
    color: #1f2937;
    font-size: 16px;
    font-weight: 600;
}

.audio-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.audio-info-grid > div {
    padding: 8px;
    background: #f9fafb;
    border-radius: 6px;
    font-size: 14px;
}

.identification-form-section {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.identification-form-section h4 {
    margin-bottom: 16px;
    color: #1f2937;
    font-size: 16px;
    font-weight: 600;
}

.species-selector-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

.species-select-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.species-select-wrapper .select-label {
    font-size: 13px;
    font-weight: 500;
    color: #4b5563;
}

.species-select-wrapper .species-level {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: white;
}

.species-select-wrapper .species-level:disabled {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}

.identification-history {
    margin-top: 24px;
}

.identification-history h4 {
    margin-bottom: 16px;
    color: #1f2937;
    font-size: 16px;
    font-weight: 600;
}

.identification-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.identification-item {
    padding: 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s;
}

.identification-item.own {
    background: #eff6ff;
    border-color: #3b82f6;
}

.identification-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.identification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}

.identification-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.identification-user {
    font-weight: 600;
    color: #1f2937;
}

.identification-time-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #6b7280;
}

.identification-time {
    display: flex;
    align-items: center;
    gap: 4px;
}

.identification-updated {
    color: #3b82f6;
    font-size: 11px;
}

.identification-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.identification-species,
.identification-notes,
.identification-confidence,
.identification-snr {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    color: #4b5563;
}

.identification-species i,
.identification-notes i,
.identification-confidence i,
.identification-snr i {
    color: #6b7280;
    margin-top: 2px;
}

.identification-actions {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.identifications-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.identifications-summary {
    padding: 12px 16px;
    background: #eff6ff;
    border: 1px solid #3b82f6;
    border-radius: 8px;
    color: #1e40af;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.audio-identifications-group {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
}

.audio-identifications-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
}

.audio-identifications-header i {
    color: #3b82f6;
}

/* 响应式：鉴定功能 */
@media (max-width: 768px) {
    .species-selector-grid {
        grid-template-columns: 1fr;
    }
    
    .identification-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .audio-info-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-list-item-actions {
        flex-wrap: wrap;
    }
}
