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

/* 移除所有链接的下划线 */
a {
    text-decoration: none;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8fafc;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* 主容器布局 */
.container {
    display: flex;
    min-height: 100vh;
}

/* ===== 左侧导航栏样式 ===== */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    box-shadow: 3px 0 15px rgba(0, 0, 0, 0.08);
    z-index: 100;
    transition: all 0.3s ease;
}

.sidebar-header {
      padding: 30px 25px 25px;
      border-bottom: 1px solid #e2e8f0;
      background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  }

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

.logo-image {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.logo-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.logo {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    display: inline;
    letter-spacing: 0.5px;
    word-break: break-word;
    line-height: 1.4;
    max-width: 140px;
}

/* 导航菜单 */
.nav-menu {
    flex: 1;
    padding: 25px 0;
    overflow-y: auto;
}

.nav-menu ul {
    list-style: none;
}

.nav-menu li {
    margin: 3px 18px;
}

.nav-menu a {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    color: #64748b;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    font-size: 15px;
    position: relative;
    overflow: hidden;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    border-radius: 0 4px 4px 0;
}

.nav-menu a i {
    margin-right: 14px;
    width: 22px;
    text-align: center;
    font-size: 17px;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(5, 150, 105, 0.08) 100%);
    color: #10b981;
    transform: translateX(5px);
}

.nav-menu a:hover::before {
    transform: scaleY(1);
}

.nav-menu a:hover i {
    color: #10b981;
    transform: scale(1.1);
}

.nav-menu li.active a {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.nav-menu li.active a::before {
    transform: scaleY(1);
    background: #ffffff;
}

.nav-menu li.active a i {
    color: #ffffff;
}

.nav-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #e2e8f0 50%, transparent 100%);
    margin: 15px 18px;
}

.sidebar-footer {
    padding: 25px;
    border-top: 1px solid #e2e8f0;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.03) 0%, rgba(5, 150, 105, 0.03) 100%);
    text-align: center;
}

.sidebar-footer p {
    margin: 8px 0;
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
    line-height: 1.5;
}

.sidebar-footer p:first-child {
    color: #1e293b;
    font-weight: 600;
    font-size: 14px;
}

.sidebar-footer p:last-child {
    color: #94a3b8;
    font-size: 12px;
}

.qr-code-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.qr-title {
    font-size: 14px;
    font-weight: 600;
    color: #10b981;
    margin-bottom: 10px;
}

.qr-code-image {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.qr-code-placeholder {
    width: 120px;
    height: 120px;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    background-color: #f8fafc;
}

.qr-code-placeholder i {
    font-size: 40px;
    color: #94a3b8;
}

/* ===== 主内容区样式 ===== */
.main-content {
    flex: 1;
    padding: 25px 30px;
    overflow-y: auto;
}

/* ===== PC 端导航栏收起按钮 ===== */
.sidebar-pc-toggle {
    position: fixed;
    top: 50%;
    left: 280px;
    transform: translateY(-50%);
    background: #16a34a;
    color: #fff;
    border: none;
    width: 18px;
    height: 48px;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    z-index: 300;
    transition: left 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    padding: 0;
    box-shadow: 2px 0 8px rgba(0,0,0,0.18);
}
.sidebar-pc-toggle:hover {
    background: #15803d;
    width: 22px;
}
/* 导航栏收起状态 */
body.sidebar-collapsed .sidebar {
    width: 0 !important;
    min-width: 0 !important;
    overflow: hidden;
    padding: 0;
}
body.sidebar-collapsed .sidebar-pc-toggle {
    left: 0;
}
/* 移动端不显示收起按钮 */
@media (max-width: 768px) {
    .sidebar-pc-toggle { display: none; }
}

/* 统计卡片样式 */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 35px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

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

.stat-info h3 {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
}

/* 统计卡片颜色 */
.total .stat-icon {
    background-color: #3b82f6; /* 蓝色 */
}

.total .stat-number {
    color: #3b82f6;
}

.responded .stat-icon {
    background-color: #10b981; /* 绿色 */
}

.responded .stat-number {
    color: #10b981;
}

.closed .stat-icon {
    background-color: #ef4444; /* 红色 */
}

.closed .stat-number {
    color: #ef4444;
}

.pending .stat-icon {
    background-color: #f59e0b; /* 橙色 */
}

.pending .stat-number {
    color: #f59e0b;
}

/* 表格容器 */
.ticket-table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

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

.table-header h3 {
    font-size: 20px;
    color: #1e293b;
    font-weight: 600;
}

.table-actions {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-primary {
    background-color: #3b82f6;
    color: white;
}

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

.btn-secondary {
    background-color: #f1f5f9;
    color: #475569;
}

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

.btn-danger {
    background-color: #ef4444;
    color: white;
}

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

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

/* 表格样式 */
.ticket-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.ticket-table thead {
    background-color: #f8fafc;
}

.ticket-table th {
    padding: 16px 25px;
    text-align: left;
    font-weight: 600;
    color: #64748b;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #10b981;
}

.ticket-table td {
    padding: 16px 25px;
    border-bottom: 1px solid #e2e8f0;
    color: #475569;
    transition: all 0.3s ease;
}

.ticket-table tbody tr {
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.ticket-table tbody tr:hover {
    background-color: #f8fafc;
    border-left-color: #10b981;
    transform: translateX(5px);
}

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

/* 状态标签 */
.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

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

.status-opened {
    background-color: #dcfce7;
    color: #16a34a;
}

.status-pending {
    background-color: #fef3c7;
    color: #d97706;
}

/* 优先级标签 */
.priority-low {
    color: #10b981;
    font-weight: 600;
}

.priority-medium {
    color: #f59e0b;
    font-weight: 600;
}

.priority-high {
    color: #ef4444;
    font-weight: 600;
}

/* 操作按钮 */
.action-btn {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s;
    margin: 0 2px;
}

.action-btn:hover {
    background-color: #f1f5f9;
    color: #3b82f6;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px;
    gap: 8px;
}

.pagination-btn {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #475569;
    transition: all 0.3s;
}

.pagination-btn:hover {
    background-color: #f1f5f9;
    border-color: #94a3b8;
}

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

.page-number {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #475569;
    font-weight: 500;
    transition: all 0.3s;
}

.page-number:hover {
    background-color: #f1f5f9;
}

.page-number.active {
    background-color: #3b82f6;
    color: white;
}

.page-ellipsis {
    padding: 0 5px;
    color: #94a3b8;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        max-height: 100vh;
        overflow-y: auto;
    }
    
    .sidebar.active {
        display: flex;
    }
    
    .sidebar-header {
        padding: 20px 20px 15px;
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    }
    
    .logo-image {
        width: 32px;
        height: 32px;
    }
    
    .logo {
        font-size: 16px;
        margin-bottom: 0;
        max-width: 120px;
    }
    
    .nav-menu {
        padding: 15px 0;
    }
    
    .nav-menu li {
        margin: 2px 15px;
    }
    
    .nav-menu a {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .nav-menu a i {
        margin-right: 12px;
        width: 20px;
        font-size: 15px;
    }
    
    .language-toggle-wrapper {
        padding: 15px 20px;
    }
    
    .lang-label {
        font-size: 13px;
        padding: 5px 10px;
    }
    
    .sidebar-footer {
        padding: 20px;
    }
    
    .sidebar-footer p {
        font-size: 12px;
    }
    
    .sidebar-footer p:first-child {
        font-size: 13px;
    }
    
    .qr-code-section {
        margin-top: 12px;
        padding-top: 12px;
    }
    
    .qr-title {
        font-size: 13px;
    }
    
    .qr-code-image,
    .qr-code-placeholder {
        width: 100px;
        height: 100px;
    }
    
    .qr-code-placeholder i {
        font-size: 32px;
    }
    
    .main-content {
        padding: 15px;
        margin-top: 0;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .table-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .ticket-table {
        display: block;
        overflow-x: auto;
    }
    
    /* 汉堡菜单按钮 */
    .mobile-menu-toggle {
        display: flex !important;
        position: fixed;
        top: 15px;
        right: 15px;
        z-index: 1001;
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
        color: white;
        border: none;
        border-radius: 10px;
        padding: 12px 15px;
        cursor: pointer;
        box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
        transition: all 0.3s ease;
    }
    
    .mobile-menu-toggle:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
    }
    
    .mobile-menu-toggle i {
        font-size: 20px;
    }
}

/* ===== 登录/注册页面样式 ===== */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f8fafc;
}

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

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

.login-header h2 {
    font-size: 28px;
    color: #1e293b;
    font-weight: 700;
    margin-bottom: 10px;
}

.login-header p {
    color: #64748b;
    font-size: 16px;
}

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

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

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btn-block {
    width: 100%;
    margin-top: 20px;
}

.login-footer {
    text-align: center;
    margin-top: 20px;
    color: #64748b;
}

.login-footer a {
    color: #3b82f6;
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: none;
}

/* ===== 表单样式 ===== */
.create-form-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 30px;
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

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

.form-section h3 {
    font-size: 19px;
    color: #1e293b;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.export-section {
    max-width: 800px;
    margin-right: auto;
    margin-left: 0;
    width: 100%;
}

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

.required {
    color: #ef4444;
}

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

/* 表单输入框样式 */
.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

/* 表单选择框样式 */
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url('data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2716%27 height=%2716%27 viewBox=%270 0 16 16%27%3E%3Cpath fill=%27%2364748b%27 d=%27M8 11L3 6h10z%27/%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 16px center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* 时间输入框样式 */
input[type="datetime-local"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

input[type="datetime-local"]:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    filter: invert(0.5) sepia(1) saturate(5) hue-rotate(90deg);
    cursor: pointer;
}

input[type="datetime-local"]::-moz-calendar-picker-indicator {
    filter: invert(0.5) sepia(1) saturate(5) hue-rotate(90deg);
    cursor: pointer;
}

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

/* 生境、基物、习性、价值字段样式 */
.habitat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.habitat-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.habitat-field label {
    font-weight: 500;
    color: #475569;
}

/* 上传相关样式 */
.upload-success {
    display: none;
    margin-top: 10px;
    padding: 10px;
    background-color: #d4edda;
    color: #155724;
    border-radius: 4px;
    border: 1px solid #c3e6cb;
    align-items: center;
    gap: 8px;
}

.thumbnail-container {
    display: none;
    margin-top: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    flex-wrap: wrap;
    gap: 10px;
}

.thumbnail-item {
    position: relative;
    display: inline-block;
    margin: 5px;
}

.thumbnail-item img {
    max-width: 100px;
    max-height: 100px;
    border-radius: 4px;
}

.thumbnail-item .remove-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    cursor: pointer;
}

.exif-status {
    display: none;
    margin-top: 10px;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid;
    align-items: center;
    gap: 8px;
}

.exif-status.success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.exif-status.error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.exif-status.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}

/* 经纬度和海拔字段样式 */
.gps-altitude-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.gps-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gps-field label {
    font-weight: 500;
    color: #475569;
}

.altitude-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.altitude-input-wrap {
    display: flex;
    gap: 10px;
}

.altitude-input-wrap input {
    flex: 1;
}

.query-altitude-btn {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background-color: #f8fafc;
    color: #475569;
    cursor: pointer;
    transition: all 0.3s ease;
}

.query-altitude-btn:hover {
    background-color: #e2e8f0;
    border-color: #cbd5e1;
}

/* 描述信息字段样式 */
.description-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.desc-label {
    font-weight: 500;
    color: #475569;
}

.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
    min-height: 100px;
    transition: all 0.3s ease;
    font-family: Arial, sans-serif;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* 表单提示信息样式 */
.form-hint {
    font-size: 12px;
    color: #64748b;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.form-hint i {
    font-size: 12px;
}

/* 文件上传按钮样式 */
.file-upload-btn {
    display: inline-block;
    padding: 15px 30px;
    background: #f8fafc;
    color: #10b981;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    border: 2px solid #10b981;
}

.file-upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.2);
    background: #f1f5f9;
    border-color: #059669;
}

