/* USDT 钱包样式 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 
                 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #f5f5f5;
    color: #000000;
}

.wallet-container {
    max-width: 428px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
    position: relative;
    padding-bottom: 100px;
}

/* 状态栏 */
.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    background: white;
}

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

.status-time {
    font-size: 14px;
    font-weight: 600;
    color: #000000;
}

.status-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-icon {
    color: #000000;
}

.battery-container {
    display: flex;
    align-items: center;
}

.battery-icon {
    width: 24px;
    height: 12px;
}

/* 导航栏 */
.nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
}

.nav-back {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #000000;
    display: flex;
    align-items: center;
}

.nav-back:hover {
    opacity: 0.7;
}

.nav-center {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    margin-left: 8px;
}

.nav-title {
    font-size: 18px;
    font-weight: 700;
    color: #000000;
    margin: 0;
}

.nav-badge {
    display: inline-flex;
    align-items: center;
    background: #D9E2D8;
    padding: 2px 6px;
    border-radius: 3px;
}

.badge-text {
    font-size: 12px;
    font-weight: 500;
    color: #8cc6b3;
}

.badge-flag {
    display: inline-flex;
    align-items: center;
    margin-left: 4px;
}

.badge-flag svg {
    width: 16px;
    height: 16px;
    display: block;
}

.nav-info {
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666666;
    padding: 0;
}

.nav-info .info-icon-svg {
    transform: rotate(180deg);
    width: 20px;
    height: 20px;
}

.nav-info:hover {
    opacity: 0.7;
}

/* 价格显示 */
.price-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    background: #f5f5f5;
}

.price-label {
    font-size: 12px;
    color: #666666;
}

.price-value {
    font-size: 14px;
    font-weight: 400;
    color: #000000;
}

/* 余额显示 */
.balance-section {
    text-align: center;
    padding: 30px 20px;
}

.usdt-logo {
    margin: 0 auto 20px;
    width: 80px;
    height: 80px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.usdt-logo .logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.usdt-logo .v-badge-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.balance-main {
    font-size: 40px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 12px;
}

.balance-sub {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 14px;
    color: #666666;
}

/* 交易标签 */
.tabs-section {
    padding: 16px;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.tabs {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tab {
    background: none;
    border: none;
    font-size: 18px;
    font-weight: 700;
    color: #000000;
    cursor: pointer;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s;
}

.tab.tab-small {
    font-size: 14px;
    font-weight: 400;
    color: #666666;
}

.tab:hover {
    opacity: 0.8;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #000000;
}

.filter-container {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #666666;
}

.filter-container input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #26a17b;
    border-radius: 50%;
    appearance: none;
    -webkit-appearance: none;
    border: 2px solid #cccccc;
    position: relative;
}

.filter-container input[type="checkbox"]:checked {
    background: #26a17b;
    border-color: #26a17b;
}

.filter-container input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.filter-container label {
    cursor: pointer;
    user-select: none;
}

.help-icon {
    color: #999999;
    cursor: pointer;
    display: inline-block;
}

.help-icon:hover {
    color: #666666;
}

/* 交易列表 */
.transactions-section {
    padding: 16px;
    max-height: calc(100vh - 550px);
    overflow-y: auto;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

.transaction-info {
    flex: 1;
}

.transaction-type {
    font-size: 16px;
    font-weight: 400;
    color: #000000;
    margin-bottom: 4px;
}

.transaction-address {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    font-weight: 400;
    color: #000000;
}

.transaction-time {
    font-size: 12px;
    color: #999999;
    margin-top: 4px;
    letter-spacing: 0.5px;
}

.transaction-amount {
    font-size: 18px;
    font-weight: 700;
    color: #8cc6b3;
    white-space: nowrap;
    margin-left: 12px;
}

.transaction-amount.negative {
    color: #e74c3c;
}

/* 底部操作按钮 */
.bottom-actions {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 428px;
    display: flex;
    gap: 12px;
    padding: 16px;
    background: white;
}

.btn-transfer {
    flex: 1;
    background: #2c3e50;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.3s;
}

.btn-transfer:hover {
    background: #1a252f;
}

.btn-transfer:active {
    transform: scale(0.98);
}

.btn-receive {
    flex: 1;
    background: white;
    color: #2c3e50;
    border: 2px solid #2c3e50;
    padding: 14px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s;
}

.btn-receive:hover {
    background: #f5f5f5;
}

.btn-receive:active {
    transform: scale(0.98);
}

/* 响应式设计 */
@media (max-width: 428px) {
    .wallet-container {
        max-width: 100%;
    }
    
    .bottom-actions {
        max-width: 100%;
    }
}

/* 滚动条样式 */
.transactions-section::-webkit-scrollbar {
    width: 4px;
}

.transactions-section::-webkit-scrollbar-track {
    background: #f0f0f0;
}

.transactions-section::-webkit-scrollbar-thumb {
    background: #cccccc;
    border-radius: 2px;
}

.transactions-section::-webkit-scrollbar-thumb:hover {
    background: #999999;
}