/* 桌面端样式 */
.card-table {
    border-collapse: separate;
    border-spacing: 0 8px;
    width: 90%; /* 两侧留空，宽度为可用空间的90% */
    margin: 0 auto; /* 居中显示 */
    table-layout: fixed; /* 使用固定布局以确保列宽比例准确 */
}

/* 设置表头列宽比例：65、180、140、50、50、395 (总和880) */
.card-table th:nth-child(1) { width: 14.20%; }  /* 65/880 = 7.39% */
.card-table th:nth-child(2) { width: 20.45%; } /* 180/880 = 20.45% */
.card-table th:nth-child(3) { width: 15.91%; } /* 140/880 = 15.91% */
.card-table th:nth-child(4) { width: 5.68%; }  /* 50/880 = 5.68% */
.card-table th:nth-child(5) { width: 5.68%; }  /* 50/880 = 5.68% */
.card-table th:nth-child(6) { width: 38.08%; } /* 395/880 = 44.89% */

/* 同时设置表格单元格的宽度，确保一致 */
.card-table td:nth-child(1) { width: 14.20%; }
.card-table td:nth-child(2) { width: 20.45%; }
.card-table td:nth-child(3) { width: 15.91%; }
.card-table td:nth-child(4) { width: 5.68%; }
.card-table td:nth-child(5) { width: 5.68%; }
.card-table td:nth-child(6) { width: 38.08%; }

.card-table thead tr {
    text-align: left;
    padding: 16px 20px;
    color: #565656;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-table thead th {
    padding: 12px 10px;
    vertical-align: middle;
    text-align: left;
    font-weight: bold;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-table tbody tr {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-table tbody tr:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.card-table td {
    padding: 12px 10px;
    vertical-align: middle;
    text-align:center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 圆角效果 */
.card-table tbody tr td:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.card-table tbody tr td:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

.card-table thead tr {
    background: linear-gradient(90deg, #e3f2fd 0%, #bbdefb 100%);
}

.card-table tbody tr {
    background: linear-gradient(90deg, #fff3e0 0%, #ffe0b2 100%);
}

/* 移动端响应式设计 */
@media (max-width: 768px) {
    .card-table {
        width: 100%; /* 在移动端使用100%宽度 */
        border-spacing: 0 4px;
        table-layout: auto; /* 恢复自动布局 */
    }
    
    /* 重置所有宽度设置 */
    .card-table th,
    .card-table td {
        width: auto !important;
        max-width: none !important;
    }
    
    .card-table thead {
        display: none;
    }
    
    .card-table tr {
        display: block;
        margin-bottom: 16px;
    }
    
    .card-table td {
        display: flex;
        flex-direction: column;
        text-align: left;
        padding: 12px 16px;
        border-bottom: 1px solid #f0f0f0;
        white-space: normal; /* 允许换行 */
        overflow: visible; /* 允许内容溢出 */
    }

    /* 为每列添加对应的标签 */
    .card-table td:nth-child(1):before {
        content: "分子类型"; 
    }
    
    .card-table td:nth-child(2):before {
        content: "标本号"; 
    }
    
    .card-table td:nth-child(3):before {
        content: "Version No."; 
    }
    
    .card-table td:nth-child(4):before {
        content: "序列"; 
    }
    
    .card-table td:nth-child(5):before {
        content: "文献"; 
    }
    
    .card-table td:nth-child(6):before {
        content: "来源地"; 
    }
    
    .card-table td:before {
        content: attr(data-label);
        font-weight: 600;
        color: #7f8c8d;
        font-size: 12px;
        margin-bottom: 4px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    /* 移除第一个和最后一个单元格的特殊圆角 */
    .card-table tbody tr td:first-child,
    .card-table tbody tr td:last-child {
        border-radius: 0;
    }
    
    /* 给整个卡片添加圆角 */
    .card-table tbody tr {
        border-radius: 12px;
        overflow: hidden;
    }
    
    /* 移除渐变背景，使用纯色提高可读性 */
    .card-table tbody tr {
        background: #ffffff;
    }
    
    /* 最后一个单元格不加底部边框 */
    .card-table td:last-child {
        border-bottom: none;
    }
    
    /* 移动端悬停效果简化 */
    .card-table tbody tr:hover {
        transform: none;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    }
}

/* 中等屏幕优化 */
@media (min-width: 769px) and (max-width: 1024px) {
    .card-table {
        width: 95%; /* 在中等屏幕上稍微宽一些 */
    }
    
    .card-table th,
    .card-table td {
        padding: 10px 8px;
        font-size: 14px;
    }
   .card-table tbody tr td:nth-child(6) {
        font-size:0.5em; 
	color:#949494;
    }
}

/* 大屏幕优化 */
@media (min-width: 1200px) {
    .card-table {
        max-width: 1600px; /* 设置最大宽度，避免过宽 */
    }
     .card-table tbody tr td:nth-child(6) {
        font-size:0.5em; 
	color:#949494;
    }
}




.mushroom-table {
            width: 100%;
            border-collapse: collapse;
            margin-bottom: 30px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
            background-color: white;
        }
        
        .mushroom-table th {
            background-color: #f8f9fa;
            font-weight: 600;
            text-align: left;
            padding: 16px 15px;
            border-bottom: 2px solid #e0e0e0;
            color: #2c5530;
        }
        
        .mushroom-table td {
            padding: 15px;
            border-bottom: 1px solid #eee;
            vertical-align: top;
        }
        
        .mushroom-table tr:hover {
            background-color: #f9fdf5;
        }
        
        .edibility {
            font-weight: 600;
            border-radius: 4px;
            padding: 4px 10px;
            display: inline-block;
            font-size: 0.9rem;
        }
        
        .edible { background-color: #e8f5e9; color: #2e7d32; }
        .unknown { background-color: #fff3e0; color: #f57c00; }
        .toxic { background-color: #ffebee; color: #c62828; }
        .deadly { background-color: #fce4ec; color: #ad1457; }
        
        .reference {
            font-size: 0.9rem;
            color: #666;
            font-style: italic;
        }
        