/* 文件输入框样式（隐藏但保持功能） */
input[type="file"] {
    transition: all 0.3s ease;
}

/* 当文件被选择时的效果 */
input[type="file"]:focus + .file-upload-btn,
input[type="file"]:valid + .file-upload-btn {
    border-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
    background: #f0fdf4;
    color: #10b981;
}

/* 上传成功时的按钮效果 */
.upload-success + .file-upload-btn {
    border-color: #10b981;
    background: #f0fdf4;
    color: #10b981;
}

.file-upload-btn i {
    font-size: 18px;
}

/* 上传成功提示样式 */
.upload-success {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background-color: #dcfce7;
    color: #16a34a;
    border-radius: 8px;
    margin-top: 15px;
    border-left: 4px solid #16a34a;
}

.upload-success i {
    font-size: 18px;
}

/* EXIF状态样式 */
.exif-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 10px;
    border-left: 4px solid;
}

.exif-status.success {
    background-color: #dcfce7;
    color: #16a34a;
    border-left-color: #16a34a;
}

.exif-status.error {
    background-color: #fee2e2;
    color: #dc2626;
    border-left-color: #dc2626;
}

.exif-status.info {
    background-color: #dbeafe;
    color: #1d4ed8;
    border-left-color: #1d4ed8;
}

.exif-status i {
    font-size: 18px;
}

/* 缩略图预览样式 */
.thumbnail-container {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.thumbnail-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.thumbnail-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.thumbnail-item img {
    width: 200px;
    height: 150px;
    object-fit: cover;
}

.remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.remove-btn:hover {
    background-color: #ef4444;
    color: white;
    transform: scale(1.1);
}

/* 调试日志样式 */
.debug-log {
    margin-top: 15px;
    padding: 15px;
    background-color: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.log-entry {
    margin-bottom: 8px;
    font-size: 12px;
    line-height: 1.4;
}

.log-time {
    color: #94a3b8;
    font-weight: 500;
}

.log-info {
    color: #3b82f6;
}

.log-success {
    color: #10b981;
}

.log-error {
    color: #ef4444;
}

/* ===== 查看页面样式 ===== */
.view-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* 标本头部样式 */
.specimen-header {
    padding: 30px;
    border-bottom: 1px solid #e2e8f0;
    background-color: #f8fafc;
}

.header-content {
    text-align: center;
    margin-bottom: 20px;
}

.specimen-title {
    font-size: 24px; /* 小二号字体 */
    color: #1e293b;
    font-weight: 600;
    margin-bottom: 10px;
    background: none; /* 去掉紫色渐变 */
    text-align: center;
}

.specimen-name {
    font-size: 20px;
    color: #3b82f6;
    font-weight: 600;
    margin-bottom: 5px;
    text-align: center;
}

.specimen-latin {
    font-size: 16px;
    font-style: italic;
    color: #64748b;
    margin: 0 0 20px 0;
    text-align: center;
}

.header-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 14px;
}

.view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid #e2e8f0;
    background-color: #f8fafc;
}

.view-header h3 {
    font-size: 24px;
    color: #1e293b;
    font-weight: 600;
}

.view-actions {
    display: flex;
    gap: 10px;
}

.view-content {
    padding: 30px;
}

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

.view-info h4 {
    font-size: 16px;
    color: #1e293b;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 500;
    color: #64748b;
    border-bottom: 1px solid #e2e8f0;
    width: 30%;
}

.info-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e2e8f0;
    color: #475569;
}

.view-section {
    margin-bottom: 30px;
}

.view-section h4 {
    font-size: 16px;
    color: #1e293b;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ===== 图片画廊样式 ===== */
.image-gallery {
    margin-bottom: 15px;
}

.section-title {
    font-size: 18px;
    color: #1e293b;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.image-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
}

.image-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.image-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-card:hover img {
    transform: scale(1.05);
}

.no-images {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
    background-color: #f8fafc;
    border-radius: 8px;
}

.no-images i {
    font-size: 48px;
    margin-bottom: 15px;
}

.no-images p {
    font-size: 16px;
    margin: 0;
}

/* ===== 地图容器样式 ===== */
.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ===== 消息提示样式 ===== */
.messages {
    margin-bottom: 20px;
}

.alert {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 10px;
    font-weight: 500;
}

.alert-success {
    background-color: #dcfce7;
    color: #16a34a;
    border-left: 4px solid #16a34a;
}

.alert-danger {
    background-color: #fee2e2;
    color: #dc2626;
    border-left: 4px solid #dc2626;
}

.alert-warning {
    background-color: #fef3c7;
    color: #d97706;
    border-left: 4px solid #d97706;
}

.alert-info {
    background-color: #dbeafe;
    color: #1d4ed8;
    border-left: 4px solid #1d4ed8;
}

/* ===== 数据分析页面样式 ===== */
.analysis-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    padding: 25px;
}

.chart-container {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f8fafc;
    border-radius: 8px;
}

.chart-title {
    font-size: 16px;
    color: #1e293b;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

/* ===== 管理员页面样式 ===== */
.admin-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.admin-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 25px;
}

.admin-card h3 {
    font-size: 18px;
    color: #1e293b;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-card h3 i {
    color: #10b981;
}

.admin-card ul {
    list-style: none;
}

.admin-card li {
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-card li:last-child {
    border-bottom: none;
}

/* 管理员表单样式 */
.logo-upload-group,
.qr-upload-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.current-logo,
.current-qr {
    font-size: 12px;
    color: #64748b;
    font-style: italic;
}

/* ===== 响应式设计 ===== */
@media (max-width: 1200px) {
    .view-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .view-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .view-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .image-gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

/* ===== 语言切换样式 ===== */
.language-switch {
    position: relative;
}

.lang-options {
    margin-left: 8px;
}

.lang-divider {
    margin: 0 4px;
    color: #cbd5e1;
}

.lang-link {
    text-decoration: none;
    color: #64748b;
    transition: color 0.3s;
}

.lang-link:hover {
    color: #3b82f6;
}

.lang-link.active {
    color: #3b82f6;
    font-weight: 600;
}

.nav-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 10px 15px;
}

/* 移动端菜单按钮 - 放到右侧 */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 1001;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    backdrop-filter: blur(3px);
}

.sidebar-overlay.active {
    display: block;
}

/* 自动完成下拉列表样式 */
.autocomplete-list {
    position: absolute;
    border: 1px solid #d4d4d4;
    border-top: none;
    background-color: white;
    z-index: 9999;
    max-height: 200px;
    overflow-y: auto;
}

/* 导入按钮样式 */
.import-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.import-buttons .btn {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.import-buttons .btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.import-buttons .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.import-buttons .btn-secondary {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    color: #475569;
}

.import-buttons .btn-secondary:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

/* 导入进度样式 */
.progress-container {
    margin: 20px 0;
}

.progress-bar {
    height: 20px;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    border-radius: 10px;
    text-align: center;
    line-height: 20px;
    color: white;
    font-weight: 600;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    margin-top: 10px;
    font-weight: 500;
    color: #475569;
}

/* 导入结果样式 */
.result-section {
    margin-top: 20px;
}

.error-details {
    margin-top: 15px;
    padding: 15px;
    background: #fef2f2;
    border-radius: 8px;
    border-left: 4px solid #ef4444;
}

.error-list {
    margin-top: 10px;
}

.error-item {
    padding: 8px 0;
    border-bottom: 1px solid #fee2e2;
    font-size: 14px;
    color: #b91c1c;
}

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

/* 快递信息页面样式 */
.express-query-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin: 0;
    text-align: left;
}

.top-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.search-section {
    margin-bottom: 30px;
}

.address-cell {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.search-box {
    display: flex;
    gap: 10px;
    max-width: 600px;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-btn {
    padding: 12px 24px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.search-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.express-list {
    margin-top: 20px;
}

.express-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.express-table th {
    background: #f8fafc;
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    color: #64748b;
    font-size: 14px;
    border-bottom: 2px solid #e2e8f0;
}

.express-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #e2e8f0;
    color: #475569;
    font-size: 14px;
}

.express-table tbody tr:hover {
    background: #f8fafc;
}

.express-actions {
    display: flex;
    gap: 10px;
}

.express-actions .action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.express-actions .action-btn.edit {
    background: #3b82f6;
    color: white;
}

.express-actions .action-btn.edit:hover {
    background: #2563eb;
}

.express-actions .action-btn.track {
    background: #10b981;
    color: white;
}

.express-actions .action-btn.track:hover {
    background: #059669;
}

.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #64748b;
}

.loading i {
    margin-right: 10px;
    font-size: 20px;
}

.no-data {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    color: #94a3b8;
}

.no-data i {
    font-size: 48px;
    margin-bottom: 15px;
}

.no-data p {
    font-size: 16px;
}

/* 快递卡片样式 */
.express-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.express-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.express-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    border-color: #10b981;
}

.express-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-bottom: 1px solid #e2e8f0;
}

.express-card-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
}

.express-card-body {
    padding: 20px;
}

.express-card-row {
    display: flex;
    margin-bottom: 12px;
    align-items: flex-start;
}

.express-card-label {
    width: 100px;
    font-weight: 600;
    color: #64748b;
    flex-shrink: 0;
}

.express-card-row span:last-child {
    flex: 1;
    color: #475569;
    word-break: break-word;
}

.express-card-footer {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    justify-content: flex-end;
}

/* 状态标签样式 */
.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-delivered {
    background-color: #dcfce7;
    color: #16a34a;
}

.status-pending {
    background-color: #fef3c7;
    color: #d97706;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .express-cards {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .express-query-container {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .express-cards {
        grid-template-columns: 1fr;
    }
    
    .express-card-row {
        flex-direction: column;
        gap: 4px;
    }
    
    .express-card-label {
        width: 100%;
    }
}

/* 后台管理页面样式 */
.admin-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin: 0;
}

.admin-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.admin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.admin-card h3 {
    font-size: 18px;
    color: #1e293b;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-card h3 i {
    color: #10b981;
    font-size: 20px;
}

/* 功能卡片样式 */
.function-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.function-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.function-card:hover {
    background: white;
    border-color: #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
    transform: translateY(-3px);
}

.function-card.danger-card:hover {
    border-color: #ef4444;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.1);
}

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

.function-icon.danger-icon {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.function-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 5px;
}

.function-content p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.function-content p.danger-text {
    color: #ef4444;
    font-weight: 500;
}

/* 设置表单样式 */
.settings-form {
    display: grid;
    gap: 20px;
}

.settings-left {
    display: grid;
    gap: 15px;
}

.settings-upload-section {
    display: grid;
    gap: 15px;
    margin-top: 10px;
}

.upload-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
}

.upload-label {
    flex: 1;
}

.upload-label label {
    font-weight: 500;
    color: #475569;
    display: block;
    margin-bottom: 5px;
}

.current-path {
    font-size: 12px;
    color: #94a3b8;
    margin: 0;
}

.upload-input input[type="file"] {
    border: 2px dashed #cbd5e1;
    padding: 10px;
    border-radius: 6px;
    background: white;
    transition: all 0.3s ease;
}

.upload-input input[type="file"]:hover {
    border-color: #10b981;
    background: #f0fdf4;
}

/* 开关按钮样式 */
.settings-express {
    margin-top: 10px;
}

.express-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* 标本详细页样式 */
.view-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
}

/* 标本头部文本样式 */
.specimen-header-text {
    text-align: center;
    margin-bottom: 5px;
}

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

