/* 按钮基础样式 */
.copy-button,
.buy-button,
.search-button {
    height: 32px;
    padding: 0 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    line-height: 30px;
    font-weight: 500;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.tab-button {
    padding: 12px 24px;
    border: none;
    background: transparent;
    color: #666;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    position: relative;
}

.tab-button.active {
    color: #1DA1F2;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #1DA1F2;
}

/* 按钮变体 */
.copy-button {
    background: #f0f0f0;
    border: 1px solid #ddd;
    color: inherit;
}

.buy-button {
    background: #4CAF50;
    border: 1px solid #45a049;
    color: white;
}

.search-button {
    background: #1DA1F2;
    border: 1px solid #1991db;
    color: white;
}

/* 按钮悬停效果 */
.copy-button:hover { background: #e0e0e0; }
.buy-button:hover { background: #45a049; }
.search-button:hover { background: #1991db; }

/* 表格样式优化 */
.coins-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 20px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.coins-table th {
    background: #f8f9fa;
    font-weight: 600;
    padding: 15px;
    text-align: left;
    border-bottom: 2px solid #eee;
}

.coins-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.coins-table tr:hover {
    background-color: #f8f9fa;
}

/* PumpFun 组件样式 */
.sort-select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.filter-input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.filter-select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
}

/* 状态样式 */
.status-complete {
    background-color: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

.status-incomplete {
    background-color: rgba(244, 67, 54, 0.1);
    color: #F44336;
}

/* 错误和加载提示 */
.error-message {
    color: #F44336;
    display: none;
    margin-bottom: 10px;
}

.loading-message {
    color: #666;
    display: none;
    margin-bottom: 10px;
}

/* 默认图标 */
.default-icon {
    width: 40px;
    height: 40px;
    color: #ddd;
    display: none;
}

.error .default-icon {
    display: block;
}

/* Toast 提示框样式优化 */
.toast {
    position: fixed;
    bottom: 50%;
    left: 50%;
    transform: translate(-50%, 50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    pointer-events: none;
    text-align: center;
    font-size: 14px;
    min-width: 120px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translate(-50%, 50%); }
    15% { opacity: 1; transform: translate(-50%, 0); }
    85% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, -50%); }
}

.toast.animate {
    animation: fadeInOut 2s ease forwards;
}

/* Stats 盒子样式 */
.stats-box {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stats-box h5 {
    margin: 0 0 10px;
    color: #666;
}

/* Token 图片样式 */
.token-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

/* 搜索和 Find OG 按钮特殊样式 */
#searchButton,
#findOGButton {
    padding: 0 20px;
    height: 44px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
}

#searchButton {
    background: linear-gradient(45deg, #2196F3, #1976D2);
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

#searchButton:hover {
    background: linear-gradient(45deg, #1976D2, #1565C0);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}

#findOGButton {
    background: linear-gradient(45deg, #4CAF50, #388E3C);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

#findOGButton:hover {
    background: linear-gradient(45deg, #388E3C, #2E7D32);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

/* 过滤器组件样式 */
.filters {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* 过滤器组布局 */
.filters-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

/* 搜索过滤器组 */
.search-filters {
    display: flex;
    gap: 8px;
}

/* 市值范围过滤器组 */
.market-cap-filters {
    display: flex;
    width: 100%;
    gap: 8px;
}

.market-cap-range {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.market-cap-range input {
    flex: 1;
}

.market-cap-range span {
    color: #666;
    font-weight: 500;
    padding: 0 4px;
}

.sort-select,
.filter-select {
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%23666' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.sort-select:hover,
.filter-select:hover {
    border-color: #1DA1F2;
    box-shadow: 0 0 0 2px rgba(29, 161, 242, 0.1);
}

.sort-select:focus,
.filter-select:focus {
    outline: none;
    border-color: #1DA1F2;
    box-shadow: 0 0 0 2px rgba(29, 161, 242, 0.2);
}

.filter-input {
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    transition: all 0.2s ease;
    background: white;
}

.filter-input::placeholder {
    color: #999;
}

.filter-input:hover {
    border-color: #1DA1F2;
    box-shadow: 0 0 0 2px rgba(29, 161, 242, 0.1);
}

.filter-input:focus {
    outline: none;
    border-color: #1DA1F2;
    box-shadow: 0 0 0 2px rgba(29, 161, 242, 0.2);
}

/* 市值范围标签样式 */
.filter-group label {
    font-size: 14px;
    font-weight: 500;
    color: #666;
    margin-right: 8px;
}

/* 修改 mint 列的样式 */
.mint-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: stretch;
    white-space: nowrap;
    width: 60px;
}

/* 调整按钮大小以适应竖向排列 */
.mint-cell .copy-button,
.mint-cell .buy-button,
.mint-cell .search-button {
    width: 100%;
    height: 24px;
    line-height: 22px;
    font-size: 11px;
    text-align: center;
    justify-content: center;
    padding: 0;
    border-radius: 4px;
}

/* 统一按钮样式 */
.mint-cell .copy-button {
    background: #f0f0f0;
    border: 1px solid #ddd;
}

.mint-cell .buy-button {
    background: #4CAF50;
    border: 1px solid #45a049;
}

.mint-cell .search-button {
    background: #1DA1F2;
    border: 1px solid #1991db;
}

/* DexScreener 交易数据样式 */
.price-changes {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 8px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;  /* Firefox */
}

.price-changes::-webkit-scrollbar {
    display: none;  /* Chrome, Safari */
}

.price-changes-container {
    display: flex;
    justify-content: space-around;
    gap: 10px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #eee;
    width: 100%;
}

.price-change-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
    padding: 4px 8px;
}

.price-change-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 2px;
}

.price-change-value {
    font-size: 14px;
    font-weight: 500;
}

.price-up {
    color: #4CAF50;
}

.price-down {
    color: #F44336;
}

/* DexScreener 卡片样式 */
.pair-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease;
}

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

/* 代币信息样式 */
.token-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.token-info {
    flex: 1;
}

.token-name {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.chain-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    background: #f0f2f5;
    font-size: 12px;
    color: #666;
    margin-left: 8px;
}

.token-links {
    margin-top: 8px;
    font-size: 13px;
    color: #666;
}

.token-links a {
    color: #1DA1F2;
    margin: 0 6px;
    text-decoration: none;
    transition: color 0.2s;
}

.token-links a:hover {
    color: #1991db;
}

/* 代币地址样式 */
.address-container {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
    margin: 16px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.address-text {
    font-size: 14px;
    color: #666;
}

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

/* 统计信息网格 */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.stats-box {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 10px;
    border: 1px solid #eee;
}

.stats-box h5 {
    font-size: 14px;
    color: #666;
    margin: 0 0 12px 0;
    font-weight: 600;
}

.stats-box p {
    margin: 8px 0;
    font-size: 13px;
    color: #333;
} 