* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.search-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

#searchInput {
    width: 300px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

#searchButton {
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

#searchButton:hover {
    background-color: #2980b9;
}

.filters {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

#sortBy {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.results-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.table-results {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f8f9fa;
    font-weight: bold;
    color: #2c3e50;
}

th.sortable {
    cursor: pointer;
    position: relative;
    padding-right: 20px;
}

th.sortable:hover {
    background-color: #e9ecef;
}

.sort-icon {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 5px;
    vertical-align: middle;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    border-bottom: 4px solid #ccc;
}

th.sortable.asc .sort-icon {
    border-bottom: 4px solid #3498db;
}

th.sortable.desc .sort-icon {
    border-top: 4px solid #3498db;
    border-bottom: none;
}

tr:hover {
    background-color: #f5f5f5;
}

.token-image {
    width: 50px;
    height: 50px;
    overflow: hidden;
    border-radius: 4px;
}

.token-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mint-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mint-address {
    font-family: monospace;
    color: #666;
}

.copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #666;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.copy-btn:hover {
    color: #3498db;
}

.copy-btn svg {
    width: 16px;
    height: 16px;
}

/* 复制成功样式 */
.copy-btn.copied {
    color: #27ae60;
}

.copy-btn.copied::after {
    content: '已复制';
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    animation: fadeInOut 2s forwards;
}

/* 复制失败样式 */
.copy-btn.copy-error {
    color: #e74c3c;
}

.copy-btn.copy-error::after {
    content: '复制失败';
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    animation: fadeInOut 2s forwards;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

.loading, .error {
    text-align: center;
    padding: 20px;
    font-size: 16px;
}

.loading {
    color: #3498db;
}

.error {
    color: #e74c3c;
}

.hidden {
    display: none;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

#prevPage, #nextPage {
    padding: 8px 16px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#prevPage:hover, #nextPage:hover {
    background-color: #2980b9;
}

#prevPage:disabled, #nextPage:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
}

#pageInfo {
    font-size: 14px;
    color: #666;
}

/* 视图切换按钮 */
.view-toggle {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    gap: 10px;
}

.view-toggle button {
    padding: 8px 16px;
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.view-toggle button.active {
    background-color: #3498db;
    color: white;
    border-color: #2980b9;
}

/* 表格视图样式 */
.table-results {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 40px;
}

.table-results table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.table-results th,
.table-results td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.table-results th {
    background-color: #f7f9fc;
    font-weight: 600;
    color: #2c3e50;
}

.table-results tr:hover {
    background-color: #f9f9f9;
}

.table-results .token-image {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    overflow: hidden;
}

.table-results .token-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.table-results .action-btn {
    padding: 6px 12px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.table-results .action-btn:hover {
    background-color: #2980b9;
} 