.view-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.media-section {
    margin: 0;
}

.info-section {
    margin: 0;
}

.image-container {
    padding: 2px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    margin-bottom: 15px;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    height: 180px;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
    display: block;
    margin: 0;
    padding: 0;
    background-color: #fff;
}

.no-images {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: #999;
    text-align: center;
}

.no-images i {
    font-size: 48px;
    color: #ccc;
}

.no-images p {
    margin-top: 10px;
    font-size: 16px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.info-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #e0e0e0;
    text-align: left;
}

.card-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    color: #343a40;
}

.card-header i {
    color: #007bff;
    font-size: 18px;
    vertical-align: middle;
}

.card-body {
    padding: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    width: 48%;
    box-sizing: border-box;
}

.info-item-full {
    width: 100%;
}

/* 确保两列布局正确显示 */
.info-row .info-item {
    width: calc(50% - 10px);
}

.info-row .info-item.info-item-full {
    width: 100%;
}

.info-label {
    font-weight: 600;
    min-width: 90px;
    margin-right: 15px;
    text-align: left;
    color: #495057;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.info-value {
    flex: 1;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    color: #212529;
    font-size: 14px;
    line-height: 1.4;
    display: flex;
    align-items: center;
}

.info-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 2px;
    align-items: center;
}

.description-card {
    grid-column: 1 / -1;
}

.description-content {
    padding: 20px;
    line-height: 1.6;
    color: #333;
    text-align: left;
    min-height: auto;
    display: block;
    margin: 0;
}

.description-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: flex-start;
}

.description-item {
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    padding: 8px 12px;
    border-radius: 16px;
    font-size: 14px;
}

.description-label {
    font-weight: 600;
    color: #495057;
    margin-right: 4px;
}

.description-value {
    color: #6c757d;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.btn {
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn i {
    font-size: 14px;
    vertical-align: middle;
}

.btn-secondary {
    background-color: #f8f9fa;
    color: #343a40;
    border: 1px solid #dee2e6;
}

.btn-primary {
    background-color: #007bff;
    color: white;
    border: 1px solid #007bff;
}

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

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

.btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.inline-form {
    display: inline;
}

.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover {
    color: #bbb;
    text-decoration: none;
}

.image-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 18px;
    background-color: rgba(0,0,0,0.5);
    padding: 5px 15px;
    border-radius: 20px;
}

.prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 24px;
    border-radius: 50%;
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.prev-btn:hover, .next-btn:hover {
    background-color: rgba(0,0,0,0.8);
}

/* 响应式设计 */
@media (max-width: 768px) {
    h3 {
        font-size: 1em;
        padding: 0 10px;
    }
    
    .image-container {
        padding: 10px;
    }
    
    .gallery-item img {
        max-width: 120px;
        max-height: 120px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .info-row {
        flex-direction: column;
        gap: 8px;
    }
    
    .info-item {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .info-label {
        min-width: auto;
        margin-right: 0;
        font-size: 14px;
    }
    
    .info-value {
        font-size: 14px;
    }
    
    .info-card {
        margin-bottom: 15px;
    }
    
    .card-body {
        padding: 15px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        padding: 10px 16px;
    }
    
    .view-container {
        padding: 10px;
    }
    
    .modal-content {
        max-width: 95%;
        max-height: 80%;
    }
    
    .prev-btn, .next-btn {
        font-size: 18px;
        padding: 8px;
    }
    
    .close-modal {
        font-size: 30px;
        top: 10px;
        right: 20px;
    }
    
    .image-counter {
        font-size: 14px;
        padding: 4px 12px;
    }
}

.slider {
    background-color: #e2e8f0;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #10b981;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.express-label {
    flex: 1;
    margin-left: 20px;
}

.express-label strong {
    color: #475569;
    display: block;
    margin-bottom: 5px;
}

.express-label p {
    font-size: 14px;
    color: #94a3b8;
    margin: 0;
}

/* 最近标本列表 */
.recent-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-list li {
    padding: 12px 15px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
}

.recent-list li:hover {
    background-color: #f8fafc;
}

.recent-list li:last-child {
    border-bottom: none;
}

.recent-list li.no-data {
    text-align: center;
    color: #94a3b8;
    padding: 30px;
}

.specimen-code {
    font-weight: 600;
    color: #3b82f6;
}

.specimen-name {
    flex: 1;
    margin: 0 15px;
    color: #475569;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.specimen-date {
    font-size: 14px;
    color: #94a3b8;
}

/* 翻译检测样式 */
.translation-section {
    margin-bottom: 20px;
}

.translation-results {
    margin-top: 20px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
    display: none;
}

.translation-success {
    text-align: center;
}

.translation-success h4 {
    color: #10b981;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.translation-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 15px;
}

.stat-item {
    text-align: center;
}

.stat-item .stat-number {
    font-size: 24px;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 5px;
}

.stat-item .stat-label {
    font-size: 14px;
    color: #64748b;
}

.stat-note {
    font-size: 14px;
    color: #10b981;
    margin-top: 10px;
}

.loading-text {
    text-align: center;
    color: #64748b;
    padding: 20px;
}

.error-text {
    text-align: center;
    color: #ef4444;
    padding: 20px;
}

/* 图表容器 */
.chart-container {
    height: 300px;
    margin-top: 10px;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 20px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: modalFadeIn 0.3s ease;
}

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

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

.modal-header h3 {
    font-size: 18px;
    color: #1e293b;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header h3 i {
    color: #f59e0b;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #94a3b8;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #475569;
}

.modal-body {
    margin-bottom: 20px;
}

.modal-body p {
    margin-bottom: 15px;
    color: #475569;
}

.modal-body p.warning-text {
    color: #ef4444;
    font-weight: 500;
}

.modal-body input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.modal-body input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.error-message {
    color: #ef4444;
    font-size: 14px;
    margin-top: 10px;
    display: none;
}

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

/* 响应式设计 */
@media (max-width: 1200px) {
    .admin-dashboard {
        grid-template-columns: 1fr;
    }
    
    .function-row {
        grid-template-columns: 1fr;
    }
    
    .translation-stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .admin-card {
        padding: 20px;
    }
    
    .upload-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .express-toggle {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .express-label {
        margin-left: 0;
    }
}

.autocomplete-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s;
}

.autocomplete-item:hover {
    background-color: #f0f0f0;
}

/* 文件输入框样式 */
.file-input {
    display: none;
}

/* 照片数据面板样式 */
.photo-preview {
    display: none;
}

/* 危险文本样式 */
.danger-text {
    color: #dc2626;
    font-weight: 500;
}

/* 翻译结果容器样式 */
.translation-results {
    display: none;
}

/* 隐藏元素样式 */
.hidden {
    display: none !important;
}

/* 切换标记按钮样式 */
.toggle-markers-btn {
    display: none;
}

/* 信息窗口样式 */
.info-window-content {
    padding: 10px;
    min-width: 200px;
}

.info-window-title {
    margin: 0 0 10px 0;
    color: #1e293b;
    font-size: 16px;
    font-weight: 600;
}

.info-window-item {
    margin: 5px 0;
    color: #64748b;
    font-size: 14px;
}

.info-window-link {
    color: #3b82f6;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.info-window-link:hover {
    text-decoration: none;
}

/* 首页粒子效果样式 */
.particle {
    position: absolute;
    background-color: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

/* 根据data-index设置不同的位置和动画 */
.particle[data-index="0"] { left: 0%; animation-delay: 0s; animation-duration: 15s; width: 10px; height: 10px; }
.particle[data-index="1"] { left: 5%; animation-delay: 0.5s; animation-duration: 16s; width: 8px; height: 8px; }
.particle[data-index="2"] { left: 10%; animation-delay: 1s; animation-duration: 17s; width: 12px; height: 12px; }
.particle[data-index="3"] { left: 15%; animation-delay: 1.5s; animation-duration: 18s; width: 6px; height: 6px; }
.particle[data-index="4"] { left: 20%; animation-delay: 2s; animation-duration: 19s; width: 10px; height: 10px; }
.particle[data-index="5"] { left: 25%; animation-delay: 2.5s; animation-duration: 20s; width: 14px; height: 14px; }
.particle[data-index="6"] { left: 30%; animation-delay: 3s; animation-duration: 21s; width: 8px; height: 8px; }
.particle[data-index="7"] { left: 35%; animation-delay: 3.5s; animation-duration: 22s; width: 10px; height: 10px; }
.particle[data-index="8"] { left: 40%; animation-delay: 4s; animation-duration: 23s; width: 12px; height: 12px; }
.particle[data-index="9"] { left: 45%; animation-delay: 4.5s; animation-duration: 24s; width: 6px; height: 6px; }
.particle[data-index="10"] { left: 50%; animation-delay: 5s; animation-duration: 25s; width: 10px; height: 10px; }
.particle[data-index="11"] { left: 55%; animation-delay: 5.5s; animation-duration: 26s; width: 8px; height: 8px; }
.particle[data-index="12"] { left: 60%; animation-delay: 6s; animation-duration: 27s; width: 14px; height: 14px; }
.particle[data-index="13"] { left: 65%; animation-delay: 6.5s; animation-duration: 28s; width: 10px; height: 10px; }
.particle[data-index="14"] { left: 70%; animation-delay: 7s; animation-duration: 29s; width: 12px; height: 12px; }
.particle[data-index="15"] { left: 75%; animation-delay: 7.5s; animation-duration: 30s; width: 6px; height: 6px; }
.particle[data-index="16"] { left: 80%; animation-delay: 8s; animation-duration: 31s; width: 10px; height: 10px; }
.particle[data-index="17"] { left: 85%; animation-delay: 8.5s; animation-duration: 32s; width: 8px; height: 8px; }
.particle[data-index="18"] { left: 90%; animation-delay: 9s; animation-duration: 33s; width: 14px; height: 14px; }
.particle[data-index="19"] { left: 95%; animation-delay: 9.5s; animation-duration: 34s; width: 10px; height: 10px; }

/* 浮动动画 */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-50px) rotate(180deg);
        opacity: 0.8;
    }
}

/* Hero区域样式 */
.hero {
    padding-top: 60px;
}

/* 导入页面样式 */
.sheet-selection,
.preview-section,
.import-section,
.progress-section,
.result-section,
.alert-success,
.alert-danger,
.error-details {
    display: none;
}

/* 加载状态样式 */
.loading-state {
    text-align: center;
    padding: 40px;
    color: #6b7280;
}

.loading-state i {
    font-size: 24px;
    margin-right: 10px;
}

/* 文件信息网格样式 */
.file-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

/* 上传区域样式 */
.upload-icon {
    font-size: 48px;
    color: #9ca3af;
    margin-bottom: 15px;
}

.upload-text {
    color: #6b7280;
    font-size: 16px;
    margin-bottom: 10px;
}

.upload-subtext {
    color: #9ca3af;
    font-size: 14px;
}

/* 错误项样式 */
.error-item {
    margin-bottom: 5px;
    padding: 8px 12px;
    background-color: #fee2e2;
    border-left: 4px solid #dc2626;
    border-radius: 4px;
    color: #dc2626;
    font-size: 14px;
}

/* 年度趋势分析页面样式 */
.analysis-page {
    padding: 20px 0;
}

.page-actions {
    margin-bottom: 20px;
}

