/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

span {
    font-size: 13px !important;
}

button {
    min-width: 100px;
    font-size: 13px !important;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f7f8fa;
    color: #333;
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 10px;
}

#app {
    width: 100%;
    max-width: 800px;
    padding: 20px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-around;
    background-color: #2C3E50;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.nav-item {
    background-color: #34495E;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.nav-item:hover {
    background-color: #1abc9c;
}

/* 页面内容 */
.page {
    display: none;
}

.page h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
}

.page h2 {
    font-size: 1.4rem;
    margin-top: 20px;
    margin-bottom: 10px;
}

/* 输入框与按钮 */
.input-field {
    width: 100%;
    padding: 12px;
    margin: 15px 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1.1rem;
}

.action-btn {
    width: 100%;
    padding: 14px;
    background-color: #1abc9c;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.action-btn:hover {
    background-color: #16a085;
}

/* 显示生成的地址 */
.feedback-message {
    color: #e74c3c;
    font-size: 1rem;
    margin-top: 10px;
    text-align: center;
}

/* 钱包地址列表 */
#wallet-list {
    list-style-type: none;
    padding: 0;
    margin-top: 20px;
}

#wallet-list li {
    background-color: #ecf0f1;
    margin: 10px 0;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.delete-btn, .edit-btn {
    background-color: #e74c3c;
    color: white;
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.delete-btn:hover, .edit-btn:hover {
    background-color: #c0392b;
}

.edit-btn {
    background-color: #f39c12;
}

.edit-btn:hover {
    background-color: #e67e22;
}

/* 转账记录页面样式 */
#transaction-list {
    list-style-type: none;
    padding: 0;
    margin-top: 20px;
}

#transaction-list li {
    background-color: #f9f9f9;
    margin: 10px 0;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

#transaction-list li span {
    font-size: 13px;
}

.delete-record-btn {
    background-color: #e74c3c;
    color: white;
    /* padding: 6px 12px; */
    font-size: 13px !important;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    position: absolute;
    right: 10px;
    bottom: -13px;
    transform: translateY(-50%);
    transition: background-color 0.3s ease;
}

.delete-record-btn:hover {
    background-color: #c0392b;
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.modal-content h2 {
    margin-bottom: 20px;
}

#save-wallet-btn, #cancel-btn {
    margin-top: 15px;
    width: 100%;
}

/* 媒体查询：适配小屏幕 */
@media (max-width: 600px) {
    .navbar {
        flex-direction: column;
    }

    .nav-item {
        width: 100%;
        margin-bottom: 10px;
        font-size: 1rem;
        padding: 10px;
    }

    .page h1 {
        font-size: 1.8rem;
    }

    .page h2 {
        font-size: 1.2rem;
    }

    .input-field, .action-btn {
        font-size: 1rem;
        padding: 12px;
    }

    #wallet-list li, #transaction-list li {
        padding: 12px;
        flex-direction: column;
        align-items: flex-start;
    }

    .delete-btn, .edit-btn, .delete-record-btn {
        font-size: 0.9rem;
        padding: 6px 10px;
        margin: 5px 0;
    }
}

@media (max-width: 400px) {
    .page h1 {
        font-size: 1.5rem;
    }

    .input-field, .action-btn {
        font-size: 0.9rem;
    }
}
