/* 梵音音乐钱包样式 */

/* 钱包按钮样式 */
.wallet-btn {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    flex-shrink: 0;
}

/* 币种列表样式 */
.wallet-tokens {
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tokens-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tokens-header h4 {
    margin: 0;
    color: white;
    font-size: 16px;
    font-weight: 600;
}

.tokens-refresh-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    padding: 6px 10px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tokens-refresh-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.tokens-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.token-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.token-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.token-item.native {
    border: 1px solid rgba(255, 215, 0, 0.3);
    background: rgba(255, 215, 0, 0.1);
}

.token-icon {
    width: 40px;
    height: 40px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.token-icon img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.token-symbol {
    font-size: 20px;
    font-weight: bold;
}

.token-placeholder {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    font-size: 12px;
    font-weight: bold;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.token-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.token-name {
    font-size: 14px;
    font-weight: 600;
    color: white;
    margin: 0;
    line-height: 1.2;
}

.token-info .token-symbol {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: normal;
}

.token-balance {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.balance-amount {
    font-size: 14px;
    font-weight: 600;
    color: white;
    margin: 0;
    line-height: 1.2;
}

.balance-usd {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.no-tokens {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.7);
}

.no-tokens p {
    margin: 0 0 16px 0;
    font-size: 14px;
}

.add-token-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    color: white;
    padding: 10px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 auto;
}

.add-token-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.wallet-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.wallet-btn:active {
    transform: translateY(0);
}

/* 钱包模态框 */
.wallet-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.wallet-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.wallet-container {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-radius: 20px;
    width: 400px;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    color: white;
    position: relative;
}

/* 钱包头部 */
.wallet-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.wallet-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.wallet-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.wallet-title {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.wallet-logo {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

/* 钱包内容 */
.wallet-content {
    padding: 20px;
}

/* 账户信息 */
.wallet-account {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

.wallet-address {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 10px;
    word-break: break-all;
}

.wallet-balance {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 5px;
}

.wallet-balance-usd {
    font-size: 16px;
    opacity: 0.7;
}

.copy-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 5px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    margin-left: 10px;
    transition: background 0.3s ease;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 钱包操作按钮 */
.wallet-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.wallet-action-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 15px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.wallet-action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.wallet-action-btn i {
    font-size: 24px;
}

/* 钱包管理选项 */
.wallet-management {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

.wallet-management h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
}

.wallet-management-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 10px 15px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    margin-right: 10px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.wallet-management-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* 发送/接收表单 */
.wallet-form {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
}

.wallet-form.show {
    display: block;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    opacity: 0.9;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 14px;
    box-sizing: border-box;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 1);
    color: #333;
}

.form-submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    width: 100%;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.form-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.form-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 创建/导入钱包界面 */
.wallet-setup {
    text-align: center;
    padding: 40px 20px;
}

.wallet-setup h2 {
    margin-bottom: 30px;
    font-size: 24px;
}

.wallet-setup-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.wallet-setup-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 15px 30px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.wallet-setup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.wallet-setup-btn.secondary {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.wallet-setup-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* 助记词显示 */
.mnemonic-display {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
}

.mnemonic-words {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 15px 0;
}

.mnemonic-word {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 12px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
}

.mnemonic-warning {
    background: rgba(255, 193, 7, 0.2);
    border: 1px solid rgba(255, 193, 7, 0.5);
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
    font-size: 14px;
}

/* 交易记录 */
.transaction-history {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.transaction-item:last-child {
    border-bottom: none;
}

.transaction-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.transaction-type {
    font-weight: bold;
    font-size: 14px;
}

.transaction-address {
    font-size: 12px;
    opacity: 0.7;
}

.transaction-amount {
    font-weight: bold;
    font-size: 16px;
}

.transaction-amount.positive {
    color: #4ade80;
}

.transaction-amount.negative {
    color: #f87171;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 成功/错误消息 */
.message {
    padding: 10px 15px;
    border-radius: 10px;
    margin: 10px 0;
    font-size: 14px;
}

.message.success {
    background: rgba(74, 222, 128, 0.2);
    border: 1px solid rgba(74, 222, 128, 0.5);
    color: #4ade80;
}

.message.error {
    background: rgba(248, 113, 113, 0.2);
    border: 1px solid rgba(248, 113, 113, 0.5);
    color: #f87171;
}

/* 网络选择器 */
.network-selector {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 15px;
    width: 100%;
    box-sizing: border-box;
}

.network-selector option {
    background: #2a5298;
    color: white;
}

.network-selector:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.15);
}

/* 网络管理样式 */
.network-list {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 15px;
}

.network-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    gap: 12px;
}

.network-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.network-item.active {
    background: rgba(102, 126, 234, 0.3);
    border: 1px solid rgba(102, 126, 234, 0.5);
}

.network-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.network-name {
    flex: 1;
    font-weight: bold;
    font-size: 14px;
}

.network-symbol {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
}

.network-status {
    background: rgba(74, 222, 128, 0.3);
    color: #4ade80;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
}

.network-delete-btn {
    background: rgba(248, 113, 113, 0.2);
    border: 1px solid rgba(248, 113, 113, 0.5);
    color: #f87171;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.network-delete-btn:hover {
    background: rgba(248, 113, 113, 0.3);
    border-color: rgba(248, 113, 113, 0.7);
}

/* 添加网络表单样式 */
.form-group input[type="url"] {
    font-family: monospace;
    font-size: 13px;
}

.form-group input[type="number"] {
    width: 100%;
}

/* 钱包状态指示器 */
.wallet-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    animation: pulse 2s infinite;
}

.status-indicator.disconnected {
    background: #f87171;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* 币种管理样式 */
.token-list {
    margin-top: 15px;
}

.token-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.token-item:hover {
    background: rgba(255, 255, 255, 0.15);
}

.token-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.token-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.token-icon-placeholder {
    font-weight: bold;
    font-size: 14px;
    color: white;
}

.token-details {
    flex-grow: 1;
}

.token-name {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
}

.token-balance {
    font-size: 14px;
    margin-bottom: 3px;
}

.token-address {
    font-size: 12px;
    opacity: 0.7;
}

.token-remove-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.token-remove-btn:hover {
    background: rgba(255, 0, 0, 0.2);
    color: white;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.form-cancel-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    flex-grow: 1;
    transition: all 0.3s ease;
}

.form-cancel-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.form-submit-btn {
    flex-grow: 2;
}

/* 代币详情样式 */
.token-detail-view {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin-top: 15px;
}

.token-detail-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.token-detail-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.token-detail-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.token-detail-name {
    font-size: 24px;
    font-weight: bold;
}

.token-detail-balance {
    font-size: 32px;
    font-weight: bold;
    margin: 20px 0;
}

.token-detail-info {
    margin-top: 20px;
}

.token-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.token-detail-label {
    opacity: 0.8;
}

.token-detail-value {
    font-weight: bold;
}

/* 备份助记词和导出私钥专用样式 */
.backup-form, .export-form {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
}

.backup-step {
    display: none;
    margin-bottom: 20px;
}

.backup-step.active {
    display: block;
}

.security-warning {
    background: rgba(255, 193, 7, 0.2);
    border: 1px solid rgba(255, 193, 7, 0.5);
    color: #f39c12;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.security-tips {
    margin: 20px 0;
}

.tip-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 8px 0;
}

.tip-item i {
    color: #2ecc71;
    font-size: 16px;
}

.mnemonic-display {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.mnemonic-words {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.mnemonic-word {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.word-number {
    background: rgba(0, 112, 243, 0.3);
    color: #70a3ff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

.word-text {
    font-weight: 600;
    flex: 1;
}

.mnemonic-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.copy-mnemonic-btn, .print-mnemonic-btn {
    background: rgba(0, 112, 243, 0.8);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.copy-mnemonic-btn:hover, .print-mnemonic-btn:hover {
    background: rgba(0, 112, 243, 1);
}

/* 导出选项样式 */
.export-options {
    margin: 20px 0;
}

.export-option {
    margin-bottom: 15px;
}

.export-option input[type="radio"] {
    display: none;
}

.export-option label {
    display: flex;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.export-option input[type="radio"]:checked + label {
    background: rgba(0, 112, 243, 0.2);
    border-color: rgba(0, 112, 243, 0.8);
}

.option-header {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 5px;
}

.option-description {
    font-size: 14px;
    opacity: 0.8;
    margin-left: 24px;
}

/* 导出结果显示 */
.export-result {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
}

.export-data {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
}

.data-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.copy-btn {
    background: rgba(0, 112, 243, 0.8);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: rgba(0, 112, 243, 1);
}

.data-content pre {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-all;
    margin: 0;
    overflow-x: auto;
}

.security-reminder {
    background: rgba(255, 87, 34, 0.2);
    border: 1px solid rgba(255, 87, 34, 0.5);
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
}

.security-reminder h4 {
    margin: 0 0 10px 0;
    color: #ff5722;
}

.security-reminder ul {
    margin: 0;
    padding-left: 20px;
}

.security-reminder li {
    margin-bottom: 8px;
    font-size: 14px;
}

/* 移动端备份导出优化 */
@media (max-width: 768px) {
    .backup-form, .export-form {
        padding: 15px;
        margin-top: 15px;
    }
    
    .mnemonic-words {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .mnemonic-word {
        padding: 10px;
        font-size: 13px;
    }
    
    .word-number {
        width: 18px;
        height: 18px;
        font-size: 11px;
    }
    
    .mnemonic-actions {
        flex-direction: column;
    }
    
    .copy-mnemonic-btn, .print-mnemonic-btn {
        width: 100%;
        justify-content: center;
    }
    
    .export-option label {
        padding: 12px;
    }
    
    .option-header {
        font-size: 15px;
    }
    
    .option-description {
        font-size: 13px;
        margin-left: 20px;
    }
    
    .data-content pre {
        font-size: 12px;
        padding: 12px;
    }
    
    .security-reminder {
        padding: 12px;
    }
    
    .security-reminder li {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .mnemonic-words {
        grid-template-columns: 1fr;
    }
    
    .mnemonic-word {
        padding: 8px;
        font-size: 12px;
    }
    
    .word-number {
        width: 16px;
        height: 16px;
        font-size: 10px;
    }
    
    .export-option label {
        padding: 10px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .option-description {
        margin-left: 0;
        margin-top: 5px;
    }
}

/* 移动设备优化 */
@media (max-width: 768px) {
    .wallet-btn {
        width: 44px !important;
        height: 44px !important;
        font-size: 20px !important;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
        user-select: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
    }
    
    .wallet-btn:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
    
    .wallet-modal {
        padding: 10px !important;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .wallet-container {
        width: 95% !important;
        max-width: none !important;
        border-radius: 15px !important;
        margin: 20px auto !important;
        min-height: auto !important;
    }
    
    .wallet-content {
        padding: 15px !important;
    }
    
    .wallet-header {
        padding: 15px !important;
        position: sticky;
        top: 0;
        background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
        z-index: 10;
    }
    
    .wallet-close {
        width: 36px !important;
        height: 36px !important;
        font-size: 20px !important;
        touch-action: manipulation;
    }
    
    .wallet-action-btn {
        padding: 12px !important;
        font-size: 14px !important;
        touch-action: manipulation;
        min-height: 60px;
    }
    
    .wallet-balance {
        font-size: 28px !important;
    }
    
    .wallet-address {
        font-size: 12px !important;
        line-height: 1.4;
    }
    
    /* 表单优化 */
    .wallet-form input {
        font-size: 16px !important; /* 防止iOS缩放 */
        padding: 12px !important;
    }
    
    .form-submit-btn {
        min-height: 48px !important;
        font-size: 16px !important;
        touch-action: manipulation;
    }
    
    /* 网络选择器 */
    .network-selector {
        font-size: 14px !important;
        padding: 10px !important;
        touch-action: manipulation;
    }
    
    /* QR码容器 */
    .qr-container {
        padding: 15px !important;
        text-align: center;
    }
    
    /* 助记词显示 */
    .mnemonic-words {
        gap: 8px !important;
    }
    
    .mnemonic-word {
        font-size: 12px !important;
        padding: 8px 10px !important;
    }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
    .wallet-container {
        width: 98% !important;
        border-radius: 10px !important;
        margin: 10px auto !important;
    }
    
    .wallet-title {
        font-size: 20px !important;
    }
    
    .wallet-balance {
        font-size: 24px !important;
    }
    
    .wallet-actions {
        gap: 10px !important;
    }
    
    .wallet-action-btn {
        padding: 10px !important;
        font-size: 13px !important;
    }
}

/* 解决iOS Safari的viewport问题 */
@supports (-webkit-touch-callout: none) {
    .wallet-modal {
        height: -webkit-fill-available;
    }
    
    .wallet-container {
        max-height: 85vh;
        overflow-y: auto;
    }
}

/* 币种列表样式 */
.wallet-tokens {
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tokens-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tokens-header h4 {
    margin: 0;
    color: white;
    font-size: 16px;
    font-weight: 600;
}

.tokens-refresh-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    padding: 6px 10px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tokens-refresh-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.tokens-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.token-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.token-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.token-item.native {
    border: 1px solid rgba(255, 215, 0, 0.3);
    background: rgba(255, 215, 0, 0.1);
}

.token-icon {
    width: 40px;
    height: 40px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.token-icon img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.token-symbol {
    font-size: 20px;
    font-weight: bold;
}

.token-placeholder {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    font-size: 12px;
    font-weight: bold;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.token-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.token-name {
    font-size: 14px;
    font-weight: 600;
    color: white;
    margin: 0;
    line-height: 1.2;
}

.token-info .token-symbol {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: normal;
}

.token-balance {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.balance-amount {
    font-size: 14px;
    font-weight: 600;
    color: white;
    margin: 0;
    line-height: 1.2;
}

.balance-usd {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.no-tokens {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.7);
}

.no-tokens p {
    margin: 0 0 16px 0;
    font-size: 14px;
}

.add-token-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    color: white;
    padding: 10px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 auto;
}

.add-token-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* 代币详情样式 */
.token-detail {
    padding: 20px 0;
}

.token-detail-balance {
    text-align: center;
    margin-bottom: 24px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.balance-main {
    font-size: 24px;
    font-weight: bold;
    color: white;
    margin-bottom: 8px;
}

.balance-usd {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
}

.token-detail-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    justify-content: center;
}

.token-action-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    padding: 12px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 80px;
}

.token-action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.token-action-btn i {
    font-size: 18px;
}

.token-detail-info {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.detail-value {
    font-size: 14px;
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-value a {
    color: #4fc3f7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.detail-value a:hover {
    color: #81d4fa;
}

.edit-token-btn, .remove-token-btn {
    background: rgba(255, 255, 255, 0