.annual-chart-container {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.chart-image {
    width: 100%;
    max-width: 1200px;
    display: block;
    margin: 0 auto;
}

.data-tables {
    margin-top: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.data-table-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.table-title {
    padding-bottom: 10px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
}

.blue-title {
    color: #3F51B5;
    border-bottom: 2px solid #3F51B5;
}

.green-title {
    color: #009688;
    border-bottom: 2px solid #009688;
}

.table-container {
    max-height: 400px;
    overflow-y: auto;
}

.annual-table {
    width: 100%;
    border-collapse: collapse;
}

.table-header {
    background: #f8f9fa;
    position: sticky;
    top: 0;
    z-index: 10;
}

.annual-table th {
    padding: 12px;
    border-bottom: 2px solid #dee2e6;
    text-align: left;
    font-weight: 600;
}

.annual-table th:last-child {
    text-align: center;
}

.table-row {
    border-bottom: 1px solid #eee;
}

.table-cell {
    padding: 10px;
    color: #495057;
}

.table-cell.center {
    text-align: center;
    font-weight: 600;
}

.blue-cell {
    color: #3F51B5;
}

.green-cell {
    color: #009688;
}

.no-data {
    text-align: center;
    padding: 20px;
    color: #6c757d;
}

.table-summary {
    margin-top: 10px;
    text-align: right;
    color: #6c757d;
    font-size: 14px;
}

/* 打印区域样式 */
.print-section {
    margin-top: 20px;
    text-align: center;
}

/* 鉴定报告页面样式 */
.identification-report {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.report-header {
    text-align: center;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.report-header h1 {
    color: #1e293b;
    font-size: 28px;
    margin-bottom: 10px;
}

.report-header .specimen-code {
    font-size: 18px;
    color: #64748b;
    background: #f8fafc;
    padding: 8px 16px;
    border-radius: 6px;
    display: inline-block;
}

.report-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.images-section {
    background: #f8fafc;
    border-radius: 8px;
    padding: 20px;
}

.images-section h3 {
    color: #1e293b;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.image-grid-report {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.image-card-report {
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.image-card-report:hover {
    transform: translateY(-2px);
}

.image-card-report img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.image-hint {
    text-align: center;
    color: #64748b;
}

.no-images {
    text-align: center;
    padding: 40px;
    color: #94a3b8;
}

.no-images-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.identification-section {
    background: #f0f9ff;
    border-radius: 8px;
    padding: 20px;
}

.identification-section h3 {
    color: #0369a1;
    border-bottom: 1px solid #bae6fd;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.identification-info {
    display: grid;
    gap: 15px;
}

.info-group {
    background: white;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #0369a1;
}

.info-group h4 {
    color: #0369a1;
    margin: 0 0 8px 0;
    font-size: 16px;
}

.info-group .value {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
}

.latin-name {
    font-style: italic;
    color: #dc2626;
}

.chinese-name {
    color: #059669;
}

.report-footer {
    text-align: center;
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
    color: #64748b;
}

.print-btn {
    background: #059669;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    margin-right: 10px;
}

.back-btn {
    background: #64748b;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.no-print {
    margin-bottom: 15px;
}

/* 图片模态框样式 */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
}

.modal-content {
    display: block;
    margin: 10% auto;
    max-width: 80%;
    max-height: 80%;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 16px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 50%;
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.image-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 20px;
}

@media print {
    .no-print { display: none; }
    .identification-report { box-shadow: none; }
}

/* 标本列表页面样式 */
/* 全局搜索样式 */
.global-search-container {
    position: relative;
    margin-bottom: 25px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 15px 20px;
    transition: all 0.3s ease;
}

.search-input-wrapper:focus-within {
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.2);
    border: 2px solid #3b82f6;
}

.search-input-wrapper i {
    color: #94a3b8;
    font-size: 18px;
    margin-right: 12px;
}

.search-input-wrapper input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    color: #1e293b;
    background: transparent;
}

.search-input-wrapper input::placeholder {
    color: #94a3b8;
}

.clear-search-btn {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 5px;
    font-size: 16px;
    transition: color 0.3s;
}

.clear-search-btn:hover {
    color: #3b82f6;
}

/* 自动联想下拉列表 */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    margin-top: 8px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    animation: slideDown 0.3s ease;
}

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

.suggestion-item {
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.suggestion-item:hover {
    background: #f8fafc;
}

.suggestion-item i {
    color: #3b82f6;
    font-size: 16px;
    width: 20px;
}

.suggestion-content {
    flex: 1;
}

.suggestion-title {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 2px;
}

.suggestion-subtitle {
    font-size: 13px;
    color: #64748b;
}

/* 表格排序和省略号样式 */
.sortable-table th.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 30px;
}

.sortable-table th.sortable:hover {
    background-color: #e2e8f0;
}

.sort-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #94a3b8;
    transition: all 0.3s;
}

.sortable-table th.sortable.sort-asc .sort-icon {
    color: #3b82f6;
    transform: translateY(-50%) rotate(0deg);
}

.sortable-table th.sortable.sort-desc .sort-icon {
    color: #3b82f6;
    transform: translateY(-50%) rotate(180deg);
}

.truncate-cell {
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.truncate-cell:hover {
    cursor: help;
}

/* 图片图标样式 */
.image-icon {
    margin-right: 8px;
}

.image-icon.has-image {
    color: #10b981;
}

.image-icon.no-image {
    color: #94a3b8;
}

/* 标本编号链接样式 */
.specimen-code-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.specimen-code-link:hover {
    text-decoration: none;
}

/* 拉丁学名样式 */
.latin-name {
    font-style: italic;
}

/* 删除表单样式 */
.delete-form {
    display: inline;
}

/* 移动端响应式样式 */
@media (max-width: 768px) {
    .global-search-container {
        margin-bottom: 20px;
    }
    
    .search-input-wrapper {
        padding: 12px 16px;
    }
    
    .search-input-wrapper input {
        font-size: 14px;
    }
    
    .table-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .table-actions {
        width: 100%;
    }
    
    .table-actions .btn {
        width: 100%;
        text-align: center;
    }
    
    /* 表格在移动端的处理 */
    .ticket-table-container {
        overflow-x: auto;
    }
    
    .ticket-table {
        min-width: 800px;
    }
    
    .truncate-cell {
        max-width: 120px;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .page-number {
        padding: 6px 10px;
        font-size: 13px;
    }
}

/* 移动端表格优化 */
@media (max-width: 768px) {
    /* 移动端菜单按钮显示 */
    .mobile-menu-toggle {
        display: block !important;
    }
    
    /* 表格响应式处理 */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -20px;
        padding: 0 20px;
        width: calc(100% + 40px);
    }
    
    .table {
        min-width: 600px;
    }
    
    .table th,
    .table td {
        white-space: nowrap;
        padding: 10px 8px;
        font-size: 13px;
    }
    
    /* 卡片容器默认隐藏，只在移动端显示 */
    .specimen-cards {
        display: none;
    }
    
    /* 标本列表卡片式显示（移动端） */
    @media (max-width: 768px) {
        .ticket-table-container {
            overflow: visible;
            margin: 0;
            padding: 0;
            width: 100%;
        }
        
        .ticket-table {
            display: none;
        }
        
        /* 卡片容器 */
        .specimen-cards {
            display: flex;
            flex-direction: column;
            gap: 15px;
            margin-top: 20px;
        }
        
        /* 标本卡片 */
        .specimen-card {
            background: white;
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            padding: 15px;
            transition: transform 0.2s ease;
        }
        
        .specimen-card:hover {
            transform: translateY(-2px);
        }
        
        /* 卡片头部 */
        .specimen-card-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 10px;
        }
        
        .specimen-code {
            font-weight: 600;
            color: #3b82f6;
            font-size: 16px;
        }
        
        .specimen-image-indicator {
            font-size: 14px;
            color: #64748b;
        }
        
        /* 卡片内容 */
        .specimen-card-content {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        
        .specimen-card-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .specimen-card-label {
            font-size: 13px;
            color: #64748b;
            flex-shrink: 0;
            width: 80px;
        }
        
        .specimen-card-value {
            font-size: 14px;
            color: #1e293b;
            flex: 1;
            text-align: right;
            word-break: break-word;
        }
        
        /* 卡片底部 */
        .specimen-card-footer {
            margin-top: 12px;
            display: flex;
            justify-content: flex-end;
            gap: 10px;
        }
        
        .specimen-card-btn {
            padding: 6px 12px;
            border: 1px solid #e2e8f0;
            border-radius: 6px;
            background: white;
            color: #64748b;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .specimen-card-btn:hover {
            background: #f8fafc;
            border-color: #3b82f6;
            color: #3b82f6;
        }
    }
    
    /* 数据导入页面响应式 */
    @media (max-width: 768px) {
        .import-section {
            margin-bottom: 20px;
        }
        
        .import-section h3 {
            font-size: 16px;
            margin-bottom: 15px;
        }
        
        .form-group {
            margin-bottom: 15px;
        }
        
        .form-group label {
            font-size: 14px;
            margin-bottom: 8px;
        }
        
        .form-group input[type="file"] {
            padding: 8px;
        }
        
        .form-actions {
            flex-direction: column;
            gap: 10px;
        }
        
        .form-actions .btn {
            width: 100%;
        }
        
        .import-result {
            margin-top: 20px;
            padding: 15px;
        }
        
        .import-result h4 {
            font-size: 16px;
            margin-bottom: 10px;
        }
        
        .import-result ul {
            padding-left: 20px;
        }
    }
    
    /* 统计卡片优化 */
    .stats-cards,
    .stats-overview {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    
    .stat-card,
    .stats-card {
        padding: 15px !important;
    }
    
    .stat-card > div > div:first-child {
        font-size: 12px !important;
    }
    
    /* 数据分析页面响应式 */
    .data-tables {
        grid-template-columns: 1fr !important;
    }
    
    /* 表单元素响应式 */
    .form-group {
        margin-bottom: 12px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 14px;
        padding: 10px;
    }
    
    /* 按钮响应式 */
    .btn {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    /* 页面头部响应式 */
    .page-header {
        padding: 20px;
    }
    
    .page-header h1 {
        font-size: 20px;
    }
    
    /* 卡片响应式 */
    .card {
        padding: 15px;
    }
    
    /* 文字换行优化 */
    .truncate-cell {
        max-width: 100px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    /* 移动端菜单优化 */
    .sidebar {
        width: 100%;
        height: 100vh;
        position: fixed;
        top: 0;
        left: -100%;
        transition: left 0.3s ease;
        z-index: 1000;
    }
    
    .sidebar.active {
        left: 0;
    }
    
    /* 主内容区响应式 */
    .main-content {
        margin-left: 0 !important;
        padding: 20px;
    }
    
    /* 分页响应式 */
    .pagination-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .pagination {
        width: 100%;
        justify-content: center;
    }
    
    /* 搜索栏响应式 */
    .global-search-container {
        margin-bottom: 15px;
    }
    
    .search-input-wrapper {
        padding: 10px 14px;
    }
    
    /* 数据分析图表响应式 */
    .chart-container {
        padding: 15px;
        min-height: 400px;
    }
    
    .chart-container img {
        height: 350px !important;
    }
    
    /* 表格头部响应式 */
    .table-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .table-actions {
        width: 100%;
        flex-direction: column;
        gap: 8px;
    }
    
    .table-actions .btn {
        width: 100%;
        text-align: center;
    }
    
    .stat-card > div > div:nth-child(2) {
        font-size: 24px !important;
    }
    
    /* 图表容器优化 */
    .chart-card {
        padding: 15px !important;
    }
    
    .chart-card > div[id^="chart"] {
        height: 300px !important;
    }
    
    /* 分析卡片优化 */
    .analysis-card {
        padding: 18px !important;
    }
    
    .analysis-card h3 {
        font-size: 16px !important;
    }
    
    .analysis-card p {
        font-size: 13px !important;
    }
    
    /* 表单优化 */
    .form-section {
        padding: 15px !important;
    }
    
    .create-form-container {
        padding: 15px !important;
        border-radius: 8px !important;
    }
    
    .form-group {
        margin-bottom: 15px !important;
    }
    
    .form-group label {
        font-size: 14px !important;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px !important; /* 防止iOS自动缩放 */
    }
    
    /* 按钮优化 */
    .btn {
        padding: 12px 20px !important;
        font-size: 14px !important;
    }
    
    .btn-sm {
        padding: 8px 12px !important;
        font-size: 12px !important;
    }
    
    /* 页面头部优化 */
    .page-header {
        padding: 20px 15px !important;
    }
    
    .page-header h1 {
        font-size: 22px !important;
    }
    
    .page-header p {
        font-size: 14px !important;
    }
    
    /* 图片网格优化 */
    .image-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    
    /* 分页优化 */
    .pagination {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .pagination a,
    .pagination span {
        padding: 8px 12px !important;
        font-size: 14px !important;
    }
    
    /* 消息提示优化 */
    .messages {
        padding: 10px;
    }
    
    .alert {
        padding: 12px 15px !important;
        font-size: 14px !important;
    }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
    .stats-cards,
    .stats-overview {
        grid-template-columns: 1fr !important;
    }
    
    .analysis-grid {
        grid-template-columns: 1fr !important;
    }
    
    .image-grid {
        grid-template-columns: 1fr !important;
    }
    
    .mobile-menu-toggle {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .logo {
        font-size: 14px !important;
        max-width: 100px;
    }
    
    .logo-image {
        width: 28px !important;
        height: 28px !important;
    }
    
    /* 移动端表单上传区域居中 */
    .file-upload-btn {
        display: block;
        width: 100%;
        text-align: center;
        padding: 15px 20px !important;
    }
    
    .thumbnail-container {
        justify-content: center;
    }
    
    /* 移动端表单字段全宽 */
    .form-group {
        width: 100%;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100% !important;
    }
    
    /* 移动端按钮全宽 */
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
    
    /* 标本列表卡片样式 */
    .ticket-table thead {
        display: none;
    }
    
    .ticket-table tbody {
        display: block;
    }
    
    .ticket-table tbody tr {
        display: block;
        background: white;
        margin-bottom: 15px;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        padding: 15px;
    }
    
    .ticket-table tbody td {
        display: block;
        padding: 8px 0;
        border: none;
        text-align: left;
    }
    
    .ticket-table tbody td:before {
        content: attr(data-label);
        font-weight: 600;
        color: #64748b;
        margin-right: 8px;
    }
    
    .ticket-table tbody td:last-child {
        display: flex;
        justify-content: flex-end;
        gap: 10px;
        padding-top: 15px;
        border-top: 1px solid #e2e8f0;
        margin-top: 10px;
    }
    
    /* 移动端隐藏某些列，但保留操作列 */
    .ticket-table tbody td:nth-child(4),
    .ticket-table tbody td:nth-child(5) {
        display: none;
    }
}

/* ===== ITS分析页面样式 ===== */
.its-analysis-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* 功能卡片 */
.feature-section {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: #22c55e;
}

/* 文件上传区域 */
.upload-area {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.upload-area:hover {
    border-color: #22c55e;
    background: #f0fdf4;
}

.upload-area.dragover {
    border-color: #22c55e;
    background: #dcfce7;
}

.upload-icon {
    font-size: 48px;
    color: #22c55e;
    margin-bottom: 15px;
}

.upload-text {
    font-size: 16px;
    color: #64748b;
    margin-bottom: 10px;
}

.upload-hint {
    font-size: 14px;
    color: #94a3b8;
}

/* 序列列表 */
.sequence-list {
    margin-top: 20px;
}

.sequence-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.sequence-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.sequence-info {
    flex: 1;
}

.sequence-name {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 5px;
}

.sequence-details {
    font-size: 14px;
    color: #64748b;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

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

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

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

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

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

/* 功能按钮网格 */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.feature-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.2);
    border-color: #22c55e;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.feature-icon i {
    font-size: 28px;
    color: #166534;
}

.feature-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.feature-desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
}

/* 结果展示区域 */
.results-section {
    margin-top: 30px;
}

.result-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f5f9;
}

.result-title {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
}

.result-content {
    max-height: 400px;
    overflow-y: auto;
}

/* 进度条 */
.progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin: 15px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* 表格样式 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

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

.data-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #475569;
}

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

/* 系统发育树画布 */
.tree-canvas {
    width: 100%;
    height: 400px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .sequence-details {
        flex-direction: column;
        gap: 10px;
    }
}

/* 自动完成下拉列表样式 */
#autocomplete-list {
    position: absolute;
    border: 1px solid #d4d4d4;
    border-top: none;
    background-color: white;
    z-index: 99;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 8px 8px;
}

#autocomplete-list div {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

#autocomplete-list div:hover {
    background-color: #f0f0f0;
}

#autocomplete-list div:last-child {
    border-bottom: none;
    border-radius: 0 0 8px 8px;
}

