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

body {
    font-family: Arial, sans-serif;
    background-color: #f0f2f5;
    color: #333;
}

.container {
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.container.fullscreen {
    box-shadow: none;
    min-height: 100vh;
}

.header {
    text-align: center;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.header h1 {
    color: #059E6E;
    font-size: 24px;
}

.tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: #059E6E;
    border-bottom-color: #059E6E;
}

.tab-btn:hover {
    color: #059E6E;
}

.tab-content {
    display: none;
    padding: 20px 0;
}

.tab-content.active {
    display: block;
}

h2 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #333;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #059E6E;
    box-shadow: 0 0 0 2px rgba(5, 158, 110, 0.2);
}

.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    background-color: #fff;
    cursor: pointer;
    transition: border-color 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 36px;
}

.form-group select:focus {
    outline: none;
    border-color: #059E6E;
    box-shadow: 0 0 0 2px rgba(5, 158, 110, 0.2);
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #059E6E;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #07c188;
}

.btn:active {
    background-color: #047d56;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.accounts-list {
    margin-top: 20px;
}

.account-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 10px;
    background-color: #fafafa;
}

.account-item:hover {
    background-color: #f0f0f0;
}

.account-info {
    flex: 1;
}

.account-info h3 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.account-info p {
    font-size: 12px;
    color: #666;
    margin-bottom: 2px;
}

.account-balance {
    font-size: 16px;
    font-weight: 500;
    color: #059E6E;
    margin-right: 20px;
}

.account-actions {
    display: flex;
    gap: 8px;
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-danger {
    background-color: #059E6E;
}

.btn-danger:hover {
    background-color: #07c188;
}

.btn-danger:active {
    background-color: #047d56;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.modal h3 {
    margin-bottom: 16px;
    color: #333;
}

.modal p {
    margin-bottom: 20px;
    color: #666;
}

.modal .btn {
    display: block;
    width: 100%;
    text-align: center;
}

.footer {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
    margin-top: 20px;
    font-size: 12px;
    color: #999;
}

/* 账户列表表格样式 */
.accounts-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    margin-top: 15px;
}

.accounts-table th,
.accounts-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.accounts-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
    font-size: 14px;
    white-space: nowrap;
}

.accounts-table th:first-child {
    width: 50px;
}

.accounts-table td {
    font-size: 14px;
    color: #555;
    transition: background-color 0.2s ease;
}

.accounts-table tbody tr {
    transition: all 0.3s ease;
}

.accounts-table tbody tr:hover {
    background-color: #f6ffed;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.accounts-table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

.accounts-table tbody tr:nth-child(even):hover {
    background-color: #f6ffed;
}

.accounts-table td:last-child {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.accounts-table .edit-btn {
    background-color: #059E6E;
}

.accounts-table .edit-btn:hover {
    background-color: #07c188;
}

.accounts-table .edit-btn:active {
    background-color: #047d56;
}

.accounts-table .delete-btn {
    background-color: #059E6E;
}

.accounts-table .delete-btn:hover {
    background-color: #07c188;
}

.accounts-table .delete-btn:active {
    background-color: #047d56;
}

.no-accounts {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 14px;
    background-color: #fafafa;
    border-radius: 8px;
    margin-top: 15px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        padding: 15px;
    }
    
    .tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        border-bottom: 1px solid #e0e0e0;
        border-right: none;
        text-align: left;
    }
    
    .tab-btn.active {
        border-bottom: 1px solid #e0e0e0;
        background-color: #f0fff7;
    }
    
    /* 账户列表部分的移动端适配 */
    .accounts-section {
        overflow-x: auto;
    }
    
    .accounts-list {
        width: 100%;
        overflow-x: auto;
    }
    
    .accounts-table {
        font-size: 12px;
        min-width: 600px; /* 确保表格有足够的宽度 */
    }
    
    .accounts-table th,
    .accounts-table td {
        padding: 8px 12px;
    }
    
    .accounts-table th:first-child {
        width: 40px;
    }
    
    .accounts-table td:last-child {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .accounts-table .btn-sm {
        width: 100%;
        text-align: center;
    }
    
    /* 账户列表头部的移动端适配 */
    .accounts-section > div {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    #batch-delete-btn {
        align-self: flex-start;
    }
}

/* 小屏幕设备的额外适配 */
@media (max-width: 480px) {
    .accounts-table {
        font-size: 11px;
        min-width: 500px;
    }
    
    .accounts-table th,
    .accounts-table td {
        padding: 6px 8px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .btn-sm {
        padding: 4px 8px;
        font-size: 11px;
    }
    
    h2 {
        font-size: 16px;
    }
}