/* 真菌信息提示样式 */
#fungi-hint {
    color: #999;
    font-size: 12px;
    margin-top: 5px;
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        transform: none;
    }
    
    .nav-menu a:hover {
        background: transparent;
        color: #64748b;
    }
    
    .nav-menu a:active {
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
        color: white;
    }
    
    .analysis-card:hover {
        transform: none;
    }
}

/* ===== 分析仪表盘页面样式 ===== */
.analysis-dashboard {
    padding: 20px;
}

/* 实时统计卡片 */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-card:nth-child(1) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.stat-card:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 10px 30px rgba(245, 87, 108, 0.3);
}

.stat-card:nth-child(3) {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    box-shadow: 0 10px 30px rgba(67, 233, 123, 0.3);
}

.stat-card .stat-info {
    flex: 1;
}

.stat-card .stat-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 5px;
}

.stat-card .stat-value {
    font-size: 36px;
    font-weight: bold;
}

.stat-card .stat-icon {
    background: rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-card .stat-icon i {
    font-size: 24px;
}

/* 3D 图表区域 */
.charts-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.chart-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.chart-card h4 {
    margin: 0 0 15px 0;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chart-card h4 i {
    color: #3b82f6;
}

#chart3dBar, #chartPie {
    height: 400px;
    width: 100%;
}

/* 分析功能入口 */
.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.analysis-card-link {
    text-decoration: none;
    display: block;
}

.analysis-card {
    padding: 25px;
    border-radius: 16px;
    width: 296px;
    height: 126px;
    color: white;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    box-sizing: border-box;
}

/* 海拔分析 - 紫色渐变 */
.analysis-card-link:nth-child(1) .analysis-card {
    background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
}

/* 标本分布 - 蓝色渐变 */
.analysis-card-link:nth-child(2) .analysis-card {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
}

/* 季节分析 - 绿色渐变 */
.analysis-card-link:nth-child(3) .analysis-card {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
}

/* 路线分析 - 橙色渐变 */
.analysis-card-link:nth-child(4) .analysis-card {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
}

/* 效率分析 - 粉红渐变 */
.analysis-card-link:nth-child(5) .analysis-card {
    background: linear-gradient(135deg, #ec4899 0%, #f472b6 100%);
}

/* 年度趋势 - 青色渐变 */
.analysis-card-link:nth-child(6) .analysis-card {
    background: linear-gradient(135deg, #06b6d4 0%, #22d3ee 100%);
}

.analysis-card h3 {
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

.analysis-card p {
    opacity: 0.9;
    margin: 10px 0;
    font-size: 16px;
    line-height: 26px;
}

.analysis-card .btn {
    background: white;
    color: inherit;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 10px;
}

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

.analysis-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* 移动端响应式样式 */
@media (max-width: 768px) {
    .stats-overview {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-card {
        padding: 20px !important;
    }
    
    .stat-card .stat-icon {
        width: 40px !important;
        height: 40px !important;
    }
    
    .stat-card .stat-icon i {
        font-size: 20px !important;
    }
    
    .stat-card .stat-value {
        font-size: 28px !important;
    }
    
    .charts-section {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .chart-card {
        padding: 15px !important;
    }
    
    #chart3dBar, #chartPie {
        height: 300px !important;
    }
    
    .analysis-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .analysis-card {
        padding: 20px !important;
    }
    
    .analysis-card h3 {
        font-size: 16px !important;
    }
    
    .analysis-card p {
        font-size: 14px !important;
        margin: 8px 0 !important;
    }
    
    .analysis-card .btn {
        font-size: 14px !important;
        padding: 8px 16px !important;
    }
}

/* 安全区域适配（刘海屏等） */
@supports (padding: env(safe-area-inset-bottom)) {
    .sidebar-footer {
        padding-bottom: calc(20px + env(safe-area-inset-bottom));
    }
    
    .mobile-menu-toggle {
        top: calc(15px + env(safe-area-inset-top));
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #0f172a;
        color: #e2e8f0;
    }
    
    .sidebar {
        background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
        border-right-color: #334155;
    }
    
    .main-content {
        background-color: #0f172a;
    }
    
    .form-section,
    .view-section,
    .chart-card {
        background: #1e293b !important;
        color: #e2e8f0;
    }
    
    .table {
        background: #1e293b;
        color: #e2e8f0;
    }
    
    .table th {
        background: #334155;
        color: #e2e8f0;
    }
    
    .table td {
        border-bottom-color: #334155;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        background: #334155;
        border-color: #475569;
        color: #e2e8f0;
    }
}

/* ===== 物种分布页面样式 ===== */
.analysis-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 30px;
}

.analysis-header {
    margin-bottom: 30px;
    text-align: center;
}

.analysis-header h2 {
    font-size: 28px;
    color: #1e293b;
    margin-bottom: 10px;
}

.analysis-header p {
    color: #64748b;
    font-size: 16px;
}

.chart-section {
    margin-bottom: 40px;
}

.chart-section h3 {
    font-size: 20px;
    color: #1e293b;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.species-stats {
    margin-top: 20px;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
}

.stats-table thead {
    background: #f8fafc;
}

.stats-table th,
.stats-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.stats-table th {
    font-weight: 600;
    color: #475569;
}

.stats-table tbody tr:hover {
    background: #f8fafc;
}

#heatmap {
    height: 600px;
    width: 100%;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
}

/* 打印样式优化 */
@media print {
    .sidebar,
    .mobile-menu-toggle,
    .sidebar-overlay,
    .nav-menu {
        display: none !important;
    }
    
    .main-content {
        margin: 0 !important;
        padding: 20px !important;
    }
    
    .container {
        flex-direction: column;
    }
    
    .btn,
    .form-actions {
        display: none !important;
    }
}

/* ===== 数据导入页面样式 ===== */
.import-guide {
    background: #fef9c3;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #eab308;
    margin-bottom: 20px;
}

.import-guide h4 {
    color: #1e293b;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.import-guide ul {
    color: #64748b;
    font-size: 14px;
    line-height: 2;
    margin-left: 20px;
    margin-bottom: 15px;
}

.import-guide .info-box {
    background: white;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.import-guide .info-box h5 {
    color: #1e293b;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 14px;
}

.import-guide .info-box p {
    color: #64748b;
    font-size: 12px;
    line-height: 1.8;
    word-break: break-all;
}

.import-guide .info-box .note {
    color: #f59e0b;
    font-size: 11px;
    margin-top: 8px;
    font-style: italic;
}

.import-guide .grid-boxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.import-guide .grid-boxes .box {
    background: white;
    padding: 12px;
    border-radius: 6px;
}

.import-guide .grid-boxes .box h5 {
    color: #1e293b;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 5px;
}

.import-guide .grid-boxes .box p {
    color: #64748b;
    font-size: 12px;
    margin-top: 5px;
}

.import-guide .standardization-box {
    background: #f0fdf4;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #22c55e;
}

.import-guide .standardization-box h5 {
    color: #1e293b;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 5px;
}

.import-guide .standardization-box p {
    color: #64748b;
    font-size: 12px;
    margin-top: 5px;
}

.upload-area {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.3s;
    background: #fafbfc;
}

.upload-area:hover {
    border-color: #3b82f6;
    background: #f0f7ff;
}

.upload-area.drag-over {
    border-color: #3b82f6;
    background: #eff6ff;
}

.upload-icon {
    font-size: 48px;
    color: #cbd5e1;
    margin-bottom: 15px;
}

.upload-area:hover .upload-icon {
    color: #3b82f6;
}

.upload-area .upload-text {
    margin-bottom: 10px;
    color: #475569;
    font-weight: 500;
}

.upload-area .upload-hint {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 15px;
}

.upload-area .button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.upload-area .file-name {
    margin-top: 15px;
    padding: 12px 15px;
    background: #f1f5f9;
    border-radius: 8px;
    display: none;
    align-items: center;
}

.upload-area .file-name i {
    color: #10b981;
    margin-right: 10px;
}

.upload-area .file-name .file-name-text {
    font-weight: 500;
}

.upload-area .file-name .clear-btn {
    margin-left: 10px;
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 14px;
}

.progress-bar {
    margin-top: 20px;
    display: none;
}

.progress-bar .progress-container {
    background: #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    height: 8px;
    margin-bottom: 10px;
}

.progress-bar .progress-fill {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    height: 100%;
    width: 0%;
    transition: width 0.3s;
}

.progress-bar .progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #64748b;
}

.status-bar {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    display: none;
}

.status-bar .status-content {
    display: flex;
    align-items: center;
}

.status-bar .status-icon {
    margin-right: 12px;
}

.status-bar .status-icon i {
    color: #3b82f6;
    font-size: 20px;
}

.status-bar .status-text {
    flex: 1;
}

.status-bar .status-text .main-text {
    font-weight: 600;
    color: #1e293b;
}

.status-bar .status-text .detail-text {
    font-size: 13px;
    color: #64748b;
    margin-top: 4px;
}

.import-summary {
    margin-top: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 25px;
    color: white;
    display: none;
}

.import-summary h4 {
    margin: 0 0 20px 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.import-summary .summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: center;
}

.import-summary .summary-item {
    background: rgba(255, 255, 255, 0.15);
    padding: 20px;
    border-radius: 10px;
}

.import-summary .summary-item .value {
    font-size: 36px;
    font-weight: bold;
}

.import-summary .summary-item .label {
    font-size: 13px;
    opacity: 0.9;
    margin-top: 5px;
}

.import-summary .summary-item.success {
    background: rgba(34, 197, 94, 0.3);
}

.import-summary .summary-item.success .value {
    color: #4ade80;
}

.import-summary .summary-item.failed {
    background: rgba(239, 68, 68, 0.3);
}

.import-summary .summary-item.failed .value {
    color: #fca5a5;
}

.import-summary .summary-details {
    margin-top: 15px;
    font-size: 13px;
    opacity: 0.9;
}

.export-guide {
    background: #f0f7ff;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
    margin-bottom: 15px;
}

.export-guide h5 {
    color: #1e293b;
    font-weight: 500;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.export-guide p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .form-section {
        padding: 15px !important;
    }
    
    .upload-area {
        padding: 25px 15px;
    }
    
    .upload-icon {
        font-size: 36px;
    }
    
    .form-section h3 {
        font-size: 16px !important;
    }
    
    .btn {
        padding: 10px 16px !important;
        font-size: 13px !important;
    }
    
    /* 引导信息移动端简化 */
    .import-guide {
        padding: 15px !important;
    }
    
    .import-guide ul {
        font-size: 13px;
        margin-left: 15px;
    }
    
    .import-guide .info-box {
        padding: 10px !important;
    }
    
    /* 按钮组移动端堆叠 */
    .upload-area .button-group {
        flex-direction: column;
        gap: 10px !important;
    }
    
    .upload-area .button-group .btn {
        width: 100%;
    }
    
    /* 网格盒子移动端堆叠 */
    .import-guide .grid-boxes {
        grid-template-columns: 1fr;
    }
    
    /* 汇总卡片移动端调整 */
    .import-summary .summary-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .import-summary .summary-item .value {
        font-size: 32px;
    }
}

/* ===== 快递查询页面样式 ===== */
.express-query-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 搜索区域样式 */
.search-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.search-box {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.search-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

.search-filters {
    display: flex;
    gap: 20px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.search-filters label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #64748b;
}

.search-filters input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* 快递列表样式 */
.express-list {
    min-height: 400px;
}

.loading, .no-data {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
}

.loading i, .no-data i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.loading p, .no-data p {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
}

/* 标本卡片样式 */
.specimen-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid #22c55e;
}

.specimen-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.card-header {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f5f9;
}

.specimen-info {
    flex: 1;
}

.specimen-code {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.specimen-name {
    font-size: 16px;
    color: #64748b;
    margin-bottom: 5px;
}

.specimen-latin {
    font-size: 14px;
    color: #94a3b8;
    font-style: italic;
}

.card-body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

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

.info-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

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

.info-value {
    font-size: 15px;
    color: #1e293b;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.info-value.empty {
    color: #94a3b8;
    font-style: italic;
}

.card-actions {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid #f1f5f9;
    display: flex;
    gap: 10px;
}

.action-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.action-btn.view {
    background: #3b82f6;
    color: white;
}

.action-btn.view:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.action-btn.track {
    background: #22c55e;
    color: white;
}

.action-btn.track:hover {
    background: #16a34a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

.action-btn.edit {
    background: #f59e0b;
    color: white;
}

.action-btn.edit:hover {
    background: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

@media (max-width: 768px) {
    .search-box {
        flex-direction: column;
    }

    .card-body {
        grid-template-columns: 1fr;
    }

    .info-row {
        grid-template-columns: 1fr;
    }

    .card-header {
        flex-direction: column;
        gap: 15px;
    }

    .card-actions {
        flex-wrap: wrap;
    }
}

/* ===== 首页样式 ===== */
:root {
    --primary: #22c55e;
    --primary-dark: #16a34a;
    --secondary: #10b981;
    --accent: #34d399;
    --dark: #052e16;
    --light: #f0fdf4;
}

.home-body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #022c22 0%, #064e3b 50%, #022c22 100%);
    min-height: 100vh;
    color: #e2e8f0;
    overflow-x: hidden;
}

/* 动态背景 */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.bg-animation::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 80%, rgba(34, 197, 94, 0.2) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.2) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(52, 211, 153, 0.15) 0%, transparent 40%);
    animation: bgMove 20s ease-in-out infinite;
}

@keyframes bgMove {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(2%, 2%) rotate(1deg); }
    66% { transform: translate(-1%, 1%) rotate(-1deg); }
}

/* 浮动粒子 */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: float 15s infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

/* Hero区域 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 40px 60px;
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    overflow: hidden;
}

/* 背景动画效果 */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(16, 185, 129, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 30%, rgba(34, 197, 94, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 50% 80%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
    animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(5%, 5%); }
    66% { transform: translate(-3%, -3%); }
}

.hero-content {
    text-align: center;
    max-width: 900px;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(34, 197, 94, 0.2));
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 50px;
    font-size: 0.95rem;
    color: #86efac;
    margin-bottom: 35px;
    animation: fadeInUp 0.8s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease 0.1s both;
    letter-spacing: -0.02em;
}

.hero-title .gradient {
    background: linear-gradient(135deg, #fff 0%, #86efac 50%, #4ade80 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(16, 185, 129, 0.3);
}

.hero-title .highlight {
    background: linear-gradient(135deg, #22c55e, #10b981, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(16, 185, 129, 0.4);
}

.hero-desc {
    font-size: 1.35rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 45px;
    animation: fadeInUp 0.8s ease 0.2s both;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 1.15rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.btn-hero:hover::before {
    left: 100%;
}

.btn-hero.primary {
    background: linear-gradient(135deg, #22c55e, #10b981, #059669);
    color: white;
    box-shadow: 0 10px 35px rgba(16, 185, 129, 0.4);
}

.btn-hero.primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(16, 185, 129, 0.6);
}

.btn-hero.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-hero.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(16, 185, 129, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.3);
}

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

/* 统计卡片区域 */
.stats-section {
    padding: 100px 40px;
    position: relative;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.section-title .gradient {
    background: linear-gradient(135deg, #22c55e, #10b981, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(16, 185, 129, 0.3);
}

.section-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #22c55e, #10b981, #06b6d4);
    transform: scaleX(0);
    transition: transform 0.4s;
}

.stat-card:hover {
    transform: translateY(-12px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 25px 70px rgba(16, 185, 129, 0.2);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
    transition: all 0.4s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.4);
}

.stat-icon.purple { background: linear-gradient(135deg, #22c55e, #16a34a); }
.stat-icon.pink { background: linear-gradient(135deg, #10b981, #059669); }
.stat-icon.blue { background: linear-gradient(135deg, #34d399, #10b981); }
.stat-icon.teal { background: linear-gradient(135deg, #6ee7b7, #34d399); }

.stat-value {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #fff, #86efac, #4ade80);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.stat-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.stat-details {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.stat-list-item:hover {
    transform: translateX(5px);
}

.stat-list-item .label {
    color: rgba(255, 255, 255, 0.8);
}

.stat-list-item .value {
    color: #86efac;
    font-weight: 600;
    background: linear-gradient(135deg, #86efac, #4ade80);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 功能介绍区域 */
.features-section {
    padding: 100px 40px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    position: relative;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 20%, rgba(6, 182, 212, 0.08) 0%, transparent 70%),
                radial-gradient(circle at 80% 80%, rgba(34, 197, 94, 0.08) 0%, transparent 70%);
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    position: relative;
    z-index: 2;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 45px 35px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.1), transparent);
    transition: left 0.6s;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 20px 60px rgba(16, 185, 129, 0.2);
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(34, 197, 94, 0.3));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #86efac;
    flex-shrink: 0;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(16, 185, 129, 0.4);
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    margin: 0;
    position: relative;
    z-index: 2;
}

.feature-desc {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    font-size: 1rem;
    font-weight: 300;
    position: relative;
    z-index: 2;
}

/* CTA区域 */
.cta-section {
    padding: 120px 40px;
    text-align: center;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
}

.cta-box {
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(34, 197, 94, 0.2));
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 30px;
    padding: 70px 50px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 60px rgba(16, 185, 129, 0.2);
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 60%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 0%, #86efac 50%, #4ade80 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(16, 185, 129, 0.3);
}

.cta-desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 40px;
    font-weight: 300;
}

/* 页脚 */
.footer {
    padding: 60px 40px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: #0f172a;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.5), transparent);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 35px;
    margin-bottom: 30px;
}

.footer-link {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
    position: relative;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #22c55e, #10b981);
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: #86efac;
    transform: translateY(-2px);
}

.footer-link:hover::after {
    width: 100%;
}

.footer-copyright {
    color: #64748b;
    font-size: 1rem;
    font-weight: 400;
    margin-top: 20px;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 40px;
}

.empty-state i {
    font-size: 3rem;
    color: #475569;
    margin-bottom: 20px;
}

.empty-state p {
    color: #64748b;
}

/* 响应式设计 */
@media (max-width: 1000px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .stats-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 2.5rem; }
    .hero {
        padding: 60px 20px 40px;
    }
    .stats-section,
    .features-section,
    .cta-section {
        padding: 60px 20px;
    }
    .footer {
        padding: 30px 20px;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .btn-hero {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
}

/* 登录页面样式 */
.login-page-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f8fafc;
    padding: 20px;
}

.login-logo {
    margin-bottom: 30px;
    text-align: center;
}

.login-logo img {
    max-width: 120px;
    max-height: 120px;
    object-fit: contain;
}

.login-logo h1 {
    font-size: 28px;
    color: #1e293b;
    font-weight: 700;
    margin-top: 15px;
}

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

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

.login-header h2 {
    font-size: 24px;
    color: #1e293b;
    font-weight: 700;
    margin-bottom: 10px;
}

.login-header p {
    color: #64748b;
    font-size: 16px;
}

.login-footer {
    text-align: center;
    margin-top: 20px;
    color: #64748b;
}

.login-footer a {
    color: #3b82f6;
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: none;
}

.login-messages {
    text-align: center;
    margin-top: 15px;
    margin-bottom: 15px;
}

.icp-footer {
    margin-top: 30px;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
}

.icp-footer a {
    color: #64748b;
    text-decoration: none;
}

.icp-footer a:hover {
    color: #3b82f6;
    text-decoration: none;
}

.icp-footer .contact-info {
    margin-top: 10px;
    font-size: 12px;
}

.icp-footer .contact-info span {
    margin-right: 15px;
}

.icp-footer .contact-info span:last-child {
    margin-right: 0;
}

/* 分析页面 - 地图页面样式 */
.page-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.page-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.page-header-left h3 {
    margin: 0;
}

.map-controls {
    display: flex;
    gap: 10px;
}

.location-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.location-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f8fafc;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.location-item:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

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

.location-count {
    background: #3b82f6;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* 统计卡片样式 */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
}

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

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

/* 地图容器 */
.map-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

#map {
    width: 100%;
    height: 600px;
}

/* 分析页面响应式设计 */
@media (max-width: 768px) {
    .stats-cards {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
    }
    
    .stat-card {
        padding: 15px 10px !important;
    }
    
    .stat-card > div:first-child {
        font-size: 11px !important;
    }
    
    .stat-card > div:last-child {
        font-size: 20px !important;
        margin-top: 3px !important;
    }
    
    .map-controls {
        flex-wrap: wrap;
    }
    
    .map-controls .btn {
        flex: 1;
        min-width: 100px;
        padding: 8px 12px !important;
        font-size: 12px !important;
    }
    
    #map {
        height: 400px !important;
    }
    
    .form-section h4 {
        font-size: 15px !important;
    }
    
    .location-item {
        padding: 10px 12px;
    }
    
    .location-name {
        font-size: 13px;
    }
}

/* 管理员页面 - 翻译检测样式 */
.translation-section {
    margin-bottom: 15px;
}

.translation-results-container {
    margin-top: 20px;
}

.translation-stats {
    margin-bottom: 20px;
}

.translation-success {
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.translation-success h4 {
    color: #16a34a;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.translation-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-item .stat-number {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 5px;
}

.stat-item .stat-label {
    font-size: 14px;
    color: #64748b;
}

.stat-note {
    color: #16a34a;
    font-size: 14px;
    margin-top: 10px;
}

.loading-text {
    text-align: center;
    padding: 20px;
    color: #64748b;
}

.error-text {
    color: #dc2626;
    padding: 15px;
    background: #fee2e2;
    border-radius: 8px;
    margin: 10px 0;
}

/* 最新标本列表样式 */
.recent-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #e2e8f0;
    transition: background-color 0.2s;
}

.recent-list li:hover {
    background-color: #f8fafc;
}

.recent-list li:last-child {
    border-bottom: none;
}

.recent-list li.no-data {
    text-align: center;
    color: #94a3b8;
    padding: 30px;
    font-style: italic;
}

.specimen-code {
    font-weight: 600;
    color: #1e293b;
}

.specimen-name {
    flex: 1;
    margin: 0 15px;
    color: #475569;
}

.specimen-date {
    color: #94a3b8;
    font-size: 14px;
}

/* 极简创建页面样式 */
.thumbnail-container {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
    border: 2px dashed #cbd5e1;
}

.thumbnail-item {
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 30px;
    height: 30px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.remove-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.upload-success {
    margin-top: 15px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border: 1px solid #22c55e;
    border-radius: 8px;
    color: #15803d;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.upload-success i {
    font-size: 18px;
}

/* 高级创建页面样式 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-subtitle {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 15px;
}

.photo-preview {
    display: none;
}

.query-altitude-btn {
    padding: 10px 15px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.query-altitude-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

.query-altitude-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
}

/* 语言切换开关样式 */
.language-toggle-wrapper {
    padding: 20px 25px;
    border-top: 1px solid #e2e8f0;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(5, 150, 105, 0.05) 100%);
}

.language-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.lang-label {
    font-size: 14px;
    font-weight: 600;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 6px 12px;
    border-radius: 20px;
    background: transparent;
}

.lang-label.active {
    color: #10b981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.lang-label:hover {
    color: #10b981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(5, 150, 105, 0.08) 100%);
}

/* 语言开关样式 */
.lang-switch .switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.lang-switch .switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.lang-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%);
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 26px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.lang-switch .slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.lang-switch input:checked + .slider {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.lang-switch input:checked + .slider:before {
    transform: translateX(24px);
}

.lang-switch input:focus + .slider {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

/* Toast 通知样式 */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.toast {
    display: flex;
    align-items: flex-start;
    padding: 16px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    animation: toast-slide-in 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transition: all 0.3s ease;
    border-left: 4px solid;
}

.toast-hide {
    animation: toast-slide-out 0.3s ease forwards;
}

@keyframes toast-slide-in {
    from {
        transform: translateX(120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toast-slide-out {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

.toast-success {
    border-left-color: #22c55e;
}

.toast-success .toast-icon {
    color: #22c55e;
}

.toast-danger, .toast-error {
    border-left-color: #ef4444;
}

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

.toast-warning {
    border-left-color: #f59e0b;
}

.toast-warning .toast-icon {
    color: #f59e0b;
}

.toast-info {
    border-left-color: #3b82f6;
}

.toast-info .toast-icon {
    color: #3b82f6;
}

.toast-icon {
    font-size: 22px;
    margin-right: 14px;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-message {
    font-size: 14px;
    color: #374151;
    line-height: 1.5;
    word-wrap: break-word;
}

.toast-close {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    margin-left: 12px;
    font-size: 16px;
    transition: color 0.2s;
    flex-shrink: 0;
}

.toast-close:hover {
    color: #6b7280;
}

/* Toast 移动端适配 */
@media (max-width: 768px) {
    .toast-container {
        left: 15px;
        right: 15px;
        bottom: 15px;
        max-width: none;
    }
    
    .toast {
        padding: 14px 16px;
    }
    
    .toast-icon {
        font-size: 20px;
        margin-right: 12px;
    }
    
    .toast-message {
        font-size: 13px;
    }
}

/* 移动端菜单按钮样式 */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 1001;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.mobile-menu-logo {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: cover;
}

/* 开关样式 - 通用 */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%);
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 26px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

input:checked + .slider {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

input:checked + .slider:before {
    transform: translateX(24px);
}

input:focus + .slider {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

/* 标本编辑页面特定样式 */
.specimen-edit-form .form-row {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-top: 15px;
}

.specimen-edit-form .form-row.flex-start {
    align-items: flex-start;
}

.specimen-edit-form .form-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.specimen-edit-form .form-group label {
    width: 80px;
    margin: 0;
    font-weight: 600;
}

.specimen-edit-form .form-group input,
.specimen-edit-form .form-group select {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.specimen-edit-form .form-group textarea {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    resize: vertical;
}

.specimen-edit-form .form-group.flex-column {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    margin-top: 15px;
}

.specimen-edit-form .form-group.flex-column label {
    width: auto;
}

.specimen-edit-form .form-group.flex-column input,
.specimen-edit-form .form-group.flex-column select,
.specimen-edit-form .form-group.flex-column textarea {
    width: 100%;
}

/* 图片上传相关样式 */
#thumbnail-preview {
    display: none;
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#upload-success {
    display: none;
    margin-top: 10px;
}

#exif-status {
    display: none;
    margin-top: 10px;
}

#photo-preview {
    display: none;
    margin-top: 15px;
}

#debug-log {
    display: none;
    margin-top: 15px;
}

#debug-log .debug-log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

/* 编辑页面图片画廊样式 */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.gallery-item {
    position: relative;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    display: block;
    background-color: #f8f9fa;
}

.image-actions {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0,0,0,0.7);
    border-radius: 4px;
    padding: 5px;
}

.image-actions .btn {
    padding: 4px 8px;
    font-size: 12px;
}

/* 缩略图预览 */
.thumbnail-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.thumbnail-item {
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.thumbnail-item img {
    width: 100%;
    height: 80px;
    object-fit: cover;
}

.thumbnail-item .remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    color: #333;
    transition: all 0.2s;
}

.thumbnail-item .remove-btn:hover {
    background: #ef4444;
    color: white;
}

/* 提交加载状态 */
.submit-loading {
    display: none !important;
}

.submit-text {
    display: inline !important;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .specimen-edit-form .form-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .specimen-edit-form .form-group {
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
    }
    
    .specimen-edit-form .form-group label {
        width: auto;
    }
}

/* 数据导入页面样式 */
.import-guide {
    background: #f0f9ff;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #0ea5e9;
    margin-bottom: 20px;
}

.import-guide h3 {
    color: #1e293b;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 16px;
}

.import-guide ul {
    color: #64748b;
    font-size: 14px;
    line-height: 2;
    margin-left: 20px;
    margin-bottom: 15px;
}

.import-guide .format-list {
    background: white;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.import-guide .format-list h4 {
    color: #1e293b;
    font-weight: 600;
    margin-bottom: 10px;
}

.import-guide .format-list ul {
    color: #64748b;
    font-size: 13px;
    line-height: 1.8;
    margin-left: 20px;
}

.upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    background: #f9fafb;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover,
.upload-area-hover {
    border-color: #3b82f6;
    background: #f0f9ff;
}

.upload-area i {
    font-size: 48px;
    color: #9ca3af;
    margin-bottom: 15px;
}

.upload-area p {
    color: #6b7280;
    font-size: 16px;
    margin-bottom: 10px;
}

.upload-area .file-info {
    color: #9ca3af;
    font-size: 14px;
}

.sheet-selection {
    margin-top: 15px;
}

.sheet-selection label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    display: block;
}

.sheet-selection select {
    width: 300px;
}

.preview-info {
    background: #fef9c3;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.preview-info h4 {
    color: #1e293b;
    font-weight: 600;
    margin-bottom: 5px;
}

.file-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    color: #64748b;
    font-size: 14px;
}

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

.preview-table table {
    font-size: 12px;
}

.preview-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #374151;
}

.preview-stats {
    margin-top: 15px;
    color: #64748b;
    font-size: 14px;
}

.import-buttons {
    margin-top: 20px;
}

.import-buttons .btn {
    padding: 10px 20px;
    font-size: 14px;
}

.import-buttons .btn-secondary {
    margin-left: 10px;
    padding: 10px 18px;
}

.progress-container {
    height: 20px;
    margin-bottom: 15px;
}

.progress-bar {
    transition: width 0.3s ease;
}

.progress-text {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 15px;
}

.error-details {
    margin-top: 15px;
}

.error-details h4 {
    font-weight: 600;
    color: #374151;
    margin-bottom: 10px;
}

.error-list {
    max-height: 200px;
    overflow-y: auto;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    font-size: 12px;
}

.error-list div {
    margin-bottom: 5px;
}

/* 管理员仪表板样式 */
.function-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

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

.function-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    cursor: pointer;
}

.function-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #22c55e;
}

.function-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-radius: 10px;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.function-icon.danger-icon {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.function-card.danger-card {
    border-color: #dc2626;
}

.function-card.danger-card:hover {
    border-color: #dc2626;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

.function-content h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

.function-content p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}

/* 设置表单样式 */
.settings-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.settings-left,
.settings-right {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.settings-form .form-group {
    margin-bottom: 0;
}

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

.settings-form .form-group input[type="text"],
.settings-form .form-group input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.settings-form .form-group input:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.settings-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.settings-form .form-group.half {
    margin-bottom: 0;
}

/* 上传区域样式 */
.settings-upload-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

/* 上传项样式 */
.upload-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #f8fafc;
    border: 2px dashed #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.upload-input {
    width: 100%;
    text-align: center;
}

.upload-item:hover {
    border-color: #22c55e;
    background: #f0fdf4;
}

.upload-label {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.upload-label label {
    color: #475569;
    font-weight: 500;
    font-size: 14px;
}

.upload-label .current-path {
    font-size: 12px;
    color: #64748b;
    background: #e2e8f0;
    padding: 4px 8px;
    border-radius: 4px;
    word-break: break-all;
}

.upload-input input[type="file"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    background: white;
    cursor: pointer;
    box-sizing: border-box;
}

/* 快递查询设置样式 */
.settings-express {
    grid-column: 1 / -1;
    padding: 20px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
}

.express-toggle {
    display: flex;
    align-items: center;
    gap: 20px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: #22c55e;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.express-label strong {
    display: block;
    color: #1e293b;
    font-size: 16px;
    margin-bottom: 5px;
}

.express-label p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
}

/* 最近标本列表 */
.recent-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-list li {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: background 0.2s;
}

.recent-list li:hover {
    background: #f1f5f9;
}

.specimen-code {
    font-weight: 600;
    color: #22c55e;
    min-width: 100px;
}

.specimen-name {
    flex: 1;
    color: #374151;
}

.specimen-date {
    font-size: 13px;
    color: #94a3b8;
}

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

.modal-content {
    background-color: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease;
}

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

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

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

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6b7280;
}

.close-btn:hover {
    color: #1f2937;
}

.modal-body {
    padding: 20px;
}

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

.warning-text {
    color: #dc2626;
    font-weight: 500;
    margin-bottom: 15px;
}

.error-message {
    color: #dc2626;
    margin-top: 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .settings-form {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .settings-form .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .function-row {
        grid-template-columns: 1fr;
    }
    
    .upload-item {
        flex-direction: column;
    }
    
    .settings-upload-section {
        grid-template-columns: 1fr;
    }
}

/* 标本详情页样式 */
.view-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* 主要内容区域 */
.view-content {
    display: flex;
    flex-direction: column;
    margin-top: 0;
}

/* 媒体区域 */
.media-section {
    display: block;
    margin-bottom: 15px;
}

/* 图片画廊 */
.image-gallery {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f5f9;
}

.section-title i {
    color: #3b82f6;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.image-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.image-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.no-images {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
}

.no-images i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.no-images p {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
}

/* 地图区域 */
.map-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 信息区域 */
.info-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 信息网格 */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
    gap: 10px;
}

/* 描述卡片 */
.description-card {
    grid-column: 1 / -1;
}

.description-content {
    line-height: 1.6;
    color: #475569;
    white-space: pre-wrap;
    padding-left: 39px;
}

/* 操作按钮区域 */
.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
    flex-wrap: wrap;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 图片模态框 */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
}

.modal-content {
    display: block;
    margin: 10% auto;
    max-width: 80%;
    max-height: 80%;
    border-radius: 8px;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #3b82f6;
}

.prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 16px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.prev-btn:hover, .next-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.image-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .media-section {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .view-container {
        padding: 15px;
    }
    
    .specimen-header {
        padding: 25px;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .specimen-title {
        font-size: 28px;
    }
    
    .specimen-name {
        font-size: 20px;
    }
    
    .header-meta {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        flex-wrap: wrap;
    }
    
    .meta-item {
        flex: 1;
        min-width: 150px;
    }
    
    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }
    
    .image-card img {
        height: 100px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons .btn {
        width: 100%;
    }
    
    .modal-content {
        max-width: 95%;
        max-height: 90%;
    }
}

/* 信息网格样式 */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* 信息卡片样式 */
.info-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
}

.card-header i {
    color: #3b82f6;
    font-size: 18px;
}

.card-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

.card-body {
    padding: 20px;
}

/* 信息项样式 */
.info-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}

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

.info-label {
    font-weight: 500;
    color: #64748b;
    min-width: 100px;
}

.info-value {
    flex: 1;
    text-align: right;
    color: #1e293b;
    word-break: break-word;
}

/* 信息行样式 */
.info-row {
    display: flex;
    gap: 20px;
    margin: 8px 0;
}

.info-item.half {
    flex: 1;
    border-bottom: none;
}

.info-item.third {
    flex: 1;
    border-bottom: none;
}

/* 区域样式 */
.view-section {
    margin-bottom: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
}

.section-header i {
    color: #3b82f6;
    font-size: 18px;
}

.section-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

/* 图片网格样式 */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    padding: 20px;
}

.image-card {
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
    cursor: pointer;
}

.image-card:hover {
    transform: translateY(-2px);
}

.image-container {
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-card:hover .image-container img {
    transform: scale(1.05);
}

.image-info {
    padding: 10px;
    text-align: center;
    background: #f8fafc;
    font-size: 14px;
    color: #64748b;
}

/* 无图片提示样式 */
.no-images {
    padding: 60px 20px;
    text-align: center;
    color: #94a3b8;
}

.no-images i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.no-images p {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
}

/* 图片模态框样式 - 支持多张图片切换 */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f5f9;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #fff;
}

.prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    color: #1e293b;
    font-size: 24px;
    padding: 15px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s;
    z-index: 1001;
}

.prev-btn {
    left: 30px;
}

.next-btn {
    right: 30px;
}

.prev-btn:hover, .next-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
}

.image-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 600;
}

/* 操作按钮区域 */
.action-buttons {
    display: flex;
    gap: 12px;
    padding: 20px 0;
    border-top: 2px solid #e2e8f0;
    margin-top: 30px;
}

.action-buttons .btn {
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    text-decoration: none;
    color: white;
    min-width: 120px;
    justify-content: center;
}

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

.action-buttons .btn-secondary:hover {
    background-color: #4b5563;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.4);
}

.action-buttons .btn-primary {
    background-color: #3b82f6;
}

.action-buttons .btn-primary:hover {
    background-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.action-buttons .btn-info {
    background-color: #06b6d4;
}

.action-buttons .btn-info:hover {
    background-color: #0891b2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.4);
}

.action-buttons .btn-danger {
    background-color: #ef4444;
}

.action-buttons .btn-danger:hover {
    background-color: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .image-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .info-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .info-item.half {
        width: 100%;
    }
    
    .action-buttons {
        flex-wrap: wrap;
    }
    
    .header-info h2 {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* 标本创建页面样式 */
.specimen-create-form .section-subtitle {
    font-size: 14px;
    font-weight: normal;
    color: #64748b;
    margin-top: 5px;
}

.specimen-create-form #images {
    display: none;
}

.specimen-create-form #thumbnail-preview {
    display: none;
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.specimen-create-form #upload-success {
    display: none;
    margin-top: 10px;
}

.specimen-create-form #exif-status {
    display: none;
    margin-top: 10px;
}

.specimen-create-form #photo-preview {
    display: none;
    margin-top: 15px;
}

.specimen-create-form #debug-log {
    display: none;
    margin-top: 15px;
}

.specimen-create-form .debug-log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.specimen-create-form .debug-log-content {
    margin-top: 10px;
}

/* GPS 字段样式 */
.specimen-create-form .form-group.gps-field {
    display: flex;
    align-items: center;
}

.specimen-create-form .form-group.altitude-field {
    display: flex;
    align-items: center;
}

.specimen-create-form .form-group.altitude-field label {
    margin-right: 10px;
}

.specimen-create-form .altitude-input-wrap {
    flex: 1;
}

/* 表单行样式 */
.specimen-create-form .form-row {
    display: flex;
    gap: 15px;
}

.specimen-create-form .form-row .form-group {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.specimen-create-form .form-row .form-group label {
    width: 80px;
    margin: 0;
}

.specimen-create-form .form-row .form-group select {
    flex: 1;
}

.specimen-create-form .form-row .form-group input {
    flex: 1;
}

/* 表单提示样式 */
.specimen-create-form .form-hint {
    margin-top: 5px;
    font-size: 12px;
    color: #64748b;
}

/* 生境行样式 */
.specimen-create-form .habitat-row {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.specimen-create-form .form-group.habitat-field {
    display: flex;
    align-items: center;
    gap: 10px;
}

.specimen-create-form .form-group.habitat-field label {
    width: 60px;
    margin: 0;
}

.specimen-create-form .form-group.habitat-field select {
    flex: 1;
}

/* 描述区域样式 */
.specimen-create-form .description-section {
    margin-top: 20px;
}

.specimen-create-form .description-section .form-hint {
    margin-top: 10px;
    font-size: 12px;
    color: #64748b;
}

/* 邮寄信息样式 */
.specimen-create-form .express-section .form-group {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.specimen-create-form .express-section .form-group label {
    width: 100px;
    margin: 0;
    font-weight: 500;
    color: #475569;
}

.specimen-create-form .express-section .form-group input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.specimen-create-form .express-section .form-group textarea {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
    font-family: Arial, sans-serif;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.specimen-create-form .express-section .form-group.textarea {
    align-items: flex-start;
}

.specimen-create-form .express-section .form-group.textarea label {
    margin: 12px 0 0 0;
}

.specimen-create-form .express-section .form-hint {
    margin-left: 115px;
    margin-bottom: 15px;
    font-size: 12px;
    color: #64748b;
}

/* 复选框样式 */
.specimen-create-form .checkbox-group {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.specimen-create-form .checkbox-group .form-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.specimen-create-form .checkbox-group .form-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.specimen-create-form .checkbox-group .form-group label {
    margin: 0;
    cursor: pointer;
    font-weight: 500;
    color: #475569;
}

.specimen-create-form .checkbox-group .form-hint {
    margin-left: 20px;
    margin-bottom: 15px;
    font-size: 12px;
    color: #64748b;
}

/* 提交加载状态 */
.specimen-create-form #submit-loading {
    display: none;
    font-size: 14px;
    color: #10b981;
}

.specimen-create-form #submit-loading i {
    animation: spin 1s linear infinite;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .specimen-create-form .form-row {
        flex-direction: column;
    }
    
    .specimen-create-form .form-row .form-group {
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
    }
    
    .specimen-create-form .form-row .form-group label {
        width: auto;
    }
    
    .specimen-create-form .checkbox-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .specimen-create-form .express-section .form-group {
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
    }
    
    .specimen-create-form .express-section .form-group label {
        width: auto;
    }
    
    .specimen-create-form .express-section .form-hint {
        margin-left: 0;
    }
}

/* ===== 团队页面 / 标本详情页 移动端补充 ===== */
@media (max-width: 768px) {
    /* 标本详情页 - 信息网格单列 */
    .info-grid {
        grid-template-columns: 1fr !important;
    }

    /* 标本详情页 - 操作按钮垂直排列 */
    .action-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .action-buttons .btn {
        width: 100%;
        text-align: center;
    }

    /* 标本详情页 - view-container 内边距缩小 */
    .view-container {
        padding: 10px !important;
    }

    /* 标本详情页 - card-header 字体缩小 */
    .card-header h4 {
        font-size: 14px !important;
    }

    /* 图片画廊移动端 2列 */
    .gallery-container {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* 团队详情页 - 头部信息换行 */
    .ticket-table-container .table-header {
        flex-direction: column;
        align-items: flex-start;
    }
}